/* ==========================================================================
   苹果澳门站 · /assets/site.css
   共享重置、变量、中文排版、头部、页脚、通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #0B0D10;
  scroll-behavior: smooth;
  overflow-x: clip;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Variables ---------- */
:root {
  /* 主色谱 */
  --ink: #0B0D10;
  --graphite: #161A20;
  --graphite-deep: #101419;
  --line: #2A2F37;
  --silver: #F5F6F8;
  --mist: #A7ADB8;

  /* 入口渐变色 */
  --blue: #2F6BFF;
  --blue-text: #8AB4FF;
  --violet: #8B5CF6;
  --amber: #FFB86B;

  /* 珠宝分区色 */
  --teal: #0E3B3A;
  --wine: #3A1220;
  --indigo: #1B1640;

  /* 渐变与光 */
  --grad-brand: linear-gradient(120deg, #2F6BFF 0%, #8B5CF6 56%, #FFB86B 100%);
  --grad-line: linear-gradient(90deg, rgba(47, 107, 255, .7), rgba(139, 92, 246, .55), rgba(255, 184, 107, .5));
  --glow-blue: 0 0 32px rgba(47, 107, 255, .32);

  /* 结构 */
  --radius-card: 2px;
  --radius-pill: 999px;
  --shell-w: min(1240px, 100% - 48px);
  --header-pad: 14px;

  /* 动效 */
  --dur: 200ms;
  --dur-fast: 150ms;
  --ease: cubic-bezier(.32, .72, 0, 1);

  /* 字体 */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(42, 47, 55, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 47, 55, .20) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  background-attachment: fixed;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--silver);
}

h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 400; }
h4 { font-size: 18px; font-weight: 500; letter-spacing: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--grad-line);
}

.sr-only {
  position: absolute;
  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;
}

/* ---------- 4. Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue-text);
  outline-offset: 3px;
}

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--silver);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

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

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

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

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(42, 47, 55, .15));
  margin-block: clamp(28px, 4vw, 56px);
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  background: transparent;
  color: var(--silver);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn--primary {
  background: var(--silver);
  color: var(--ink);
  border-color: var(--silver);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 246, 248, .16);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  color: var(--silver);
  border-color: rgba(138, 180, 255, .55);
  box-shadow: 0 0 0 1px rgba(138, 180, 255, .12), var(--glow-blue);
  transform: translateY(-2px);
}

.btn--quiet {
  padding: 0;
  border: 0;
  color: var(--blue-text);
  font-size: 14px;
}

.btn--quiet:hover { color: var(--amber); }

/* ---------- 8. Card / Tag ---------- */
.card {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(22, 26, 32, .92), rgba(16, 20, 25, .74));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 255, .45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .5);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(245, 246, 248, .03);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.tag--blue { color: var(--blue-text); border-color: rgba(47, 107, 255, .45); background: rgba(47, 107, 255, .10); }
.tag--violet { color: #C4B0FF; border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .12); }
.tag--amber { color: var(--amber); border-color: rgba(255, 184, 107, .42); background: rgba(255, 184, 107, .10); }

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
  letter-spacing: .02em;
}

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

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

.breadcrumbs li + li::before {
  content: "/";
  color: #3B414B;
}

.breadcrumbs a { color: var(--mist); transition: color var(--dur-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--blue-text); }
.breadcrumbs [aria-current="page"] { color: var(--silver); }

/* ---------- 10. Media 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(47, 107, 255, .24), transparent 62%),
    radial-gradient(90% 90% at 92% 100%, rgba(139, 92, 246, .20), transparent 66%),
    linear-gradient(180deg, #12161B 0%, #0B0D10 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 11. Reveal / 滚动进度 ---------- */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-brand);
  pointer-events: none;
  transition: transform 90ms linear;
}

/* ---------- 12. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: var(--header-pad) 0 10px;
  transition: padding var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] {
  padding: 8px 0 6px;
}

.header-rail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: var(--shell-w);
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(22, 26, 32, .74);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.site-header[data-scrolled="true"] .header-rail {
  background: rgba(11, 13, 16, .92);
  border-color: #343A44;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-glyph {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--grad-brand);
  box-shadow: 0 0 0 1px rgba(245, 246, 248, .14), 0 0 20px rgba(47, 107, 255, .42);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  border: 1px solid rgba(11, 13, 16, .5);
}

.brand:hover .brand-glyph {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(245, 246, 248, .26), 0 0 26px rgba(139, 92, 246, .55);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--silver);
  line-height: 1.35;
  white-space: nowrap;
}

.brand-tag {
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--mist);
  white-space: nowrap;
}

/* 胶囊导航 */
.nav-capsule {
  justify-self: center;
  min-width: 0;
}

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.nav-link:hover {
  color: var(--silver);
  background: rgba(245, 246, 248, .06);
}

.nav-link::after {
  content: "";
  width: 0;
  height: 5px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0;
  transition: width var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--silver);
  background: rgba(245, 246, 248, .07);
  box-shadow: inset 0 0 0 1px rgba(245, 246, 248, .11);
}

.nav-link[aria-current="page"]::after {
  width: 5px;
  opacity: 1;
}

/* 工具栏 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.tool-btn {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.tool-btn:hover,
.tool-btn[aria-expanded="true"] {
  color: var(--silver);
  border-color: rgba(138, 180, 255, .5);
  background: rgba(47, 107, 255, .12);
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid rgba(138, 180, 255, .38);
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, rgba(47, 107, 255, .24), rgba(139, 92, 246, .22));
  color: var(--silver);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.tool-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 255, .75);
  box-shadow: 0 0 22px rgba(47, 107, 255, .34);
}

.tool-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 8px rgba(255, 184, 107, .8);
}

.tool-link {
  padding: 8px 6px;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}

.tool-link:hover { color: var(--blue-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-toggle:hover { border-color: rgba(138, 180, 255, .55); background: rgba(47, 107, 255, .12); }

.nav-toggle-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--silver);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-header[data-open="true"] .nav-toggle-line:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* 栏目搜索面板 */
.search-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  z-index: 6;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 16, 20, .97);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .6);
}

.search-field { display: block; }

.search-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(245, 246, 248, .04);
  color: var(--silver);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.search-input::placeholder { color: #767D89; }

.search-input:focus {
  border-color: rgba(138, 180, 255, .6);
  background: rgba(47, 107, 255, .08);
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.search-result[hidden] { display: none; }

.search-result-link {
  display: block;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

.search-result-link:hover {
  color: var(--silver);
  background: rgba(245, 246, 248, .06);
  border-color: var(--line);
}

.search-hint {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #767D89;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(14, 59, 58, .55), transparent 62%),
    radial-gradient(70% 110% at 88% 0%, rgba(27, 22, 64, .6), transparent 66%),
    linear-gradient(180deg, #0E1116 0%, #0B0D10 60%);
}

.footer-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 380px;
  pointer-events: none;
  background:
    radial-gradient(46% 60% at 26% 20%, rgba(47, 107, 255, .22), transparent 70%),
    radial-gradient(40% 52% at 76% 0%, rgba(139, 92, 246, .18), transparent 72%);
  filter: blur(18px);
}

.footer-rail {
  position: relative;
  z-index: 1;
  width: var(--shell-w);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 68px) 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(42, 47, 55, .8);
}

.footer-brand {
  flex: 1 1 230px;
  min-width: 0;
}

.brand--footer { margin-bottom: 16px; }

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

.footer-brand-line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 8px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: #767D89;
}

.footer-columns {
  flex: 2 1 360px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 24px;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 14px;
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: #C3C8D2;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.footer-link:hover {
  color: var(--blue-text);
  transform: translateX(2px);
}

.footer-contact {
  flex: 1 1 260px;
  min-width: 0;
}

.contact-list { display: grid; gap: 12px; }

.contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.contact-label {
  flex: none;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #767D89;
}

.contact-value {
  font-size: 13.5px;
  line-height: 1.65;
  color: #D3D7DE;
  word-break: break-word;
}

.copy-btn {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.copy-btn:hover {
  color: var(--amber);
  border-color: rgba(255, 184, 107, .5);
  background: rgba(255, 184, 107, .1);
}

.contact-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.8;
  color: #767D89;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
}

.footer-note {
  font-size: 12px;
  line-height: 1.8;
  color: #767D89;
  max-width: 46ch;
}

.footer-base-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-base-right .footer-link { font-size: 12.5px; color: var(--mist); }

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: #767D89;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1180px) {
  .brand-tag { display: none; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 1080px) {
  :root { --shell-w: min(1240px, 100% - 32px); }

  .header-rail {
    grid-template-columns: 1fr auto;
    padding: 8px 10px 8px 16px;
  }

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

  .nav-capsule {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    width: min(560px, calc(100% - 32px));
    padding: 10px;
    border: 1px solid #343A44;
    border-radius: 20px;
    background: rgba(13, 16, 20, .97);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-header[data-open="true"] .nav-capsule {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

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

  .nav-link {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-link::after { order: 2; }

  .tool-link { display: none; }

  .search-panel { position: fixed; top: 76px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }

  .header-tools { gap: 6px; }
  .tool-btn { display: none; }
  .tool-cta { padding: 7px 12px; font-size: 12px; }

  .search-panel { top: 72px; }

  .footer-top { flex-direction: column; }
  .footer-columns { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-base-right { gap: 8px 14px; }
}

@media (max-width: 420px) {
  .tool-cta { display: none; }
  .brand-name { font-size: 14px; }
  .footer-columns { grid-template-columns: 1fr; }
}

/* ---------- 15. Accessibility / 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;
  }

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

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