:root {
  --sc-canvas: #061a2b;
  --sc-surface: #0a2436;
  --sc-ink: #f6f0e7;
  --sc-ink-soft: #d7cdc0;
  --sc-accent: #78c8e3;
  --sc-accent-ink: #061a2b;
  --sc-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sc-font-text: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --route-progress: 0;
  --gate-opacity: 0;
  --unlock-left: 0%;
  --unlock-right: 0%;
  --key-progress: 0;
  --key-opacity: 0;
  --key-turn: 0deg;
}

html {
  background: var(--sc-canvas);
}

body {
  color: var(--sc-ink);
  background: var(--sc-canvas);
  font-family: var(--sc-font-text);
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  color: var(--sc-accent-ink);
  background: var(--sc-accent);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 4px;
}

.site-mark,
.utility-cta {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  z-index: 820;
}

.site-mark {
  left: max(1.35rem, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 3rem;
  color: var(--sc-ink);
  text-decoration: none;
}

.site-mark img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.4rem;
  box-shadow: 0 10px 28px rgb(2 10 18 / 0.34);
}

.site-mark span {
  max-width: 10rem;
  font-family: var(--sc-font-display);
  font-size: 1.08rem;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-shadow: 0 2px 18px rgb(2 10 18 / 0.6);
}

.utility-cta {
  right: max(1.35rem, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.1rem;
  border: 1px solid rgb(120 200 227 / 0.72);
  border-radius: 999px;
  color: var(--sc-ink);
  background: rgb(6 26 43 / 0.92);
  box-shadow: 0 12px 34px rgb(2 10 18 / 0.24);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: color 150ms var(--sc-ease-out), background 150ms var(--sc-ease-out), transform 150ms var(--sc-ease-out);
}

.utility-cta:hover {
  color: var(--sc-accent-ink);
  background: var(--sc-accent);
  transform: translateY(-1px);
}

.utility-cta:active,
.journey-button:active {
  transform: translateY(1px) scale(0.98);
}

.sc-world__seg > :is(video, img) {
  object-position: 50% 50%;
}

.sc-world__seg > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sc-world__seg > picture > .sc-world__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-scrim {
  background: linear-gradient(
    to top,
    rgb(6 26 43 / 0.99) 0%,
    rgb(6 26 43 / 0.96) 30%,
    rgb(6 26 43 / 0.82) 53%,
    rgb(6 26 43 / 0.56) 70%,
    rgb(6 26 43 / 0.20) 84%,
    transparent 94%
  );
}

.journey-copy {
  bottom: clamp(7.5rem, 16vh, 11rem);
  max-width: min(43rem, 66vw);
  color: var(--sc-ink);
}

.journey-copy--hero {
  max-width: min(49rem, 74vw);
}

.journey-copy h1,
.journey-copy h2 {
  margin: 0;
  max-width: 15ch;
  color: var(--sc-ink);
  font-family: var(--sc-font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 3px 26px rgb(2 10 18 / 0.42);
}

.journey-copy h1 {
  max-width: 13ch;
  font-size: clamp(3.5rem, 6.6vw, 7.5rem);
  line-height: 0.92;
}

.journey-copy h2 {
  font-size: clamp(2.55rem, 4.7vw, 5.7rem);
  line-height: 0.96;
}

.journey-kicker,
.journey-label {
  margin: 0 0 1rem;
  color: var(--sc-accent);
  font-size: clamp(0.68rem, 0.75vw, 0.8rem);
  font-weight: 760;
  letter-spacing: 0.19em;
  line-height: 1.25;
  text-transform: uppercase;
}

.journey-body {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--sc-ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 520;
  letter-spacing: 0.002em;
  line-height: 1.58;
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgb(2 10 18 / 0.52);
}

.sc-copy--trail .journey-body {
  margin-left: auto;
}

.journey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: 1.55rem;
  padding: 0 1.35rem;
  border: 1px solid var(--sc-accent);
  border-radius: 999px;
  color: var(--sc-accent-ink);
  background: var(--sc-accent);
  box-shadow: 0 13px 32px rgb(2 10 18 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.32);
  font-size: 0.83rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}

.journey-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgb(2 10 18 / 0.40), inset 0 1px 0 rgb(255 255 255 / 0.38);
}

.journey-note {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: rgb(246 240 231 / 0.72);
  font-size: 0.72rem;
  line-height: 1.5;
}

.sc-copy--trail .journey-note {
  margin-left: auto;
}

.arrival-gate {
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--gate-opacity);
}

.arrival-gate__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.025), transparent 20%),
    #061a2b;
  box-shadow: inset 0 0 0 1px rgb(120 200 227 / 0.10);
  will-change: transform;
}

.arrival-gate__panel--left {
  left: 0;
  transform: translate3d(var(--unlock-left), 0, 0);
}

.arrival-gate__panel--right {
  right: 0;
  transform: translate3d(var(--unlock-right), 0, 0);
}

.arrival-key {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(34rem, 58vw);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(var(--key-turn));
  transform-origin: 50% 50%;
  fill: none;
  stroke: var(--sc-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 12px 28px rgb(2 10 18 / 0.44));
  opacity: var(--key-opacity);
}

.arrival-key :is(circle, path) {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--key-progress));
}

.keyline {
  position: fixed;
  left: max(1.35rem, env(safe-area-inset-left));
  right: max(1.35rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 850;
  min-height: 5.7rem;
  padding: 0.75rem 1rem 0.6rem;
  border: 1px solid rgb(246 240 231 / 0.14);
  border-radius: 0.75rem;
  color: var(--sc-ink);
  background: rgb(6 26 43 / 0.94);
  box-shadow: 0 20px 54px rgb(2 10 18 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.keyline__route {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.65rem;
  width: calc(100% - 2rem);
  height: 1.4rem;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.keyline__base,
.keyline__progress {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.4;
}

.keyline__base {
  stroke: rgb(246 240 231 / 0.18);
}

.keyline__progress {
  stroke: var(--sc-accent);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--route-progress));
}

.keyline__stops {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 1.35rem 9.5rem 0 0;
  padding: 0;
  list-style: none;
}

.keyline__stops li {
  min-width: 0;
}

.keyline__stops button {
  position: relative;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.85rem 0.2rem 0;
  border: 0;
  color: rgb(246 240 231 / 0.60);
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 150ms var(--sc-ease-out), transform 150ms var(--sc-ease-out);
}

.keyline__stops button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.08rem;
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid var(--sc-accent);
  border-radius: 50%;
  background: var(--sc-canvas);
  transform: translateX(-50%);
  transition: background 150ms var(--sc-ease-out), transform 150ms var(--sc-ease-out);
}

.keyline__stops button:hover {
  color: var(--sc-ink);
  transform: translateY(-1px);
}

.keyline__stops button[aria-current="true"] {
  color: var(--sc-ink);
}

.keyline__stops button[aria-current="true"]::before {
  background: var(--sc-accent);
  transform: translateX(-50%) scale(1.18);
}

.keyline__status {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  width: 8.5rem;
  margin: 0;
  text-align: right;
}

.keyline__status span {
  display: block;
  color: rgb(246 240 231 / 0.48);
  font-size: 0.59rem;
  font-weight: 740;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.keyline__status strong {
  display: block;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--sc-accent);
  font-family: var(--sc-font-display);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .site-mark:hover span {
    color: var(--sc-accent);
  }
}

@media (max-width: 860px) {
  .site-mark,
  .utility-cta {
    top: max(0.85rem, env(safe-area-inset-top));
  }

  .site-mark {
    left: max(0.85rem, env(safe-area-inset-left));
  }

  .site-mark img {
    width: 2.45rem;
    height: 2.45rem;
  }

  .site-mark span {
    max-width: 7.4rem;
    font-size: 0.92rem;
  }

  .utility-cta {
    right: max(0.85rem, env(safe-area-inset-right));
    min-height: 2.55rem;
    padding: 0 0.8rem;
    font-size: 0.67rem;
  }

  .journey-copy,
  .journey-copy--hero {
    left: var(--sc-gutter);
    right: var(--sc-gutter);
    bottom: clamp(8rem, 18vh, 10rem);
    max-width: none;
    text-align: left;
  }

  .journey-copy h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 14vw, 4.5rem);
    line-height: 0.94;
  }

  .journey-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 10.5vw, 3.65rem);
    line-height: 0.98;
  }

  .journey-body,
  .sc-copy--trail .journey-body {
    max-width: 31rem;
    margin-left: 0;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .journey-label,
  .journey-kicker {
    margin-bottom: 0.7rem;
  }

  .journey-button {
    min-height: 3rem;
    margin-top: 1.2rem;
    padding: 0 1rem;
    font-size: 0.75rem;
  }

  .journey-note,
  .sc-copy--trail .journey-note {
    max-width: 28rem;
    margin-left: 0;
    font-size: 0.65rem;
  }

  .arrival-key {
    width: min(25rem, 86vw);
  }

  .keyline {
    left: max(0.65rem, env(safe-area-inset-left));
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    min-height: 4.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.62rem;
  }

  .keyline__route {
    left: 0.75rem;
    right: 0.75rem;
    top: 0.48rem;
    width: calc(100% - 1.5rem);
    height: 1.05rem;
  }

  .keyline__stops {
    gap: 0;
    margin: 1rem 0 0;
  }

  .keyline__stops button {
    min-height: 2.55rem;
    padding-top: 0.95rem;
    font-size: 0.56rem;
    letter-spacing: 0.035em;
  }

  .keyline__stops button::before {
    top: 0.22rem;
    width: 0.48rem;
    height: 0.48rem;
  }

  .keyline__status {
    display: none;
  }
}

@media (max-width: 470px) {
  .utility-cta {
    width: 2.7rem;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .utility-cta::after {
    content: "Talk";
    position: absolute;
    color: var(--sc-ink);
  }

  .utility-cta:hover::after {
    color: var(--sc-accent-ink);
  }

  .journey-copy,
  .journey-copy--hero {
    bottom: 7rem;
  }

  .journey-copy h1 {
    font-size: clamp(2.8rem, 13vw, 3.55rem);
  }

  .journey-copy h2 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  .journey-body {
    font-size: 0.9rem;
  }

  .keyline__stops button span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrival-gate {
    display: none;
  }

  .arrival-key :is(circle, path),
  .keyline__progress {
    stroke-dashoffset: 0;
  }

  .utility-cta,
  .journey-button,
  .keyline__stops button,
  .keyline__stops button::before {
    transition-duration: 0.001ms;
  }
}
