/* =========================================================
   Spatial Hero V2.1 — Foundation
   DNA: space dimension / rupture / geometry / minimal advanced
========================================================= */
.sv-spatial-hero {
  --sv-ink: #1e282e;
  --sv-muted: #6b757c;
  --sv-line: rgba(38, 50, 58, 0.16);
  --sv-line-strong: rgba(38, 50, 58, 0.32);
  --sv-ease: cubic-bezier(0.22, 0.72, 0.18, 1);
  --sv-ease-snap: cubic-bezier(0.18, 0.86, 0.22, 1);
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--sv-ink);
  background: var(--sv-bg, #F3F1EB);
  overflow: clip;
}

.sv-spatial-hero *,
.sv-spatial-hero *::before,
.sv-spatial-hero *::after {
  box-sizing: border-box;
}

.sv-spatial-hero button,
.sv-spatial-hero a {
  font: inherit;
}

.sv-spatial-hero__field {
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  padding: 8px 0 12px;
}

/* —— Atmosphere: dimensional planes + rupture —— */
.sv-spatial-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sv-spatial-hero__plane {
  position: absolute;
  border: 1px solid rgba(91, 105, 112, 0.13);
  background: transparent;
}

.sv-spatial-hero__plane--one {
  width: min(52vw, 700px);
  height: min(28vw, 380px);
  top: 12%;
  left: 4%;
  transform: rotate(-8deg) translateZ(-40px);
}

.sv-spatial-hero__plane--two {
  width: min(30vw, 400px);
  height: min(36vw, 480px);
  right: 5%;
  bottom: 10%;
  transform: rotate(7deg) translateZ(-60px);
}

.sv-spatial-hero__plane--three {
  width: min(18vw, 220px);
  height: min(14vw, 160px);
  top: 42%;
  left: 62%;
  border-style: dashed;
  border-color: rgba(91, 105, 112, 0.1);
  transform: rotate(-3deg);
}

.sv-spatial-hero__axis {
  position: absolute;
  background: rgba(91, 105, 112, 0.1);
}

.sv-spatial-hero__axis--horizontal {
  height: 1px;
  left: 0;
  right: 0;
  top: 56%;
}

.sv-spatial-hero__axis--vertical {
  width: 1px;
  top: 0;
  bottom: 0;
  left: 50%;
}

.sv-spatial-hero__axis--diag {
  width: 1px;
  height: 40%;
  top: 20%;
  left: 18%;
  background: linear-gradient(to bottom, rgba(91, 105, 112, 0.18), transparent);
  transform: rotate(18deg);
  transform-origin: top center;
}

/* Corner rupture L-marks */
.sv-spatial-hero__geo-mark {
  position: absolute;
  width: 22px;
  height: 22px;
}

.sv-spatial-hero__geo-mark::before,
.sv-spatial-hero__geo-mark::after {
  content: "";
  position: absolute;
  background: rgba(30, 40, 46, 0.35);
}

.sv-spatial-hero__geo-mark--tl {
  top: 16px;
  left: 16px;
}

.sv-spatial-hero__geo-mark--tl::before {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
}

.sv-spatial-hero__geo-mark--tl::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

.sv-spatial-hero__geo-mark--br {
  right: 16px;
  bottom: 64px;
}

.sv-spatial-hero__geo-mark--br::before {
  right: 0;
  bottom: 0;
  width: 1px;
  height: 100%;
}

.sv-spatial-hero__geo-mark--br::after {
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
}

/* Fragmented rupture ticks */
.sv-spatial-hero__rupture {
  position: absolute;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.sv-spatial-hero__rupture--a {
  top: 28%;
  right: 12%;
  flex-direction: column;
}

.sv-spatial-hero__rupture--a::before,
.sv-spatial-hero__rupture--a::after {
  content: "";
  display: block;
  width: 1px;
  background: linear-gradient(to bottom, rgba(30, 40, 46, 0.4), transparent);
}

.sv-spatial-hero__rupture--a::before {
  height: 14px;
}

.sv-spatial-hero__rupture--a::after {
  height: 8px;
  opacity: 0.5;
}

.sv-spatial-hero__rupture--b {
  bottom: 22%;
  left: 10%;
}

.sv-spatial-hero__rupture--b::before,
.sv-spatial-hero__rupture--b::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, rgba(30, 40, 46, 0.35), transparent);
}

.sv-spatial-hero__rupture--b::before {
  width: 28px;
}

.sv-spatial-hero__rupture--b::after {
  width: 12px;
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .sv-spatial-hero *,
  .sv-spatial-hero *::before,
  .sv-spatial-hero *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
