/* A spatial opening; the rest of the approved studio remains in its paper palette. */
.spatial {
  --header-height: 78px;
  --scene-ink: #faf3e9;
  --scene-accent: #e6bb8d;
  position: relative;
  height: calc(100svh - var(--header-height));
  background: #101c2d;
  color: var(--scene-ink);
  isolation: isolate;
  scroll-margin-top: 72px;
}
.spatial-view {
  height: calc(100svh - var(--header-height));
  min-height: 580px;
  position: relative;
  top: 0;
  overflow: clip;
  background: #101c2d;
}
#spatial-canvas,
.spatial-fallback,
.spatial-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#spatial-canvas {
  opacity: 0;
  transition: opacity 0.8s;
}
.spatial-ready #spatial-canvas {
  opacity: 1;
}
.spatial-fallback {
  background: url('/studio-20260913/assets/nordoyane/kveldslys-2560.webp') center/cover;
  opacity: 0.55;
}
.spatial-ready .spatial-fallback {
  visibility: hidden;
}
.spatial-shade {
  background:
    linear-gradient(90deg, #0b1527a8 0%, #0b15274d 24%, transparent 58%),
    linear-gradient(0deg, #0d192be6 0%, transparent 24%, transparent 86%, #0d192b30);
  z-index: 1;
}
.spatial-topline {
  position: absolute;
  top: 27px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  color: #d7dce5;
  z-index: 3;
  font:
    9px/1.5 Inter,
    sans-serif;
  letter-spacing: 0.19em;
}
.spatial-topline span:last-child {
  color: var(--scene-accent);
  font-variant-numeric: tabular-nums;
}
.spatial-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-51%);
  left: 5%;
  width: 41%;
  max-width: 620px;
  z-index: 3;
  pointer-events: none;
  opacity: var(--arrival, 1);
}
.spatial-eyebrow {
  font:
    9px/1.5 Inter,
    sans-serif;
  letter-spacing: 0.11em;
  color: var(--scene-accent);
  margin: 0 0 25px;
}
#spatial-title {
  font-family: var(--display, 'Newsreader', Georgia, serif);
  font-size: clamp(62px, 6.9vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.047em;
  font-weight: 400;
  color: var(--scene-ink);
  margin: 0 0 27px;
  text-wrap: balance;
}
#spatial-title em {
  font-weight: 400;
  color: var(--scene-accent);
}
.spatial-description {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.8;
  color: #d8dde6;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.spatial-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: fit-content;
  min-width: 222px;
  min-height: 48px;
  border-bottom: 1px solid #dfbe9477;
  color: var(--scene-ink);
  font-size: 12px;
  pointer-events: auto;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.spatial-action span {
  font-size: 22px;
  color: var(--scene-accent);
  transition: transform 0.2s;
}
.spatial-action:hover {
  color: var(--scene-accent);
  border-color: var(--scene-accent);
}
.spatial-action:hover span {
  transform: translate(3px, -3px);
}
.spatial-shortcut {
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
  min-height: 44px;
  font-size: 10px;
  color: #c0c9d7;
  pointer-events: auto;
}
.spatial-shortcut:hover {
  color: #fff;
}
.spatial-caption {
  position: absolute;
  right: 6%;
  bottom: 126px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
  text-align: right;
}
.spatial-caption-rule {
  width: 40px;
  height: 1px;
  background: #e6bb8d99;
  margin-top: 9px;
}
.spatial-caption strong {
  display: block;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--scene-ink);
}
.spatial-caption div > span {
  display: block;
  font-size: 9px;
  margin-top: 9px;
  letter-spacing: 0.025em;
  color: #c0cad8;
}
.spatial-explore {
  position: absolute;
  right: 5%;
  top: 62px;
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 15px;
  min-height: 42px;
  background: #101c2d66;
  border: 1px solid #c6b18c55;
  border-radius: 2px;
  color: #ead9c2;
  font:
    10px Inter,
    sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.spatial-explore > span {
  font-size: 20px;
  line-height: 1;
}
.spatial-explore:hover {
  background: #ead9c21a;
  border-color: #c6b18ca6;
}
.spatial-drag-hint {
  position: absolute;
  left: 5%;
  top: 70px;
  z-index: 3;
  font-size: 11px;
  color: #d8dfeb;
  opacity: 0;
  pointer-events: none;
}
.spatial-drag-hint span {
  color: #9dacc1;
  margin-left: 8px;
}
.spatial.is-exploring .spatial-copy {
  opacity: 0;
  visibility: hidden;
}
.spatial.is-exploring .spatial-drag-hint {
  opacity: 1;
}
.spatial.is-exploring .spatial-shade {
  background: linear-gradient(0deg, #0d192bcc, transparent 25%);
}
.spatial.is-exploring .spatial-caption {
  left: 5%;
  right: auto;
  text-align: left;
}
.spatial.is-exploring .spatial-view {
  cursor: grab;
  touch-action: pan-y;
}
.spatial.is-exploring .spatial-view:active {
  cursor: grabbing;
}
.spatial[data-fallback] .spatial-explore {
  display: none;
}
.spatial[data-fallback] .spatial-shade {
  background:
    linear-gradient(90deg, #0b1527fa 0%, #0b1527e6 27%, #0b152799 57%, #0b152733),
    linear-gradient(0deg, #0d192bf0, transparent 50%);
}
.spatial-bottom {
  position: absolute;
  bottom: 25px;
  left: 5%;
  right: 5%;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.spatial-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.spatial-hint > span {
  font-size: 25px;
  color: var(--scene-accent);
}
.spatial-hint p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
  color: #eef0f4;
}
.spatial-hint small {
  display: block;
  font-size: 9px;
  color: #a7b5c8;
  margin-top: 4px;
}
.spatial-stops {
  display: flex;
  gap: 24px;
}
.spatial-stops button {
  color: #a9b7cc;
  background: none;
  border: none;
  border-top: 1px solid #75849b66;
  font-family: Inter, sans-serif;
  font-size: 10px;
  min-height: 51px;
  min-width: 68px;
  text-align: left;
  padding: 8px 0 0;
  cursor: pointer;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.spatial-stops button span {
  display: block;
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.spatial-stops button[aria-current],
.spatial-stops button:hover {
  color: #fff;
  border-color: var(--scene-accent);
}
.spatial-stops button[aria-current] span {
  color: var(--scene-accent);
}
.spatial-tools {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex: 1;
}
.spatial-tools button {
  padding: 0;
  border: 0;
  background: none;
  color: #bfccdd;
  font:
    10px Inter,
    sans-serif;
  min-height: 44px;
  cursor: pointer;
  white-space: nowrap;
}
.spatial-tools button:hover {
  color: white;
}
.spatial-tools button > span {
  margin-left: 5px;
}
.spatial-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #c0d2e815;
  z-index: 5;
}
.spatial-progress i {
  display: block;
  background: var(--scene-accent);
  height: 100%;
  width: 0;
  will-change: width;
}
.spatial :is(button, a):focus-visible {
  outline: 2px solid #f1caa0;
  outline-offset: 6px;
  border-radius: 2px;
}
.spatial-copy.is-changing {
  animation: spatial-copy-in 0.5s ease both;
}
@keyframes spatial-copy-in {
  from {
    translate: 0 10px;
  }
  to {
    translate: 0 0;
  }
}
.spatial.is-travel {
  height: calc(100svh - var(--header-height) + 3600px);
}
.spatial.is-travel .spatial-view {
  position: sticky;
  top: var(--header-height);
}
.spatial.is-still {
  height: calc(100svh - 72px);
}
.spatial.is-still .spatial-view {
  position: relative;
  top: 0;
}
.spatial.is-still .spatial-hint > span {
  display: none;
}
@media (min-width: 1600px) {
  .spatial-copy {
    left: 7%;
  }
  .spatial-caption {
    right: 9%;
  }
}
@media (max-width: 1100px) {
  .spatial-stops {
    gap: 16px;
  }
  .spatial-hint small {
    display: none;
  }
  .spatial-tools {
    gap: 10px;
  }
  .spatial-tools button > span {
    display: none;
  }
  .spatial-copy {
    width: 45%;
  }
  .spatial-caption {
    right: 5%;
  }
}
@media (max-width: 700px) {
  .spatial[data-fallback] .spatial-shade {
    background: linear-gradient(180deg, #0b1527fa 0%, #0b1527df 40%, #0b152755 63%, #0b1527ee);
  }
  .spatial,
  .spatial.is-travel {
    height: calc(100svh - var(--header-height) + 3600px);
  }
  .spatial.is-travel .spatial-view {
    position: sticky;
    top: var(--header-height);
  }
  .spatial.is-still {
    height: calc(100svh - var(--header-height));
    min-height: 700px;
    scroll-margin-top: var(--header-height);
  }
  .spatial-view {
    height: calc(100svh - var(--header-height));
    min-height: 700px;
    top: 0;
    position: relative;
  }
  .spatial-topline {
    top: 19px;
    left: 6%;
    right: 6%;
    font-size: 8px;
  }
  .spatial-copy {
    left: 6%;
    top: 62px;
    transform: none;
    width: 88%;
    max-width: none;
  }
  .spatial-eyebrow {
    font-size: 8px;
    margin-bottom: 14px;
  }
  #spatial-title {
    font-size: clamp(48px, 12vw, 74px);
    letter-spacing: -0.045em;
    margin-bottom: 13px;
    line-height: 0.95;
  }
  #spatial-title br {
    display: none;
  }
  #spatial-title em {
    display: block;
  }
  .spatial-description {
    font-size: 11px;
    line-height: 1.65;
    max-width: 300px;
    margin-bottom: 4px;
  }
  .spatial-action {
    min-height: 39px;
    min-width: 185px;
    font-size: 10px;
    display: inline-flex;
  }
  .spatial-action span {
    font-size: 18px;
  }
  .spatial-shortcut {
    min-height: 38px;
    font-size: 9px;
    display: inline-flex;
    margin-left: 18px;
    gap: 8px;
  }
  .spatial-shade {
    background: linear-gradient(
      0deg,
      #0d192bf7 0%,
      #0d192b77 12%,
      transparent 28%,
      transparent 52%,
      #0d192b44 75%,
      #0d192b88
    );
  }
  .spatial-caption {
    right: 6%;
    bottom: 111px;
  }
  .spatial-caption strong {
    font-size: 21px;
  }
  .spatial-caption div > span {
    font-size: 8px;
    margin-top: 6px;
  }
  .spatial-caption-rule {
    width: 23px;
  }
  .spatial-explore {
    top: auto;
    bottom: 173px;
    right: 6%;
    font-size: 9px;
    min-height: 38px;
    padding: 0 12px;
  }
  .spatial.is-exploring .spatial-explore {
    top: 58px;
    bottom: auto;
  }
  .spatial-drag-hint {
    top: 110px;
    left: 6%;
    font-size: 10px;
  }
  .spatial-drag-hint span {
    display: none;
  }
  .spatial-bottom {
    left: 6%;
    right: 6%;
    bottom: 20px;
    gap: 14px;
    align-items: end;
  }
  .spatial-hint {
    display: none;
  }
  .spatial-stops {
    flex: 1;
    justify-content: space-between;
    gap: 12px;
  }
  .spatial-stops button {
    min-width: 0;
    flex: 1;
    font-size: 9px;
    min-height: 48px;
  }
  .spatial-tools {
    flex: 0;
    gap: 4px;
  }
  .spatial-tools button {
    min-width: 26px;
    font-size: 14px;
  }
  #spatial-replay {
    display: none;
  }
}
@media (max-width: 700px) and (max-height: 780px) {
  .spatial.is-still,
  .spatial-view {
    min-height: 660px;
  }
}
@media (max-width: 370px) {
  .spatial-shortcut {
    margin-left: 0;
  }
  .spatial-shade {
    background: linear-gradient(
      0deg,
      #0d192bf7 0%,
      #0d192b77 12%,
      transparent 30%,
      #0d192b88 55%,
      #0d192bf5 70%,
      #0d192b
    );
  }
}
@media (prefers-reduced-motion: reduce) {
  .spatial-drag-hint {
    display: none;
  }
  .spatial-copy.is-changing {
    animation: none;
  }
  #spatial-canvas {
    transition: none;
  }
  .spatial * {
    scroll-behavior: auto !important;
  }
}
