:root {
  color-scheme: dark;
  --bg: #15181d;
  --accent: #e0a800;
  --nav-safe-zone: calc(3.5vh + 60px);
  --breadcrumb-safe-zone: calc(3.5vh + 30px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

button {
  color: inherit;
  font: inherit;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

body.is-ready #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__mark {
  width: 2.75rem;
  height: 2.75rem;
  transform: rotate(-90deg);
}

.preloader__mark circle {
  fill: none;
  stroke: #1c272e;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: complete-circle 1100ms cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

#space {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(40, 48, 57, 0.17), transparent 44%),
    var(--bg);
  touch-action: none;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: calc(3.5vh + 90px);
  pointer-events: none;
}

.nav-left {
  position: absolute;
  top: 3.5vh;
  left: 3vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

.nav-label {
  height: 13px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.navBtn {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 200ms ease;
  pointer-events: auto;
}

.navBtn svg {
  display: block;
  width: 54px;
  height: 54px;
  transform: scale(0.8);
  transform-origin: center;
}

.navBtn.logo svg {
  width: 70px;
  height: 70px;
}

.navBtn svg .st0,
.navBtn .tl-arc,
.navBtn .tl-hand,
.navBtn .ws-fill,
.navBtn .contact-fill,
.navBtn .font-letter {
  fill: #fff;
}

.navBtn .cell-outer {
  fill: #fff;
  transition: fill 200ms ease;
}

.navBtn .cell-inner {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-miterlimit: 10;
  transition:
    stroke 200ms ease,
    stroke-width 200ms ease;
}

.navBtn .ws-stroke,
.navBtn .contact-stroke,
.navBtn .font-frame {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  stroke-miterlimit: 10;
}

.navBtn .font-letter {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
}

.navBtn:not(.cell-active):hover {
  opacity: 1;
}

.navBtn:not(.cell-active):hover svg .st0,
.navBtn:not(.cell-active):hover .tl-arc,
.navBtn:not(.cell-active):hover .tl-hand,
.navBtn:not(.cell-active):hover .ws-fill,
.navBtn:not(.cell-active):hover .contact-fill,
.navBtn:not(.cell-active):hover .font-letter,
.navBtn:not(.cell-active):hover .cell-outer {
  fill: var(--accent);
}

.navBtn:not(.cell-active):hover .cell-inner,
.navBtn:not(.cell-active):hover .ws-stroke,
.navBtn:not(.cell-active):hover .contact-stroke,
.navBtn:not(.cell-active):hover .font-frame {
  stroke: var(--accent);
}

.navBtn.cell-active {
  opacity: 1;
  cursor: default;
}

.navBtn.cell-active .cell-inner {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.navBtn.logo {
  position: absolute;
  top: 3.5vh;
  left: 0;
  right: 0;
  width: 70px;
  margin: 0 auto;
  opacity: 0.7;
  transform: translateY(calc((54px - 70px) / 2));
  pointer-events: auto;
}

.navBtn.logo:hover {
  opacity: 1;
}

.navBtn.logo:hover svg .st0 {
  fill: var(--accent);
}

body.is-fullscreen .top-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

.recent-nav {
  position: fixed;
  bottom: 3.5vh;
  left: 3vw;
  right: 3vw;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 300ms ease,
    visibility 0s linear 300ms;
}

.recent-nav[hidden] {
  display: none;
}

body.is-ready .recent-nav {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

body.is-fullscreen .recent-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

.recent-nav__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.8px;
  padding: 4px 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  opacity: 0.3;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.recent-nav__item:hover,
.recent-nav__item.is-active {
  color: var(--accent);
  opacity: 1;
}

.recent-nav__item:focus-visible {
  color: #fff;
  opacity: 1;
}

.recent-nav__mark {
  display: block;
  width: 9.6px;
  height: 9.6px;
  overflow: visible;
}

.recent-nav__mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.recent-nav__separator {
  width: 3.2px;
  height: 3.2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
}

#space::after {
  position: absolute;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, transparent 52%, rgba(0, 0, 0, 0.42) 120%);
}

#stage {
  position: relative;
  width: auto;
  height: min(calc(100vh - var(--nav-safe-zone) - var(--breadcrumb-safe-zone)), 56.25vw);
  aspect-ratio: 16 / 9;
  isolation: isolate;
  transform: translateY(calc((var(--nav-safe-zone) - var(--breadcrumb-safe-zone)) / 2));
}

#rotate-device {
  display: none;
}

.node {
  --x: 50;
  --y: 50;
  --tx: 0%;
  --ty: 0%;
  --size: 50;
  --scale: 1;
  --depth: 0;
  --visibility: 1;
  --shade: 0;
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1px;
  outline: 0;
  background: var(--bg);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
  cursor: default;
  opacity: var(--visibility);
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale));
  transform-origin: center;
  transition:
    transform 440ms cubic-bezier(0.22, 0.72, 0.18, 1),
    opacity 360ms ease;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
}

.node__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: calc(1 - var(--preview-shade, var(--shade)));
  transition: opacity 440ms ease;
  will-change: opacity;
}

.node[aria-hidden="true"] {
  pointer-events: none;
}

.node.is-focus {
  z-index: 100;
  cursor: default;
}

.node[data-depth="1"] {
  z-index: 70;
  --shade: 0.75;
}

.node[data-depth="2"] {
  z-index: 40;
  --shade: 0.84;
}

.node[data-depth="3"] {
  z-index: 10;
  --shade: 0.9;
}

.node[data-depth="4"] {
  z-index: 5;
  --shade: 0.95;
}

/* The invisible perimeter already uses the final visible shading, preventing
   a brightness flash while it moves into depth 4. */
.node[data-depth="5"] {
  --shade: 0.95;
}

.node:focus-visible {
  box-shadow: 0 0 0 1px rgba(197, 231, 235, 0.72), 0 24px 64px rgba(0, 0, 0, 0.45);
}

.node__media,
.node__content,
.node__loader {
  position: absolute;
  inset: 0;
}

.node__media {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop, 50% 50%);
  opacity: 0;
  transform: none;
  transition: opacity 380ms ease;
}

.node.is-media-loaded .node__media {
  opacity: 1;
}

.node--blend {
  --blend: 0;
  touch-action: none;
}

.node.is-media-loaded .node__media--blend {
  z-index: 2;
  opacity: var(--blend);
  transition: opacity 1s cubic-bezier(0.22, 0.72, 0.18, 1);
  will-change: opacity;
}

.node__media.is-media-failed {
  display: none;
}

.node--video .node__media {
  transform: none;
}

.node__video-panel {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.node__video-panel--nw {
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
}

.node__video-panel--ne {
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
}

.node__video-panel--sw {
  bottom: 0;
  left: 0;
  width: 50%;
  height: 50%;
}

.node__video-panel--se {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 50%;
}

.node__video-panel--full {
  inset: 0;
}

.node__video-panel--left-half {
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
}

.node__video-panel--right-half {
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}

.node__video-panel--right-portrait {
  top: 0;
  right: 0;
  width: 42.1875%;
  height: 100%;
}

.node__video-panel.is-playing {
  opacity: 1;
}

.node__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--video-fit, fill);
  transform: none;
}

.node__loader {
  z-index: 5;
  display: grid;
  place-items: center;
  background: #171c22;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 280ms ease,
    visibility 0s linear 280ms;
}

.node.is-media-loaded .node__loader,
.node.is-media-error .node__loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.node__loader .preloader__mark {
  width: clamp(2rem, 4vw, 2.75rem);
  height: clamp(2rem, 4vw, 2.75rem);
}

.node__content {
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.6rem, 2.2vw, 2.1rem);
  text-align: left;
  background: linear-gradient(0deg, rgba(4, 8, 11, 0.82), transparent 68%);
}

.node__content--text {
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(51, 62, 71, 0.28), transparent 62%),
    #151a20;
}

.node__eyebrow {
  margin: 0;
  color: rgba(205, 220, 224, 0.42);
  font-size: clamp(0.42rem, 0.65vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.node__title {
  display: block;
  max-width: 19ch;
  margin: 0;
  color: rgba(235, 240, 241, 0.9);
  font-size: clamp(0.65rem, 1.45vw, 1.6rem);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.node__caption {
  display: block;
  max-width: 26ch;
  margin: 0.5em 0 0;
  color: rgba(209, 219, 221, 0.5);
  font-size: clamp(0.43rem, 0.7vw, 0.76rem);
  font-weight: 400;
  line-height: 1.35;
}

.node:not(.is-focus) .node__content {
  opacity: 0.72;
}

.node[data-depth="2"] .node__content,
.node[data-depth="3"] .node__content,
.node[data-depth="4"] .node__content {
  opacity: 0;
}

#space.is-fullscreen #stage {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  transform: none;
}

#space.is-fullscreen::after {
  opacity: 0;
}

#space.is-fullscreen .node:not(.is-focus) {
  opacity: 0 !important;
  pointer-events: none;
}

#space.is-fullscreen .node.is-focus {
  --x: 50 !important;
  --y: 50 !important;
  --size: 100 !important;
  --scale: 1 !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  cursor: default;
  transform: translate3d(0, 0, 0);
}

#space.is-fullscreen .node.is-focus .node__media {
  object-fit: contain;
  transform: none;
}

#space.is-fullscreen .node.is-focus .node__video-panel--nw {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  left: calc((100vw - min(100vw, 177.7778vh)) / 2);
  width: min(50vw, 88.8889vh);
  height: min(28.125vw, 50vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--ne {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  left: 50vw;
  width: min(50vw, 88.8889vh);
  height: min(28.125vw, 50vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--sw {
  top: 50vh;
  left: calc((100vw - min(100vw, 177.7778vh)) / 2);
  width: min(50vw, 88.8889vh);
  height: min(28.125vw, 50vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--se {
  top: 50vh;
  left: 50vw;
  width: min(50vw, 88.8889vh);
  height: min(28.125vw, 50vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--full {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  left: calc((100vw - min(100vw, 177.7778vh)) / 2);
  width: min(100vw, 177.7778vh);
  height: min(56.25vw, 100vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--left-half {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  left: calc((100vw - min(100vw, 177.7778vh)) / 2);
  width: min(50vw, 88.8889vh);
  height: min(56.25vw, 100vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--right-half {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  left: 50vw;
  width: min(50vw, 88.8889vh);
  height: min(56.25vw, 100vh);
}

#space.is-fullscreen .node.is-focus .node__video-panel--right-portrait {
  top: calc((100vh - min(56.25vw, 100vh)) / 2);
  right: calc((100vw - min(100vw, 177.7778vh)) / 2);
  width: min(42.1875vw, 75vh);
  height: min(56.25vw, 100vh);
}

#space.is-fullscreen .node.is-focus .node__content {
  opacity: 0;
}

#space.is-arriving .node.is-focus {
  animation: breathe 1500ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes breathe {
  0% {
    transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale));
    opacity: 0.5;
  }
  100% {
    transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale));
    opacity: 1;
  }
}

@keyframes complete-circle {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.45;
  }
  78% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  90% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@media (orientation: portrait) and (max-width: 820px) {
  .recent-nav {
    display: none;
  }

  .top-nav {
    height: calc(2.5vh + 70px);
  }

  .nav-left {
    top: 2.5vh;
    left: 4vw;
  }

  .nav-icons {
    gap: 16px;
  }

  .navBtn svg {
    width: 38px;
    height: 38px;
  }

  .navBtn.logo svg {
    width: 48px;
    height: 48px;
  }

  .navBtn.logo {
    top: 2.5vh;
    width: 48px;
    transform: translateY(calc((38px - 48px) / 2));
  }

  #stage {
    visibility: hidden;
  }

  #rotate-device {
    position: absolute;
    inset: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: rgba(220, 230, 232, 0.48);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .rotate-device__icon {
    width: 2.8rem;
    height: 1.65rem;
    border: 1px solid rgba(220, 230, 232, 0.42);
    border-radius: 0.22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .node,
  .node__visual,
  .node__media,
  .node__video-panel {
    transition-duration: 1ms;
  }

  .preloader__mark circle {
    animation: none;
    stroke-dashoffset: 25;
  }

  #space.is-arriving .node.is-focus {
    animation: none;
  }
}
