/* ============================================================
   components.css — shared nav, footer, marquee
   Depends on tokens from global.css
   ============================================================ */

/* ============================================================
   NAV — fixed top bar (58px) + mobile drawer
   ============================================================ */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(5,5,5,0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-r {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--border-md);
}
.nav-btn {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .02em;
  display: inline-block;
  white-space: nowrap;
}
.nb-g {
  border: 1px solid var(--border-md);
  color: var(--text2);
}
.nb-g:hover {
  border-color: var(--border-hi);
  color: var(--text);
}
.nb-s {
  background: var(--text);
  color: var(--bg);
}
.nb-s:hover { opacity: .88; }

.mob-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* Mobile drawer */
.mob-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 12px 0;
}
.mob-menu.open { display: flex; }
.mm-link {
  padding: 13px 24px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mm-link:last-child { border-bottom: none; }
.mm-link:hover { color: var(--text); }
.mm-link.is-active { color: var(--text); }
.mm-cta {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav-inner { padding: 0 24px; }
  .nav-r { display: none; }
  .mob-btn { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.f-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.f-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.f-links {
  display: flex;
  gap: 20px;
}
.f-links a {
  font-size: 11px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}
.f-links a:hover { color: var(--text); }
.f-note {
  font-size: 11px;
  color: var(--text3);
}

@media (max-width: 960px) {
  .f-inner { padding: 0 24px; }
}
@media (max-width: 540px) {
  .f-links { display: none; }
}

/* ============================================================
   CONNECT SECTION — title + support line + centered dock.
   Dock sits inline below the copy; does not follow scroll.
   ============================================================ */
.connect-section {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.marquee-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.connect-sub {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   SOCIAL DOCK — centered horizontal row beneath the copy.
   Hover expands width to reveal the label.
   ============================================================ */
.social-dock {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--bg2);
  border: 1px solid var(--border-md);
  color: var(--text2);
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  transition:
    width   .28s cubic-bezier(.16, 1, .3, 1),
    padding .28s cubic-bezier(.16, 1, .3, 1),
    gap     .28s cubic-bezier(.16, 1, .3, 1),
    background-color .2s ease,
    border-color     .2s ease,
    color            .2s ease;
}
.dock-item:hover,
.dock-item:focus-visible {
  width: 168px;
  justify-content: flex-start;
  padding: 0 18px 0 12px;
  gap: 10px;
  background: var(--bg3);
  border-color: var(--border-hi);
  color: var(--text);
  outline: none;
}
.dock-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dock-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dock-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition:
    max-width .28s cubic-bezier(.16, 1, .3, 1),
    opacity   .22s ease,
    transform .22s ease .04s;
}
.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  max-width: 120px;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 540px) {
  .connect-section { padding: 56px 24px; }
  .social-dock { gap: 12px; margin-top: 28px; }
  .dock-item   { width: 38px; height: 38px; border-radius: 19px; }
  .dock-item:hover,
  .dock-item:focus-visible { width: 148px; }
  .dock-icon   { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-item,
  .dock-label { transition: none; }
}
