/* ==========================================================================
   皇冠现金 CN 中文站 · 共享外壳样式 /assets/site.css
   设计语言：御墨黑负空间 + 皇冠金线条 + 12px 切角金属薄片
   ========================================================================== */

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

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

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

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

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

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

img, svg, picture { max-width: 100%; }

address { font-style: normal; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0B0B0D;
  --panel: #14161A;
  --panel-lift: #191C21;
  --gold: #C9A227;
  --gold-hi: #E8C766;
  --ivory: #F5F1E6;
  --cool: #8C8F96;
  --teal: #1E3B36;
  --wine: #3A1B27;
  --indigo: #241C3A;
  --jade: #2E7D6B;
  --cinnabar: #B3423C;

  --line-soft: rgba(140, 143, 150, 0.24);
  --line-strong: rgba(140, 143, 150, 0.42);
  --gold-line: rgba(201, 162, 39, 0.30);
  --gold-line-strong: rgba(201, 162, 39, 0.60);
  --ivory-78: rgba(245, 241, 230, 0.78);
  --ivory-62: rgba(245, 241, 230, 0.62);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", 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", "SFMono-Regular", ui-monospace, "Consolas", monospace;

  --cut: 12px;
  --shell-max: 1200px;
  --header-top: 18px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  padding-top: calc(var(--header-top) + var(--header-h) + 26px);
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 78% -8%, rgba(201, 162, 39, 0.10), transparent 62%),
    radial-gradient(900px 520px at 4% 34%, rgba(36, 28, 58, 0.42), transparent 66%),
    repeating-linear-gradient(118deg, rgba(201, 162, 39, 0.032) 0 1px, transparent 1px 14px);
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

p { text-wrap: pretty; }

::selection { background: rgba(201, 162, 39, 0.34); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 4. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(var(--shell-max), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding-block: clamp(44px, 6.5vw, 92px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-hi), rgba(201, 162, 39, 0));
}

.prose {
  max-width: 36em;
  color: var(--ivory-78);
  font-size: 1rem;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1.1em; }

.lead {
  max-width: 38em;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.8;
  color: rgba(245, 241, 230, 0.86);
}

.rule-gold {
  width: 100%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(232, 199, 102, 0.85), rgba(201, 162, 39, 0.18) 62%, transparent 100%);
}

.link-gold {
  color: var(--gold-hi);
  border-bottom: 1px solid rgba(201, 162, 39, 0.42);
  padding-bottom: 1px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.link-gold:hover { color: #fff; border-color: var(--gold-hi); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), box-shadow 160ms var(--ease),
              transform 160ms var(--ease);
}

.btn--gold {
  background: linear-gradient(142deg, var(--gold-hi) 0%, var(--gold) 58%, #a8851c 100%);
  border-color: rgba(232, 199, 102, 0.72);
  color: #12100a;
  box-shadow: 0 12px 26px -20px rgba(232, 199, 102, 0.95);
}

.btn--gold:hover {
  background: linear-gradient(142deg, #f3d67f 0%, var(--gold-hi) 55%, var(--gold) 100%);
  box-shadow: 0 16px 32px -18px rgba(232, 199, 102, 0.78);
}

.btn--ghost {
  border-color: rgba(201, 162, 39, 0.46);
  background: rgba(201, 162, 39, 0.06);
  color: var(--gold-hi);
}

.btn--ghost:hover {
  border-color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.14);
  color: #fff;
}

.btn--breathe { animation: gold-breathe 3s ease-in-out infinite; }

@keyframes gold-breathe {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(232, 199, 102, 0.16), 0 12px 26px -20px rgba(232, 199, 102, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 199, 102, 0.08), 0 14px 32px -14px rgba(232, 199, 102, 0.85);
  }
}

/* ---------- 6. Skip link ---------- */
.skip-link {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translate(-50%, -160%);
  z-index: 120;
  padding: 10px 18px;
  border: 1px solid var(--gold-hi);
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-hi);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  transition: transform 180ms var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 7. Header capsule ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding-inline: 20px;
  pointer-events: none;
}

.header-shell {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1180px, 100%);
  padding: 10px 14px 10px 20px;
  overflow: hidden;
  border: 1px solid rgba(140, 143, 150, 0.28);
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.86);
  box-shadow:
    0 22px 44px -30px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(201, 162, 39, 0.10);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  transition: padding 220ms var(--ease), background-color 220ms var(--ease),
              border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.site-header[data-scrolled="true"] .header-shell {
  padding-block: 4px;
  background: rgba(11, 11, 13, 0.95);
  border-color: var(--gold-line-strong);
  box-shadow:
    0 26px 50px -30px rgba(0, 0, 0, 0.98),
    inset 0 0 0 1px rgba(201, 162, 39, 0.18);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding-block: 2px;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 18px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--gold-hi) 0%, var(--gold) 58%, #8a6f16 100%);
  clip-path: polygon(0% 100%, 8% 18%, 32% 54%, 50% 0%, 68% 54%, 92% 18%, 100% 100%);
  filter: drop-shadow(0 0 6px rgba(232, 199, 102, 0.35));
  transition: filter 180ms var(--ease);
}

.brand:hover .brand-mark { filter: drop-shadow(0 0 10px rgba(232, 199, 102, 0.75)); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--ivory);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--cool);
}

.brand-version {
  margin-inline-start: 2px;
  padding: 2px 6px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.08);
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 9px 14px;
  border: 1px solid rgba(201, 162, 39, 0.46);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.07);
  color: var(--gold-hi);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-toggle:hover { border-color: var(--gold-hi); background: rgba(201, 162, 39, 0.14); }

.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle__bars span:nth-child(2) { width: 72%; }

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  min-width: 0;
}

.nav-list { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }

.nav-list a {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ivory-78);
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease),
              border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.nav-list a:hover {
  color: var(--ivory);
  border-color: rgba(201, 162, 39, 0.42);
  background: rgba(201, 162, 39, 0.09);
}

.nav-list a[aria-current="page"] {
  color: #12100a;
  font-weight: 700;
  border-color: var(--gold-hi);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 0 1px rgba(232, 199, 102, 0.35), 0 10px 20px -14px rgba(232, 199, 102, 0.9);
}

.nav-utility {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: 8px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(140, 143, 150, 0.22);
}

.nav-utility__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cool);
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.nav-utility__link:hover { color: var(--gold-hi); }

.nav-cta { margin-inline-start: 2px; }

/* progress */
.capsule-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  opacity: 0;
  background: rgba(140, 143, 150, 0.16);
  transition: opacity 220ms var(--ease);
}

.site-header[data-scrolled="true"] .capsule-progress { opacity: 1; }

.capsule-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  box-shadow: 0 0 10px rgba(232, 199, 102, 0.55);
  transition: width 90ms linear;
}

/* ---------- 8. Content components ---------- */
.panel {
  position: relative;
  padding: 26px 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: linear-gradient(165deg, var(--panel-lift) 0%, #101216 72%);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
  transition: transform 160ms ease-out, border-color 160ms ease-out,
              box-shadow 160ms ease-out, background 160ms ease-out;
}

.panel:hover,
.panel:focus-within {
  transform: translateY(-2px);
  border-color: var(--gold-line-strong);
  background: linear-gradient(165deg, #1c2027 0%, #12141a 72%);
  box-shadow: inset 0 0 0 1px rgba(232, 199, 102, 0.20), 0 24px 44px -34px rgba(0, 0, 0, 0.95);
}

.panel__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ivory);
}

.panel__text {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ivory-62);
}

.grid-index {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--cool);
}

.tag--version {
  color: var(--gold-hi);
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
}

.tag--ok {
  color: #93e0d2;
  border-color: rgba(46, 125, 107, 0.66);
  background: rgba(46, 125, 107, 0.16);
}

.tag--warn {
  color: #f2aca6;
  border-color: rgba(179, 66, 60, 0.62);
  background: rgba(179, 66, 60, 0.16);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cool);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: rgba(140, 143, 150, 0.55);
}

.breadcrumbs a { color: rgba(245, 241, 230, 0.72); transition: color 160ms var(--ease); }
.breadcrumbs a:hover { color: var(--gold-hi); }

/* image container base (placeholder-ready) */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(150deg, #1b1f25 0%, #0d0f12 68%);
  border: 1px solid rgba(140, 143, 150, 0.28);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.media-frame img,
.media-frame picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82) contrast(1.06) saturate(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(232, 199, 102, 0.16) 0%, transparent 44%, rgba(11, 11, 13, 0.58) 100%),
    repeating-linear-gradient(45deg, rgba(11, 11, 13, 0.12) 0 2px, transparent 2px 6px);
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 16px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 230, 0.84);
  background: linear-gradient(180deg, transparent, rgba(11, 11, 13, 0.88));
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* reveal (activated only when JS runs) */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.has-reveal [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  padding-bottom: 26px;
  background:
    radial-gradient(900px 320px at 22% 0%, rgba(36, 28, 58, 0.45), transparent 70%),
    linear-gradient(180deg, rgba(20, 22, 26, 0.30) 0%, rgba(11, 11, 13, 0.96) 42%, #0B0B0D 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.22);
}

.footer-band {
  position: relative;
  padding-block: 22px 20px;
}

.footer-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 102, 0.88) 22%, rgba(201, 162, 39, 0.26) 72%, transparent);
}

.footer-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
}

.footer-band__hint {
  max-width: 34em;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ivory-78);
}

.footer-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-band__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid rgba(201, 162, 39, 0.46);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.07);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.footer-band__link:hover {
  border-color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.18);
  color: #fff;
}

.footer-band__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--cool);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid rgba(140, 143, 150, 0.16);
}

.brand--footer { gap: 12px; }

.brand--footer .brand-mark { width: 32px; height: 22px; }

.brand--footer .brand-name { font-size: 21px; letter-spacing: 0.16em; }

.footer-brand__intro {
  margin-top: 18px;
  max-width: 26em;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--ivory-62);
}

.footer-contact {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 162, 39, 0.42);
}

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ivory-78);
}

.footer-contact__row + .footer-contact__row { margin-top: 4px; }

.footer-contact__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding-top: 3px;
}

.footer-contact__val { min-width: 0; word-break: break-word; }

.footer-contact__note {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--cool);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.footer-col__list { margin-top: 16px; display: grid; gap: 10px; }

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ivory-78);
  transition: color 160ms var(--ease);
}

.footer-col__list a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--gold-hi);
  transition: width 180ms var(--ease);
}

.footer-col__list a:hover { color: var(--gold-hi); }
.footer-col__list a:hover::before { width: 14px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(140, 143, 150, 0.16);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: var(--cool);
}

.footer-legal__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.footer-legal__links a {
  font-size: 12.5px;
  color: var(--ivory-62);
  transition: color 160ms var(--ease);
}

.footer-legal__links a:hover { color: var(--gold-hi); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-list a { padding: 8px 10px; font-size: 13.5px; }
  .nav-utility { gap: 9px; padding-inline-start: 10px; }
  .nav-utility__link { font-size: 11px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 900px) {
  :root { --header-top: 12px; --header-h: 56px; }

  body { padding-top: calc(var(--header-top) + var(--header-h) + 20px); }

  .site-header { padding-inline: 12px; }

  .header-shell {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 10px 16px;
    border-radius: 22px;
  }

  .site-header[data-scrolled="true"] .header-shell {
    padding-block: 6px;
    border-radius: 20px;
  }

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

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px 4px 6px;
    border-top: 1px solid rgba(201, 162, 39, 0.24);
  }

  .site-header[data-open="true"] .site-nav { display: flex; }

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

  .nav-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    border-color: rgba(140, 143, 150, 0.16);
    font-size: 16px;
  }

  .nav-list a[aria-current="page"] { border-radius: 14px; }

  .nav-utility {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 14px 4px 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(140, 143, 150, 0.2);
  }

  .nav-utility__link {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(140, 143, 150, 0.26);
    font-size: 12.5px;
  }

  .nav-cta { width: 100%; padding: 13px 18px; font-size: 15px; }

  .capsule-progress { display: none; }

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

  .footer-brand { grid-column: 1 / -1; }
}

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

  .page-shell { width: min(var(--shell-max), 100% - 1.5rem); }

  .brand-name { font-size: 16.5px; letter-spacing: 0.1em; }
  .brand-sub { font-size: 9px; letter-spacing: 0.24em; }
  .brand-version { font-size: 10px; }

  .footer-band__inner { align-items: flex-start; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .panel { padding: 22px 20px 24px; }
}

@media (max-width: 420px) {
  .brand--footer { flex-wrap: wrap; }
  .footer-band__link { padding: 7px 12px; }
}

/* ---------- 11. 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;
    scroll-behavior: auto !important;
  }

  .panel:hover,
  .panel:focus-within { transform: none; }

  .btn--breathe { animation: none; box-shadow: 0 0 0 1px rgba(232, 199, 102, 0.45); }

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

  .skip-link:focus-visible { transform: translate(-50%, 0); }
}
