/* A bounded, illustrated world: camera, occlusion, atmosphere and original memories. */
.world {
  height: 195svh;
  position: relative;
  background: #0c1928;
  color: #fff8df;
  isolation: isolate;
}
.world-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: clip;
  background: #0d2234;
  isolation: isolate;
}
.world-viewport,
.world-fallback,
.world-shade,
.world-wipe {
  position: absolute;
  inset: 0;
}
.world-viewport {
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -5px !important;
}
.world-viewport.is-dragging {
  cursor: grabbing;
}
#world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s;
}
.world.is-ready #world-canvas {
  opacity: 1;
}
.world-fallback {
  background: url("assets/world/cloud-library.webp") center/cover;
  transform: scale(1.03);
  transition: background-image 0.8s;
}
.world-pin[data-world-scene="1"] .world-fallback {
  background-image: url("assets/world/moon-forest.webp");
}
.world-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #1028359e, transparent 48%),
    linear-gradient(
      0deg,
      #061824f5,
      transparent 32%,
      transparent 72%,
      #091d3278
    );
}
.world-topline {
  position: absolute;
  z-index: 3;
  top: 113px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eff7e852;
  font:
    12px Georgia,
    var(--serif);
  letter-spacing: 0.14em;
  pointer-events: none;
}
.world-title-block {
  position: absolute;
  z-index: 3;
  left: 7.7%;
  top: 25%;
  pointer-events: none;
  transition:
    opacity 0.6s,
    transform 0.8s var(--ease);
  opacity: var(--world-copy, 1);
  transform: translateY(calc(var(--world-progress, 0) * -60px));
}
.world-eyebrow {
  font:
    11px Georgia,
    serif;
  letter-spacing: 0.27em;
  margin-bottom: 22px;
  color: #e0d1a4;
}
.world-title-block h2 {
  font: 500 clamp(54px, 5.9vw, 91px) / 1.38 var(--serif);
  letter-spacing: 0.09em;
  text-shadow: 0 2px 32px #182a3777;
}
.world-title-block h2 em {
  padding-left: 0.8em;
  color: #f5e1b3;
}
.world-sentence {
  font: 16px/2 var(--serif);
  letter-spacing: 0.09em;
  margin-top: 28px;
  color: #fbf4e9;
}
.world-title-block.is-changing {
  opacity: 0;
  transform: translateY(30px);
}
.world-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.world-hotspot {
  position: absolute;
  top: 42%;
  left: 56%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, -50%);
  font: 14px var(--serif);
  letter-spacing: 0.1em;
  pointer-events: auto;
  white-space: nowrap;
  text-shadow: 0 1px 5px #000;
}
.world-hotspot:nth-child(2) {
  top: 64%;
  left: 71%;
}
.world-hotspot i {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #fff9dc88;
  border-radius: 50%;
  background: #182d4159;
  box-shadow: 0 0 0 8px #eef8e510;
  font:
    20px Georgia,
    serif;
  transition:
    transform 0.5s,
    background 0.5s;
}
.world-hotspot:hover i,
.world-hotspot:focus-visible i {
  transform: rotate(90deg);
  background: #c9af70dd;
  color: #0b2035;
}
.world-hotspot span {
  background: #12283d59;
  padding: 7px 10px;
  border-bottom: 1px solid #e8dbb64a;
}
.world-portal {
  position: absolute;
  z-index: 4;
  left: 79%;
  top: 54%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 70px 15px 15px;
  min-width: 170px;
  text-shadow: 0 1px 7px #04192f;
}
.world-portal > span {
  font: 12px var(--serif);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 8px;
}
.world-portal b {
  font: 500 21px var(--serif);
  letter-spacing: 0.12em;
  border-bottom: 1px solid #f4e8b8;
  padding-bottom: 6px;
  display: inline-block;
}
.world-portal i {
  font:
    23px Georgia,
    serif;
  display: inline-block;
  transition: translate 0.5s;
}
.world-portal:hover i {
  translate: 5px -5px;
}
.world.is-flying .world-portal,
.world.is-flying .world-hotspots,
.world.is-flying .world-title-block {
  opacity: 0;
  pointer-events: none;
}
.world-wipe {
  z-index: 7;
  pointer-events: none;
  background: #061625;
  opacity: var(--world-wipe, 0);
}
.world-compass {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 177px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
  opacity: 0.75;
  font:
    10px Georgia,
    serif;
  letter-spacing: 0.1em;
}
.world-compass i {
  height: 1px;
  width: 23px;
  background: #f2ecdf66;
}
.world-compass b {
  font-weight: 400;
  color: #e9d6a4;
}
.world-compass small {
  position: absolute;
  top: 24px;
  width: 160px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.25em;
}
.world-bottom {
  position: absolute;
  bottom: 39px;
  left: 5.5%;
  right: 5.5%;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 19px 40px;
  align-items: center;
  pointer-events: none;
}
.world-bottom button,
.world-bottom input,
.world-bottom a {
  pointer-events: auto;
}
.world-scenes {
  display: flex;
  gap: 25px;
}
.world-scenes button {
  font: 16px var(--serif);
  color: #e7edf6a6;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0 13px;
  border-bottom: 1px solid #b5c6d333;
  transition:
    color 0.5s,
    border-color 0.5s;
  white-space: nowrap;
}
.world-scenes button[aria-pressed="true"] {
  color: #fff0c7;
  border-color: #dfc68d;
}
.world-scenes button > span {
  font:
    11px Georgia,
    serif;
  color: #ceb982;
}
.world-controls {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
}
.world-controls button {
  font: 12px var(--serif);
  padding: 8px 0;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.world-controls button:hover {
  color: #f6ce75;
}
.world-sound[aria-pressed="true"] {
  color: #edce90;
}
.world-distance {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 12px var(--serif);
  color: #e7edf6a6;
  white-space: nowrap;
}
.world-distance input {
  width: 105px;
  height: 3px;
  accent-color: #f1d69a;
  cursor: ew-resize;
}
#world-help {
  font: 12px/1.8 var(--serif);
  color: #e3e7eaba;
  letter-spacing: 0.07em;
}
.world-continue {
  justify-self: end;
  font: 13px var(--serif);
  letter-spacing: 0.14em;
}
.world-continue span {
  padding-left: 15px;
}
.world-memory {
  position: absolute;
  z-index: 9;
  right: 6%;
  top: 24%;
  width: 355px;
  background: #eeeede;
  color: #203749;
  box-shadow: 0 30px 80px #04122066;
  padding: 25px;
  animation: world-memory-in 0.7s var(--ease);
  transform: rotate(1deg);
}
.world-memory-close {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 34px;
  height: 34px;
  font:
    26px Georgia,
    serif;
  z-index: 1;
}
.world-memory > span {
  display: block;
  font:
    9px Georgia,
    serif;
  letter-spacing: 0.13em;
  padding: 3px 16px 20px 0;
}
.world-memory img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.world-memory h3 {
  font: 24px var(--serif);
  margin: 20px 0 12px;
  letter-spacing: 0.1em;
}
.world-memory p {
  font: 14px/1.9 var(--serif);
  color: #4e6469;
}
.world-memory:after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid #f3e5be88;
  pointer-events: none;
}
@keyframes world-memory-in {
  from {
    opacity: 0;
    transform: translateY(25px) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(1deg);
  }
}
.world-pin:fullscreen {
  position: fixed;
  width: 100vw;
  height: 100svh;
  min-height: 0;
}
.world-pin:fullscreen .world-topline {
  top: 35px;
}
.world-pin:fullscreen .world-compass {
  top: 97px;
}
.world.is-unavailable .world-portal {
  padding-top: 25px;
  background: #1026389e;
  border: 1px solid #dacd9b88;
  border-radius: 100%;
  width: 170px;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 761px) and (max-width: 1150px) {
  .world-controls {
    gap: 12px;
  }
  .world-distance input {
    width: 68px;
  }
  .world-bottom {
    gap: 15px 25px;
  }
  .world-scenes {
    gap: 18px;
  }
  .world-scenes button {
    font-size: 14px;
  }
  .world-reset {
    display: none;
  }
  .world-title-block {
    left: 6%;
  }
  .world-title-block h2 {
    font-size: 58px;
  }
  .desktop-nav {
    gap: 18px;
  }
}
@media (max-width: 760px) {
  .world {
    height: 170svh;
  }
  .world-pin {
    min-height: 0;
    height: 100svh;
  }
  .world-topline {
    top: 90px;
    left: 7%;
    right: 7%;
    font-size: 10px;
    padding-bottom: 15px;
  }
  .world-compass {
    top: 148px;
    font-size: 8px;
    gap: 12px;
  }
  .world-compass i {
    width: 17px;
  }
  .world-compass small {
    font-size: 6px;
    top: 17px;
  }
  .world-title-block {
    left: 8%;
    top: 23%;
  }
  .world-eyebrow {
    font-size: 8px;
    margin-bottom: 16px;
  }
  .world-title-block h2 {
    font-size: 43px;
    letter-spacing: 0.07em;
  }
  .world-sentence {
    font-size: 12px;
    margin-top: 20px;
    line-height: 1.9;
  }
  .world-shade {
    background:
      linear-gradient(90deg, #0a223788, transparent 80%),
      linear-gradient(
        0deg,
        #061824 3%,
        transparent 47%,
        transparent 71%,
        #091d3266
      );
  }
  .world-hotspot {
    font-size: 11px;
    gap: 8px;
  }
  .world-hotspot i {
    width: 29px;
    height: 29px;
    box-shadow: 0 0 0 5px #e7f7ea10;
    font-size: 17px;
  }
  .world-hotspot span {
    padding: 5px 7px;
  }
  .world-portal {
    min-width: 132px;
    padding: 42px 8px 8px;
    left: 76%;
    top: 53%;
  }
  .world-portal > span {
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .world-portal b {
    font-size: 16px;
  }
  .world-portal i {
    font-size: 18px;
  }
  .world-bottom {
    bottom: 23px;
    left: 7%;
    right: 7%;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .world-scenes {
    justify-content: space-between;
    gap: 18px;
  }
  .world-scenes button {
    font-size: 15px;
    gap: 13px;
    padding-bottom: 12px;
    flex: 1;
  }
  .world-controls {
    justify-content: space-between;
    gap: 12px;
  }
  .world-controls button {
    font-size: 11px;
  }
  .world-distance {
    font-size: 10px;
    gap: 6px;
  }
  .world-distance input {
    width: 80px;
  }
  .world-reset {
    display: none;
  }
  #world-help {
    font-size: 10px;
    max-width: 80%;
    line-height: 1.9;
  }
  .world-continue {
    position: absolute;
    right: 0;
    bottom: 4px;
    font-size: 11px;
  }
  .world-continue span {
    padding-left: 4px;
  }
  .world-memory {
    width: calc(100% - 48px);
    right: 24px;
    top: 20%;
    max-width: 360px;
    padding: 22px;
    transform: none;
  }
  .world-memory h3 {
    font-size: 23px;
  }
  .world-memory p {
    font-size: 13px;
  }
  .world-memory > span {
    font-size: 9px;
  }
  .world-memory img {
    aspect-ratio: 16/9;
  }
  .world-pin:fullscreen .world-compass {
    top: 95px;
  }
}
@media (max-width: 760px) and (max-height: 720px) {
  .world-title-block {
    top: 24%;
  }
  .world-title-block h2 {
    font-size: 34px;
  }
  .world-eyebrow {
    margin-bottom: 11px;
  }
  .world-sentence {
    display: none;
  }
  .world-bottom {
    gap: 8px;
    bottom: 15px;
  }
  .world-topline {
    top: 83px;
  }
  .world-compass {
    top: 133px;
  }
  .world-memory {
    top: 16%;
    padding: 20px;
  }
  .world-memory h3 {
    margin: 12px 0 8px;
  }
  .world-memory p {
    font-size: 12px;
  }
  .world-hotspot span {
    display: none;
  }
  .world-portal {
    padding-top: 30px;
  }
}
@media (max-height: 600px) and (min-width: 761px) {
  .world {
    height: auto;
  }
  .world-pin {
    position: relative;
    height: 760px;
    min-height: 0;
  }
  .world-pin:fullscreen {
    height: 100svh;
  }
  .world-pin:fullscreen .world-title-block {
    top: 21%;
  }
  .world-pin:fullscreen .world-title-block h2 {
    font-size: 37px;
  }
  .world-pin:fullscreen .world-sentence {
    display: none;
  }
  .world-pin:fullscreen .world-bottom {
    bottom: 16px;
  }
  .world-pin:fullscreen .world-memory {
    top: 15%;
    width: 300px;
    padding: 20px;
  }
}
.motion-paused .world-memory {
  animation: none;
}
.motion-paused #world-canvas {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .world * {
    animation: none !important;
    transition: none !important;
  }
}
.no-js .world {
  height: auto;
}
.no-js .world-pin {
  position: relative;
}
.no-js .world-viewport,
.no-js .world-hotspots,
.no-js .world-portal,
.no-js .world-controls {
  display: none;
}

.world.is-ready .world-hotspot,
.world.is-ready .world-portal {
  left: 0;
  top: 0;
}
