/* ============================================================
   COMPONENTS — nav, footer, hero, CTA strip
   ============================================================ */

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: hsl(var(--bg-void) / 0.65);
  border-bottom: 1px solid hsl(var(--border-subtle));
  transition: background var(--duration-base) var(--ease-out);
}
.nav.is-scrolled { background: hsl(var(--bg-void) / 0.9); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1440px;
  margin: 0 auto;
  gap: var(--space-6);
}

.nav-brand {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none;
}
.nav-brand .pin-mark { width: 28px; height: 32px; flex-shrink: 0; }
.nav-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(var(--fg-pure));
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: hsl(var(--fg-secondary));
  border-radius: var(--radius-md);
  transition: color var(--duration-base), background var(--duration-base);
  position: relative;
}
.nav-link:hover { color: hsl(var(--fg-pure)); background: hsl(var(--bg-elevated) / 0.5); }
.nav-link.is-active { color: hsl(var(--accent-electric)); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: var(--space-1); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: hsl(var(--bg-elevated));
  border: 1px solid hsl(var(--border-medium));
  border-radius: var(--radius-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg), var(--inner-highlight);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms, transform 200ms, visibility 200ms;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
}
.nav-dropdown-menu a .ddi-label { display: block; font-size: var(--text-sm); color: hsl(var(--fg-primary)); font-weight: 500; }
.nav-dropdown-menu a .ddi-sub { display: block; font-size: var(--text-xs); color: hsl(var(--fg-tertiary)); margin-top: 2px; }
.nav-dropdown-menu a:hover .ddi-label { color: hsl(var(--accent-electric)); }
.nav-dropdown-menu a {
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-dropdown-menu a:hover { background: hsl(var(--bg-base)); }

.nav-right { display: flex; align-items: center; gap: var(--space-4); }
.nav-phone {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: hsl(var(--fg-secondary));
  letter-spacing: -0.005em;
}
@media (min-width: 1100px) { .nav-phone { display: inline-flex; align-items: center; gap: var(--space-2); } }

.nav-burger {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-medium));
  color: hsl(var(--fg-pure));
}
@media (min-width: 980px) { .nav-burger { display: none; } }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: hsl(var(--bg-void) / 0.98);
  backdrop-filter: blur(24px);
  z-index: 100;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 300ms var(--ease-out);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: none; }
.nav-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-12); }
.nav-mobile-close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-medium));
}
.nav-mobile-links { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-mobile-links a {
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: hsl(var(--fg-pure));
  border-bottom: 1px solid hsl(var(--border-subtle));
}
.nav-mobile-links a small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: hsl(var(--fg-tertiary));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}
.nav-mobile-cta { margin-top: auto; padding-top: var(--space-8); }

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: hsl(var(--bg-void));
  border-top: 1px solid hsl(var(--border-subtle));
  padding: var(--space-20) 0 var(--space-8);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-inline: var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .pin-mark { width: 28px; height: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.footer-brand-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: hsl(var(--fg-pure));
}
.footer-tag {
  color: hsl(var(--fg-tertiary));
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: var(--space-5);
  max-width: 28ch;
}
.footer-contact {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: hsl(var(--fg-secondary));
  display: flex; flex-direction: column; gap: var(--space-2);
}
.footer-contact a { color: hsl(var(--fg-secondary)); transition: color var(--duration-base); }
.footer-contact a:hover { color: hsl(var(--accent-electric)); }

.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent-electric));
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.footer ul li { margin-bottom: var(--space-3); }
.footer ul a {
  color: hsl(var(--fg-secondary));
  font-size: var(--text-sm);
  transition: color var(--duration-base);
}
.footer ul a:hover { color: hsl(var(--accent-electric)); }

.footer-bottom {
  margin-top: var(--space-16);
  padding: var(--space-6) var(--space-6) 0;
  border-top: 1px solid hsl(var(--border-subtle));
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: hsl(var(--fg-quiet));
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid hsl(var(--border-subtle));
  border-radius: var(--radius-sm);
  color: hsl(var(--fg-tertiary));
  transition: all var(--duration-base);
}
.footer-social a:hover { color: hsl(var(--accent-electric)); border-color: hsl(var(--accent-electric) / 0.4); }

/* ── CTA Strip ───────────────────────────────────── */
.cta-strip {
  position: relative;
  padding: var(--space-32) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, hsl(var(--accent-deep) / 0.18), transparent 70%),
    hsl(var(--bg-void));
  overflow: hidden;
  text-align: center;
  border-block: 1px solid hsl(var(--border-subtle));
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, hsl(var(--accent-electric) / 0.08), transparent 40%),
    radial-gradient(circle at 80% 50%, hsl(var(--accent-electric) / 0.08), transparent 40%);
  pointer-events: none;
}
.cta-strip .container-narrow { position: relative; z-index: 2; }
.cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: hsl(var(--fg-pure));
  margin-bottom: var(--space-5);
}
.cta-strip p { color: hsl(var(--fg-secondary)); font-size: var(--text-lg); margin-bottom: var(--space-8); max-width: 50ch; margin-inline: auto; }

/* particle field */
.cta-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.cta-particles span {
  position: absolute;
  width: 2px; height: 2px;
  background: hsl(var(--accent-electric));
  border-radius: 50%;
  box-shadow: 0 0 8px hsl(var(--accent-electric));
  animation: particle-float 8s linear infinite;
}
@keyframes particle-float {
  from { transform: translateY(20px); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: translateY(-200px); opacity: 0; }
}

/* ── Hero — Chicago Beacon ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: hsl(var(--bg-void));
}

/* photo plate */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.15) contrast(1.05) brightness(0.78);
  transform: scale(1.06);
  transition: transform 800ms var(--ease-out);
}
/* gradient masks to fade photo into surrounding dark */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(var(--bg-void) / 0.55) 0%, transparent 30%, transparent 50%, hsl(var(--bg-void) / 0.5) 90%, hsl(var(--bg-void)) 100%),
    linear-gradient(90deg, hsl(var(--bg-void) / 0.55) 0%, transparent 35%, transparent 65%, hsl(var(--bg-void) / 0.3) 100%);
}

/* atmospheric glow halo behind pin (matches photo) */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 35% 45% at 60% 32%, hsl(210 100% 60% / 0.22), transparent 70%),
    radial-gradient(ellipse 60% 30% at 60% 40%, hsl(220 100% 50% / 0.08), transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* the pin scene area */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* content overlay */
.hero-content {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: var(--space-12) 0 var(--space-20);
}
.hero-content-inner {
  max-width: 720px;
  position: relative;
}
.hero-content::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80%;
  background: linear-gradient(180deg, transparent, hsl(var(--bg-void) / 0.6) 30%, hsl(var(--bg-void) / 0.85));
  z-index: -1;
  pointer-events: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: hsl(var(--fg-pure));
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.hero-sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: hsl(var(--fg-secondary));
  max-width: 56ch;
  margin-bottom: var(--space-8);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-trust {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: hsl(var(--fg-tertiary));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--success)); box-shadow: 0 0 10px hsl(var(--success) / 0.7); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.4; } }

/* the pin itself — float + glow */
.hero-pin-wrap {
  position: absolute;
  top: 18%;
  right: 8%;
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 1 / 1.15;
  pointer-events: auto;
  animation: pin-bob 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px hsl(var(--accent-deep) / 0.4));
}
@keyframes pin-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}
.hero-pin-wrap svg { width: 100%; height: 100%; overflow: visible; }

/* satellite orbits */
.hero-orbits {
  position: absolute;
  top: 18%;
  right: 8%;
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 1 / 1.15;
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-orbit-track {
  border: 1px dashed hsl(var(--accent-electric) / 0.18);
  border-radius: 50%;
  animation: orbit-spin var(--orbit-dur, 60s) linear infinite;
  transform-style: preserve-3d;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.hero-satellite {
  position: absolute;
  top: -8px;
  left: calc(50% - 8px);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--sat-color);
  box-shadow: 0 0 16px var(--sat-color), 0 0 32px var(--sat-color);
  animation: orbit-counter var(--orbit-dur, 60s) linear infinite;
}
.hero-satellite::after {
  content: attr(data-name);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: hsl(var(--fg-secondary));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.hero-orbit:hover .hero-satellite::after { opacity: 1; }

@keyframes orbit-counter { to { transform: rotate(-360deg); } }

/* skyline silhouette overlay (subtle accent on bottom) */
.hero-skyline-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8%;
  background: linear-gradient(180deg, transparent, hsl(var(--bg-void)));
  z-index: 3;
  pointer-events: none;
}

/* mobile stack the hero */
@media (max-width: 860px) {
  .hero-pin-wrap, .hero-orbits {
    position: relative;
    top: 0; right: 0;
    margin: var(--space-12) auto var(--space-8);
    width: clamp(200px, 60vw, 280px);
  }
  .hero { min-height: auto; }
  .hero-photo img { object-position: center 60%; }
  .hero-content { padding-bottom: var(--space-16); }
}

/* ── Pin SVG sizing ──────────────────────────────── */
.pin-svg-glow { filter: drop-shadow(0 0 30px hsl(var(--accent-electric) / 0.7)); }
.pin-circuit-pulse { animation: circuit-pulse 2.4s ease-in-out infinite; }
@keyframes circuit-pulse {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 6px hsl(var(--accent-bright))); }
  50%      { opacity: 1;    filter: drop-shadow(0 0 14px hsl(var(--accent-bright))); }
}

/* ── Beam pulses (SVG paths from pin to satellites) ──────────── */
.beam-line { stroke-dasharray: 6 200; stroke-dashoffset: 0; animation: beam-fire 4s linear infinite; }
.beam-line[data-i="0"] { animation-delay: 0s; }
.beam-line[data-i="1"] { animation-delay: 0.66s; }
.beam-line[data-i="2"] { animation-delay: 1.33s; }
.beam-line[data-i="3"] { animation-delay: 2s; }
.beam-line[data-i="4"] { animation-delay: 2.66s; }
.beam-line[data-i="5"] { animation-delay: 3.33s; }
@keyframes beam-fire {
  0%   { stroke-dashoffset: 200; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}

/* ── small "page hero" reused by inner pages ─── */
.page-hero {
  position: relative;
  padding: var(--space-32) 0 var(--space-20);
  overflow: hidden;
  background: hsl(var(--bg-void));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, hsl(var(--accent-electric) / 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, hsl(var(--accent-deep) / 0.10), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: var(--space-6); }
.page-hero .lead { margin-bottom: var(--space-8); }

/* a faint pin watermark for inner-page heroes */
.hero-pin-watermark {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 480px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 720px) { .hero-pin-watermark { display: none; } }
