/* =========================================================
   宝石娱乐会馆 · 共享样式 /assets/site.css
   ========================================================= */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

button { font: inherit; color: inherit; }

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

/* ---------- tokens ---------- */
:root {
  /* 品牌色 */
  --peacock: #063B4A;
  --emerald: #0E7C66;
  --night: #051C18;
  --pearl: #F5F1E8;
  --mist: #CFE3DC;
  --amber: #E0A94A;
  --amethyst: #8C63B8;
  --graphite: #17323A;
  --gilt: #F2D48A;
  --copper: #C97A63;

  /* 语义色（深色区默认） */
  --ink: var(--pearl);
  --ink-dim: rgba(245, 241, 232, 0.74);
  --ink-mute: rgba(207, 227, 220, 0.6);
  --line: rgba(207, 227, 220, 0.16);
  --line-strong: rgba(207, 227, 220, 0.34);

  /* 字体 */
  --font-display: "Smiley Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* 尺度 */
  --container: 1220px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 70px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + 20px);
}

html[data-motion="true"] {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-dim);
  background-color: var(--night);
  background-image:
    radial-gradient(120% 80% at 12% -10%, rgba(14, 124, 102, 0.28), transparent 58%),
    radial-gradient(90% 70% at 95% 6%, rgba(140, 99, 184, 0.2), transparent 62%),
    linear-gradient(180deg, #04211d 0%, #051c18 45%, #041815 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

#main-content {
  display: block;
  padding-top: var(--header-h);
}

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

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2.1vw, 25px); }
h4 { font-size: clamp(17px, 1.6vw, 19px); }

p { text-wrap: pretty; }

a { color: inherit; }

::selection {
  background: rgba(224, 169, 74, 0.35);
  color: var(--pearl);
}

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--pearl);
  color: #063B4A;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  transform: translateY(-180%);
  transition: transform 0.28s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding-block: clamp(56px, 8vw, 120px);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 68px);
}

.section--paper {
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(224, 169, 74, 0.14), transparent 60%),
    var(--pearl);
  color: #0A2A26;
  --ink: #0A2A26;
  --ink-dim: rgba(10, 42, 38, 0.78);
  --ink-mute: rgba(10, 42, 38, 0.56);
  --line: rgba(10, 42, 38, 0.16);
  --line-strong: rgba(10, 42, 38, 0.32);
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.section-head-title { max-width: 22em; }

.section-head-note {
  max-width: 30em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gilt), rgba(242, 212, 138, 0));
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-dim);
}

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

.prose h2,
.prose h3 { margin-top: 1.8em; }

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--gilt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background-color 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--amber) 0%, var(--gilt) 100%);
  color: #241a06;
  box-shadow: 0 16px 32px -22px rgba(224, 169, 74, 0.95);
}

.btn--gold:hover { box-shadow: 0 20px 38px -20px rgba(242, 212, 138, 0.85); }

.btn--emerald {
  background: linear-gradient(135deg, #0E7C66 0%, #0a5f4f 100%);
  border-color: rgba(207, 227, 220, 0.28);
  color: var(--pearl);
}

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

.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--gilt);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 12px 0;
  color: var(--pearl);
  background: linear-gradient(
    180deg,
    rgba(5, 28, 24, 0.86) 0%,
    rgba(5, 28, 24, 0.3) 62%,
    rgba(5, 28, 24, 0) 100%
  );
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header[data-scrolled="true"] {
  padding: 7px 0;
  background: linear-gradient(180deg, #063B4A 0%, #052F39 100%);
  border-bottom-color: rgba(207, 227, 220, 0.18);
  box-shadow: 0 22px 48px -36px rgba(0, 0, 0, 0.95);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(207, 227, 220, 0.12);
  overflow: hidden;
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--mist) 0%, var(--amber) 68%, var(--gilt) 100%);
  transition: width 0.12s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.4vw, 36px);
  min-height: 46px;
}

/* brand */
.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(242, 212, 138, 0.95) 0%,
    rgba(224, 169, 74, 0.78) 38%,
    rgba(14, 124, 102, 0.92) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(245, 241, 232, 0.36),
    0 10px 20px -14px rgba(224, 169, 74, 0.9);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(245, 241, 232, 0.55) 50%,
    transparent 62%
  );
  pointer-events: none;
}

.brand-facet {
  width: 11px;
  height: 11px;
  background: #051C18;
  opacity: 0.84;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--pearl);
}

.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(207, 227, 220, 0.6);
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.4vw, 20px);
  flex-wrap: nowrap;
}

.nav-item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 3px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 241, 232, 0.74);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gilt), var(--amber));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--pearl); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amethyst));
}

/* 移动端厂商展墙（桌面隐藏） */
.nav-vendors { display: none; }

.nav-tools {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(224, 169, 74, 0.52);
  background: linear-gradient(135deg, rgba(224, 169, 74, 0.2), rgba(140, 99, 184, 0.16));
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gilt);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease),
    color 0.28s var(--ease), transform 0.28s var(--ease);
}

.header-cta:hover {
  border-color: var(--gilt);
  color: #fff7e2;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(207, 227, 220, 0.08);
  color: var(--pearl);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease);
}

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

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--pearl);
  transition: background 0.25s var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--pearl);
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open="true"] .nav-toggle-bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 7vw, 96px);
  padding-top: clamp(46px, 6.5vw, 84px);
  background:
    radial-gradient(90% 70% at 14% 0%, rgba(14, 124, 102, 0.24), transparent 62%),
    linear-gradient(180deg, #031714 0%, #063B4A 100%);
  color: var(--ink-dim);
  border-top: 1px solid rgba(207, 227, 220, 0.16);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amethyst) 70%, transparent);
  opacity: 0.75;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 72px);
  padding-bottom: clamp(34px, 5vw, 60px);
}

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

.footer-note {
  max-width: 32em;
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(207, 227, 220, 0.66);
}

.footer-note--mono {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: rgba(224, 169, 74, 0.78);
}

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

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

.footer-heading {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(207, 227, 220, 0.16);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gilt);
}

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

.footer-list--contact { gap: 14px; }

.footer-link {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.72);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

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

.footer-label {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(207, 227, 220, 0.54);
}

.footer-value {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.84);
  word-break: break-word;
}

.footer-bottom {
  border-top: 1px solid rgba(207, 227, 220, 0.14);
  padding: 18px 0 26px;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(207, 227, 220, 0.56);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12.5px;
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(207, 227, 220, 0.56);
}

/* ---------- cards / glass / media ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 50, 58, 0.92) 0%, rgba(5, 28, 24, 0.95) 100%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 169, 74, 0.45);
  box-shadow: 0 26px 46px -34px rgba(0, 0, 0, 0.92);
}

.glass {
  border: 1px solid rgba(207, 227, 220, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(207, 227, 220, 0.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(140, 99, 184, 0.34), transparent 60%),
    radial-gradient(110% 100% at 82% 84%, rgba(14, 124, 102, 0.52), transparent 66%),
    linear-gradient(140deg, #0a2a26 0%, #051c18 100%);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 210deg at 50% 50%,
    rgba(242, 212, 138, 0.14),
    transparent 18%,
    rgba(207, 227, 220, 0.1) 36%,
    transparent 54%,
    rgba(140, 99, 184, 0.14) 72%,
    transparent 90%
  );
  pointer-events: none;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    116deg,
    transparent 34%,
    rgba(245, 241, 232, 0.16) 50%,
    transparent 66%
  );
  pointer-events: none;
}

.media img,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(207, 227, 220, 0.05);
  color: var(--ink-dim);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.chip:hover {
  border-color: rgba(224, 169, 74, 0.6);
  color: var(--ink);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(224, 169, 74, 0.26), rgba(140, 99, 184, 0.2));
  color: var(--gilt);
}

/* ---------- accordion ---------- */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.accordion-trigger:hover { color: var(--gilt); }

.accordion-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.accordion-panel {
  padding: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-dim);
}

.accordion-panel[hidden] { display: none; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.breadcrumb-list li:not(:first-child)::before {
  content: "/";
  margin-right: 8px;
  color: rgba(207, 227, 220, 0.35);
}

.breadcrumb-link {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.breadcrumb-link:hover { color: var(--gilt); }

.breadcrumb-current { color: var(--gilt); }

/* ---------- toc ---------- */
.toc {
  position: relative;
  border-left: 1px solid var(--line);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  margin-left: -1px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.toc-link:hover {
  color: var(--pearl);
  border-left-color: var(--line-strong);
}

.toc-link.is-active,
.toc-link[aria-current] {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, rgba(224, 169, 74, 0.14), transparent);
  color: var(--gilt);
}

/* ---------- motion ---------- */
html[data-motion="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html[data-motion="true"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-link { font-size: 13.5px; }
  .brand-sub { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }

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

  .brand-name { font-size: 16px; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background:
      radial-gradient(120% 80% at 8% 0%, rgba(14, 124, 102, 0.3), transparent 60%),
      linear-gradient(180deg, #04222A 0%, #051C18 72%);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease),
      visibility 0.35s var(--ease);
  }

  .site-header[data-open="true"] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.nav-open { overflow: hidden; }

  .nav-vendors {
    display: block;
    margin-bottom: 28px;
  }

  .nav-vendors-title {
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--amber);
  }

  .nav-vendors-scroll {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .vendor-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 20px;
    border: 1px solid rgba(207, 227, 220, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 124, 102, 0.32), rgba(23, 50, 58, 0.7));
    color: var(--mist);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
  }

  .vendor-pill:hover,
  .vendor-pill:focus-visible {
    border-color: var(--amber);
    color: var(--pearl);
  }

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

  .nav-link {
    display: block;
    padding: 16px 2px;
    border-bottom: 1px solid rgba(207, 227, 220, 0.14);
    font-size: 17px;
  }

  .nav-link::after { display: none; }

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

  .nav-link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    background: var(--amber);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    vertical-align: middle;
  }

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

@media (max-width: 860px) {
  .grid--split,
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 560px) {
  .header-cta { display: none; }

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

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

  .btn {
    width: 100%;
    padding: 14px 22px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html[data-motion="true"] {
    scroll-behavior: auto;
  }

  html[data-motion="true"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .header-cta:hover {
    transform: none;
  }
}
