/* ==========================================================================
   38娱乐会馆 · 共享样式表 /assets/site.css
   夜色都市画册体系：深墨蓝黑底 / 霓虹紫 / 琥珀金 / 电光青 / 奶油纸色
   ========================================================================== */

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

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

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
table { border-collapse: collapse; }
main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070B1F;
  --deep: #101B44;
  --violet: #2B1B4D;
  --neon: #6C4BD8;
  --amber: #F0A93B;
  --cyan: #3FE0D0;
  --paper: #F3EAD8;
  --ember: #E2542C;
  --mist: #B9C0D8;
  --white: #FFFFFF;
  --body-dark: #E8ECF8;
  --body-paper: #2A1F1A;
  --line-dark: rgba(185, 192, 216, .18);
  --line-paper: rgba(42, 31, 26, .14);
  --shell: min(1240px, 100% - 2.6rem);
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .65, .24, 1);
  --r-lg: 26px;
  --r-pill: 999px;
  --header-h: 84px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--body-dark);
  background-color: var(--ink);
  background-image:
    radial-gradient(58rem 40rem at 10% -10%, rgba(108, 75, 216, .30), transparent 64%),
    radial-gradient(46rem 32rem at 102% 2%, rgba(63, 224, 208, .12), transparent 60%),
    radial-gradient(48rem 30rem at 84% 96%, rgba(240, 169, 59, .11), transparent 62%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--neon); color: var(--white); }

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

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--white);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- 4. Layout ---------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero-pad { padding-top: clamp(118px, 17vh, 188px); }

.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--paper {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 60px);
  background: var(--paper);
  color: var(--body-paper);
  border-radius: 36px;
}

.section--paper h1,
.section--paper h2,
.section--paper h3 { color: var(--ink); }

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

/* ---------- 5. Typography components ---------- */
.display-1 {
  font-size: clamp(40px, 7.2vw, 96px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.display-2 {
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 900;
  letter-spacing: -.025em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.85;
  color: var(--body-dark);
}

.section--paper .lede,
.section--paper .prose p { color: rgba(42, 31, 26, .84); }

.prose p { max-width: 62ch; margin-bottom: 1.1em; color: rgba(232, 236, 248, .86); }

.chapter-num {
  display: block;
  font-size: clamp(84px, 14vw, 180px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.06em;
  color: rgba(185, 192, 216, .13);
  -webkit-text-stroke: 1px rgba(240, 169, 59, .28);
  user-select: none;
}

.vertical-note {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--mist);
  text-transform: uppercase;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 48%, var(--amber) 78%, transparent);
}

/* ---------- 6. Buttons & tags ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease),
    color .35s var(--ease), box-shadow .35s var(--ease), filter .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(120deg, var(--neon), #472DA8);
  color: var(--white);
  box-shadow: 0 16px 34px -20px rgba(108, 75, 216, .95);
}
.btn--amber {
  background: linear-gradient(120deg, var(--amber), var(--ember));
  color: #20130A;
  box-shadow: 0 16px 34px -20px rgba(226, 84, 44, .9);
}
.btn--ghost {
  background: rgba(16, 27, 68, .55);
  border-color: rgba(185, 192, 216, .3);
  color: var(--body-dark);
}
.btn--ghost:hover { border-color: rgba(63, 224, 208, .6); color: var(--white); }
.btn--paper { background: var(--paper); color: var(--body-paper); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(63, 224, 208, .42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--cyan);
}
.tag--amber { border-color: rgba(240, 169, 59, .5); color: var(--amber); }
.tag--ember { border-color: rgba(226, 84, 44, .55); color: var(--ember); }

/* ---------- 7. Cards & media ---------- */
.card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: rgba(16, 27, 68, .6);
}
.card--paper {
  background: var(--paper);
  color: var(--body-paper);
  border-color: var(--line-paper);
}
.card--paper h2,
.card--paper h3 { color: var(--ink); }

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-dark);
  background: linear-gradient(150deg, var(--deep), var(--violet) 70%, #150E33);
}
.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.media-frame:hover > img { transform: scale(1.04); }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--tilt { transform: rotate(-1.6deg); }

.media-caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
}

/* ---------- 8. Filter / spy / utilities ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(185, 192, 216, .28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mist);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.filter-btn:hover { color: var(--white); border-color: rgba(63, 224, 208, .6); }
.filter-btn[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--amber), var(--ember));
  border-color: transparent;
  color: #20130A;
}

.filter-empty {
  padding: 26px 0;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--mist);
}

.is-hidden { display: none !important; }

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

.breadcrumbs {
  width: var(--shell);
  margin-inline: auto;
  padding-top: 14px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mist);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: rgba(185, 192, 216, .45); }
.breadcrumbs a { color: var(--mist); transition: color .3s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumb-current { color: var(--amber); }

.spy-link {
  color: var(--mist);
  transition: color .3s var(--ease), border-color .3s var(--ease);
  border-left: 2px solid transparent;
  padding-left: 10px;
}
.spy-link.is-active {
  color: var(--white);
  border-left-color: var(--amber);
}

/* ---------- 9. Reveal & progress ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.has-js [data-reveal].is-revealed { opacity: 1; transform: none; }
.has-js [data-reveal-delay="1"] { transition-delay: .08s; }
.has-js [data-reveal-delay="2"] { transition-delay: .16s; }
.has-js [data-reveal-delay="3"] { transition-delay: .24s; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(185, 192, 216, .1);
  pointer-events: none;
  z-index: 90;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, var(--amber));
  transition: width .15s linear;
}

/* ---------- 10. Header ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 12px 22px;
  border-radius: 0 0 16px 16px;
  background: var(--amber);
  color: #20130A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  padding: 16px 0;
  transition: padding .35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 31, .94) 6%, rgba(7, 11, 31, .6) 52%, rgba(7, 11, 31, 0));
}
.site-header[data-condensed] { padding: 9px 0; }

.header-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 26px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--paper);
  background: linear-gradient(150deg, var(--neon), var(--violet) 72%, #150E33);
  box-shadow: inset 0 0 0 1px rgba(240, 169, 59, .45), 0 16px 34px -20px rgba(108, 75, 216, .95);
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--white);
}
.brand-tagline {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--mist);
}

.nav-capsule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: rgba(16, 27, 68, .55);
  box-shadow: 0 24px 54px -34px rgba(0, 0, 0, .95);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: padding .35s var(--ease);
}

.site-nav { position: relative; }

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

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link:hover { color: var(--white); background: rgba(108, 75, 216, .3); }
.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(135deg, rgba(108, 75, 216, .95), rgba(43, 27, 77, .95));
  box-shadow: inset 0 0 0 1px rgba(240, 169, 59, .42);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #20130A;
  background: linear-gradient(120deg, var(--amber), var(--ember));
  box-shadow: 0 14px 28px -18px rgba(226, 84, 44, .95);
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.nav-cta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20130A;
  box-shadow: 0 0 0 3px rgba(32, 19, 10, .16);
}
.nav-cta:hover { transform: translateY(-2px); filter: brightness(1.07); }

.capsule-current {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.capsule-current:hover { background: rgba(108, 75, 216, .34); }
.capsule-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(63, 224, 208, .9);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-dark);
  background: rgba(16, 27, 68, .74);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transition: transform .3s var(--ease), opacity .25s linear, width .3s var(--ease);
}
.nav-toggle-bars span:nth-child(2) { width: 72%; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle-label { font-size: 12px; letter-spacing: .2em; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(7, 11, 31, .74);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.site-header[data-open] .nav-scrim { opacity: 1; pointer-events: auto; }

/* 桌面端收窄态 */
@media (min-width: 901px) {
  .site-header[data-condensed] .nav-list { display: none; }
  .site-header[data-condensed] .capsule-current { display: inline-flex; }
  .site-header[data-condensed] .nav-capsule { padding: 5px; }

  .nav-capsule[data-expanded] .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 214px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--line-dark);
    background: rgba(7, 11, 31, .97);
    box-shadow: 0 34px 64px -34px rgba(0, 0, 0, .95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav-capsule[data-expanded] .nav-link { border-radius: 14px; }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(60px, 8vw, 120px);
}

.footer-paper {
  position: relative;
  overflow: hidden;
  border-radius: 36px 36px 0 0;
  padding: clamp(44px, 6vw, 84px) 0 26px;
  background: var(--paper);
  color: var(--body-paper);
}
.footer-paper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 42%, var(--amber) 76%, var(--ember));
}
.footer-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  background-image: linear-gradient(rgba(42, 31, 26, .05) 1px, transparent 1px);
  background-size: 100% 34px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 1.35fr .85fr;
  gap: clamp(26px, 4vw, 60px);
}

.footer-brand,
.footer-contact,
.footer-legal { min-width: 0; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--paper);
  background: linear-gradient(150deg, var(--ink), var(--violet));
  box-shadow: inset 0 0 0 1px rgba(240, 169, 59, .5);
}
.footer-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink);
}

.footer-note {
  max-width: 34ch;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(42, 31, 26, .74);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  color: rgba(42, 31, 26, .55);
}

.footer-quick { display: block; }

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--body-paper);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-links a:hover { color: var(--neon); border-color: rgba(108, 75, 216, .6); }

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 11px;
  letter-spacing: .24em;
  color: rgba(42, 31, 26, .5);
}
.contact-value {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer-hint {
  max-width: 42ch;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(226, 84, 44, .55);
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(42, 31, 26, .64);
}

.footer-base {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: clamp(34px, 5vw, 54px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
}
.footer-year {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: rgba(42, 31, 26, .6);
}
.footer-icp {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: rgba(42, 31, 26, .7);
  text-align: center;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--neon); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 78px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { grid-column: 1 / -1; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; --shell: min(1240px, 100% - 2rem); }
  .site-header { padding: 12px 0; }
  .header-shell { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 14px; }
  .brand-name { font-size: 15px; }
  .brand-tagline { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-capsule {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 24px;
    background: rgba(7, 11, 31, .97);
    box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-header[data-open] .nav-capsule { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    display: block;
    padding: 13px 14px;
    border-radius: 16px;
    border-bottom: 1px solid rgba(185, 192, 216, .1);
    font-size: 15px;
  }
  .nav-link[aria-current="page"] { border-bottom-color: rgba(240, 169, 59, .5); }
  .nav-cta { justify-content: center; padding: 13px 16px; font-size: 14px; }
  .capsule-current { display: none !important; }

  .section--paper { border-radius: 26px; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-paper { border-radius: 24px 24px 0 0; }
  .footer-base { justify-content: space-between; }
  .footer-icp { width: 100%; order: -1; }
}

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