/* ==========================================================================
   EBET 易博 · 共享站点样式 /assets/site.css
   数字航海：深海蓝分区 · 钛银细线 · 信号橙 CTA · 荧光青焦点
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
:where(img, svg, video) { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
summary { cursor: pointer; }

/* ---------- 2. Tokens ---------- */
:root {
  --deep: #06263B;
  --night: #0B3A55;
  --silver: #C9D2DA;
  --mist: #F3F7FA;
  --ink: #0A1720;
  --signal: #FF6A2B;
  --signal-dark: #E85C21;
  --cyan: #2EE6D6;
  --steel: #5F7D8C;
  --salt: #FFFFFF;
  --sand: #D8CFC2;

  --font-head: "Barlow Condensed", "DIN Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --rail-h: 34px;
  --bar-h: 70px;
  --line-dark: rgba(201, 210, 218, 0.16);
  --line-light: rgba(10, 23, 32, 0.14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base ---------- */
body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: 0; }
h4 { font-size: 19px; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
strong { font-weight: 800; }

/* ---------- 4. Focus & a11y ---------- */
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(10, 23, 32, .35);
}
.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;
}

/* ---------- 5. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }
.section { padding-block: clamp(48px, 7vw, 112px); }
.section--mist { background: var(--mist); color: var(--ink); }
.section--deep { background: var(--deep); color: var(--mist); }
.section--night { background: var(--night); color: var(--mist); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.rule { height: 1px; border: 0; margin: 0; background: var(--line-light); }
.section--deep .rule, .section--night .rule { background: var(--line-dark); }

/* ---------- 6. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--steel); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--signal); }
.section--deep .eyebrow, .section--night .eyebrow { color: var(--cyan); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: rgba(10, 23, 32, .82); max-width: 62ch; }
.section--deep .lead, .section--night .lead { color: rgba(243, 247, 250, .78); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.15em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--steel);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: rgba(95, 125, 140, .55); }
.breadcrumbs a { text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--deep); border-bottom-color: currentColor; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.section--deep .breadcrumbs, .section--night .breadcrumbs { color: rgba(201, 210, 218, .7); }
.section--deep .breadcrumbs [aria-current="page"], .section--night .breadcrumbs [aria-current="page"] { color: var(--mist); }

/* ---------- 8. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--signal); color: #08161F;
  font-weight: 800; font-size: 16px; line-height: 1.1; letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--signal-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--mist); border-color: rgba(201, 210, 218, .5); }
.btn--ghost:hover { background: rgba(46, 230, 214, .12); border-color: var(--cyan); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(10, 23, 32, .35); }
.btn--line:hover { background: var(--ink); color: var(--mist); border-color: var(--ink); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 0;
  border: 1px solid rgba(10, 23, 32, .25); background: transparent;
  color: var(--ink); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--deep); color: var(--mist); border-color: var(--deep); }
.chip--on-dark { border-color: rgba(201, 210, 218, .38); color: var(--mist); }
.chip--on-dark:hover { border-color: var(--cyan); color: #fff; }
.chip--on-dark[aria-pressed="true"] { background: var(--cyan); color: var(--deep); border-color: var(--cyan); }

/* ---------- 9. Cards / panels / media ---------- */
.card {
  position: relative;
  background: var(--salt);
  border: 1px solid var(--line-light);
  padding: clamp(20px, 2.4vw, 32px);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--deep); transform: translateY(-2px); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; margin: 0; }
.card__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }
.card__body { font-size: 16px; color: rgba(10, 23, 32, .78); }

.panel { border-top: 1px solid var(--line-light); }
.panel:last-of-type { border-bottom: 1px solid var(--line-light); }
.panel__summary {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0; font-weight: 700; font-size: 18px; line-height: 1.4;
  list-style: none;
}
.panel__summary::-webkit-details-marker { display: none; }
.panel__summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .18s var(--ease);
}
.panel[open] > .panel__summary { color: var(--deep); }
.panel[open] > .panel__summary::after { transform: rotate(-135deg); }
.panel__body { padding: 0 0 24px; max-width: 70ch; color: rgba(10, 23, 32, .8); font-size: 16px; }
.section--deep .panel, .section--night .panel { border-color: var(--line-dark); }
.section--deep .panel__summary::after, .section--night .panel__summary::after { border-color: var(--cyan); }
.section--deep .panel__body, .section--night .panel__body { color: rgba(243, 247, 250, .78); }

.media-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, rgba(201, 210, 218, .10) 0 1px, transparent 1px 10px),
    var(--night);
  border: 1px solid rgba(201, 210, 218, .28);
}
.media-frame > img, .media-frame > picture > img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 6px 10px;
  background: var(--deep); color: var(--cyan);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
}

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  color: var(--mist);
  background: rgba(6, 38, 59, .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(201, 210, 218, .10);
  transition: background-color .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-scrolled="true"] {
  background: var(--deep);
  border-bottom-color: rgba(46, 230, 214, .30);
  box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .95);
}

.skip-link {
  position: absolute; left: 14px; top: -72px; z-index: 120;
  padding: 10px 18px;
  background: var(--signal); color: #08161F;
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* 航线条 */
.header-rail {
  display: flex; align-items: center; gap: 18px;
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--rail-h); overflow: hidden;
  border-bottom: 1px solid rgba(201, 210, 218, .10);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: rgba(201, 210, 218, .72);
  transition: height .3s var(--ease), opacity .25s var(--ease), border-color .3s var(--ease);
}
.site-header[data-scrolled="true"] .header-rail { height: 0; opacity: 0; border-bottom-color: transparent; }
.rail-mark { color: var(--cyan); flex: none; }
.rail-note {
  margin: 0; min-width: 0; flex: 1 1 auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rail-link { color: var(--mist); text-decoration: none; border-bottom: 1px solid rgba(46, 230, 214, .55); }
.rail-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.rail-coord { flex: none; color: rgba(201, 210, 218, .5); }

/* 主条 */
.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--bar-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--mist);
  padding: 6px 0;
}
.brand-mark {
  position: relative; flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--cyan);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 6px; background: var(--signal);
}
.brand-mark::after {
  content: ""; position: absolute; left: -5px; bottom: -5px;
  width: 8px; height: 8px; background: var(--cyan);
}
.brand-text { display: grid; gap: 1px; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 900;
  font-size: 21px; letter-spacing: .01em;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(201, 210, 218, .62);
}
.brand:hover .brand-sub { color: var(--cyan); }

/* 导航 */
.primary-nav { grid-column: 2; justify-self: end; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.7vw, 28px); }
.nav-link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 12px 2px 14px;
  color: rgba(243, 247, 250, .84);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .18s var(--ease);
}
.nav-index { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--steel); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px;
  height: 2px; background: var(--cyan);
  transition: right .24s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { right: 0; }
.nav-link[aria-current="page"] { color: #fff; font-weight: 800; }
.nav-link[aria-current="page"]::after { right: 0; }
.nav-link[aria-current="page"] .nav-index { color: var(--signal); }

/* 注册入口 */
.header-cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px;
  background: var(--signal); color: #08161F;
  font-weight: 800; font-size: 15px; letter-spacing: .03em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.header-cta::after {
  content: ""; position: absolute; right: -4px; top: -4px;
  width: 6px; height: 6px; background: var(--cyan);
}
.header-cta:hover { background: var(--signal-hover, #FF7F49); transform: translateY(-1px); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 210, 218, .34);
  color: var(--mist);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); color: #fff; }
.nav-toggle-icon { display: grid; gap: 5px; width: 18px; }
.nav-toggle-bar {
  display: block; width: 100%; height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-label { line-height: 1; }
.site-header[data-open="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-header[data-open="true"] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }

/* 阅读进度 */
.header-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: rgba(46, 230, 214, .14);
  pointer-events: none;
}
.progress-bar {
  display: block; width: 100%; height: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--signal));
}

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--mist);
  padding-top: clamp(44px, 6vw, 88px);
  border-top: 1px solid rgba(46, 230, 214, .26);
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(201, 210, 218, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 210, 218, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 72%);
}
.footer-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 12% 130%, rgba(46, 230, 214, .20), transparent 62%),
    radial-gradient(95% 75% at 88% 140%, rgba(255, 106, 43, .14), transparent 62%),
    linear-gradient(to top, rgba(11, 58, 85, .85), transparent);
}
.footer-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}

.footer-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; color: rgba(201, 210, 218, .74);
}
.footer-lockup-mark { width: 10px; height: 10px; background: var(--signal); flex: none; }
.footer-brand-line {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
.footer-coord {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: rgba(201, 210, 218, .55);
  margin: 0 0 14px;
}
.footer-sig { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--cyan); }

.footer-col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.footer-col-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan);
}
.footer-col-title::before { content: ""; width: 6px; height: 6px; background: var(--signal); flex: none; }
.footer-links { display: grid; gap: 10px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(243, 247, 250, .78);
  font-size: 15px; text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-link::before {
  content: ""; width: 8px; height: 1px; background: var(--silver);
  opacity: .55; transition: width .18s var(--ease), background-color .18s var(--ease), opacity .18s var(--ease);
}
.footer-link:hover { color: #fff; }
.footer-link:hover::before { width: 16px; background: var(--cyan); opacity: 1; }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-label {
  margin: 0 0 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(201, 210, 218, .55);
}
.contact-value-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.contact-value { font-size: 15px; color: #fff; word-break: break-word; }
.copy-btn {
  padding: 3px 9px;
  border: 1px solid rgba(201, 210, 218, .34);
  color: rgba(201, 210, 218, .82);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.copy-btn[data-copied="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--deep); }
.contact-note {
  grid-column: 1 / -1;
  margin: 0; max-width: 74ch;
  font-size: 13px; line-height: 1.7;
  color: rgba(201, 210, 218, .62);
}

.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 26px;
  padding: 20px 0 30px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  color: rgba(201, 210, 218, .56);
}
.legal-icp { color: rgba(201, 210, 218, .74); }
.legal-meta { color: rgba(201, 210, 218, .56); }
.to-top {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 210, 218, .3);
  color: var(--mist);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(46, 230, 214, .08); }

/* ---------- 12. Reveal ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.js-reveal [data-reveal][data-revealed="true"] { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list { gap: 12px; }
  .nav-link { font-size: 14px; }
  .nav-index { display: none; }
}

@media (max-width: 980px) {
  .header-main { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 62px; }
  .brand-name { font-size: 19px; }
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: block;
    background: var(--deep);
    border-top: 1px solid rgba(46, 230, 214, .26);
    border-bottom: 1px solid rgba(201, 210, 218, .18);
    box-shadow: 0 26px 40px -30px rgba(0, 0, 0, .9);
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height .3s var(--ease), opacity .22s var(--ease), visibility .3s var(--ease);
  }
  .site-header[data-open="true"] .primary-nav {
    max-height: 74vh; opacity: 1; visibility: visible; overflow-y: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; }
  .nav-item { border-bottom: 1px solid rgba(201, 210, 218, .12); }
  .nav-item:last-child { border-bottom: 0; }
  .nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 0; font-size: 17px;
  }
  .nav-index { display: inline; }
  .nav-link::after { bottom: 10px; right: 100%; }
  .nav-link[aria-current="page"]::after { right: 0; }

  .rail-coord { display: none; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-rail { font-size: 10px; gap: 12px; letter-spacing: .06em; }
  .rail-mark { display: none; }
  .header-cta { padding: 9px 14px; font-size: 14px; }
  .header-cta::after { display: none; }
  .brand-sub { letter-spacing: .16em; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer-col-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-legal { font-size: 11px; }
  .to-top { margin-left: 0; }
  .chip { font-size: 11px; padding: 7px 11px; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 17px; }
  .nav-toggle-label { display: none; }
}

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