/* Neural Eight closing scene — rebuilt against the original user-supplied Dokmeh reference recording.
   Independent visual execution; retains Neural Eight identity and native navigation. */
html body footer.footer.wrap.ne-footer {
  --nf-frame: clamp(10px, 1.7vw, 22px);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 270svh;
  min-height: 2050px;
  margin: 0;
  padding: var(--nf-frame) 0 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #07060e;
  color: #faf7ff;
  font-family: var(--body, Inter, system-ui, sans-serif);
}
html body footer.ne-footer .ne-footer-stage {
  position: sticky;
  top: var(--nf-frame);
  height: calc(100svh - var(--nf-frame) * 2);
  min-height: 545px;
  margin: 0 var(--nf-frame);
  width: calc(100% - var(--nf-frame) * 2);
  border-radius: clamp(11px, 1.5vw, 22px);
  overflow: hidden;
  isolation: isolate;
  background: #080711;
  color: #faf7ff;
  box-shadow: 0 0 0 1px #dfdbd70b;
}
html body footer.ne-footer :is(a,p,h2,span,small) { color: inherit; }
html body footer.ne-footer a { text-decoration: none; }
html body footer.ne-footer a:hover { color: #cbaafb; }
html body footer.ne-footer a:focus-visible,
html body footer.ne-footer .ne-footer-mark:focus-visible {
  outline: 2px solid #c6a5ff;
  outline-offset: 5px;
}
.ne-footer-night {
  position: absolute;
  inset: -1% 0 16%;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 58% at 50% 13%, #392052aa, transparent 72%),
    linear-gradient(180deg, #070711 0%, #100a1a 50%, #080610 93%);
  transform: translate3d(0, var(--nf-sky-y,0px), 0);
}
.ne-footer-aurora {
  position: absolute;
  inset: -43% -18% 12%;
  opacity: .95;
  background:
    repeating-linear-gradient(89deg,
      transparent 0 1.1%, #8552ce59 1.9% 2.8%,
      #bc8cff7a 3.2% 3.8%, #6141a47b 4.8%, transparent 6.2% 8.1%),
    radial-gradient(ellipse at 48% 48%, #996de56e 0%, #60418961 35%, transparent 63%);
  filter: blur(8px) saturate(124%);
  -webkit-mask-image: linear-gradient(180deg,transparent 1%,#000 16%,#000 48%,transparent 75%);
  mask-image: linear-gradient(180deg,transparent 1%,#000 16%,#000 48%,transparent 75%);
  animation: ne-aurora-drift 19s ease-in-out infinite alternate;
  transform-origin: 50% 38%;
}
.ne-footer-aurora-b {
  opacity: .52;
  background:
    repeating-linear-gradient(98deg,transparent 0 1.8%,#8951d58c 2.3%,#c59aff8a 3%,transparent 5.2% 7.6%),
    radial-gradient(ellipse at 52% 48%,#724bab91,transparent 59%);
  filter: blur(21px) saturate(135%);
  animation: ne-aurora-drift 26s ease-in-out infinite alternate-reverse;
}
.ne-footer-stars {
  position: absolute;
  inset: 0;
  opacity: .94;
  background:
    radial-gradient(#f9ffffbd .75px,transparent 1.2px),
    radial-gradient(#d9c6facc .8px,transparent 1.4px),
    radial-gradient(#e9e2e8a5 .65px,transparent 1.2px);
  background-size: 71px 79px, 131px 127px, 209px 189px;
  background-position: 13px 19px, 48px 59px, 87px 27px;
  animation: ne-stars-flicker 8s ease-in-out infinite alternate;
}
/* Free-to-use Unsplash photograph by Thiwa Sinlphan (Unsplash License).
   Local WebP, cropped behind the independent rocky shoreline illustration. */
.ne-footer-photo {
  position:absolute;
  inset: -2% -1% 0;
  pointer-events:none;
  background: url('/assets/footer-aurora-photo.webp') center 13% / cover no-repeat;
  opacity:.89;
  filter:brightness(.59) saturate(.81) contrast(1.12);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 37%,#000b 53%,transparent 72%);
  mask-image:linear-gradient(180deg,#000 0%,#000 37%,#000b 53%,transparent 72%);
  transform:translate3d(0,var(--nf-sky-y,0px),0) scale(1.025);
}
.ne-footer-terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate3d(0,var(--nf-land-y,0px),0) scale(var(--nf-land-scale,1));
  transform-origin: center bottom;
}
.ne-footer-rocks { filter: drop-shadow(3px 9px 4px #010309b8); }
.ne-footer-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 89% 84% at 55% 54%,transparent 42%,#000b 130%),
    linear-gradient(180deg,#0003 0%,transparent 22%,transparent 57%,#02050934 85%,#02060b8c 100%);
}
@keyframes ne-aurora-drift {
  from { transform: translate3d(-3%, 2%, 0) rotate(-7deg) scale(1.1); opacity: .71; }
  to { transform: translate3d(2%, -3%, 0) rotate(-2deg) scale(1.16); opacity: 1; }
}
@keyframes ne-stars-flicker { from{opacity:.57} to{opacity:.96} }
html body footer.ne-footer .ne-footer-intro {
  position: absolute;
  z-index: 4;
  top: var(--nf-intro-top,42%);
  left: 9.4%;
  width: min(87%, 1550px);
  opacity: var(--nf-intro-opacity,1);
  pointer-events: none;
  transform: translateZ(0);
}
html body footer.ne-footer .ne-footer-intro p {
  margin: 0 0 clamp(19px, 2.3vw, 36px);
  font-size: clamp(11px, 1.02vw, 16px);
  font-weight: 470;
  line-height: 1.1;
  letter-spacing: -.024em;
}
html body footer.ne-footer .ne-footer-intro h2 {
  margin: 0;
  max-width: 96%;
  color: #fff;
  font: 550 clamp(64px, 7.7vw, 158px)/.95 var(--display, Inter,system-ui);
  letter-spacing: -.071em;
  white-space: nowrap;
  text-wrap: nowrap;
  text-shadow: 0 4px 18px #0005;
  transform-origin: left center;
}
.ne-footer-changing.is-switching { animation: ne-footer-text-swap .38s cubic-bezier(.17,.84,.29,1) both; }
@keyframes ne-footer-text-swap {
  from { opacity: .08; transform: translate3d(0,25px,0); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0,0,0); filter: blur(0); }
}
html body footer.ne-footer .ne-footer-mark-holder {
  position: absolute;
  z-index: 5;
  left: var(--nf-mark-x,51%);
  top: var(--nf-mark-top,90%);
  width: clamp(120px, 18vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 800px;
  opacity: var(--nf-mark-opacity,0);
  transform:
    translate3d(-50%,-50%,0)
    scale(var(--nf-mark-scale,.6));
  transform-origin: center;
  pointer-events: var(--nf-mark-pointer,auto);
  will-change: transform,opacity;
}
.ne-footer-mark-holder::before {
  content:'';
  position:absolute;
  z-index:-1;
  width:130%;
  height:46%;
  bottom:1%;
  left:-15%;
  border-radius:50%;
  background:radial-gradient(ellipse,#a979ff67,transparent 67%);
  opacity:var(--nf-mark-glow,.5);
  filter: blur(20px);
  transform:scaleX(1.1);
  pointer-events:none;
}
.ne-footer-mark-holder::after {
  content:'';
  position:absolute;
  z-index:-2;
  width:110%;
  height:21%;
  left:-5%;
  bottom:0;
  background:radial-gradient(ellipse,#070711b5,transparent 70%);
  filter:blur(11px);
  pointer-events:none;
}
.ne-footer-mark {
  cursor: grab;
  touch-action:none;
  user-select:none;
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  transform-style:preserve-3d;
  transform:
    perspective(800px)
    rotateX(var(--nf-mark-xrot,7deg))
    rotateY(var(--nf-mark-yrot,-12deg))
    rotateZ(var(--nf-mark-zrot,-22deg));
  filter:drop-shadow(0 19px 22px #000a) drop-shadow(0 1px 11px #ad85ef59);
  will-change:transform;
}
/* A restrained extruded silhouette gives the existing rendered 8 some thickness
   when it tilts. Its original front-face image is never altered. */
.ne-footer-mark::before {
  content:'';
  position:absolute;
  inset:2%;
  z-index:0;
  background:linear-gradient(135deg,#dbb9ff,#493273 51%,#140d2a);
  -webkit-mask:url('/assets/living-neural-eight.webp') center / contain no-repeat;
  mask:url('/assets/living-neural-eight.webp') center / contain no-repeat;
  opacity:.52;
  transform:translate3d(9px,10px,-13px);
  filter:blur(1px);
  pointer-events:none;
}
.ne-footer-mark[data-dragging]{cursor:grabbing}
.ne-footer-mark img {
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  -webkit-user-drag:none;
}
.ne-footer-mark-depth{
  position:absolute;
  inset:5%;
  z-index:1;
  border-radius:50%;
  background:radial-gradient(ellipse,#b9a1f27d,transparent 72%);
  filter:blur(14px);
  transform:translate3d(7px,12px,-10px);
}
html body footer.ne-footer .ne-footer-drag-label {
  position:absolute;
  z-index:6;
  top: 74%;
  left: -10%;
  display:block;
  width:max-content;
  max-width:160px;
  padding:8px 11px;
  background:#c9a7fa;
  color:#170e24;
  border-radius:2px;
  transform:rotate(-2deg);
  font-size:clamp(9px,.68vw,11px);
  font-weight:750;
  letter-spacing:-.02em;
  opacity:var(--nf-drag-opacity,0);
  text-transform:none;
  pointer-events:none;
  white-space:nowrap;
}
html body footer.ne-footer .ne-footer-content {
  position:absolute;
  z-index:4;
  left:9.4%;
  right:9.4%;
  top:53%;
  bottom:auto;
  display:grid;
  grid-template-columns:40% minmax(0,60%);
  align-items:start;
  gap:0;
  opacity:var(--nf-content-opacity,0);
  transform:translate3d(0,var(--nf-content-y,95px),0);
  will-change:transform,opacity;
  pointer-events:none;
}
html body footer.ne-footer .ne-footer-nav {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}
html body footer.ne-footer .ne-footer-nav a {
  display:block;
  padding:0;
  font:570 clamp(29px,3.55vw,69px)/1.12 var(--display, Inter,system-ui);
  letter-spacing:-.055em;
  white-space:nowrap;
  transition:color .2s ease, transform .25s ease;
}
html body footer.ne-footer .ne-footer-nav a:hover {transform:translateX(8px)}
html body footer.ne-footer .ne-footer-columns {
  display:grid;
  grid-template-columns:1fr .86fr 1.18fr;
  gap:clamp(11px,2.5vw,44px);
  align-items:start;
  padding-top:12px;
}
html body footer.ne-footer .ne-footer-columns>div {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
html body footer.ne-footer .ne-footer-columns small {
  font-size:clamp(9px,.66vw,12px);
  letter-spacing:.11em;
  line-height:1.3;
  opacity:.56;
  font-weight:600;
  margin:0 0 5px;
  white-space:nowrap;
}
html body footer.ne-footer .ne-footer-columns :is(p,a,span) {
  font-size:clamp(10px,.82vw,15px);
  line-height:1.35;
  font-weight:480;
}
html body footer.ne-footer .ne-footer-columns p {margin:0;max-width:240px}
html body footer.ne-footer .ne-footer-meta {
  position:absolute;
  z-index:4;
  left:9.4%;
  right:9.4%;
  bottom:3.3%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  font-size:clamp(10px,.77vw,13px);
  font-weight:450;
  opacity:var(--nf-meta-opacity,0);
  transform:translate3d(0,var(--nf-meta-y,18px),0);
  pointer-events:none;
}
html body footer.ne-footer .ne-footer-meta a {
  pointer-events: auto;
  font:inherit;
}
html body footer.ne-footer .ne-footer-side {
  position:absolute;
  right:0;
  top:46%;
  z-index:5;
  display:flex;
  flex-direction:column;
  gap:25px;
  align-items:center;
  color:white;
  opacity:var(--nf-side-opacity,0);
  pointer-events:none;
}
html body footer.ne-footer .ne-footer-side strong {font-size:clamp(14px,1.1vw,20px)}
html body footer.ne-footer .ne-footer-side span {
  writing-mode:vertical-rl;
  letter-spacing:.2em;
  font-size:9px;
  opacity:.7;
}
@media(max-width:1150px) {
  html body footer.ne-footer .ne-footer-intro {left:7.5%;width:91%}
  html body footer.ne-footer .ne-footer-intro h2 {font-size:clamp(50px,8.6vw,100px)}
  html body footer.ne-footer .ne-footer-content {left:7.5%;right:7.5%;grid-template-columns:36% 64%}
  html body footer.ne-footer .ne-footer-nav a {font-size:clamp(28px,3.9vw,52px)}
  html body footer.ne-footer .ne-footer-columns {gap:13px}
  html body footer.ne-footer .ne-footer-meta {left:7.5%;right:7.5%}
}
@media(max-width:720px) {
  html body footer.footer.wrap.ne-footer {height:235svh;min-height:1560px;--nf-frame:9px;}
  html body footer.ne-footer .ne-footer-stage {height:calc(100svh - 18px);min-height:520px;}
  html body footer.ne-footer .ne-footer-intro {left:7%;width:88%;top:var(--nf-intro-top,36%)}
  html body footer.ne-footer .ne-footer-intro h2 {font-size:clamp(42px,10.5vw,76px);white-space:normal;text-wrap:balance;line-height:1}
  html body footer.ne-footer .ne-footer-intro p {margin-bottom:18px}
  html body footer.ne-footer .ne-footer-mark-holder {width:clamp(110px,33vw,190px);}
  html body footer.ne-footer .ne-footer-content {
    top:44%;left:7%;right:7%;
    grid-template-columns:1fr;
    gap:24px;
  }
  html body footer.ne-footer .ne-footer-nav a {font-size:clamp(26px,7.1vw,38px);line-height:1.1}
  html body footer.ne-footer .ne-footer-columns {grid-template-columns:1fr 1fr;gap:12px;padding-top:2px}
  html body footer.ne-footer .ne-footer-columns>div:last-child {display:none}
  html body footer.ne-footer .ne-footer-columns small {font-size:9px}
  html body footer.ne-footer .ne-footer-columns :is(p,a,span) {font-size:11px}
  html body footer.ne-footer .ne-footer-drag-label {font-size:9px;left:-18%;top:81%}
  html body footer.ne-footer .ne-footer-meta {left:7%;right:22%;bottom:3.4%;font-size:9px;gap:8px;flex-direction:column;align-items:flex-start}
  html body footer.ne-footer .ne-footer-meta span:first-child {display:none}
  html body footer.ne-footer .ne-footer-side {display:none}
}
@media(prefers-reduced-motion:reduce) {
  .ne-footer-aurora,.ne-footer-stars,.ne-footer-changing.is-switching {animation:none!important}
  .ne-footer-mark-holder,.ne-footer-mark {will-change:auto}
}
