/* Symbio Spatial Studio: a single interaction language across the site. */
@media (max-width: 480px) {
  .site-header .space-nav-trigger {
    display: none;
  }
}

:root {
  --space-ink: var(--c-text);
  --space-muted: var(--c-text-muted);
  --space-panel: var(--c-surface-2);
  --space-line: var(--c-border);
  --space-accent: #3457cd;
  --space-stage-base: #b8c7ed;
  --space-stage-top: #e4e9fc;
  --space-stage-ring: #7789ed;
  --space-stage-orbit: #abb4d7;
}

:root[data-theme="dark"] {
  --space-accent: #9aafff;
  --space-stage-base: #182744;
  --space-stage-top: #263954;
  --space-stage-ring: #7598ff;
  --space-stage-orbit: #566b9f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --space-accent: #9aafff;
    --space-stage-base: #182744;
    --space-stage-top: #263954;
    --space-stage-ring: #7598ff;
    --space-stage-orbit: #566b9f;
  }
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #6e91ff;
  outline-offset: 5px;
}

.brand__mark.brand__mark--sculpted {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(58, 83, 167, 0.15));
}

.brand__name {
  letter-spacing: -0.05em;
}

.site-header {
  border-bottom: 1px solid var(--c-border);
  box-shadow: none;
}

.btn {
  border-radius: 12px;
  box-shadow: none;
}

.btn--primary {
  background: #315fff;
}

.card,
.offer-card,
.teaser {
  box-shadow: none;
}

.space-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 10px/1.7 var(--font-mono);
  letter-spacing: 0.13em;
  color: var(--space-muted);
}

.space-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #617dff;
  box-shadow: 0 0 0 4px rgba(74, 110, 249, 0.08);
}

.space-primary,
.space-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 15px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms,
    background 180ms;
}

.space-primary {
  color: #fff;
  background: #315fff;
  box-shadow: 0 5px 14px rgba(49, 95, 255, 0.16);
}

.space-primary:hover {
  color: #fff;
  background: #254cd7;
  transform: translateY(-2px);
}

.space-secondary {
  color: var(--c-text);
  border-color: var(--c-border);
  background: transparent;
}

.space-secondary:hover {
  background: var(--c-surface-2);
  transform: translateY(-2px);
}

.space-text-button {
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  color: var(--c-text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.space-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(38px, 6vw, 84px);
  background: radial-gradient(ellipse at 65% 10%, rgba(97, 126, 255, 0.09), transparent 60%);
}

.space-hero__grid {
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.space-hero__copy {
  padding: 14px 0 35px;
}

.space-hero h1 {
  margin: 26px 0;
  font-size: clamp(56px, 6.8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.068em;
  font-weight: 600;
}

.space-hero h1 span {
  color: var(--space-accent);
}

.space-hero__lead {
  max-width: 455px;
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.space-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.space-hero__signature {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 42px;
}

.space-hero__signature-line {
  width: 30px;
  height: 1px;
  background: #8d9aba;
}

.space-hero__signature p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.space-hero__signature strong {
  color: var(--c-text);
  font-weight: 500;
}

.space-hero__signature button {
  margin-left: auto;
}

.space-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  padding-top: 22px;
  padding-bottom: 23px;
  border-top: 1px solid var(--c-border);
  font: 9px/1.6 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}

.space-hero__footer a {
  color: var(--c-text);
  font: 12px var(--font-sans);
}

.command-center {
  min-width: 0;
  color: var(--space-ink);
  background: linear-gradient(155deg, var(--c-surface), var(--space-panel) 60%, var(--c-surface-3));
  border: 1px solid var(--c-border-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.command-center__heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.command-center .space-text-button {
  color: var(--space-muted);
}

.command-center__stage {
  position: relative;
  height: 360px;
  width: 100%;
  isolation: isolate;
}

.command-center__stage canvas,
.space-intro__scene canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 450ms;
}

.space-poster {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 85%;
  height: 90%;
  object-fit: contain;
  transition: opacity 450ms;
  filter: drop-shadow(0 18px 26px rgba(62, 79, 154, 0.15));
}

[data-scene-state="ready"] canvas {
  opacity: 1;
}

[data-scene-state="ready"] .space-poster {
  opacity: 0;
}

.command-center__halo {
  position: absolute;
  inset: 18% 19% 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(124, 151, 255, 0.25), transparent 69%);
  z-index: -1;
}

.command-center__core {
  position: absolute;
  top: 13%;
  left: 33%;
  width: 34%;
  height: 65%;
  padding: 0;
  border: 0;
  border-radius: 45%;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.command-center__core:hover {
  background: rgba(191, 202, 255, 0.06);
}

.command-center__hint {
  position: absolute;
  bottom: 17px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--space-muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.command-center__destinations {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.command-center__destinations button {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: 11px;
  background: var(--c-surface);
  color: var(--space-ink);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    background 160ms,
    border 160ms;
  backdrop-filter: blur(12px);
}

.command-center__destinations button span {
  font: 9px var(--font-mono);
  color: var(--space-muted);
}

.command-center__destinations button b {
  font-weight: 400;
  color: var(--space-accent);
}

.command-center__destinations button:hover,
.command-center__destinations button[aria-pressed="true"] {
  background: #315fff;
  border-color: #315fff;
  color: white;
}

.command-center__destinations button:hover span,
.command-center__destinations button:hover b,
.command-center__destinations button[aria-pressed="true"] span,
.command-center__destinations button[aria-pressed="true"] b {
  color: white;
}

.command-center__destinations button:nth-child(1) {
  top: 20%;
  left: 23%;
}

.command-center__destinations button:nth-child(2) {
  top: 20%;
  left: 77%;
}

.command-center__destinations button:nth-child(3) {
  top: 47%;
  left: 17%;
}

.command-center__destinations button:nth-child(4) {
  top: 47%;
  left: 83%;
}

.command-center__destinations button:nth-child(5) {
  top: 77%;
  left: 23%;
}

.command-center__destinations button:nth-child(6) {
  top: 77%;
  left: 77%;
}

.command-center__detail {
  position: relative;
  margin: 0 20px 20px;
  padding: 20px;
  border: 1px solid var(--space-line);
  border-radius: 16px;
  background: var(--c-surface);
  min-height: 164px;
}

.command-center__detail h3 {
  margin: 5px 0 7px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.command-center__detail p {
  color: var(--space-muted);
  font-size: 12px;
  line-height: 1.65;
  max-width: 410px;
  margin: 0;
}

.command-center__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 15px;
}

.command-center__links a,
.command-center__links button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--space-accent);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 0;
  min-height: 35px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.command-center__links a:hover,
.command-center__links button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.space-scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: 90px;
}

.space-scan h2 {
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1.3;
  margin: 9px 0;
}

.space-scan p {
  font-size: 13px;
  color: var(--c-text-muted);
}

.space-scan form {
  align-self: center;
}

.space-scan__controls {
  display: flex;
  gap: 8px;
}

.space-scan__controls input {
  min-width: 0;
  font-size: 16px;
  border-radius: 12px;
  background: var(--c-surface);
}

.space-scan__controls button {
  flex: none;
  white-space: nowrap;
}

.space-scan__note {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--c-text-muted);
}

.space-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}

.space-launcher {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 22px;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 15px 6px 8px;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 5px 26px rgba(27, 39, 81, 0.12);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.space-launcher img {
  object-fit: contain;
}

.space-launcher kbd {
  margin-left: 10px;
  color: var(--c-text-muted);
  font-size: 10px;
  font-weight: 400;
}

.space-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  margin: auto;
  overflow-y: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  color: var(--c-text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
  overscroll-behavior: contain;
}

.space-dialog::backdrop,
.space-intro::backdrop {
  background: rgba(10, 16, 36, 0.7);
  backdrop-filter: blur(15px);
}

.space-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.space-dialog__top h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.space-dialog__top > button {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--c-text);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}

.space-dialog__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--c-text-muted);
}

.space-intro {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: auto;
  color: var(--space-ink);
  background:
    radial-gradient(ellipse at 70% 43%, var(--c-accent-soft), transparent 56%),
    linear-gradient(145deg, var(--c-bg), var(--c-surface-2));
}

.space-intro[open] {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}

.space-intro__top,
.space-intro__bottom {
  position: absolute;
  left: 5vw;
  right: 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
  font: 10px/1.5 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--space-muted);
}

.space-intro__top {
  top: max(24px, env(safe-area-inset-top));
}

.space-intro__bottom {
  bottom: max(24px, env(safe-area-inset-bottom));
  font-size: 9px;
}

.space-intro__top button,
.space-intro__bottom button {
  border: 0;
  background: transparent;
  color: var(--space-ink);
  cursor: pointer;
  min-height: 44px;
  font: 12px var(--font-sans);
}

.space-intro__scene {
  width: 100%;
  height: min(76vh, 770px);
  position: relative;
}

.space-intro__aura {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(84, 126, 249, 0.18), transparent 70%);
}

.space-intro__copy {
  padding-right: 9vw;
  padding-bottom: 20px;
  z-index: 1;
}

.space-intro__copy h2 {
  margin: 22px 0;
  color: var(--space-ink);
  font-size: clamp(42px, 5.2vw, 86px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.space-intro__copy > p:not(.space-eyebrow) {
  color: var(--space-muted);
  font-size: 14px;
  line-height: 1.7;
}

.space-intro__copy .space-primary {
  min-width: 184px;
  margin-top: 30px;
}

.space-noscript {
  padding: 20px;
  font-size: 14px;
}

.space-launcher[hidden],
.space-nav-trigger[hidden],
.command-center__destinations[hidden] {
  display: none;
}

body:has(.space-dialog[open]),
body:has(.space-intro[open]) {
  overflow: hidden;
}

@media (max-width: 1000px) {
  .space-hero__grid {
    gap: 30px;
  }

  .space-hero h1 {
    font-size: 64px;
  }

  .space-hero__lead {
    font-size: 15px;
  }

  .command-center__stage {
    height: 320px;
  }

  .command-center__heading {
    padding: 14px 17px 0;
  }

  .command-center__detail {
    margin: 0 12px 12px;
    padding: 17px;
  }

  .command-center__destinations button {
    padding: 8px 9px;
    gap: 5px;
    font-size: 10px;
  }

  .space-hero__actions {
    gap: 10px;
  }

  .space-hero__actions .space-primary {
    font-size: 12px;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .space-hero {
    padding-top: 30px;
  }

  .space-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .space-hero__copy {
    padding: 12px 0 0;
  }

  .space-hero h1 {
    font-size: clamp(59px, 14vw, 88px);
    margin-top: 20px;
  }

  .space-hero__lead {
    max-width: 540px;
    font-size: 16px;
  }

  .space-hero__actions {
    margin-top: 24px;
  }

  .space-hero__actions .space-primary {
    font-size: 13px;
  }

  .space-hero__signature {
    margin-top: 24px;
  }

  .command-center__stage {
    height: 340px;
  }

  .command-center__detail {
    min-height: 165px;
  }

  .command-center__destinations button {
    min-height: 44px;
    font-size: 11px;
  }

  .space-hero__footer {
    margin-top: 28px;
  }

  .space-hero__footer > span:last-child {
    display: none;
  }

  .space-scan {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .space-launcher {
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 15px;
    padding: 5px 12px 5px 6px;
  }

  .space-launcher kbd {
    display: none;
  }

  .space-dialog {
    padding: 18px;
  }

  .space-dialog__top h2 {
    font-size: 22px;
  }

  .space-dialog .command-center__stage {
    height: min(310px, 42dvh);
    min-height: 250px;
  }

  .space-dialog__footer span:last-child {
    display: none;
  }

  .space-intro[open] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 70px 24px 65px;
  }

  .space-intro__scene {
    height: min(42dvh, 380px);
    min-height: 150px;
  }

  .space-intro__copy {
    padding: 0;
    text-align: center;
  }

  .space-intro__copy .space-eyebrow {
    justify-content: center;
    font-size: 8px;
  }

  .space-intro__copy h2 {
    font-size: clamp(35px, 10vw, 54px);
    margin: 12px 0;
  }

  .space-intro__copy .space-primary {
    margin-top: 18px;
  }

  .space-intro__copy > p:not(.space-eyebrow) {
    font-size: 12px;
  }

  .space-intro__bottom {
    font-size: 7px;
    bottom: 12px;
  }

  .space-intro__top {
    font-size: 9px;
    top: 12px;
  }
}

@media (max-width: 380px) {
  .space-nav-trigger {
    padding: 5px 7px;
    font-size: 11px;
  }

  .space-hero__actions {
    display: grid;
  }

  .space-hero__actions a {
    justify-content: space-between;
  }

  .command-center__stage {
    height: 310px;
  }

  .command-center__destinations button {
    font-size: 10px;
    gap: 4px;
  }

  .command-center__destinations button span {
    display: none;
  }

  .space-dialog {
    padding: 12px;
  }

  .space-scan__controls {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-primary,
  .space-secondary,
  .space-poster,
  .command-center__stage canvas,
  .space-intro__scene canvas {
    transition: none;
  }
}
