/* ---------------------------------------------------------------------------
   The Digital Round — one site header, used byte-identically on every page.
   Namespaced `dr-` so it cannot be reached by the legacy per-page nav rules,
   and it resets the properties those rules commonly set, so a stale
   `nav { ... }` left behind somewhere cannot leak into it.
   --------------------------------------------------------------------------- */
:root { --dr-nav-h: 68px; }

/* every page reserves space for the fixed bar. The home hero already reserves
   its own (it runs a full-bleed photo up behind the bar), so it opts out. */
html body { padding-top: var(--dr-nav-h); }
html body.dr-flush { padding-top: 0; }

.dr-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  box-sizing: border-box;
  display: flex; align-items: center; gap: 22px;
  height: var(--dr-nav-h);
  padding: 0 28px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.dr-top *, .dr-top *::before, .dr-top *::after { box-sizing: border-box; }

/* ---- brand lockup ---- */
.dr-brand {
  display: inline-flex; align-items: center; gap: 11px;
  flex-shrink: 0; text-decoration: none; color: #fff; white-space: nowrap;
}
.dr-mark { display: block; width: 43px; height: 43px; flex-shrink: 0; }
/* mix-blend-mode: screen drops the near-black video ground on a dark bar, so
   the mark glows on the page instead of sitting in a visible box. */
.dr-mark video, .dr-mark img {
  width: 43px; height: 43px; display: block; border-radius: 10px;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .dr-mark video { display: none; }
  .dr-mark { background: url('/brand/icon-64.png?v=3') center/contain no-repeat; }
}
.dr-word {
  font-family: 'Audiowide', 'Inter', sans-serif; font-weight: 400;
  font-size: 17px; letter-spacing: .005em; line-height: 1; color: #fff;
  transform: translateY(1px);
}
.dr-word b { color: #00ff88; font-weight: 400; }

/* ---- links ---- */
.dr-nav {
  /* hard reset: legacy pages carry bare `nav { position/background/... }` */
  position: static; inset: auto; width: auto; z-index: auto;
  background: none; border: 0; box-shadow: none; backdrop-filter: none;
  margin: 0 0 0 auto; padding: 0;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  font-size: 14px;
}
.dr-nav::-webkit-scrollbar { display: none; }
.dr-nav > * { flex: 0 0 auto; }

.dr-nav a {
  color: #898781; text-decoration: none; font-weight: 600;
  padding: 6px 11px; border-radius: 8px; border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.dr-nav a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.16); }

/* the audience pages — the first few options — carry the pill treatment,
   including the active state that marks where you are. */
.dr-nav a.dr-pill { color: #c3c2b7; }
.dr-nav a.dr-pill:hover { color: #fff; }
.dr-nav a[aria-current="page"] {
  color: #0a0a0a; border-color: transparent;
  background: linear-gradient(135deg, #00ff88, #0088ff);
}
.dr-nav a[aria-current="page"]:hover { color: #0a0a0a; }

.dr-sep {
  width: 1px; height: 18px; margin: 0 7px;
  background: rgba(255, 255, 255, 0.14);
}

.dr-nav a.dr-cta {
  color: #0a0a0a; font-weight: 700;
  background: linear-gradient(135deg, #00ff88, #00cc70);
  border-color: transparent; padding: 7px 14px;
}
.dr-nav a.dr-cta:hover { color: #0a0a0a; filter: brightness(1.08); }

.dr-nav a.dr-ghost {
  color: #fff; border-color: rgba(255, 255, 255, 0.22); padding: 7px 13px;
}
.dr-nav a.dr-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }

/* ---- responsive ---- */
@media (max-width: 1320px) {
  .dr-top { gap: 14px; padding: 0 20px; }
  .dr-nav { gap: 2px; font-size: 13.5px; }
  .dr-nav a { padding: 6px 9px; }
  .dr-sep { margin: 0 4px; }
}
@media (max-width: 1080px) {
  .dr-word { font-size: 15px; }
  .dr-nav { font-size: 13px; }
  .dr-sep { display: none; }
}
@media (max-width: 820px) {
  :root { --dr-nav-h: 60px; }
  .dr-top { padding: 0 14px; gap: 10px; }
  .dr-mark, .dr-mark video, .dr-mark img { width: 36px; height: 36px; }
  .dr-word { font-size: 13px; }
  /* fade the right edge so the row reads as scrollable */
  .dr-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 90%, transparent 100%);
    padding-right: 14px;
  }
}
