/* ============================================================
   Nav, footer, boot sequence, cursor :: the persistent shell
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease),
              backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,11,.78) 0%, rgba(5,7,11,.32) 55%, transparent 100%);
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.nav.solid::before { opacity: 0; }
.nav__inner { position: relative; z-index: 1; }

.nav.solid {
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 46px; height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.65));
}
@media (max-width: 900px) { .brand__mark { width: 40px; height: 40px; } }
.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__links { display: flex; gap: 30px; margin-left: 20px; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  color: #B4BECB;
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--signal-cyan);
  transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__status { display: none; }
@media (min-width: 1100px) { .nav__status { display: block; } }

.icon-link {
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color .3s var(--ease);
}
.icon-link:hover { color: var(--signal-cyan); }

/* Placeholder for a destination that does not exist yet. Reads as
   present but clearly inert, so nobody clicks into nothing. */
.icon-link--idle {
  color: var(--muted-dim);
  opacity: .42;
  cursor: default;
  pointer-events: none;
}
.icon-link--idle:hover { color: var(--muted-dim); }
.icon-link svg { width: 16px; height: 16px; fill: currentColor; }

.nav__connect {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  border: 1px solid var(--line-bright);
  transition: border-color .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.nav__connect:hover { border-color: var(--signal-cyan); color: var(--signal-cyan); }

.burger { display: none; width: 34px; height: 34px; position: relative; }
.burger span {
  position: absolute; left: 7px; right: 7px; height: 1px;
  background: var(--white);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links, .nav__right .nav__connect, .nav__right .icon-link { display: none; }
  .burger { display: block; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg-deep);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__social { display: flex; gap: 24px; margin-top: 32px; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(60px, 9vh, 110px) 40px;
  background: var(--bg-deep);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__mark { width: 120px; height: 120px; object-fit: contain; margin-bottom: 24px; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.footer__nav a:hover { color: var(--signal-cyan); }
.footer__social { display: flex; gap: 20px; margin-top: 26px; align-items: center; }
.footer__social .icon-link svg { width: 19px; height: 19px; }
/* The OpenSea mark is an outline, so it reads lighter than the solid X
   at the same box. A slightly larger box evens them out optically. */
.footer__social .icon-link--idle svg { width: 22px; height: 22px; }
.footer__bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

/* ---------- Boot sequence ----------
   .cz-boot is set by an inline <head> script before first paint, so the
   page underneath never flashes. The overlay also self-dismisses via
   animation, so a JS failure cannot trap a visitor behind it. */
.cz-boot body > *:not(.boot) { visibility: hidden; }

.boot__mark {
  width: clamp(64px, 11vw, 104px);
  height: auto;
  margin: 0 auto 26px;
  display: block;
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(99, 217, 226, .18));
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  text-align: center;
  transition: opacity 1s var(--ease);
}
.boot.done { opacity: 0; pointer-events: none; }

/* Failsafe: clears itself even if the script never runs. */
.boot { animation: bootFailsafe .8s var(--ease) 7s forwards; }
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.boot__signal {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--signal-cyan);
  opacity: 0;
}
.boot__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-top: 18px;
  opacity: 0;
}
.boot__bar {
  width: min(240px, 60vw);
  height: 1px;
  background: var(--line-bright);
  margin: 28px auto 0;
  opacity: 0;
  overflow: hidden;
}
.boot__bar i {
  display: block; height: 100%; width: 0;
  background: var(--signal-cyan);
  box-shadow: 0 0 10px var(--signal-cyan);
}
.fade-up { animation: fadeUp .9s var(--ease) forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Custom cursor (desktop, fine pointer only) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--signal-cyan);
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease);
  mix-blend-mode: difference;
}
.cursor__plus { display: block; }
.cursor__word { display: none; }
.cursor.is-hot .cursor__plus { display: none; }
.cursor.is-hot .cursor__word { display: block; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
