/* ============================================================
   龙8手机官方3 · 共享站点样式 /assets/site.css
   ============================================================ */

/* ---------- 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, figure, blockquote {
  margin: 0;
}

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

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #15181C;
  --ink-deep: #101317;
  --ink-soft: #1B2025;
  --ink-card: #232A31;
  --snow: #F5F1E6;
  --snow-hi: #FFFDF6;
  --fog: #CFC9BA;
  --gold: #D9A441;
  --gold-hi: #E8C34A;
  --gold-deep: #B9862F;
  --blue: #2D6E9F;
  --red: #B23A32;
  --green: #2F7B5B;
  --yellow: #E8C34A;

  --rail-w: 84px;
  --page-max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 3. Base ---------- */
body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

/* ---------- 4. Focus ---------- */
:focus-visible {
  outline: 2px solid var(--snow-hi);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(217, 164, 65, .7);
  border-radius: 4px;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 14px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

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

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

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 48px);
}

.section--sand {
  background: var(--snow);
  color: #1E242A;
}

.section--sand h1,
.section--sand h2,
.section--sand h3 {
  color: #15181C;
}

.section--sand .eyebrow {
  color: var(--gold-deep);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 1em;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.hairline {
  display: block;
  height: 1px;
  border: 0;
  margin: clamp(24px, 3vw, 40px) 0;
  background: linear-gradient(90deg, rgba(217, 164, 65, .7), rgba(217, 164, 65, .08) 70%, transparent);
}

/* ---------- 7. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 46px;
  padding: .68em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn--gold {
  background: linear-gradient(118deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(217, 164, 65, .22);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(217, 164, 65, .34);
}

.btn--line {
  background: transparent;
  border-color: rgba(207, 201, 186, .42);
  color: var(--snow);
}

.btn--line:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  color: var(--gold-hi);
}

.btn--quiet {
  background: rgba(45, 110, 159, .18);
  border-color: rgba(45, 110, 159, .55);
  color: #B6D8EE;
}

.btn--quiet:hover {
  transform: translateY(-2px);
  background: rgba(45, 110, 159, .3);
  color: var(--snow-hi);
}

.ghost-link {
  position: relative;
  display: inline-block;
  padding: .6em .1em;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fog);
  text-decoration: none;
  transition: color .22s var(--ease);
}

.ghost-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .4em;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .28s var(--ease);
}

.ghost-link:hover {
  color: var(--snow-hi);
}

.ghost-link:hover::after {
  width: 100%;
}

/* ---------- 8. Cards / tags / stats ---------- */
.card {
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid rgba(207, 201, 186, .14);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(35, 42, 49, .96), rgba(27, 32, 37, .94));
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 164, 65, .45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

.card--gold {
  border-color: rgba(217, 164, 65, .42);
  background: linear-gradient(160deg, rgba(217, 164, 65, .16), rgba(35, 42, 49, .96) 62%);
}

.card--sand {
  background: var(--snow-hi);
  border-color: rgba(21, 24, 28, .12);
  color: #1E242A;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .32em .82em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--blue {
  color: #A9D2EC;
  border-color: rgba(45, 110, 159, .58);
  background: rgba(45, 110, 159, .14);
}

.tag--gold {
  color: var(--gold-hi);
  border-color: rgba(217, 164, 65, .58);
  background: rgba(217, 164, 65, .12);
}

.tag--green {
  color: #93D7B8;
  border-color: rgba(47, 123, 91, .62);
  background: rgba(47, 123, 91, .16);
}

.tag--red {
  color: #F2ACA4;
  border-color: rgba(178, 58, 50, .62);
  background: rgba(178, 58, 50, .16);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .2em;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
  letter-spacing: -.02em;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(207, 201, 186, .16);
  overflow: hidden;
}

.meter__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold-hi));
  transition: width .9s var(--ease);
}

/* ---------- 9. Breadcrumbs / prose / media ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--fog);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: .5em;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(207, 201, 186, .42);
}

.breadcrumbs a {
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--gold-hi);
  border-bottom-color: var(--gold);
}

.prose {
  max-width: 720px;
  font-size: 1.03rem;
  line-height: 1.85;
}

.prose h2 {
  margin: 1.6em 0 .6em;
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
}

.prose h3 {
  margin: 1.4em 0 .5em;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  list-style: square;
}

.prose li {
  margin-bottom: .5em;
}

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

.prose a {
  color: #9FCEEA;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section--sand .prose {
  color: #2A3138;
}

.section--sand .prose strong {
  color: #8A5F12;
}

.section--sand .prose a {
  color: #1F5C86;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(207, 201, 186, .16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 12% 6%, rgba(45, 110, 159, .38), transparent 58%),
    radial-gradient(95% 85% at 92% 96%, rgba(217, 164, 65, .3), transparent 62%),
    linear-gradient(150deg, #232A31, #15181C);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(118deg, rgba(245, 241, 230, .05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(28deg, rgba(245, 241, 230, .035) 0 1px, transparent 1px 32px);
  mix-blend-mode: screen;
}

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

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

/* ---------- 10. Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 164, 65, .26);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(14px, 2vw, 22px) var(--gutter) clamp(12px, 1.6vw, 18px);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__side--left {
  justify-self: start;
}

.header__side--right {
  justify-self: end;
}

.masthead {
  position: relative;
  grid-column: 2;
  text-align: center;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: -12px -48px;
  pointer-events: none;
  border-radius: 50%;
  background:
    repeating-linear-gradient(38deg, rgba(217, 164, 65, .08) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-38deg, rgba(217, 164, 65, .055) 0 1px, transparent 1px 9px);
  opacity: .85;
}

.masthead__kicker {
  position: relative;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(207, 201, 186, .62);
  margin-bottom: .5em;
}

.masthead__brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--snow);
}

.masthead__seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  background: conic-gradient(from 205deg, var(--gold-hi), rgba(217, 164, 65, .28) 42%, var(--gold) 78%, var(--gold-hi));
  box-shadow: inset 0 0 0 2px rgba(21, 24, 28, .85), 0 0 0 1px rgba(217, 164, 65, .5);
}

.masthead__names {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.masthead__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  background: linear-gradient(100deg, var(--snow-hi) 0%, var(--snow) 36%, var(--gold-hi) 64%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.masthead__line {
  display: block;
  margin-top: .28em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: rgba(207, 201, 186, .72);
  white-space: nowrap;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(217, 164, 65, .48);
  border-radius: 999px;
  background: rgba(217, 164, 65, .1);
  color: var(--snow);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .22s var(--ease), border-color .22s var(--ease);
}

.nav-toggle:hover {
  background: rgba(217, 164, 65, .2);
  border-color: var(--gold);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-hi);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__label {
  letter-spacing: .08em;
}

/* 主导航 */
.primary-nav {
  background: var(--ink-soft);
  border-top: 1px solid rgba(207, 201, 186, .12);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2.6vw, 40px);
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.nav-list a {
  position: relative;
  display: block;
  padding: .78em .1em;
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--fog);
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transition: right .3s var(--ease);
}

.nav-list a:hover {
  color: var(--snow-hi);
}

.nav-list a:hover::after {
  right: 0;
}

.nav-list a[aria-current="page"] {
  color: var(--gold-hi);
}

.nav-list a[aria-current="page"]::after {
  right: 0;
}

/* 阅读进度条 */
.scroll-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(207, 201, 186, .1);
  pointer-events: none;
}

.scroll-line__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold-hi) 55%, var(--red));
}

/* ---------- 11. Brand rail ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: var(--rail-w);
  padding: 22px 0 26px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink-deep) 100%);
  border-right: 1px solid rgba(217, 164, 65, .24);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0, rgba(217, 164, 65, .16) 0 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: .55;
}

.rail__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 58%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(21, 24, 28, .65), 0 6px 18px rgba(217, 164, 65, .26);
}

.rail__line {
  position: relative;
  flex: 1 1 auto;
  width: 2px;
  min-height: 80px;
  margin: 18px 0;
  border-radius: 2px;
  background: rgba(207, 201, 186, .16);
  overflow: hidden;
}

.rail__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #8E6A22);
  transition: height .12s linear;
}

.rail__ticks {
  display: grid;
  gap: 9px;
  place-items: center;
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.rail__ticks li {
  width: 10px;
  height: 1px;
  background: rgba(207, 201, 186, .3);
}

.rail__ticks li:nth-child(3n) {
  width: 20px;
  background: rgba(217, 164, 65, .55);
}

.rail__flags {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.rail__flag {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(245, 241, 230, .04);
}

.rail__flag--blue { background: var(--blue); }
.rail__flag--white { background: var(--snow-hi); }
.rail__flag--red { background: var(--red); }
.rail__flag--green { background: var(--green); }
.rail__flag--gold { background: var(--gold); }

.rail__text {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .34em;
  color: rgba(207, 201, 186, .42);
  writing-mode: vertical-rl;
}

/* ---------- 12. Site footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-top: 1px solid rgba(217, 164, 65, .3);
  color: var(--fog);
}

.footer__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 88% -12%, rgba(217, 164, 65, .18), transparent 52%),
    radial-gradient(circle at 4% 112%, rgba(45, 110, 159, .2), transparent 54%),
    repeating-linear-gradient(118deg, rgba(245, 241, 230, .04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(26deg, rgba(245, 241, 230, .03) 0 1px, transparent 1px 34px);
}

.footer__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(24px, 3vw, 36px);
}

.footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: clamp(22px, 3vw, 34px);
  margin-bottom: clamp(28px, 3.6vw, 44px);
  border-bottom: 1px solid rgba(207, 201, 186, .14);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .35em;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
  text-decoration: none;
  background: linear-gradient(100deg, var(--snow-hi), var(--gold-hi) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__tagline {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 500;
  color: var(--snow);
  letter-spacing: .02em;
}

.footer__note {
  max-width: 34ch;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(207, 201, 186, .78);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr);
  gap: clamp(24px, 3vw, 48px);
}

.footer__col {
  min-width: 0;
}

.footer__title {
  margin-bottom: .9em;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .15em;
}

.footer__links a {
  display: inline-block;
  padding: .3em 0;
  font-size: .95rem;
  color: var(--fog);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.footer__links a:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(217, 164, 65, .6);
}

.footer__contact {
  min-width: 0;
}

.footer__contact-list {
  display: grid;
  gap: .55em;
  font-size: .93rem;
  line-height: 1.65;
}

.footer__contact-list li {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: .8em;
  align-items: baseline;
  word-break: break-word;
}

.footer__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(207, 201, 186, .55);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 30px;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(217, 164, 65, .3);
  font-size: .8rem;
  color: rgba(207, 201, 186, .72);
}

.footer__copy {
  letter-spacing: .04em;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer__legal a {
  display: inline-block;
  padding: .2em 0;
  color: rgba(207, 201, 186, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.footer__legal a:hover {
  color: var(--gold-hi);
  border-bottom-color: rgba(217, 164, 65, .6);
}

.footer__icp {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: rgba(207, 201, 186, .62);
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1180px) {
  .masthead__line {
    letter-spacing: .1em;
  }
}

@media (max-width: 1100px) {
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

  .header__side--left {
    display: none;
  }

  .masthead {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .masthead__kicker {
    display: none;
  }

  .header__side--right {
    grid-column: 2;
  }

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

@media (max-width: 1024px) {
  :root {
    --rail-w: 0px;
  }

  body {
    padding-left: 0;
  }

  .rail {
    display: none;
  }

  .skip-link {
    left: 14px;
  }
}

@media (max-width: 900px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: span 12;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    border-top: 1px solid rgba(217, 164, 65, .22);
  }

  .site-header[data-open] .primary-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(207, 201, 186, .12);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-list a {
    padding: .9em 0;
    font-size: 1.02rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"] {
    padding-left: 14px;
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .masthead__line {
    font-size: .62rem;
  }

  .header__side--right .btn {
    padding: .6em 1.05em;
    font-size: .88rem;
  }
}

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

  .masthead__seal {
    width: 36px;
    height: 36px;
    font-size: .9rem;
  }

  .header__extra {
    display: none;
  }

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

  .footer__head {
    align-items: flex-start;
  }

  .footer__meta {
    justify-content: flex-start;
  }

  .footer__contact-list li {
    grid-template-columns: 3.2em minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .header__side--right {
    gap: 8px;
  }

  .nav-toggle {
    padding: 0 12px;
  }

  .header__side--right .btn {
    padding: .55em .85em;
    font-size: .82rem;
  }
}

/* ---------- 14. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
