/* Layer transforms are separate from the ship's continuous rocking animation. */
.hero {
  --hero-scroll: 0px;
  --pointer-x: 0px;
  --pointer-y: 0px;
}
.scene-backdrop {
  transform: translate3d(
      calc(var(--pointer-x) * -0.3),
      calc(var(--hero-scroll) * 0.16),
      0
    )
    scale(1.06);
}
.ship-layer {
  transform: translate3d(
    var(--pointer-x),
    calc(var(--hero-scroll) * 0.34 + var(--pointer-y)),
    0
  );
}
.hero-content {
  transform: translate3d(0, calc(var(--hero-scroll) * -0.11), 0);
}
.foreground-wave {
  bottom: -18px;
  height: 180px;
  translate: 0 calc(var(--hero-scroll) * -0.1);
}
.moon-halo {
  translate: 0 calc(var(--hero-scroll) * 0.12);
}
.ship {
  animation: voyage-rock 7s ease-in-out infinite;
}
.sea-mist {
  animation-duration: 12s;
}
.hero-content > * {
  animation: hero-arrival 1.15s cubic-bezier(0.2, 0.65, 0.2, 1) both;
}
.hero-content > :nth-child(2) {
  animation-delay: 0.12s;
}
.hero-content > :nth-child(3) {
  animation-delay: 0.24s;
}
.hero-content > :nth-child(4) {
  animation-delay: 0.36s;
}
.hero-content > :nth-child(5) {
  animation-delay: 0.48s;
}
.scroll-cue > span {
  animation: scroll-nudge 2s ease-in-out infinite;
}
.sea-particles {
  position: absolute;
  inset: 12% 0 15%;
  overflow: hidden;
}
.sea-particles span {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: 3px;
  height: 3px;
  background: #9be2ff;
  box-shadow: 0 0 12px #c4d5e2;
  border-radius: 50%;
  opacity: 0;
  animation: sea-spark var(--duration) var(--delay) linear infinite;
}
.motion-toggle {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 30;
  background: #0a1223ed;
  border: 1px solid #b3c0ca4d;
  border-radius: 30px;
  padding: 12px 17px;
  min-height: 42px;
  font-size: 10px;
  color: #d0d8df;
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 25px #0003;
}
.motion-toggle[aria-pressed="true"] {
  border-color: #cad4dc80;
}
.motion-toggle:disabled {
  opacity: 0.8;
}
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 50;
  transform: scaleX(0);
  transform-origin: left;
  background: #55c6ff;
  box-shadow: 0 0 12px #63d3ffaa;
  pointer-events: none;
}
.reveal {
  transition:
    opacity 0.8s var(--reveal-delay, 0ms),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.motion-enabled .reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
}
.motion-enabled .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.motion-enabled .reveal:focus-within {
  opacity: 1;
  transform: none;
}
.video-art {
  transition:
    box-shadow 0.4s,
    border-color 0.4s,
    translate 0.4s;
}
.video-card:hover .video-art {
  translate: 0 -7px;
  border-color: #55c6ff70;
  box-shadow: 0 18px 45px #0004;
}
.video-card:hover .video-art img {
  transform: scale(1.08);
}
.button-primary {
  position: relative;
  overflow: hidden;
}
.button-primary::after {
  content: "";
  position: absolute;
  inset: -100% -50%;
  background: linear-gradient(
    110deg,
    transparent 43%,
    #fff5 50%,
    transparent 57%
  );
  transform: translateX(-100%);
  transition: transform 0.65s;
  pointer-events: none;
}
.button-primary:hover::after {
  transform: translateX(100%);
}
.artist-visual {
  overflow: clip;
}
.artist-visual > img {
  transform: translate3d(0, var(--portrait-shift, 0px), 0) scale(1.06);
}
.horizon-ribbon {
  overflow: hidden;
  padding: 23px 0;
  border-block: 1px solid var(--line);
  background: #0c1322;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-sail 38s linear infinite;
}
.ribbon-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.ribbon-group span {
  font-family: var(--serif);
  font-size: 35px;
  color: #c2cad1;
  white-space: nowrap;
}
.ribbon-group i {
  color: #9ba8b3;
  font-size: 27px;
  font-style: normal;
}

/* Explore the world: accessible tabs with an animated orbital illustration. */
.world-section {
  padding: 18px 0 96px;
}
.world-heading {
  margin-bottom: 38px;
}
.world-heading h2,
.voyage-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.world-heading h2 em,
.voyage-content h2 em {
  color: #9fc9f1;
  font-weight: 400;
}
.world-heading > p:last-child {
  font-size: 12px;
  color: #adb8c1;
  line-height: 1.8;
}
.world-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 50px;
  align-items: stretch;
}
.world-tabs {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.world-tab {
  display: flex;
  text-align: left;
  width: 100%;
  align-items: center;
  gap: 24px;
  padding: 28px 14px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition:
    background 0.3s,
    padding 0.3s,
    border-color 0.3s;
}
.world-tab:first-child {
  border-top: 1px solid var(--line);
}
.world-tab-index {
  color: #a2afb9;
  font-size: 10px;
  letter-spacing: 1px;
}
.world-tab strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: #c9d0d6;
}
.world-tab small {
  display: block;
  margin-top: 5px;
  color: #a8b4be;
  font-size: 10px;
}
.world-tab-arrow {
  margin-left: auto;
  color: #bcc6ce;
  transition: transform 0.3s;
}
.world-tab:hover,
.world-tab[aria-selected="true"] {
  background: #55c6ff09;
  padding-left: 23px;
  border-left-color: #55c6ff;
}
.world-tab[aria-selected="true"] strong {
  color: #e5eaef;
}
.world-tab[aria-selected="true"] .world-tab-arrow {
  transform: rotate(45deg);
}
.world-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 360px;
  padding: 52px 40px;
  background:
    radial-gradient(ellipse at 85% 48%, #384d6852, transparent 65%), #0b1324;
  transition: background-color 0.6s;
}
.world-stage[data-world="spirit"] {
  background-color: #131d31;
}
.world-stage[data-world="connection"] {
  background-color: #111c33;
}
.world-stage.reveal {
  transition:
    background-color 0.6s,
    opacity 0.8s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.world-panel {
  position: relative;
  z-index: 2;
  max-width: 310px;
  animation: panel-arrival 0.6s ease both;
}
.world-panel[hidden] {
  display: none;
}
.panel-overline {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #b5c1cb;
}
.world-panel h3 {
  font-family: var(--serif);
  font-size: 45px;
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -1px;
  margin: 19px 0;
}
.world-panel h3 em {
  color: #a7caed;
}
.world-panel p {
  font-size: 11px;
  line-height: 1.95;
  color: #b9c3ca;
  max-width: 265px;
}
.world-panel .text-link {
  margin-top: 17px;
  font-size: 10px;
}
.world-orbits {
  position: absolute;
  width: 355px;
  height: 355px;
  right: -75px;
  top: 50%;
  margin-top: -177px;
  opacity: 0.65;
  z-index: -1;
}
.world-orbits span {
  position: absolute;
  border: 1px solid #c6cfd633;
  border-radius: 50%;
  inset: 0;
  animation: compass-turn 36s linear infinite;
}
.world-orbits span:nth-child(2) {
  inset: 30px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 65s;
}
.world-orbits span:nth-child(3) {
  inset: 64px;
  animation-duration: 26s;
}
.world-orbits span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  background: #c7d2dc;
  border-radius: 50%;
  box-shadow: 0 0 16px #c5d6e388;
}
.world-emblem {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 150px;
  translate: 0 -50%;
  opacity: 0.85;
  animation: emblem-float 6s ease-in-out infinite;
}
.world-emblem img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  border: 1px solid #55c6ff66;
  box-shadow: 0 0 35px #268dff22;
}
.world-emblem > span {
  display: block;
  font-size: 6px;
  letter-spacing: 1.6px;
  text-align: center;
  margin-top: 20px;
  color: #c7d0d7;
}

/* A second scenic section, with a route that traces itself as you scroll. */
.voyage-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 740px;
  padding: 105px 0 82px;
  margin-bottom: 100px;
  border-block: 1px solid var(--line);
  background: #0b152a;
  --route-progress: 0;
}
.voyage-landscape {
  position: absolute;
  inset: -90px 0;
  z-index: -2;
  transform: translate3d(0, var(--voyage-shift, 0px), 0);
}
.voyage-landscape > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  opacity: 0.75;
}
.voyage-landscape .voyage-ship {
  position: absolute;
  width: 510px;
  right: 6%;
  top: 90px;
  opacity: 0.6;
  transform: rotate(-8deg);
  animation: voyage-rock 9s ease-in-out infinite reverse;
}
.voyage-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #070d1be8, transparent 90%),
    linear-gradient(0deg, #070d1b 4%, #070d1b66 45%, #070d1b33);
}
.voyage-content h2 {
  font-size: clamp(48px, 5.7vw, 82px);
}
.voyage-content > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #bdc6cd;
  margin: 24px 0;
}
.voyage-content .text-link {
  margin-top: 5px;
}
.voyage-map {
  position: relative;
  margin-top: 36px;
  padding-top: 50px;
}
.voyage-route {
  position: absolute;
  width: 96%;
  left: 2%;
  height: 85px;
  top: 0;
  fill: none;
}
.route-base {
  stroke: #ccd5dc30;
  stroke-width: 1;
  stroke-dasharray: 4 7;
}
.route-progress {
  stroke: #cad5df;
  stroke-width: 1.8;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--route-progress));
  filter: drop-shadow(0 0 5px #55c6ff55);
}
.voyage-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.voyage-stops article {
  position: relative;
  padding-top: 24px;
}
.voyage-dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c2cfd9;
  box-shadow: 0 0 0 6px #b5c4d015;
}
.voyage-stops article:first-child .voyage-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #c6d1da7a;
  border-radius: 50%;
  animation: beacon-pulse 2.8s ease-out infinite;
}
.stop-label {
  color: #b7c0c8;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.voyage-stops h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin: 13px 0;
}
.voyage-stops p {
  color: #b7c0c8;
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.page-idle *,
.page-idle *::before,
.page-idle *::after {
  animation-play-state: paused !important;
}
.motion-paused .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}
.motion-paused .hero-content > * {
  animation: none;
}
.motion-paused .world-panel {
  animation: none;
}
.motion-paused .scene-backdrop,
.motion-paused .ship-layer,
.motion-paused .hero-content,
.motion-paused .voyage-landscape {
  transform: none;
}
.motion-paused .foreground-wave,
.motion-paused .moon-halo {
  translate: none;
}

@keyframes hero-arrival {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes panel-arrival {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes voyage-rock {
  0%,
  100% {
    transform: translateY(-5px) rotate(-2deg);
  }
  50% {
    transform: translateY(13px) rotate(1.5deg);
  }
}
@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}
@keyframes sea-spark {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20%,
  70% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate(50px, -270px);
  }
}
@keyframes ribbon-sail {
  to {
    transform: translateX(-50%);
  }
}
@keyframes compass-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes emblem-float {
  0%,
  100% {
    transform: translateY(-7px);
  }
  50% {
    transform: translateY(7px);
  }
}
@keyframes beacon-pulse {
  from {
    transform: scale(0.7);
    opacity: 0.8;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .world-layout {
    gap: 30px;
    grid-template-columns: 0.75fr 1.25fr;
  }
  .world-stage {
    padding: 38px 30px;
  }
  .world-emblem {
    right: -22px;
    opacity: 0.25;
  }
  .world-orbits {
    right: -140px;
  }
  .world-panel {
    max-width: 270px;
  }
  .voyage-landscape .voyage-ship {
    right: -10%;
  }
}
@media (max-width: 760px) {
  .world-section {
    padding: 10px 0 64px;
  }
  .world-heading h2 {
    font-size: 40px;
  }
  .world-heading > p:last-child {
    font-size: 11px;
  }
  .world-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .world-tab {
    padding: 20px 14px;
  }
  .world-tab strong {
    font-size: 27px;
  }
  .world-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .world-tab {
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
  }
  .world-tab strong {
    font-size: 23px;
  }
  .world-tab small {
    font-size: 9px;
  }
  .world-tab-index {
    width: 100%;
    font-size: 9px;
  }
  .world-tab-arrow {
    display: none;
  }
  .world-tab:hover,
  .world-tab[aria-selected="true"] {
    padding-left: 10px;
    border-color: #55c6ff80;
  }
  .world-stage {
    min-height: 335px;
    padding: 35px;
  }
  .world-emblem {
    right: 5%;
    opacity: 0.35;
  }
  .world-orbits {
    right: -60px;
  }
  .world-panel h3 {
    font-size: 40px;
  }
  .ribbon-group {
    gap: 28px;
    padding-right: 28px;
  }
  .ribbon-group span {
    font-size: 28px;
  }
  .horizon-ribbon {
    padding-block: 18px;
  }
  .voyage-section {
    padding-top: 70px;
    margin-bottom: 65px;
    min-height: 690px;
    padding-bottom: 65px;
  }
  .voyage-content h2 {
    font-size: 57px;
  }
  .voyage-landscape .voyage-ship {
    width: 440px;
    max-width: 85%;
    top: 220px;
    right: -18%;
    opacity: 0.32;
  }
  .voyage-landscape > img:first-child {
    opacity: 0.5;
  }
  .voyage-stops {
    gap: 25px;
  }
  .voyage-stops h3 {
    font-size: 26px;
  }
  .voyage-stops p {
    font-size: 10px;
  }
  .stop-label {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .motion-toggle {
    bottom: 12px;
    right: 12px;
    padding: 10px 14px;
    font-size: 9px;
  }
  .site-footer {
    padding-bottom: 80px;
  }
  .ship-layer {
    opacity: 1;
  }
  .foreground-wave {
    height: 135px;
  }
}
@media (max-width: 520px) {
  .world-heading h2 {
    font-size: 36px;
  }
  .world-tabs {
    gap: 7px;
  }
  .world-tab strong {
    font-size: 21px;
  }
  .world-tab small {
    font-size: 8px;
    line-height: 1.5;
  }
  .world-stage {
    padding: 31px 25px;
  }
  .world-panel {
    max-width: 235px;
  }
  .world-panel p {
    font-size: 11px;
  }
  .world-emblem {
    right: -60px;
    opacity: 0.16;
  }
  .world-orbits {
    right: -185px;
    opacity: 0.45;
  }
  .voyage-content h2 {
    font-size: 48px;
  }
  .voyage-content > p:not(.eyebrow) {
    font-size: 12px;
  }
  .voyage-map {
    margin-top: 40px;
    padding: 0 0 0 24px;
  }
  .voyage-route {
    display: none;
  }
  .voyage-map::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 15px;
    width: 1px;
    background: #c6d0d830;
  }
  .voyage-map::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 15px;
    width: 1px;
    background: #cad5df;
    transform-origin: top;
    transform: scaleY(var(--route-progress));
  }
  .voyage-stops {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .voyage-stops article {
    padding-top: 0;
  }
  .voyage-dot {
    top: 4px;
    left: -24px;
  }
  .stop-label {
    font-size: 7px;
  }
  .voyage-stops h3 {
    font-size: 29px;
    margin-block: 8px;
  }
  .voyage-stops p {
    font-size: 11px;
  }
  .voyage-landscape .voyage-ship {
    top: 370px;
    max-width: 120%;
    width: 450px;
    opacity: 0.23;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scene-backdrop,
  .hero-content,
  .ship-layer,
  .voyage-landscape,
  .artist-visual > img {
    transform: none !important;
  }
  .foreground-wave,
  .moon-halo {
    translate: none;
  }
  .route-progress {
    stroke-dashoffset: 0;
  }
  .voyage-map::after {
    transform: scaleY(1);
  }
  .video-art {
    translate: none !important;
  }
}
