﻿/* Active Theory-style capsule navigation used by the standalone showcase pages.
   Clean centered dark capsule, teal glow, and jelly on scroll. */
.topbar {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: 30px !important;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  height: min(7.5vh, 76px);
  min-height: 56px;
  padding: 0 8px !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 999px;
  background: rgba(15, 15, 15, .76) !important;
  box-shadow: 0 0 1px rgba(255, 255, 255, .3), 0 0 22px rgba(112, 255, 224, .14), inset 0 0 22px rgba(116, 255, 239, .05), inset 0 -10px 22px rgba(0, 0, 0, .42) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: visible !important;
  opacity: 1;
  transition: transform .55s cubic-bezier(.22, .8, .24, 1), box-shadow .4s ease;
  transform: translateX(-50%) translateY(calc(var(--sd, 0) * 9px)) scaleY(calc(1 + var(--sd, 0) * .07)) scaleX(calc(1 - var(--sd, 0) * .04));
  animation: nav-border 3.6s ease-in-out infinite;
}

.page-bg-gif {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: .84;
  background: #000;
  background-image: url('/assets/img/glow-night-sky-erica-anderson.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-bg-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.62)), radial-gradient(circle at 50% 18%, rgba(80,120,126,.16), transparent 42rem);
}

iframe#home-bg,
.orb {
  display: none !important;
}

/* Disable the injected nav-rain WebGL layer on standalone pages. */
.topbar > canvas {
  display: none !important;
}

.topbar::before,
.topbar::after {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  box-shadow: none !important;
}

/* Standalone page vertical rhythm: keep sections separated and responsive. */
.hero {
  min-height: 72vh !important;
  padding-bottom: 80px !important;
}

.hero + .grid {
  margin-top: 80px !important;
}

.grid {
  row-gap: 80px !important;
}

.topbar a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
  font-size: 12px !important;
  font-weight: 400;
  line-height: 1;
  color: #ffffff !important;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: .11em;
  text-shadow: 0 0 8px rgba(255, 255, 255, .22);
  transition: opacity .3s ease, color .3s ease, text-shadow .3s ease;
}

.topbar a:hover {
  opacity: .68;
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, .7), 0 0 20px var(--cyan) !important;
}

.topbar a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px !important;
  height: 26px;
  margin: 0 !important;
  background: linear-gradient(180deg, transparent, rgba(226, 255, 255, .7), transparent) !important;
  box-shadow: 0 0 9px rgba(202, 255, 255, .36) !important;
  transform: translateY(-50%);
}

/* Brand pill — dark capsule, mirrors the nav style system */
.brand {
  left: 30px !important;
  top: 30px !important;
  min-height: 56px;
  padding: 0 18px 0 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(15, 15, 15, .76);
  box-shadow: 0 0 1px rgba(255, 255, 255, .3), 0 0 22px rgba(112, 255, 224, .14), inset 0 0 22px rgba(116, 255, 239, .05), inset 0 -10px 22px rgba(0, 0, 0, .42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 15px !important;
  font-weight: 400;
  letter-spacing: .05em;
  text-shadow: 0 0 8px rgba(255, 255, 255, .18);
  animation: nav-border 3.6s ease-in-out infinite;
}

.brand::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 42px;
  width: 76%;
  height: 40px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(176, 255, 234, .38) 0, rgba(105, 255, 222, .16) 34%, transparent 72%);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: .72;
}

.brand-mark {
  width: 36px !important;
  height: 36px !important;
  border-color: rgba(226, 255, 255, .6) !important;
  background: rgba(0, 0, 0, .24);
  box-shadow: 0 0 1px rgba(255, 255, 255, .34), 0 0 18px rgba(112, 255, 224, .22), inset 0 0 14px rgba(116, 255, 239, .06) !important;
  font-size: 21px !important;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, .42);
}

@keyframes nav-border {
  0%, 100% {
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 0 1px rgba(255, 255, 255, .28), 0 0 20px rgba(112, 255, 224, .11), inset 0 0 20px rgba(116, 255, 239, .04), inset 0 -10px 22px rgba(0, 0, 0, .42);
  }
  50% {
    border-color: rgba(182, 255, 239, .4);
    box-shadow: 0 0 1px rgba(255, 255, 255, .46), 0 0 34px rgba(127, 255, 229, .18), inset 0 0 26px rgba(155, 255, 243, .06), inset 0 -10px 22px rgba(0, 0, 0, .42);
  }
}

/* --- Tablet & mobile: hide pill nav, use brand + hamburger + drawer --- */
.nav-hamburger,
.nav-drawer {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: 62vh !important;
    padding-bottom: 56px !important;
  }

  .hero + .grid {
    margin-top: 56px !important;
  }

  .grid {
    row-gap: 56px !important;
  }

  .topbar {
    display: none !important;
  }

  .nav-hamburger {
    display: grid;
  }

  .nav-drawer {
    display: flex;
  }

  .brand {
    position: fixed !important;
    left: 14px !important;
    top: 14px !important;
    z-index: 80;
    min-height: 48px;
    padding: 0 16px 0 9px;
    font-size: 13px !important;
  }

  .brand-mark {
    width: 30px !important;
    height: 30px !important;
    font-size: 17px !important;
  }

  .brand::after {
    top: 30px;
    width: 64%;
    height: 32px;
  }

  .nav-hamburger {
    position: fixed;
    right: 14px;
    top: 14px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(133, 255, 230, .55);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(8, 17, 19, .92), rgba(2, 7, 8, .9));
    box-shadow: 0 0 1px rgba(255, 255, 255, .32), 0 0 22px rgba(112, 255, 224, .14), inset 0 0 18px rgba(116, 255, 239, .045), inset 0 -10px 18px rgba(0, 0, 0, .42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: box-shadow .35s ease, transform .35s cubic-bezier(.17, .4, .02, .99);
  }

  .nav-hamburger:hover {
    box-shadow: 0 0 1px rgba(255, 255, 255, .5), 0 0 30px rgba(127, 255, 229, .2), inset 0 0 22px rgba(155, 255, 243, .065);
  }

  .nav-hamburger span {
    position: absolute;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #eaf6f7;
    box-shadow: 0 0 8px rgba(202, 255, 255, .5);
    transition: transform .38s cubic-bezier(.17, .4, .02, .99), opacity .3s ease, top .38s cubic-bezier(.17, .4, .02, .99);
  }

  .nav-hamburger span:nth-child(1) { top: 17px; }
  .nav-hamburger span:nth-child(2) { top: 23px; }
  .nav-hamburger span:nth-child(3) { top: 29px; }

  body.drawer-open .nav-hamburger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
  body.drawer-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  body.drawer-open .nav-hamburger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .38s ease;
  }

  body.drawer-open .nav-backdrop {
    opacity: 1;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    width: min(320px, 86vw);
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 17, 19, .97), rgba(2, 7, 8, .96));
    border-left: 1px solid rgba(133, 255, 230, .45);
    box-shadow: -30px 0 90px rgba(0, 0, 0, .5), inset 0 0 30px rgba(116, 255, 239, .04);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(102%);
    transition: transform .42s cubic-bezier(.22, .8, .24, 1);
    display: flex;
    flex-direction: column;
  }

  body.drawer-open .nav-drawer {
    transform: translateX(0);
  }

  .drawer-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 74px 18px 22px;
    overflow-y: auto;
    position: relative;
  }

  .drawer-brand {
    position: static !important;
    margin-bottom: 26px;
    font-size: 13px !important;
    min-height: 44px;
  }

  .drawer-close {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(133, 255, 230, .4);
    border-radius: 50%;
    background: rgba(0, 0, 0, .3);
    color: #eaf6f7;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color .3s ease, box-shadow .3s ease;
  }

  .drawer-close:hover {
    color: #fff;
    box-shadow: 0 0 18px rgba(119, 242, 255, .25);
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .drawer-nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    font-size: 15px !important;
    font-weight: 300;
    line-height: 1;
    color: #dfe9ea !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    border-bottom: 1px solid rgba(226, 255, 255, .08);
    text-shadow: 0 0 7px rgba(255, 255, 255, .16);
    transition: color .3s ease, text-shadow .3s ease, padding-left .3s ease;
  }

  .drawer-nav a + a::before {
    content: none !important;
  }

  .drawer-nav a:hover,
  .drawer-nav a:active {
    color: #fff !important;
    text-shadow: 0 0 9px rgba(255, 255, 255, .7), 0 0 18px var(--cyan) !important;
    padding-left: 22px;
  }

  .eyebrow {
    margin-top: 0;
  }

  .stage {
    padding-top: 84px;
  }
}
