/* ==========================================================
   Orbit Vending — site styles
   Palette pulled from the logo: deep indigo space, holographic
   foil (ice, lilac, bubblegum, sun) and a gold call-to-action.
   ========================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"),
       url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Space */
  --night: #120C33;
  --deep: #1A1247;
  --abyss: #0D0828;
  --rim: rgba(185, 166, 255, 0.18);
  --rim-strong: rgba(185, 166, 255, 0.32);

  /* Text on dark */
  --star: #F5F2FF;
  --haze: #BDB3E6;

  /* Holographic foil */
  --ice: #7EEBFF;
  --lilac: #B9A6FF;
  --bubble: #FF9CD6;
  --sun: #FFD978;
  --holo: linear-gradient(110deg, var(--ice) 0%, var(--lilac) 35%, var(--bubble) 65%, var(--sun) 100%);

  /* Light surfaces */
  --paper: #F7F5FF;
  --ink: #1A1247;
  --ink-soft: #4A4180;
  --violet: #5B3DE0;
  --field-line: #CFC6F0;
  --danger: #B3134F;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 72px;

  --font: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--star);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-weight: 760;
  font-stretch: 80%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 650;
  font-stretch: 92%;
}

a { color: inherit; }

.icon {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--sun);
  color: var(--night);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--sun);
  color: var(--night);
}
.btn-gold:hover { background: #FFE59E; }

.btn-ghost {
  color: var(--star);
  border-color: rgba(245, 242, 255, 0.38);
}
.btn-ghost:hover {
  border-color: var(--star);
  background: rgba(245, 242, 255, 0.06);
}

.btn-small {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

.btn-block { width: 100%; }

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.text-link {
  color: var(--ice);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
.text-link:hover { color: var(--star); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 12, 51, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rim);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--star);
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand span {
  font-size: 1.45rem;
  font-weight: 760;
  font-stretch: 80%;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a:not(.btn) {
  color: var(--haze);
  text-decoration: none;
  font-weight: 550;
  font-size: 1rem;
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--star); }

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--rim-strong);
  background: transparent;
  color: var(--star);
  cursor: pointer;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem);
  isolation: isolate;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(520px 420px at 74% 46%, rgba(185, 166, 255, 0.22), transparent 70%),
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(126, 235, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 56% 84%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 64% 26%, rgba(255, 217, 120, 0.85), transparent 60%),
    radial-gradient(1px 1px at 82% 14%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 68%, rgba(255, 156, 214, 0.85), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 36% 92%, rgba(185, 166, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 72% 94%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(255, 255, 255, 0.5), transparent 60%);
}

/* One-time comet streak on page load */
.comet {
  position: absolute;
  top: 9%;
  left: -18%;
  width: 260px;
  height: 2px;
  z-index: -1;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(185, 166, 255, 0.5) 55%, var(--ice) 92%, #fff);
  transform: rotate(14deg);
  opacity: 0;
  animation: comet-fly 1.7s cubic-bezier(0.3, 0.1, 0.3, 1) 0.15s 1 forwards;
}
.comet::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 12px 4px rgba(126, 235, 255, 0.85);
}

@keyframes comet-fly {
  0%   { opacity: 0; transform: rotate(14deg) translateX(0); }
  12%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(14deg) translateX(118vw); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 550;
  color: var(--haze);
  margin-bottom: 1.4rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 4px rgba(126, 235, 255, 0.16), 0 0 14px rgba(126, 235, 255, 0.7);
}

.hero h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.75rem);
  line-height: 0.98;
  max-width: 15.5ch;
}

.lead {
  margin: 1.6rem 0 2.3rem;
  max-width: 33em;
  font-size: clamp(1.1rem, 1.55vw, 1.28rem);
  line-height: 1.6;
  color: var(--haze);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- 3D space behind the hero (assets/js/hero-space.js) ---------- */

.hero-space {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  animation: space-in 1.4s ease 0.1s forwards;
  /* soften the bottom edge so streaks don't stop at a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

@keyframes space-in { to { opacity: 1; } }

/* Once the WebGL stars are running, keep only the soft glow from the CSS sky */
.hero.space-on .hero-sky {
  background-image: radial-gradient(520px 420px at 74% 46%, rgba(185, 166, 255, 0.16), transparent 70%);
}

/* ---------- Cards orbiting the host card ---------- */

.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--ring-y, 0px));
  width: var(--ring-w, 600px);
  height: var(--ring-h, 150px);
  overflow: visible;
  fill: none;
  transform: translate(-50%, -50%) rotate(var(--tilt, -14deg));
}

.orbit-ring path {
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1.5 7;
  vector-effect: non-scaling-stroke;
}

.orbit-ring-back { z-index: 1; opacity: 0.5; }
.orbit-ring-front {
  z-index: 3;
  opacity: 0.95;
  filter: drop-shadow(0 0 5px rgba(185, 166, 255, 0.9));
}

.orbit-card {
  --w: 54px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: calc(var(--w) * 1.4);
  margin: calc(var(--w) * -0.7) 0 0 calc(var(--w) * -0.5);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  opacity: 0;
}

.orbit.is-ready .orbit-card { opacity: 1; }

.oc-face {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.oc-front {
  background: conic-gradient(from var(--h), var(--ice), var(--lilac), var(--bubble), var(--sun), var(--ice));
  box-shadow: 0 0 18px rgba(185, 166, 255, 0.55), 0 10px 18px -8px rgba(3, 1, 18, 0.9);
}

.oc-front::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.5' cy='.45' r='.65'%3E%3Cstop offset='0' stop-color='%233A2A92'/%3E%3Cstop offset='1' stop-color='%23120C33'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='50' height='70' fill='url(%23g)'/%3E%3Cpath d='M25 17 L28.2 30.8 L42 34 L28.2 37.2 L25 51 L21.8 37.2 L8 34 L21.8 30.8Z' fill='%23fff'/%3E%3Ccircle cx='25' cy='34' r='3.2' fill='%23FFD978'/%3E%3Crect x='7' y='57' width='36' height='3' rx='1.5' fill='%23B9A6FF' opacity='.6'/%3E%3Crect x='7' y='62' width='22' height='3' rx='1.5' fill='%23B9A6FF' opacity='.35'/%3E%3C/svg%3E") center / cover;
}

.oc-back {
  transform: rotateY(180deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 70'%3E%3Crect width='50' height='70' fill='%231A1247'/%3E%3Crect x='3' y='3' width='44' height='64' rx='3.5' fill='none' stroke='%23B9A6FF' stroke-opacity='.5'/%3E%3Ccircle cx='25' cy='35' r='8' fill='%235B3DE0'/%3E%3Cellipse cx='25' cy='35.5' rx='15' ry='5' fill='none' stroke='%23FFD978' stroke-width='1.6' transform='rotate(-16 25 35.5)'/%3E%3C/svg%3E") center / cover;
  box-shadow: 0 0 14px rgba(185, 166, 255, 0.35);
}

/* ---------- The holographic host card ---------- */

.card-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.holo-card {
  z-index: 2;
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --px: 0;
  --py: 0;
  position: relative;
  width: min(372px, 100%);
  aspect-ratio: 5 / 7;
  padding: 9px;
  border-radius: 22px;
  background:
    conic-gradient(from 210deg at var(--mx) var(--my),
      var(--ice), var(--lilac), var(--bubble), var(--sun), var(--ice));
  box-shadow:
    0 50px 90px -30px rgba(3, 1, 18, 0.9),
    0 0 70px -12px rgba(185, 166, 255, 0.5);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: card-arrive 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s backwards;
}

.holo-card.is-tilting { transition: transform 0.08s linear; }

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(10deg) rotateY(-22deg);
  }
}

.card-face {
  height: 100%;
  border-radius: 14px;
  padding: 14px 16px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  background: linear-gradient(180deg, #211858 0%, #140D3A 100%);
  color: var(--star);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-name {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 780;
  font-stretch: 78%;
}

.card-tag {
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night);
  white-space: nowrap;
}

.card-art {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 0;
  background: radial-gradient(circle at 50% 42%, #2C2070 0%, #0E0929 75%);
  border: 1px solid var(--rim-strong);
}

.card-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Parallax: each layer of the meadow scene shifts by its depth (--d)
   as the card tilts. --px / --py run from -1 to 1 and are set in script.js. */
.art-layer {
  transform: translate(calc(var(--px) * var(--d) * 1.6px), calc(var(--py) * var(--d) * 1px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.holo-card.is-tilting .art-layer { transition: transform 0.08s linear; }

.card-type {
  font-size: 0.8rem;
  color: var(--haze);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rim);
}

.card-stats div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(185, 166, 255, 0.22);
}

.card-stats dt {
  font-size: 0.8rem;
  color: var(--haze);
}

.card-stats dd {
  font-size: 0.88rem;
  font-weight: 650;
  text-align: right;
}

.card-flavor {
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(245, 242, 255, 0.62);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--haze);
}

.card-sheen {
  position: absolute;
  inset: 9px;
  border-radius: 14px;
  pointer-events: none;
  background:
    linear-gradient(115deg,
      transparent 18%,
      rgba(126, 235, 255, 0.16) 34%,
      rgba(255, 156, 214, 0.18) 44%,
      rgba(255, 255, 255, 0.26) 50%,
      rgba(255, 217, 120, 0.16) 57%,
      transparent 74%);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  opacity: 0.6;
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); }

.section-deep { background: var(--deep); }

.section-head { max-width: 40rem; }

.section-head p {
  margin-top: 1rem;
  color: var(--haze);
  font-size: 1.15rem;
}

/* Why host */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why-head {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.why-head p {
  margin: 1.1rem 0 1.5rem;
  color: var(--haze);
  font-size: 1.15rem;
  max-width: 30em;
}

.benefits li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-block: 1.65rem;
  border-top: 1px solid var(--rim);
}

.benefits li:last-child { border-bottom: 1px solid var(--rim); }

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--ice);
  background: rgba(185, 166, 255, 0.09);
  border: 1px solid var(--rim-strong);
}

.benefits p {
  margin-top: 0.35rem;
  color: var(--haze);
  max-width: 34em;
}

/* How it works: a comet trail connects the steps */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: calc((100% - 6rem) / 4 - 28px);
  height: 3px;
  border-radius: 3px;
  background: var(--holo);
  opacity: 0.85;
}

.step {
  position: relative;
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 760;
  font-stretch: 85%;
  color: var(--star);
  border: 2px solid transparent;
  background:
    linear-gradient(var(--deep), var(--deep)) padding-box,
    var(--holo) border-box;
}

.step:last-child .step-num {
  background:
    linear-gradient(var(--sun), var(--sun)) padding-box,
    var(--holo) border-box;
  color: var(--night);
  box-shadow: 0 0 24px rgba(255, 217, 120, 0.55);
}

.step p {
  margin-top: 0.45rem;
  color: var(--haze);
}

/* What collectors get */

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.flow li {
  padding-top: 1.4rem;
  border-top: 2px solid var(--rim-strong);
}

.flow .icon {
  width: 30px;
  height: 30px;
  color: var(--lilac);
  margin-bottom: 1rem;
}

.flow p {
  margin-top: 0.4rem;
  color: var(--haze);
}

/* Locations and about */

.locations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.locations-copy p {
  margin-top: 1.1rem;
  color: var(--haze);
  max-width: 34em;
}

.locations-copy h3 { margin-top: 2.6rem; }

.locations-copy .aside {
  margin-top: 2rem;
  color: var(--star);
}

.venues {
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(18, 12, 51, 0.6);
  border: 1px solid var(--rim-strong);
}

.venues ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 1.4rem;
}

.venues li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.venues .icon {
  width: 24px;
  height: 24px;
  color: var(--ice);
}

/* FAQ */

.faq-list {
  margin-top: 2.5rem;
  max-width: 820px;
}

.faq-list details { border-bottom: 1px solid var(--rim); }
.faq-list details:first-child { border-top: 1px solid var(--rim); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.22rem;
  font-weight: 620;
  font-stretch: 94%;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary .icon {
  width: 24px;
  height: 24px;
  color: var(--lilac);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary .icon { transform: rotate(180deg); }

.faq-list details p {
  padding-bottom: 1.5rem;
  color: var(--haze);
  max-width: 60ch;
}

/* Host request (light section) */

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.host-copy p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 28em;
}

.assurances {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}

.assurances li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--ink);
}

.assurances .icon {
  width: 22px;
  height: 22px;
  margin-top: 0.15em;
  color: var(--violet);
  stroke-width: 2.25;
}

.assurances a { color: var(--violet); font-weight: 600; }

.form-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E2DCFA;
  border-radius: 24px;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  box-shadow: 0 40px 70px -40px rgba(26, 18, 71, 0.45);
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--holo);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FDFCFF;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A4180' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder { color: #8E86B5; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(91, 61, 224, 0.18);
}

.field [aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--danger);
}
.field-error:empty { display: none; }

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn-gold {
  margin-top: 0.4rem;
  box-shadow: inset 0 -2px 0 rgba(26, 18, 71, 0.12);
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--danger);
  text-align: center;
}
.form-status:empty { display: none; }
.form-status a { color: inherit; }

.form-success {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem;
}

.form-success .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--violet);
}

.form-success h3 {
  font-size: 1.8rem;
  font-weight: 760;
  font-stretch: 82%;
  color: var(--ink);
}

.form-success h3:focus { outline: none; }

.form-success p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--abyss);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  color: var(--haze);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rim);
}

.footer-brand p {
  margin: 1rem 0 1.4rem;
  max-width: 24em;
  font-size: 1rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rim-strong);
  color: var(--star);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.socials a:hover {
  border-color: var(--lilac);
  background: rgba(185, 166, 255, 0.1);
}

.socials .icon { width: 22px; height: 22px; }

.footer-title {
  color: var(--star);
  font-weight: 650;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--haze);
}
.footer-col a:hover {
  color: var(--star);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  padding-top: 1.6rem;
  font-size: 0.92rem;
}

.disclaimer {
  margin-top: 1rem;
  max-width: 70ch;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(189, 179, 230, 0.75);
}

/* ---------- The machine (3D, assets/js/machine-3d.js) ---------- */

.section-machine {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 28% 52%, rgba(128, 100, 255, 0.24), transparent 70%),
    radial-gradient(40% 50% at 85% 20%, rgba(126, 235, 255, 0.08), transparent 70%),
    var(--abyss);
  border-block: 1px solid var(--rim);
}

.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.machine-stage {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 15 / 16;
  margin-inline: auto;
  isolation: isolate;
}

/* Holographic floor grid under the model */
.machine-stage::before {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 4%;
  height: 46%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(185, 166, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 166, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center bottom;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 70%, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 70%, #000 30%, transparent 100%);
  opacity: 0.8;
}

.machine-poster,
.machine-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.machine-poster {
  object-fit: contain;
  transition: opacity 0.6s ease;
}

.machine-canvas {
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  border-radius: 18px;
  transition: opacity 0.6s ease;
}

.machine-canvas:active { cursor: grabbing; }
.machine-canvas.is-pointing { cursor: pointer; }
.machine-canvas:focus-visible { box-shadow: 0 0 0 2px var(--ice); }

.machine-stage.is-live .machine-canvas { opacity: 1; }
.machine-stage.is-live .machine-poster { opacity: 0; }

/* HUD overlay */
.machine-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-size: 0.72rem;
  font-weight: 600;
  font-stretch: 85%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: rgba(189, 179, 230, 0.85);
}

.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(126, 235, 255, 0.6);
}
.hud-tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 6px; }
.hud-tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 6px; }
.hud-bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 6px; }
.hud-br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 6px; }

.hud-read {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}
.hud-top { top: 14px; left: 16px; }
.hud-angle { top: 14px; right: 16px; color: var(--ice); }
.hud-dims { bottom: 14px; left: 16px; }
.hud-status { bottom: 14px; right: 16px; color: var(--sun); }

.hud-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
  animation: hud-pulse 1.8s ease-in-out infinite;
}

@keyframes hud-pulse { 50% { opacity: 0.35; } }

.machine-view {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  min-width: 0;
}

.machine-actions {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.machine-actions .btn { box-shadow: 0 10px 30px -10px rgba(255, 217, 120, 0.6); }
.machine-actions .btn .icon { width: 20px; height: 20px; }
.machine-actions .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.machine-hint {
  font-size: 0.85rem;
  color: var(--haze);
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.machine-copy h2 { max-width: 14ch; text-wrap: balance; }

.machine-copy > p:not(.eyebrow) {
  margin-top: 1.1rem;
  max-width: 34em;
  color: var(--haze);
  font-size: 1.12rem;
}

.machine-specs {
  margin: 2rem 0 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--rim);
  border-radius: 16px;
  overflow: hidden;
  background: var(--rim);
}

.machine-specs div {
  padding: 0.9rem 1.1rem;
  background: rgba(13, 8, 40, 0.92);
}

.machine-specs dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
}

.machine-specs dd {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.35;
  color: var(--star);
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .steps,
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .menu-button { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--night);
    border-bottom: 1px solid var(--rim);
    box-shadow: 0 24px 40px -20px rgba(3, 1, 18, 0.9);
  }

  .nav-links.is-open { display: flex; }

  .nav-links li a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--rim);
  }

  .nav-links .btn { margin-top: 1rem; width: 100%; min-height: 50px; }

  .hero-grid,
  .machine-grid,
  .why-grid,
  .locations-grid,
  .host-grid { grid-template-columns: minmax(0, 1fr); }

  .hero h1 { max-width: 16ch; }

  .why-head { position: static; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }

  .brand span { font-size: 1.3rem; }
  .brand img { width: 38px; height: 38px; }

  .cta-row .btn { flex: 1 1 100%; }

  .holo-card { width: min(340px, 100%); }
  .orbit-card { --w: 40px; }

  .steps,
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }

  /* Vertical comet trail on phones */
  .steps::before {
    display: block;
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--ice), var(--lilac) 35%, var(--bubble) 65%, var(--sun));
  }

  .step {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1.1rem;
  }

  .step h3 { margin-top: 0.85rem; }

  .venues ul { grid-template-columns: minmax(0, 1fr); }

  .machine-stage { aspect-ratio: 4 / 5; }
  .hud-dims { display: none; }
  .machine-specs { grid-template-columns: minmax(0, 1fr); }

  .field-row { grid-template-columns: minmax(0, 1fr); }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .comet { display: none; }
  .hero-space { animation: none; opacity: 1; }
  .hud-live { animation: none; }
  .holo-card { animation: none; transition: none; }
  .art-layer { transform: none; transition: none; }
  .faq-list summary .icon { transition: none; }
}
