/* Shared public-site navbar */
nav#nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0) 100%);
  backdrop-filter: blur(0);
  transition: background .28s ease, backdrop-filter .28s ease, border-color .28s ease;
}

:root[data-theme="light"] nav#nav {
  background: linear-gradient(to bottom, rgba(247,248,244,0.96) 0%, rgba(247,248,244,0) 100%);
}

nav#nav.scrolled,
nav#nav.stuck {
  border-bottom-color: var(--border);
  background: rgba(6,6,8,0.94);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] nav#nav.scrolled,
:root[data-theme="light"] nav#nav.stuck {
  background: rgba(247,248,244,0.94);
}

nav#nav .nav-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

nav#nav .nav-logo-img,
nav#nav .nav-logo-light {
  display: block;
  width: auto;
  height: 38px;
  max-width: 132px;
  object-fit: contain;
}

nav#nav .nav-logo-light,
:root[data-theme="light"] nav#nav .nav-logo-img {
  display: none;
}

:root[data-theme="light"] nav#nav .nav-logo-light {
  display: block;
}

nav#nav .nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  min-width: 0;
  list-style: none;
}

nav#nav .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-cond, var(--font-c, 'Barlow Condensed', sans-serif));
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .10em;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .82;
  transition: color .2s ease, opacity .2s ease;
}

nav#nav .nav-links a:hover,
nav#nav .nav-links a:focus-visible {
  color: var(--white);
  opacity: 1;
}

nav#nav .nav-links a[aria-current],
nav#nav .nav-links a.active {
  color: var(--green);
  opacity: 1;
}

nav#nav .nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

nav#nav .nav-cta,
nav#nav .nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-family: var(--font-cond, var(--font-c, 'Barlow Condensed', sans-serif));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

nav#nav .nav-cta:hover,
nav#nav .nav-cta:focus-visible,
nav#nav .nav-quote:hover,
nav#nav .nav-quote:focus-visible {
  background: var(--green);
  color: var(--black);
}

nav#nav .nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

nav#nav .nav-theme-toggle:hover,
nav#nav .nav-theme-toggle:focus-visible {
  border-color: var(--green);
  color: var(--green);
}

nav#nav .theme-icon {
  width: 18px;
  height: 18px;
}

nav#nav .theme-icon .moon,
:root[data-theme="light"] nav#nav .theme-icon .sun {
  display: none;
}

:root[data-theme="light"] nav#nav .theme-icon .moon {
  display: block;
}

nav#nav .nav-ham {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

nav#nav .nav-ham span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

nav#nav .nav-ham.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

nav#nav .nav-ham.active span:nth-child(2) {
  opacity: 0;
}

nav#nav .nav-ham.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 112px 24px 40px;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-links {
  width: min(100%, 560px);
  padding: 0;
  list-style: none;
  text-align: center;
}

.mobile-menu-links li {
  margin: 14px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}

.mobile-menu.active .mobile-menu-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links li:nth-child(1) { transition-delay: .04s; }
.mobile-menu.active .mobile-menu-links li:nth-child(2) { transition-delay: .07s; }
.mobile-menu.active .mobile-menu-links li:nth-child(3) { transition-delay: .10s; }
.mobile-menu.active .mobile-menu-links li:nth-child(4) { transition-delay: .13s; }
.mobile-menu.active .mobile-menu-links li:nth-child(5) { transition-delay: .16s; }
.mobile-menu.active .mobile-menu-links li:nth-child(6) { transition-delay: .19s; }
.mobile-menu.active .mobile-menu-links li:nth-child(7) { transition-delay: .22s; }
.mobile-menu.active .mobile-menu-links li:nth-child(8) { transition-delay: .25s; }
.mobile-menu.active .mobile-menu-links li:nth-child(9) { transition-delay: .28s; }

.mobile-menu-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-display, var(--font-d, 'Bebas Neue', sans-serif));
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: .02em;
  line-height: .95;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus-visible,
.mobile-menu-links a[aria-current] {
  color: var(--green);
}

.mobile-menu-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}

.mobile-menu.active .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .31s;
}

.mobile-menu-cta .nav-cta,
.mobile-menu-cta .nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-family: var(--font-cond, var(--font-c, 'Barlow Condensed', sans-serif));
  font-size: 12px;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu-cta .nav-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 0;
}

body.nav-open {
  overflow: hidden;
}

.ft-brand span,
.footer-brand span {
  color: var(--green);
}

.site-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-credit-sep {
  color: rgba(136, 136, 136, 0.55);
}

.ucleus-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(106, 191, 63, 0.28);
  border-radius: 999px;
  background: rgba(106, 191, 63, 0.08);
  color: var(--green, #6abf3f);
  text-decoration: none;
  letter-spacing: .12em;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ucleus-credit:hover,
.ucleus-credit:focus-visible {
  border-color: rgba(106, 191, 63, 0.68);
  background: rgba(106, 191, 63, 0.16);
  color: var(--white, #fff);
  transform: translateY(-1px);
}

.ucleus-credit-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(106, 191, 63, 0.14);
  color: currentColor;
}

.ucleus-credit-icon svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1180px) {
  nav#nav .nav-links,
  nav#nav .nav-actions .nav-cta,
  nav#nav .nav-actions .nav-quote {
    display: none;
  }

  nav#nav .nav-ham {
    display: flex;
  }
}

@media (max-width: 768px) {
  nav#nav {
    min-height: 66px;
    padding: 12px 24px;
  }

  nav#nav .nav-logo-img,
  nav#nav .nav-logo-light {
    height: 34px;
    max-width: 116px;
  }
}

@media (max-width: 480px) {
  nav#nav {
    min-height: 60px;
    padding: 10px 18px;
  }

  nav#nav .nav-logo-img,
  nav#nav .nav-logo-light {
    height: 30px;
    max-width: 104px;
  }

  .mobile-menu {
    padding-top: 92px;
  }

  .mobile-menu-links li {
    margin: 10px 0;
  }
}
