/* =========================================================================
   placement.solutions — shared marketing chrome
   nav, footer, theme toggle, theme grid overlay (engineer mode)
   ========================================================================= */

/* ============ top nav ============ */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--surface-page) 80%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav .inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 32px;
}

/* Brand mark: oxblood square w/ bone center-stroke + wordmark.
   Wordmark renders as a single tight inline-flex line so "placement.solutions"
   never wraps or splits across breakpoints. */
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.brand-mark:hover { color: var(--text-primary); }
.brand-mark .square {
  width: 16px; height: 16px;
  background: var(--color-brand);
  position: relative;
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-mark .square::after {
  content: ""; position: absolute;
  left: 3px; right: 3px;
  top: 50%;
  height: 1.5px;
  background: var(--color-bone);
  transform: translateY(-50%);
  border-radius: 1px;
}
.brand-mark .wordmark {
  display: inline-flex; align-items: baseline; gap: 0;
  font-feature-settings: "ss01", "cv11";
}
.brand-mark .wordmark .lead { color: var(--text-primary); }
.brand-mark .wordmark .dot {
  color: var(--color-brand);
  font-weight: 700;
  margin: 0 0.5px;
  /* nudge the dot down a hair so it sits visually centered with x-height */
  transform: translateY(-0.5px);
  display: inline-block;
}
.brand-mark .wordmark .tail { color: var(--text-secondary); font-weight: 500; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface-sunken); }
.nav-links a.active { color: var(--text-primary); }
.nav-links .has-menu { position: relative; }
.nav-links .has-menu::after {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
  opacity: 0.5;
}

.nav-spacer { flex: 1; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.theme-toggle button {
  width: 28px; height: 24px;
  display: grid; place-items: center;
  border-radius: 3px;
  color: var(--text-tertiary);
  transition: background 120ms, color 120ms;
}
.theme-toggle button.active {
  background: var(--surface-raised);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
}
.theme-toggle svg { width: 14px; height: 14px; }

/* ============ footer ============ */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-sunken);
  padding: 56px 0 32px;
}
.site-footer .inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.site-footer h4 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 14px; color: var(--text-secondary); }
.site-footer a:hover { color: var(--text-primary); }
.site-footer .legal {
  max-width: 1320px; margin: 32px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-tertiary);
}

/* ============ engineer-grid overlay ============ */
.eng-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(107,31,46,0.06) 1px, transparent 1px);
  background-size: calc((100% - 64px) / 12) 100%;
  background-position: 32px 0;
  background-repeat: repeat-y;
  z-index: 1;
  opacity: 0;
  transition: opacity 200ms;
}
.eng-grid.on { opacity: 1; }

.eng-toggle {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
}
.eng-toggle:hover { color: var(--text-primary); }

/* ============ shared section frame ============ */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }

.section-eyebrow-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
}

/* _BRAND_TIGHT_2026_05_06 — tighten 'placement.solutions' wordmark, kill word-spacing */
.brand-mark {
    letter-spacing: -0.022em !important;
    word-spacing: -0.05em;
    gap: 8px !important;
}

.brand-mark .square {
    display: none !important;
}
.brand-glyph {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.35));
    transition: filter 0.25s;
}
.brand-mark:hover .brand-glyph {
    filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.7));
}

/* _DOT_FIX_DARK_2026_05_06 — wordmark dot uses teal accent in both light + dark */
.brand-mark .wordmark .dot,

[data-theme="dark"] .brand-mark .wordmark .dot,
[data-theme="dark"] .brand-mark .dot-brand,
.dark .brand-mark .wordmark .dot,
.dark 

/* Ensure wordmark uses inline display (not flex with gap) so dot sits tight */
.brand-mark .wordmark {
    display: inline;
    letter-spacing: -0.022em;
    word-spacing: -0.05em;
}
.brand-mark .wordmark .lead,
.brand-mark .wordmark .tail {
    display: inline;
}

/* _GRAPH_CSS_ROTATE_2026_05_06 */
@keyframes hi-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hi-graph svg .hi-rotating-nodes {
  transform-origin: center center;
  transform-box: fill-box;
  animation: hi-rotate 90s linear infinite;
  transition: animation-duration 0.3s;
}
.hi-graph:hover svg .hi-rotating-nodes {
  animation-duration: 240s;
}
.hi-graph svg .hi-rotating-nodes > g {
  transition: filter 0.18s;
}
.hi-graph svg .hi-rotating-nodes > g:hover {
  filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.6)) brightness(1.2);
  cursor: grab;
}

/* _GRAPH_EDGE_VISIBLE_2026_05_06 — make sphere edges visible on light + dark */
.hi-graph svg line {
    stroke: #6b1f2e !important;
    stroke-opacity: 0.28 !important;
    stroke-width: 0.7 !important;
}
[data-theme="dark"] .hi-graph svg line, .dark .hi-graph svg line {
    stroke: #5eead4 !important;
    stroke-opacity: 0.18 !important;
}
.hi-graph svg .hi-rotor {
    transform-origin: center center;
}



/* _PERSONA_HERO_TIGHTEN_2026_05_06 — pull H1 up close to breadcrumb stripe */
.persona-hero { padding-top: 24px !important; padding-bottom: 32px !important; }
.persona-hero .breadcrumb, .persona-hero .crumb { margin-bottom: 16px !important; }
.persona-hero .icp-stripe, .persona-hero .reco-stripe, [class*="reco-stripe"] { margin-bottom: 18px !important; }
.persona-hero h1 { margin-top: 8px !important; padding-top: 0 !important; }
