/* nudisco-public-void-v1 — these rules load only on /void. */
html { scroll-behavior: auto; }
body.void-page {
  height: 100svh; min-height: 100svh; overflow: hidden;
  isolation: isolate; background: #000000;
  --void-x: 50vw; --void-y: 28vh;
}
.void-page *, .void-page *::before, .void-page *::after {
  animation: none !important;
  scroll-behavior: auto !important;
}
.void-page .bg-grid {
  z-index: -3; opacity: .8;
  filter: saturate(1.4) contrast(1.5);
}
.void-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(rgba(23,120,116,.12) 1px, transparent 1px),
              linear-gradient(90deg, rgba(23,120,116,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 48% 35%, #000000, transparent 85%);
}
.void-geometry {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(26deg, transparent 49.9%, rgba(54,157,105,.19) 50%, transparent 50.1%),
              linear-gradient(147deg, transparent 49.9%, rgba(23,120,116,.15) 50%, transparent 50.1%);
}
/* The default is a still ending. Failed/disabled JS never traps the visitor. */
.void-stage { display: none; }
.void-running .void-stage {
  display: block; position: fixed; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 1;
}
.void-page .middle-shadow-block::before { display: none; }
.void-page .post { max-height: 340px; overflow: hidden; }
.void-image-signal {
  min-height: 90px; margin-top: 18px; border: 1px solid #0F5351;
  padding: 18px; color: #B3ECD8; overflow-wrap: anywhere;
  font: .75rem ui-monospace, monospace;
  background: repeating-linear-gradient(0deg, transparent 0 7px, rgba(23,120,116,.04) 7px 8px);
}
.void-page .void-fragment {
  position: fixed !important; margin: 0 !important;
  pointer-events: none !important; transform-origin: center;
  transition: none !important; will-change: transform, opacity;
}
.void-page .void-fragment::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  opacity: .86; background: #000000 url('/assets/void-static.svg') repeat;
  background-size: 128px 128px;
  mix-blend-mode: normal;
}
.void-hole {
  position: fixed; left: var(--void-x); top: var(--void-y); z-index: 4;
  width: 64px; height: 64px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #000000; border: 1px solid rgba(23,120,116,.62);
  box-shadow: 0 0 0 4px #093434, 0 0 0 5px rgba(54,157,105,.28), 0 0 28px 4px #000000;
  pointer-events: none;
}
.void-hole::before, .void-hole::after {
  content: ''; position: absolute; border: 1px solid rgba(23,120,116,.23);
  inset: -9px -24px; border-radius: 50%; transform: rotate(-22deg) scaleY(.4);
}
.void-hole::after { inset: -16px -36px; border-color: rgba(54,157,105,.23); transform: rotate(35deg) scaleY(.3); }
.void-echo-host { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
.void-page .void-astra-echo {
  position: fixed !important; margin: 0 !important; right: auto !important;
  transform: none !important; pointer-events: none !important;
  filter: saturate(.65); opacity: 0;
}
.void-page .void-astra-echo *, .void-page .void-astra-echo *::before,
.void-page .void-astra-echo *::after { pointer-events: none !important; }
.void-exit {
  position: fixed; left: 12px; right: 12px; bottom: max(9vh, env(safe-area-inset-bottom));
  text-align: center; z-index: 10;
}
.void-return {
  display: inline-block; max-width: 100%; padding: 12px 0;
  color: #00F600; text-decoration: none;
  font: 800 clamp(18px, 6vw, 64px)/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.045em; white-space: nowrap;
  text-shadow: 0 2px 5px #000000, 0 0 14px #000000;
}
.void-return:focus-visible { outline: 2px solid #00F600; outline-offset: 7px; }
@media (prefers-reduced-motion: reduce) {
  .void-running .void-stage, .void-echo-host { display: none !important; }
}

/* nudisco-astra-speeds-v1: return grows gently, without moving its neighbors. */
.void-page .void-return {
  transform: scale(1);
  transform-origin: center;
  transition: transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .void-page .void-return:hover { transform: scale(1.06); }
}
.void-page .void-return:focus-visible { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .void-page .void-return { transition: none; }
}

/* nudisco-nine-colors-v2: Void Return text and focus now use approved teals.
   Retain exact text, arrow pulse, scale and reduced-motion handling. */
.void-page .void-return { color: #00F600; }
.void-page .void-return:is(:hover, :focus-visible) { color: #B3ECD8; }
.void-page .void-return:focus-visible { outline-color: #B3ECD8; }

/* nudisco-restraint-tune-v1
   /void keeps its pre-authored-restraint background grid. The normal site's
   quieter 64px drafting grid should not leak into the Void's visual system. */
.void-page .bg-grid {
  opacity: .8;
  filter: saturate(1.4) contrast(1.5);
  background-size: 48px 48px;
  background-repeat: repeat;
  background-position: 0 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 0H48M0 0V48' fill='none' stroke='%23000000000' stroke-width='1'/%3E%3C/svg%3E");
}

/* nudisco-void-background-restore-v2
   Restore the exact pre-authored-restraint NUDISCO wallpaper layers inside
   /void: 48px graphite grid + blue drafting polygons + sparse indigo stars.
   The restrained homepage stays restrained. */
.void-page .bg-grid {
  opacity: .40;
  filter: none;
  background-size: 48px 48px, 100vw 100vh, 100vw 100vh;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, center center, center center;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 0H48M0 0V48' fill='none' stroke='%23177874' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cg fill='none' stroke='%23177874' stroke-width='1'%3E%3Cpath d='M806 173l112 82-37 129-121-74zM806 173l-46 137 121 74M918 255L760 310'/%3E%3Cpath d='M1192 139l82 60-26 104-91-66zM1192 139l-35 98 91 66M1274 199l-117 38' opacity='.72'/%3E%3Cpath d='M204 650l127-58 91 102-132 73zM331 592l-41 175M204 650l218 44' opacity='.54'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cg fill='%23369D69'%3E%3Cpath d='M928 103l4 14 14 4-14 4-4 14-4-14-14-4 14-4z'/%3E%3Cpath d='M1149 522l3 10 10 3-10 3-3 10-3-10-10-3 10-3z' opacity='.58'/%3E%3Cpath d='M451 154l2 7 7 2-7 2-2 7-2-7-7-2 7-2z' opacity='.42'/%3E%3C/g%3E%3C/svg%3E");
}

/* nudisco-void-tardis-gravity-v3: original two close passes and flight shape.
   JS retimes outward legs using the same CSS keyframes/geometry when available. */
.void-page .void-tardis {
  position: fixed; z-index: 14; left: 0; top: 0;
  display: inline-block; isolation: isolate;
  padding: 0; margin: 0; color: #FFFFFF; text-decoration: none;
  font: 400 clamp(2rem, calc(1.4rem + 3vw), 3.4rem)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  cursor: pointer; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
  animation: var(--void-tardis-name, void-tardis-escape) var(--void-tardis-duration, 18s) linear infinite !important;
  will-change: transform;
}
.void-page .void-tardis::before {
  content: ""; position: absolute; inset: 0 -.005em; z-index: -1;
  background: #003B6F;
}
.void-page .void-tardis::after { content: ""; position: absolute; inset: -9px -12px; }
.void-page .void-tardis:focus-visible { outline: 1px solid #003B6F; outline-offset: 3px; }
.void-page .void-tardis.void-paused { animation-play-state: paused !important; }
/* Each waypoint is chosen at runtime inside the visible viewport, with
   no segment entering the Void keep-out radius. CSS alone drives motion. */
/* Original V3.1 timing remains as a fallback if dynamic retiming is blocked. */
@keyframes void-tardis-escape {
  0% { transform: translate3d(var(--void-tardis-x0, 0px), var(--void-tardis-y0, 0px), 0) rotate(-11deg); animation-timing-function: cubic-bezier(.55,.08,1,.82); }
  9% { transform: translate3d(var(--void-tardis-x1, 0px), var(--void-tardis-y1, 0px), 0) rotate(52deg); animation-timing-function: cubic-bezier(.07,.85,.3,1); }
  15% { transform: translate3d(var(--void-tardis-x2, 0px), var(--void-tardis-y2, 0px), 0) rotate(-49deg); animation-timing-function: cubic-bezier(.16,.4,.5,.94); }
  23% { transform: translate3d(var(--void-tardis-x3, 0px), var(--void-tardis-y3, 0px), 0) rotate(12deg); animation-timing-function: cubic-bezier(.45,.1,.57,.95); }
  32% { transform: translate3d(var(--void-tardis-x4, 0px), var(--void-tardis-y4, 0px), 0) rotate(-17deg); animation-timing-function: cubic-bezier(.4,.1,.6,.94); }
  40% { transform: translate3d(var(--void-tardis-x5, 0px), var(--void-tardis-y5, 0px), 0) rotate(22deg); animation-timing-function: cubic-bezier(.46,.06,.65,.9); }
  47% { transform: translate3d(var(--void-tardis-x6, 0px), var(--void-tardis-y6, 0px), 0) rotate(-14deg); animation-timing-function: cubic-bezier(.55,.08,1,.82); }
  52% { transform: translate3d(var(--void-tardis-x7, 0px), var(--void-tardis-y7, 0px), 0) rotate(-58deg); animation-timing-function: cubic-bezier(.07,.85,.3,1); }
  58% { transform: translate3d(var(--void-tardis-x8, 0px), var(--void-tardis-y8, 0px), 0) rotate(48deg); animation-timing-function: cubic-bezier(.26,.3,.6,.98); }
  68% { transform: translate3d(var(--void-tardis-x9, 0px), var(--void-tardis-y9, 0px), 0) rotate(-6deg); animation-timing-function: cubic-bezier(.45,.1,.57,.95); }
  76% { transform: translate3d(var(--void-tardis-x10, 0px), var(--void-tardis-y10, 0px), 0) rotate(-23deg); animation-timing-function: cubic-bezier(.43,.1,.58,.95); }
  85% { transform: translate3d(var(--void-tardis-x11, 0px), var(--void-tardis-y11, 0px), 0) rotate(24deg); animation-timing-function: cubic-bezier(.46,.08,.56,.96); }
  93% { transform: translate3d(var(--void-tardis-x12, 0px), var(--void-tardis-y12, 0px), 0) rotate(12deg); animation-timing-function: cubic-bezier(.44,.08,.55,.95); }
  100% { transform: translate3d(var(--void-tardis-x0, 0px), var(--void-tardis-y0, 0px), 0) rotate(-11deg); animation-timing-function: linear; }
}
/* Keep the *same* transform animation running on departure. Add only an
   opacity animation, so catching the link never snaps its position or angle. */
.void-page .void-tardis.void-departing {
  animation: var(--void-tardis-name, void-tardis-escape) var(--void-tardis-duration, 18s) linear infinite,
             void-tardis-dematerialize 4.2s linear both !important;
  animation-play-state: running, running !important;
  pointer-events: none;
  will-change: transform, opacity;
}
@keyframes void-tardis-dematerialize {
  0%, 12%, 35%, 56% { opacity: 1; }
  20%, 44%, 66% { opacity: .16; }
  74% { opacity: .73; }
  87% { opacity: .19; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .void-page .void-tardis, .void-page .void-tardis.void-departing {
    animation: none !important; will-change: auto;
  }
}
@media (forced-colors: active) {
  .void-page .void-tardis { color: HighlightText; }
  .void-page .void-tardis::before { background: Highlight; }
}


/* nudisco-void-green-nine-correction-v1: exact visible Void palette accents, except the
   previously approved TARDIS Blue #003B6F and its white window. Preserves movement, links and return physics. */
body.void-page { background:#000000!important;color:#B3ECD8!important; }
.void-page .void-return,.void-page .void-return:visited{color:#00F600!important;}
.void-page .void-return:hover,.void-page .void-return:focus-visible{color:#CDE67E!important;}
.void-page .void-return:focus-visible{outline-color:#CDE67E;}
.void-page .void-tardis{color:#FFFFFF;background:#003B6F;}
.void-page .void-tardis::before{background:#003B6F;}
.void-page .void-tardis:focus-visible{outline-color:#00F600;}
.void-page .site-header,.void-page .tools,.void-page .post+.post,
.void-page .site-footer{border-color:#0F5351;}
.void-page .post,.void-page .void-image-signal{background:#093434;color:#B3ECD8;}
.void-page .post .kind,.void-page .post .view-count{color:#00F600;}
.void-page .post h2,.void-page .intro h1{color:#B3ECD8;}
.void-page .intro .eyebrow,.void-page .site-brand{color:#B3ECD8;}
.void-page .void-grid,.void-page .void-geometry{opacity:.20;}
