/* =========================================================
   电玩777游 · 共享站点样式  /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, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #070812;
  --indigo: #12152B;
  --indigo-2: #1A1F3D;
  --purple: #A855F7;
  --purple-deep: #7C3AED;
  --cyan: #22D3EE;
  --gold: #F6C453;
  --mist: #D8B4FE;
  --gray: #A7AEC1;
  --white: #F4F7FF;
  --coral: #FB7185;

  --line: rgba(168, 85, 247, 0.28);
  --line-soft: rgba(167, 174, 193, 0.16);
  --line-cyan: rgba(34, 211, 238, 0.34);

  --font-display: "Alibaba PuHuiTi", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --rail-w: 78px;
  --shell-max: 1180px;
  --header-max: 1440px;
  --gutter: clamp(16px, 4vw, 42px);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-neon: 0 26px 60px -34px rgba(168, 85, 247, 0.9);
  --shadow-cyan: 0 22px 54px -34px rgba(34, 211, 238, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base & typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 640px at 84% -6%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(920px 720px at 4% 2%, rgba(168, 85, 247, 0.2), transparent 64%),
    repeating-linear-gradient(0deg, rgba(244, 247, 255, 0.022) 0 1px, transparent 1px 4px);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
}

p { max-width: 72ch; }

::selection { background: rgba(168, 85, 247, 0.55); color: var(--white); }

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

/* ---------- 4. Utilities ---------- */
.sr-only {
  position: absolute;
  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;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

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

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  left: 18px;
  top: -72px;
  z-index: 400;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  background: var(--gold);
  color: #1a1206;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px -14px rgba(246, 196, 83, 0.95);
  transition: top 0.22s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 9px 16px; font-size: 12.5px; }

.btn--gold {
  background: linear-gradient(118deg, #ffd77a, var(--gold));
  color: #1a1206;
  box-shadow: 0 12px 28px -16px rgba(246, 196, 83, 0.95);
}
.btn--gold:hover { box-shadow: 0 18px 36px -16px rgba(246, 196, 83, 1); }

.btn--primary {
  background: linear-gradient(118deg, var(--purple-deep), var(--purple));
  color: var(--white);
  box-shadow: 0 14px 32px -18px rgba(168, 85, 247, 0.95);
}
.btn--primary:hover { box-shadow: 0 20px 40px -18px rgba(168, 85, 247, 1); }

.btn--ghost {
  border-color: var(--line-cyan);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.68);
}

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(7, 8, 18, 0.99) 0%, rgba(12, 14, 30, 0.94) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 44px -36px rgba(0, 0, 0, 0.95);
  transition: box-shadow 0.24s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(244, 247, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.62;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.75), rgba(34, 211, 238, 0.7), transparent);
  pointer-events: none;
}
.site-header.is-scrolled {
  box-shadow: 0 26px 56px -32px rgba(0, 0, 0, 1), 0 0 0 1px rgba(168, 85, 247, 0.16);
}

.header-progress {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--purple), var(--cyan) 55%, var(--gold));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
  will-change: transform;
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  max-width: var(--header-max);
  margin-inline: auto;
}

.header-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.06) 65%, transparent);
}
.rail-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.rail-line {
  flex: 1 1 auto;
  min-height: 16px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}
.rail-word {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--mist);
  text-transform: uppercase;
}

.header-body {
  min-width: 0;
  padding: 10px var(--gutter) 0;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 6px 0 8px;
}
.masthead-slot { display: flex; align-items: center; gap: 14px; min-width: 0; }
.masthead-slot--left { justify-content: flex-start; }
.masthead-slot--right { justify-content: flex-end; }

.coord-readout {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
  max-width: none;
  white-space: nowrap;
}
.coord-dot {
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16), 0 0 14px rgba(34, 211, 238, 0.8);
  animation: coordPulse 2.8s var(--ease) infinite;
}
@keyframes coordPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 12px rgba(34, 211, 238, 0.7); }
  50% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06), 0 0 20px rgba(34, 211, 238, 0.95); }
}

.masthead-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.brand-glyph {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.44em;
  color: var(--gold);
  text-indent: 0.44em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55), 0 0 40px rgba(168, 85, 247, 0.26);
}
.brand-tagline {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: var(--mist);
  max-width: none;
}

.utility-nav { display: flex; align-items: center; gap: 16px; }
.utility-nav a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--gray);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.utility-nav a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(34, 211, 238, 0.6);
}

.nav-toggle { display: none; }
.nav-toggle-text { font-family: var(--font-display); font-weight: 800; }
.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 12px;
}
.nav-toggle-box > span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.primary-nav {
  display: flex;
  justify-content: center;
  padding: 0 0 14px;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--mist);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nav-link::before {
  content: "";
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav-link:hover {
  color: var(--white);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.42);
}
.nav-link:hover::before { opacity: 1; background: var(--cyan); }
.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(118deg, var(--purple-deep), var(--purple));
  border-color: rgba(216, 180, 254, 0.55);
  box-shadow: 0 14px 30px -18px rgba(168, 85, 247, 1);
}
.nav-link[aria-current="page"]::before { opacity: 1; background: var(--gold); }

.nav-item--cta { display: none; }
.nav-cta { width: 100%; }

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 116px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--indigo) 0%, #0b0e20 46%, #06070f 100%);
  border-top: 1px solid var(--line);
  color: var(--gray);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(244, 247, 255, 0.03) 0 1px, transparent 1px 5px);
  opacity: 0.8;
}
.footer-cut {
  position: relative;
  height: 34px;
  background:
    linear-gradient(104deg, rgba(168, 85, 247, 0.95) 0 34%, transparent 34%),
    linear-gradient(104deg, transparent 0 48%, rgba(34, 211, 238, 0.85) 48% 68%, transparent 68%),
    linear-gradient(104deg, transparent 0 78%, rgba(246, 196, 83, 0.8) 78% 86%, transparent 86%),
    linear-gradient(180deg, rgba(168, 85, 247, 0.16), transparent);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(30px, 4.4vw, 54px) var(--gutter) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.95fr;
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brandmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brandmark .brand-name { font-size: 20px; text-align: left; }
.footer-brandmark .brand-glyph { color: var(--gold); }

.footer-summary {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
  max-width: 34ch;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.footer-chips li {
  padding: 6px 13px;
  border: 1px solid rgba(216, 180, 254, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.1);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer-coords {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.footer-col-title {
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cyan);
  text-transform: uppercase;
  line-height: 1.4;
}
.footer-list li + li { margin-top: 10px; }
.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--gray);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.footer-link:hover { color: var(--white); transform: translateX(3px); }

.footer-contact-list { display: block; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(167, 174, 193, 0.18);
}
.footer-contact-label {
  flex: 0 0 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
  line-height: 1.9;
}
.footer-contact-value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--white);
  word-break: break-word;
}
.copy-btn {
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(246, 196, 83, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(246, 196, 83, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.copy-btn:hover { background: rgba(246, 196, 83, 0.18); border-color: rgba(246, 196, 83, 0.8); }
.copy-btn.is-copied {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.14);
}
.footer-hours {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--purple);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--gray);
  max-width: 36ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #7d8496;
}
.footer-meta { max-width: none; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal-links a {
  color: var(--gray);
  transition: color 0.18s var(--ease);
}
.footer-legal-links a:hover { color: var(--cyan); }

/* ---------- 9. Shared page components ---------- */
.section { padding-block: clamp(40px, 7vw, 88px); }
.section-head { margin-bottom: clamp(20px, 3vw, 34px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cyan);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}
.section-title {
  margin-top: 12px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}
.section-lede {
  margin-top: 14px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}

/* 坐标面包屑 */
.breadcrumb { padding-top: clamp(16px, 2.4vw, 26px); }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--gray);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-link {
  color: var(--mist);
  transition: color 0.18s var(--ease);
}
.breadcrumb-link:hover { color: var(--cyan); }
.crumb-sep { color: rgba(167, 174, 193, 0.5); }
.breadcrumb-list [aria-current="page"] { color: var(--white); }

/* 卡片与面板 */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 21, 43, 0.95), rgba(10, 12, 26, 0.98));
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow-neon);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.3;
  color: var(--white);
}
.card-text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--gray);
  max-width: none;
}
.panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(18, 21, 43, 0.72);
}

/* 展签标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(216, 180, 254, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(168, 85, 247, 0.12);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.tag--cyan {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
}
.tag--gold {
  border-color: rgba(246, 196, 83, 0.45);
  background: rgba(246, 196, 83, 0.1);
  color: var(--gold);
}

/* 可复用图片容器（页面阶段放置 <img> 或占位块） */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, #1b1030 0%, #0b1024 58%, #0e2230 100%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(7, 8, 18, 0.34) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--ratio { aspect-ratio: 16 / 9; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tilt { transform: rotate(-1.6deg); }

/* ---------- 10. Reveal ---------- */
[data-reveal] {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
html[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1080px) {
  .utility-nav { display: none; }
  .footer-top { grid-template-columns: 1.15fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .header-shell { grid-template-columns: minmax(0, 1fr); }
  .header-rail { display: none; }

  .header-body { position: relative; padding-bottom: 6px; }

  .masthead {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 4px;
    padding-bottom: 12px;
  }
  .masthead-slot { display: none; }
  .masthead-brand { align-items: flex-start; text-align: left; }
  .brand-name { font-size: 23px; }
  .brand-tagline { font-size: 10.5px; letter-spacing: 0.18em; }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 12px;
    right: var(--gutter);
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(34, 211, 238, 0.42);
    border-radius: var(--radius-pill);
    background: rgba(34, 211, 238, 0.08);
    color: var(--cyan);
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .nav-toggle:hover {
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(34, 211, 238, 0.7);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box > span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-box > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .primary-nav {
    display: grid;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    transition: max-height 0.3s var(--ease), opacity 0.22s var(--ease), padding-bottom 0.3s var(--ease);
  }
  .primary-nav[data-open] {
    max-height: 640px;
    opacity: 1;
    padding-bottom: 16px;
  }
  .nav-list { flex-direction: column; gap: 8px; }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border-color: rgba(167, 174, 193, 0.16);
    background: rgba(18, 21, 43, 0.75);
  }
  .nav-item--cta { display: block; margin-top: 6px; }

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

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-coords { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-bottom { justify-content: flex-start; }
  .section-lede { font-size: 15px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; --radius-lg: 22px; }
  .brand-name { font-size: 21px; }
  .brand-tagline { letter-spacing: 0.12em; }
  .footote-chips li { font-size: 10.5px; }
  .footer-coords { grid-template-columns: minmax(0, 1fr); }
  .footer-contact-item { flex-wrap: wrap; }
  .copy-btn { margin-left: 0; }
  .footer-legal-links { gap: 14px; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html[data-reveal-ready] [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover,
  .card:hover,
  .footer-link:hover { transform: none; }
}
