/* CULTURE / CRT / CURSOR REFINEMENT ----------------------------------- */

/* The circled brand unit is removed from the markup; keep the status rail right-aligned. */
.site-header {
  justify-content: flex-end;
}

.channel-status {
  margin-left: auto;
}

/* One display face for the complete COMING SOON lockup. */
.glitch-word {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.signal-form button {
  min-width: clamp(176px, 17vw, 224px);
  padding-inline: 18px;
}

/* Full-screen holographic phosphor and old-television treatment. */
.screen-fx {
  z-index: 20;
  isolation: isolate;
  background:
    linear-gradient(
      108deg,
      transparent 0 12%,
      rgba(71, 207, 255, 0.035) 23%,
      rgba(246, 252, 255, 0.028) 29%,
      rgba(155, 124, 255, 0.045) 37%,
      transparent 52% 64%,
      rgba(134, 239, 255, 0.026) 76%,
      transparent 88%
    );
  background-position: 8% 0;
  background-size: 230% 100%;
  animation: bb-hologram-drift 16s ease-in-out infinite alternate;
}

.screen-fx::before {
  opacity: 0.16;
}

.screen-fx::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.72;
  background:
    radial-gradient(
      ellipse at 50% 48%,
      transparent 0 56%,
      rgba(0, 4, 10, 0.12) 74%,
      rgba(0, 2, 7, 0.5) 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.2) 0,
      rgba(0, 0, 0, 0.2) 1px,
      rgba(134, 239, 255, 0.025) 1px,
      rgba(134, 239, 255, 0.025) 2px,
      transparent 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(71, 207, 255, 0.028) 0,
      rgba(71, 207, 255, 0.028) 1px,
      rgba(155, 124, 255, 0.022) 1px,
      rgba(155, 124, 255, 0.022) 2px,
      transparent 2px,
      transparent 3px
    );
  background-size: 100% 100%, 100% 4px, 3px 100%;
  box-shadow:
    inset 0 0 18vh rgba(0, 2, 8, 0.26),
    inset 0 0 5vh rgba(71, 207, 255, 0.035);
  mix-blend-mode: soft-light;
}

.screen-fx__grid {
  opacity: 0.14;
  -webkit-mask-image: none;
  mask-image: none;
}

.screen-fx__noise {
  opacity: 0.15;
  mix-blend-mode: soft-light;
}

.screen-fx__scan {
  opacity: 0.12;
  filter: blur(0.45px);
  box-shadow: 0 0 28px rgba(134, 239, 255, 0.08);
}

/* The regular screen layer is hidden during the entry gate, so mirror the CRT glass there. */
html.has-entry-gate .entry-gate::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.66;
  background:
    linear-gradient(
      112deg,
      transparent 8%,
      rgba(71, 207, 255, 0.035) 28%,
      rgba(155, 124, 255, 0.04) 39%,
      transparent 56% 72%,
      rgba(134, 239, 255, 0.025) 84%,
      transparent 94%
    ),
    radial-gradient(
      ellipse at 50% 48%,
      transparent 0 57%,
      rgba(0, 2, 8, 0.5) 100%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.22) 0,
      rgba(0, 0, 0, 0.22) 1px,
      rgba(134, 239, 255, 0.025) 1px,
      rgba(134, 239, 255, 0.025) 2px,
      transparent 2px,
      transparent 4px
    );
  background-position: 12% 0, 0 0, 0 0;
  background-size: 220% 100%, 100% 100%, 100% 4px;
  box-shadow: inset 0 0 18vh rgba(0, 2, 8, 0.28);
  mix-blend-mode: screen, normal, soft-light;
  animation: bb-gate-hologram 12s ease-in-out infinite alternate;
}

/* Main-site targeting cursor, isolated from the form and entry logic. */
@media (any-hover: hover) and (any-pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
}

.cursor {
  --cursor-accent: var(--cyan);
  position: fixed;
  z-index: 11020;
  top: 0;
  left: 0;
  display: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--cursor-accent), var(--cursor-accent)) 0 0 / 15px 2px no-repeat,
    linear-gradient(var(--cursor-accent), var(--cursor-accent)) 0 0 / 2px 15px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 15px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 2px 15px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 15px 2px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 2px 15px no-repeat,
    linear-gradient(var(--cursor-accent), var(--cursor-accent)) 100% 100% / 15px 2px no-repeat,
    linear-gradient(var(--cursor-accent), var(--cursor-accent)) 100% 100% / 2px 15px no-repeat;
  filter: drop-shadow(0 0 7px var(--cursor-accent));
  mix-blend-mode: normal;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition:
    width 120ms steps(2),
    height 120ms steps(2),
    opacity 120ms linear,
    filter 120ms linear;
  will-change: transform, width, height;
}

.cursor.is-live {
  opacity: 1;
}

.cursor::before {
  position: absolute;
  inset: 25px -12px auto;
  width: auto;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--cursor-accent),
    var(--paper),
    var(--cursor-accent),
    transparent
  );
  box-shadow: 0 0 7px var(--cursor-accent);
}

.cursor::after {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  min-width: max-content;
  padding: 4px 7px;
  border-left: 4px solid var(--cursor-accent);
  content: attr(data-label);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--cursor-accent) 72%, var(--ink-soft));
  font: 7px/1 var(--mono);
  letter-spacing: 0.09em;
  transform: translateX(-50%);
}

.cursor span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--paper);
  box-shadow: 0 0 8px var(--paper), 0 0 19px var(--cursor-accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

.cursor-ring {
  position: absolute;
  inset: 9px;
  border: 1px dashed var(--cursor-accent);
  border-radius: 50%;
  animation: bb-cursor-ring 2.4s steps(12) infinite;
}

.cursor-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--cursor-accent);
  opacity: 0.72;
  transform: translate(-50%, -50%);
}

.cursor-axis--x {
  width: 18px;
  height: 1px;
}

.cursor-axis--y {
  width: 1px;
  height: 18px;
}

.cursor.is-hovering,
.cursor[data-mode="DECRYPT"] {
  width: 78px;
  height: 78px;
  animation: bb-cursor-corrupt 190ms steps(2) infinite;
}

.cursor.is-clicking {
  width: 38px;
  height: 38px;
  filter: invert(1) drop-shadow(0 0 13px var(--cursor-accent));
}

.cursor-echo {
  position: fixed;
  z-index: 11017;
  width: 24px;
  height: 24px;
  border: 1px solid var(--cyan-hot);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 120ms linear;
  will-change: transform;
}

.cursor-echo--2 {
  width: 12px;
  height: 12px;
  border-style: dashed;
}

.cursor-shockwave {
  position: fixed;
  z-index: 11016;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan-hot);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: bb-cursor-shock 500ms cubic-bezier(0.08, 0.8, 0.2, 1) forwards;
}

@media (any-hover: hover) and (any-pointer: fine) {
  .cursor {
    display: block;
  }
}

@media (max-width: 520px) {
  .signal-form button {
    min-width: 0;
  }
}

@media (pointer: coarse) {
  .cursor,
  .cursor-echo,
  .cursor-shockwave {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-fx,
  html.has-entry-gate .entry-gate::after {
    animation: none !important;
    background-position: 50% 0, 0 0, 0 0;
  }

  .cursor {
    transition: none;
  }

  .cursor-ring,
  .cursor-echo,
  .cursor-shockwave {
    display: none !important;
  }

  .cursor.is-hovering,
  .cursor[data-mode="DECRYPT"] {
    animation: none !important;
  }
}

@keyframes bb-hologram-drift {
  0% {
    background-position: 4% 0;
  }
  52% {
    background-position: 62% 0;
  }
  100% {
    background-position: 96% 0;
  }
}

@keyframes bb-gate-hologram {
  from {
    background-position: 8% 0, 0 0, 0 0;
  }
  to {
    background-position: 92% 0, 0 0, 0 0;
  }
}

@keyframes bb-cursor-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bb-cursor-shock {
  from {
    opacity: 1;
    width: 14px;
    height: 14px;
  }
  to {
    opacity: 0;
    width: 150px;
    height: 150px;
    border-width: 0;
  }
}

@keyframes bb-cursor-corrupt {
  0%, 100% {
    clip-path: inset(0);
  }
  50% {
    clip-path: inset(7% 0 5% 0);
    filter: drop-shadow(-5px 0 0 rgba(24, 63, 190, 0.7))
      drop-shadow(5px 0 0 rgba(155, 124, 255, 0.55));
  }
}

/* STABILITY / INPUT FAIL-SAFE ---------------------------------------- */
html.has-entry-gate.entry-reveal,
html.has-entry-gate.entry-main-ready {
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
}

html.has-entry-gate.entry-reveal body,
html.has-entry-gate.entry-main-ready body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
}

html.has-entry-gate.entry-reveal .site-header,
html.has-entry-gate.entry-reveal .launch,
html.has-entry-gate.entry-reveal .site-footer,
html.has-entry-gate.entry-main-ready .site-header,
html.has-entry-gate.entry-main-ready .launch,
html.has-entry-gate.entry-main-ready .site-footer {
  pointer-events: auto !important;
}

html.has-entry-gate.entry-reveal .entry-gate,
html.has-entry-gate.entry-main-ready .entry-gate {
  pointer-events: none !important;
}

/* Preserve the CRT texture without repainting two viewport-sized blend layers. */
.screen-fx,
.screen-fx::before {
  animation: none !important;
}

/* STATIC AVAILABILITY STATUS ----------------------------------------- */
.launch-status {
  position: relative;
  display: flex;
  width: min(520px, 100%);
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(26px, 4vh, 44px);
  padding: 17px 20px 15px;
  border: 1px solid rgba(71, 207, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(24, 63, 190, 0.16), transparent 42%),
    rgba(2, 8, 13, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(246, 252, 255, 0.04),
    8px 8px 0 rgba(24, 63, 190, 0.18),
    0 0 28px rgba(71, 207, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.launch-status::before {
  position: absolute;
  top: 0;
  left: 16px;
  width: 76px;
  height: 3px;
  content: "";
  background: var(--cyan-hot);
  box-shadow: 0 0 12px rgba(134, 239, 255, 0.72);
}

.launch-status span,
.launch-status strong {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.launch-status span {
  color: var(--muted);
  font-size: 8px;
}

.launch-status strong {
  color: var(--cyan-hot);
  font-size: clamp(10px, 0.82vw, 13px);
  text-shadow: 0 0 12px rgba(71, 207, 255, 0.44);
}

@media (max-width: 520px) {
  .launch-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
