/* =========================================================
   500彩票娱乐 · 共享 Site Kit
   /assets/site.css
   1 Reset  2 Tokens  3 Base  4 Header  5 Footer
   6 Layout 7 Components 8 Utilities 9 Responsive
   ========================================================= */

/* ---------- 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, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }
:where(h1, h2, h3, h4) { line-height: 1.25; font-weight: 700; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B1B2B;
  --ink-deep: #081420;
  --celadon-deep: #0F3B3A;
  --amber: #D9A441;
  --amber-soft: #E5BA6C;
  --cinnabar: #C34A36;
  --celadon: #7FA99B;
  --paper: #FFF8EE;
  --parchment: #F3EBDD;
  --slate: #5B7894;
  --wine: #6E2438;
  --graphite: #1E2A36;

  --line: rgba(91, 120, 148, 0.28);
  --line-strong: rgba(91, 120, 148, 0.52);
  --text: var(--paper);
  --text-soft: rgba(255, 248, 238, 0.74);
  --text-dim: rgba(255, 248, 238, 0.54);
  --ink-text: #12202E;
  --ink-text-soft: rgba(18, 32, 46, 0.72);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-44: 2.75rem;
  --fs-64: 4rem;
  --fs-88: 5.5rem;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 24px);
  --shadow-1: 0 18px 44px rgba(3, 9, 16, 0.38);
  --shadow-2: 0 28px 64px rgba(3, 9, 16, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(15, 59, 58, 0.62), transparent 68%),
    radial-gradient(900px 520px at 102% 2%, rgba(110, 36, 56, 0.32), transparent 62%),
    repeating-linear-gradient(90deg, rgba(91, 120, 148, 0.06) 0 1px, transparent 1px 96px);
  background-repeat: no-repeat;
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

#main-content { display: block; scroll-margin-top: 140px; }
#main-content:focus { outline: none; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.98), rgba(9, 21, 34, 0.95));
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(217, 164, 65, 0.16), 0 16px 42px rgba(3, 9, 16, 0.34);
  transition: box-shadow 0.2s var(--ease);
}

.site-header[data-scrolled] {
  box-shadow: 0 1px 0 rgba(217, 164, 65, 0.3), 0 22px 54px rgba(3, 9, 16, 0.58);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 140;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-size: var(--fs-14);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.16s var(--ease);
}
.skip-link:focus { top: 0; }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(91, 120, 148, 0.22);
  pointer-events: none;
}
.header-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--celadon), var(--amber) 58%, var(--cinnabar));
  transition: transform 0.14s linear;
}

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

/* topline */
.topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91, 120, 148, 0.22);
  font-size: var(--fs-12);
}

.topline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-soft);
}

.note-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 4px rgba(195, 74, 54, 0.18);
}

.note-label {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--amber);
  white-space: nowrap;
}

.note-hint {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.utility-list { display: flex; align-items: center; gap: 20px; }

.utility-item { display: flex; }

.utility-link {
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--text-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.utility-link:hover { color: var(--paper); border-bottom-color: var(--celadon); }

/* header frame */
.header-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0 18px;
}

/* brand */
.brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "seal text"
    "seal line";
  column-gap: 12px;
  align-items: center;
  color: var(--paper);
}

.brand-seal {
  grid-area: seal;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(158deg, var(--wine), #40121F);
  border: 1px solid rgba(217, 164, 65, 0.48);
  box-shadow: inset 0 0 0 3px rgba(8, 20, 32, 0.42);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  grid-area: text;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: color 0.16s var(--ease);
}

.brand-line {
  grid-area: line;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.brand:hover .brand-text,
.brand:focus-visible .brand-text { color: var(--amber); }

/* nav */
.nav-rail { grid-area: nav; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.nav-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate);
  opacity: 0.55;
  transition: background-color 0.16s var(--ease), opacity 0.16s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(127, 169, 155, 0.14);
  border-color: rgba(127, 169, 155, 0.34);
  transform: translateY(-1px);
}
.nav-link:hover::before { background: var(--celadon); opacity: 1; }

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
}
.nav-link[aria-current="page"]::before { background: var(--ink); opacity: 1; }

/* header cta */
.header-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(217, 164, 65, 0.5);
  background: rgba(217, 164, 65, 0.1);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.header-cta:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* mobile toggle */
.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: rgba(11, 27, 43, 0.6);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.nav-toggle:hover { border-color: var(--celadon); }

.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}

.site-header[data-open] .nav-toggle {
  background: var(--celadon-deep);
  border-color: var(--celadon);
  color: var(--paper);
}
.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 5. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background:
    linear-gradient(180deg, rgba(15, 59, 58, 0.6), rgba(8, 20, 32, 0.98) 52%),
    var(--ink-deep);
  border-top: 1px solid rgba(217, 164, 65, 0.34);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(217, 164, 65, 0.55) 0 1px,
    transparent 1px 16px
  );
  opacity: 0.55;
  pointer-events: none;
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px) var(--gutter) 24px;
}

.footer-ledger {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(0, 1.3fr) minmax(240px, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.footer-seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: linear-gradient(158deg, var(--wine), #3C101C);
  border: 1px solid rgba(217, 164, 65, 0.42);
  box-shadow: inset 0 0 0 3px rgba(8, 20, 32, 0.4);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 10px;
  max-width: 26em;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.footer-col-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.footer-links { display: grid; gap: 9px; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}
.footer-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--slate);
  transition: background-color 0.16s var(--ease);
}
.footer-link:hover { color: var(--paper); transform: translateX(2px); }
.footer-link:hover::before { background: var(--celadon); }

.footer-contact {
  display: grid;
  gap: 11px;
  align-content: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 27, 43, 0.55);
}

.contact-row { display: grid; gap: 2px; }

.contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--celadon);
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
  word-break: break-word;
}

.footer-note {
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-dim);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-legal {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer-utility { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-utility-item { display: flex; }

.footer-utility-link {
  font-size: 12.5px;
  color: var(--text-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.footer-utility-link:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- 6. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 76px); }
.section--tight { padding-block: clamp(24px, 3.5vw, 44px); }

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

.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-main { grid-column: span 8; }
.col-rail { grid-column: span 4; }
.col-full { grid-column: 1 / -1; }

.stack { display: grid; gap: clamp(12px, 1.8vw, 20px); }

.prose {
  max-width: 38em;
  font-size: var(--fs-16);
  line-height: 1.9;
  color: var(--text-soft);
}
.prose p + p { margin-top: 1em; }
.prose a { color: var(--amber); border-bottom: 1px solid rgba(217, 164, 65, 0.5); }
.prose a:hover { color: var(--amber-soft); }

/* ---------- 7. Components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.18em;
  color: var(--celadon);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--celadon);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, var(--fs-44));
  letter-spacing: 0.02em;
  color: var(--paper);
}

.section-lead {
  max-width: 34em;
  margin-top: 12px;
  font-size: var(--fs-18);
  line-height: 1.85;
  color: var(--text-soft);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--gold:hover { background: var(--amber-soft); border-color: var(--amber-soft); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--celadon); color: var(--paper); background: rgba(127, 169, 155, 0.12); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(127, 169, 155, 0.45);
  background: rgba(127, 169, 155, 0.12);
  color: var(--celadon);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.chip--amber {
  border-color: rgba(217, 164, 65, 0.5);
  background: rgba(217, 164, 65, 0.12);
  color: var(--amber);
}
.chip--red {
  border-color: rgba(195, 74, 54, 0.5);
  background: rgba(195, 74, 54, 0.14);
  color: #E68873;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* cards */
.card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink-text);
  box-shadow: var(--shadow-1);
}
.card--dark {
  background: linear-gradient(165deg, rgba(15, 59, 58, 0.95), rgba(11, 27, 43, 0.96));
  color: var(--paper);
  border: 1px solid rgba(127, 169, 155, 0.3);
  box-shadow: var(--shadow-1);
}

/* tables */
.data-table { width: 100%; font-size: var(--fs-14); }
.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(18, 32, 46, 0.14);
}
.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--ink-text-soft);
  border-bottom: 1px solid rgba(18, 32, 46, 0.28);
}
.card--dark .data-table th,
.card--dark .data-table td { border-bottom-color: rgba(127, 169, 155, 0.24); }
.card--dark .data-table thead th { color: var(--celadon); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.data-table .mono { font-family: var(--font-mono); }

/* breadcrumb */
.breadcrumb { margin-bottom: clamp(16px, 2vw, 24px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}
.breadcrumb-item { display: flex; align-items: center; gap: 8px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--slate); }
.breadcrumb-link { color: var(--text-soft); }
.breadcrumb-link:hover { color: var(--amber); }
.breadcrumb-current { color: var(--amber); }

/* figures (页面阶段放图片占位) */
.figure-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(15, 59, 58, 0.92), rgba(11, 27, 43, 0.96)),
    var(--ink);
}
.figure-frame img,
.figure-frame picture,
.figure-frame picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--square { aspect-ratio: 1 / 1; }
.figure-frame--tall { aspect-ratio: 3 / 4; }
.figure-frame--paper {
  background: var(--parchment);
  border-color: rgba(18, 32, 46, 0.16);
}
.figure-caption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

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

/* ---------- 8. Utilities ---------- */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-dim); }
.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;
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 1180px) {
  .header-frame { gap: 10px 16px; }
  .nav-link { padding: 9px 11px; font-size: 14px; }
}

@media (max-width: 1080px) {
  .footer-ledger { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-contact { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .col-main,
  .col-rail { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cta cta";
    row-gap: 0;
    padding: 14px 0 16px;
  }

  .nav-toggle { display: inline-flex; }

  .nav-rail {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(127, 169, 155, 0.3);
    background: linear-gradient(180deg, rgba(15, 59, 58, 0.86), rgba(11, 27, 43, 0.94));
  }
  .site-header[data-open] .nav-rail { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; justify-content: flex-start; }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }
  .nav-link:hover { transform: none; }

  .header-cta { display: none; margin-top: 14px; justify-self: start; }
  .site-header[data-open] .header-cta { display: inline-flex; }

  .footer-ledger { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-column: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand-seal { width: 42px; height: 42px; border-radius: 13px; font-size: 13.5px; }
  .brand-text { font-size: 18px; }
  .brand-line { font-size: 10px; letter-spacing: 0.1em; }
  .note-hint { display: none; }
  .utility-list { gap: 14px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
}

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .header-progress-bar { transition: none; }
  .btn:hover,
  .nav-link:hover,
  .footer-link:hover { transform: none; }
}
