:root {
  --sky: #3f6fc4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--sky);
  color-scheme: light;
  overscroll-behavior: none;
}

html.is-tablet,
html.is-tablet body,
html.is-tablet .scrub,
html.is-tablet .pin {
  touch-action: none;
  overscroll-behavior: none;
}

.safe-area-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}

.scrub {
  height: 250vh;
}

.pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--sky);
}

.pin img,
.pin video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.pin video {
  z-index: 2;
}

.start-still {
  z-index: 3;
}

html.is-video-loading .start-still {
  filter: blur(var(--load-blur, 18px));
  transform: scale(1.05);
  transition: filter 0.4s linear;
}

html.is-video-loading .pin.is-away .start-still {
  visibility: visible;
}

.phone-load {
  display: none;
}

.pin.is-away .start-still,
.pin.is-away img:not(.end-still):not(.peak):not(.range):not(.peak-close) {
  visibility: hidden;
}

.end-still {
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.pin.is-end .end-still {
  opacity: 1;
  visibility: visible;
}

.statement {
  position: absolute;
  z-index: 5;
  top: 6.5vh;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.pin.is-end:not(.is-peaks) .statement {
  opacity: 1;
  visibility: visible;
}

.statement-title,
.statement-hint {
  margin: 0;
  font-family: system-ui, sans-serif;
}

.statement-title {
  font-weight: 500;
  font-size: clamp(2.8rem, 6.6vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.statement-hint {
  margin-top: 0.85rem;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  transition: opacity 0.2s ease;
}

.hint-tap {
  display: none;
}

.pin:has(.summit-pilatus:hover) .statement-hint,
.pin:has(.summit-pilatus:focus-visible) .statement-hint {
  opacity: 0;
}

.summits {
  position: absolute;
  inset: 0;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.pin.is-end:not(.is-peaks) .summits {
  opacity: 1;
  visibility: visible;
}

.summit {
  position: absolute;
  width: 18vw;
  min-width: 10rem;
  height: 34vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -0.6rem);
  pointer-events: auto;
  cursor: default;
}

.summit-line {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  width: 1px;
  height: 0;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -100%);
  transition: height 0.35s ease;
}

.summit-label {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  transform: translate(-50%, calc(-100% - 2.75rem));
  opacity: 0;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.summit-name,
.summit-height {
  display: block;
  color: #fff;
  text-shadow: 0 1px 8px rgba(8, 28, 64, 0.4);
}

.summit-name {
  font: 500 0.95rem/1.15 system-ui, sans-serif;
}

.summit-height {
  margin-top: 0.15rem;
  font: 400 0.78rem/1 system-ui, sans-serif;
}

.summit-spot {
  position: absolute;
  width: 18vw;
  min-width: 10rem;
  height: 34vh;
  transform: translate(-50%, -0.6rem);
  pointer-events: none;
}

.summit-spot .summit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  transform: none;
  background: transparent;
}

.summit-spot .summit-line,
.summit-spot .summit-label {
  left: var(--apex-x, 50%);
  top: var(--apex-y, 0.6rem);
  pointer-events: none;
}

.summit-spot:hover .summit-line,
.summit-spot:focus-within .summit-line,
.summit:hover .summit-line,
.summit:focus-visible .summit-line {
  height: 2.45rem;
}

@media (min-aspect-ratio: 4/5) {
  .summit-spot:has(.summit-pilatus):hover .summit-line,
  .summit-spot:has(.summit-pilatus):focus-within .summit-line {
    height: var(--stick, 2.45rem);
  }

  .summit-spot:has(.summit-pilatus) .summit-label {
    transform: translate(-50%, calc(-100% - var(--stick, 2.45rem) - 0.3rem));
  }
}

.summit-spot:hover .summit-label,
.summit-spot:focus-within .summit-label,
.summit:hover .summit-label,
.summit:focus-visible .summit-label {
  opacity: 1;
}

.summit-spot.is-resting:hover .summit-line,
.summit.is-resting:hover .summit-line,
.summit-spot.is-resting:has(.summit-pilatus):hover .summit-line {
  height: 0;
}

.summit-spot.is-resting:hover .summit-label,
.summit.is-resting:hover .summit-label {
  opacity: 0;
}

.pin:has(.summit-pilatus.is-resting:hover) .statement-hint {
  opacity: 1;
}

.wordmark {
  position: absolute;
  z-index: 3;
  top: calc(14vh + 0.475 * clamp(4.2rem, 10.5vw, 9.5rem));
  left: 0;
  right: 0;
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(4.6rem, 11.4vw, 10.3rem);
  line-height: 0.95;
  white-space: nowrap;
  letter-spacing: -0.045em;
  text-shadow: none;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}

.pin.is-away .wordmark,
.pin.is-end .wordmark {
  opacity: 0;
  visibility: hidden;
}

.next,
.advance {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.7rem 1rem 0.7rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font: 500 0.95rem/1 system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.next {
  width: 4.75rem;
  height: 4.75rem;
  padding: 0;
  justify-content: center;
  background: #fff;
  color: #141414;
}

.next svg {
  position: relative;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  animation: bob 1.4s ease-in-out infinite;
}

.advance {
  bottom: calc(2.65rem + env(safe-area-inset-bottom));
  padding: 0.9rem 1.45rem;
  background: #fff;
  color: #141414;
  font-size: 1.12rem;
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.advance:hover,
.advance:focus-visible {
  transform: translateX(-50%) scale(1.08);
}

.pin.is-away .next,
.pin.is-end .next {
  opacity: 0;
  pointer-events: none;
}

.pin.is-peaks {
  position: fixed;
  inset: 0;
  z-index: 5;
  touch-action: none;
}

@property --peak {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.peaks {
  --peak: 0;
  --peak-shift: 0;
  --frame: max(100cqi, calc(100cqb * 16 / 9));
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  container-type: size;
  transition: opacity 0.48s ease, visibility 0s linear 0.48s;
}

.pin.is-peaks .peaks {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.48s ease, visibility 0s linear 0s;
}

.pin.is-end:not(.is-peaks) .peaks:not([hidden]),
.pin.is-warm:not(.is-peaks) .peaks:not([hidden]) {
  visibility: visible;
  z-index: 1;
}

.screen-bleed {
  display: none;
}

.pin .peaks .range,
.pin .peaks .peak-close,
.pin .peaks .range-notes {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 0;
  height: calc(var(--frame) * 9 / 16);
  transform: translate3d(calc((100cqi - var(--frame)) / 2 - var(--peak) * var(--frame)), -50%, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.pin .peaks .peak-close {
  transform: translate3d(calc((100cqi - var(--frame)) / 2 - (var(--peak) + var(--peak-shift)) * var(--frame)), -50%, 0);
}

.pin .peaks .range {
  width: calc(var(--frame) * 3);
  max-width: none;
  object-fit: fill;
}

.pin .peaks .peak-close {
  left: calc(var(--frame) * 3);
  width: var(--frame);
  object-fit: cover;
}

.pin .peaks .range-notes {
  width: calc(var(--frame) * 4);
}

.range-notes {
  pointer-events: none;
  z-index: 1;
}

.phase {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc(100% / 4);
}

.phase:nth-child(2) {
  left: calc(100% / 4);
}

.phase:nth-child(3) {
  left: calc(200% / 4);
}

.phase:nth-child(4) {
  left: calc(300% / 4);
}

.contact-card {
  position: absolute;
  top: 25.5%;
  left: calc((var(--frame) - 100cqi) / 2 + 12cqi);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: max-content;
  color: #fff;
  text-align: left;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(8, 28, 64, 0.28);
}

.next-peak {
  position: absolute;
  z-index: 2;
  left: 26.05%;
  top: 81.31%;
  width: 1.4rem;
  height: 1.4rem;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(8, 28, 64, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.next-peak-line {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 1px;
  height: 3.15rem;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
}

.next-peak-label {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 3.7rem);
  display: grid;
  justify-items: center;
  align-items: center;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.next-peak-copy,
.next-peak-site {
  grid-area: 1 / 1;
}

.next-peak-name {
  display: block;
  font: 500 0.95rem/1.15 system-ui, sans-serif;
}

.next-peak-meta {
  display: block;
  margin-top: 0.28rem;
  font: 400 0.78rem/1 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

.next-peak-copy {
  transition: opacity 0.2s ease;
}

.next-peak-site {
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: 400 0.95rem/1 system-ui, sans-serif;
  text-shadow: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.next-peak:hover .next-peak-copy,
.next-peak:focus-visible .next-peak-copy {
  opacity: 0;
}

.next-peak:hover .next-peak-site,
.next-peak:focus-visible .next-peak-site {
  opacity: 1;
  transform: translateY(-0.42rem);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
}

.contact-close {
  margin-top: 3.68rem;
}

.contact-kicker,
.contact-title,
.contact-email,
.contact-more,
.contact-sign,
.contact-touch {
  margin: 0;
  font-family: system-ui, sans-serif;
}

.contact-kicker {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.contact-title {
  margin-top: 1.15rem;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.contact-email {
  width: 100%;
  margin-top: 2.15rem;
  pointer-events: auto;
}

.contact-email label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-email-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  transition: gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@property --turn {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.contact-email-field {
  position: relative;
  flex: 1 1 16rem;
  width: auto;
  min-width: 0;
  max-width: 36rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition:
    flex-basis 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.contact-email-field::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--turn), rgba(255, 255, 255, 0.28), #fff 8%, rgba(255, 255, 255, 0.28) 20%);
  pointer-events: none;
  animation: email-sweep 3.8s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

@keyframes email-sweep {
  to {
    --turn: 360deg;
  }
}

.contact-email input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 400 0.95rem/1 system-ui, sans-serif;
  text-shadow: none;
}

.contact-email input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.contact-email button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 4.7rem;
  padding: 0.72rem 1.05rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font: 500 0.95rem/1 system-ui, sans-serif;
  text-shadow: none;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    flex-grow 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.62s ease;
}

.join-face,
.join-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.join-face {
  position: relative;
  display: grid;
  place-items: center;
}

.join-label,
.join-spin {
  grid-area: 1 / 1;
}

.join-label {
  transition: opacity 0.2s ease;
}

.join-spin {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid transparent;
  border-top-color: #141414;
  border-right-color: rgba(20, 20, 20, 0.28);
  border-radius: 50%;
  opacity: 0;
}

.join-done {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(0.35rem);
  white-space: nowrap;
}

.join-check {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.join-check path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

.contact-email button:hover:not(:disabled),
.contact-email button:focus-visible:not(:disabled) {
  transform: translateY(-0.38rem) scale(1.05);
}

.contact-email button:disabled {
  cursor: progress;
  transform: none;
}

.contact-email.is-sending .join-label {
  opacity: 0;
}

.contact-email.is-sending .join-spin {
  opacity: 1;
  animation: join-spin 0.7s linear infinite;
}

.contact-email.is-joined .contact-email-row {
  gap: 0;
}

.contact-email.is-joined .contact-email-field {
  flex-basis: 0;
  max-width: 0;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-email.is-joined button {
  flex-grow: 1;
  animation: join-settle 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-email.is-joined .join-face {
  opacity: 0;
  transform: translateY(-0.28rem);
}

.contact-email.is-joined .join-done {
  opacity: 1;
  transform: none;
  transition-delay: 0.16s;
}

.contact-email.is-joined .join-check path {
  animation: join-draw 0.45s 0.28s ease forwards;
}

.contact-email.is-joined .contact-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-email.is-error .contact-email-row {
  animation: join-shake 0.42s ease;
}

@keyframes join-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes join-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes join-settle {
  40% {
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.16);
  }
}

@keyframes join-shake {
  20% { transform: translateX(-0.28rem); }
  40% { transform: translateX(0.28rem); }
  60% { transform: translateX(-0.14rem); }
  80% { transform: translateX(0.14rem); }
}

.contact-more {
  margin-top: 2.35rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.contact-site {
  display: block;
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  font: 500 1rem/1 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-site:hover,
.contact-site:focus-visible {
  transform: scale(1.04);
}

.contact-sign {
  font-weight: 500;
  font-size: 0.98rem;
}

.contact-touch {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
  font-weight: 500;
  font-size: 1rem;
  pointer-events: auto;
}

.contact-touch a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22rem;
}

.contact-touch a:hover,
.contact-touch a:focus-visible {
  text-decoration-thickness: 2px;
}

.contact-status {
  margin: 0.7rem 0 0;
  font: 400 0.85rem/1.3 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

.phase:nth-child(1) {
  --peak-frac: 0.665;
}

.phase:nth-child(2) {
  --peak-frac: 0.416;
}

.phase:nth-child(3) {
  --peak-frac: 0.335;
}

.phase-copy {
  position: absolute;
  top: calc(var(--peak-frac) * 50% + 25% - 25cqb);
  left: 8%;
  right: 8%;
  margin: 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 10px rgba(8, 28, 64, 0.35);
  transform: translateY(-50%);
}

.phase-kicker,
.phase-title,
.phase-text {
  margin: 0;
  font-family: system-ui, sans-serif;
}

.phase-kicker {
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.phase-title {
  margin-top: 0.45rem;
  font-weight: 500;
  font-size: clamp(3.4rem, 7.2vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.phase-text {
  margin-top: 0.85rem;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
}

.peak-readout {
  position: absolute;
  z-index: 7;
  top: calc(1.05rem + var(--chrome-top, env(safe-area-inset-top, 0px)));
  left: calc(1.05rem + (2.75rem - 1.45rem) / 2 + 1.45rem * 6 / 24 + env(safe-area-inset-left));
  display: flex;
  align-items: center;
  height: 2.75rem;
  color: #fff;
  text-align: left;
  cursor: default;
  text-shadow: 0 1px 12px rgba(8, 28, 64, 0.55);
}

.peak-readout::before {
  content: "";
  position: absolute;
  inset: -0.85rem -1.5rem -1.7rem -0.85rem;
}

.altitude-label {
  position: absolute;
  top: calc(50% + 0.62rem);
  left: 0;
  margin: 0;
  font: 500 1.05rem/1 system-ui, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-0.15rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.peak-readout:hover .altitude-label,
.peak-readout:focus-within .altitude-label {
  opacity: 1;
  transform: none;
}

.peak-readout-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.peak-readout .height-lock {
  font: 500 1.05rem/1 system-ui, sans-serif;
}

.height-read {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.height-lock {
  display: inline-flex;
  align-items: flex-start;
  height: 1em;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.height-wheel {
  height: 1em;
  overflow: hidden;
}

.height-reel {
  display: flex;
  flex-direction: column;
}

.height-reel span,
.height-sep {
  display: block;
  height: 1em;
  line-height: 1em;
}

.advance,
.step {
  z-index: 7;
}

.flash {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.flash.is-on {
  animation: flash 0.18s ease-out forwards;
}

@keyframes flash {
  0% { opacity: 0; }
  35% { opacity: 0.32; }
  100% { opacity: 0; }
}

.step {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #141414;
  box-shadow: 0 8px 22px rgba(8, 28, 64, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover,
.step:focus-visible {
  transform: translateY(-50%) scale(1.08);
}

.peak-exit,
.replay {
  position: absolute;
  z-index: 9;
  top: calc(1.05rem + var(--chrome-top, env(safe-area-inset-top, 0px)));
  right: calc(1.05rem + env(safe-area-inset-right, 0px));
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.peak-exit:hover,
.peak-exit:focus-visible,
.replay:hover,
.replay:focus-visible {
  transform: scale(1.12);
}

.peak-exit svg,
.replay svg {
  width: 1.45rem;
  height: 1.45rem;
}

.replay {
  filter: drop-shadow(0 1px 5px rgba(8, 28, 64, 0.55));
}

@keyframes replay-hint {
  0%,
  100% { transform: scale(1); }
  40% { transform: scale(1.34); }
}

.replay.is-hint {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transition: none;
  animation: replay-hint 0.72s cubic-bezier(0.22, 1, 0.36, 1) 3;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 1px 5px rgba(8, 28, 64, 0.55));
}

.peak-exit .peak-more-mark {
  display: none;
}

.peak-exit.is-more .peak-exit-mark {
  display: none;
}

.peak-exit.is-more .peak-more-mark {
  display: block;
}

.peak-exit.is-more.is-open .peak-exit-mark {
  display: block;
}

.peak-exit.is-more.is-open .peak-more-mark {
  display: none;
}

.more-fog {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgba(18, 32, 58, 0.42);
  color: #fff;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  animation: more-fog-in 0.28s ease;
}

.more-fog[hidden] {
  display: none;
}

@keyframes more-fog-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.more-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.more-links a,
.more-email {
  color: inherit;
  text-decoration: none;
  font: 500 clamp(2.6rem, 6.6vw, 4.6rem)/0.95 system-ui, sans-serif;
  letter-spacing: -0.045em;
  text-shadow: 0 1px 16px rgba(8, 28, 64, 0.28);
}

.more-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  max-width: 100%;
  white-space: nowrap;
}

.more-email a {
  user-select: text;
  -webkit-user-select: text;
}

.copy-email {
  display: inline-grid;
  place-items: center;
  width: 0.62em;
  height: 0.62em;
  min-width: 1.75rem;
  min-height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
}

.copy-email svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 8px rgba(8, 28, 64, 0.28));
}

.copy-email .copy-check,
.copy-email.is-copied .copy-icon {
  display: none;
}

.copy-email.is-copied .copy-check {
  display: block;
}

.copy-email:hover,
.copy-email:focus-visible {
  transform: scale(1.08);
}

.copy-email.is-copied {
  color: #fff;
}

.more-links a:hover,
.more-links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.more-sign,
.copy-note {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: calc(1.7rem + var(--chrome-bottom, env(safe-area-inset-bottom, 0px)));
  margin: 0;
  text-align: center;
  font: 500 0.98rem/1.35 system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(8, 28, 64, 0.28);
}

.copy-note[hidden] {
  display: none;
}

.more-fog.is-copied .more-sign {
  visibility: hidden;
}

.advance[hidden],
.step[hidden],
.peak-dots[hidden],
.replay[hidden],
.peak-exit[hidden],
.peak-readout[hidden],
.peaks[hidden] {
  display: none;
}

.step svg {
  position: relative;
  z-index: 2;
  width: 1.25rem;
  height: 1.25rem;
}

.step-prev {
  left: calc(1.25rem + env(safe-area-inset-left));
}

.step-next {
  right: calc(1.25rem + env(safe-area-inset-right));
}

.step-prev svg {
  animation: nudge-left 1.4s ease-in-out infinite;
}

.step-next svg {
  animation: nudge-right 1.4s ease-in-out infinite;
}

.peak-dots {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: calc(1.35rem + var(--chrome-bottom, env(safe-area-inset-bottom)));
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.peak-dots button {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.peak-dots button::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
}

.peak-dots button.is-on::before {
  background: #fff;
  box-shadow: none;
  transform: scale(1.45);
}

.peak-dots button:hover::before,
.peak-dots button:focus-visible::before {
  transform: scale(1.45);
}

@keyframes nudge-left {
  50% { transform: translateX(-3px); }
}

@keyframes nudge-right {
  50% { transform: translateX(3px); }
}

@keyframes bob {
  50% {
    transform: translateY(3px);
  }
}

@media (max-aspect-ratio: 4/5) {
  html,
  body {
    background: #fff;
  }

  html {
    overflow-y: scroll;
    overscroll-behavior: none;
  }

  body {
    overscroll-behavior: none;
  }

  .hint-hover {
    display: none;
  }

  .hint-tap {
    display: block;
  }

  .pin {
    --band-top: 0px;
    --band-bottom: 0px;
    --chrome-top: env(safe-area-inset-top, 0px);
    --chrome-bottom: env(safe-area-inset-bottom, 0px);
    position: sticky;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: transparent;
    overflow: hidden;
  }

  .screen-bleed {
    display: none;
  }

  .pin.is-peaks {
    position: sticky;
    inset: auto;
  }

  .peaks[hidden] {
    display: block;
  }

  .peaks {
    opacity: 0;
    transition: opacity 0.36s ease, visibility 0s linear 0.36s;
  }

  .pin.is-peaks .peaks {
    opacity: 1;
    transition: opacity 0.36s ease, visibility 0s linear 0s;
  }

  .pin .start-still,
  .pin .hero-video,
  .pin .end-still {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    transform-origin: center center;
  }

  .wordmark {
    top: max(21svh, calc(var(--chrome-top, env(safe-area-inset-top, 0px)) + 0.85rem));
    left: 0;
    right: 0;
    padding: 0;
    text-align: center;
    font-size: 14vw;
    line-height: 0.95;
    letter-spacing: -0.045em;
    transform: none;
  }

  .statement {
    top: max(15svh, calc(var(--chrome-top, env(safe-area-inset-top, 0px)) + 0.85rem));
    padding: 0 1.25rem;
    text-align: center;
  }

  .advance {
    bottom: calc(1.7rem + var(--chrome-bottom, env(safe-area-inset-bottom)));
  }

  .statement-title {
    font-size: 9vw;
    white-space: nowrap;
    text-align: center;
  }

  .statement-hint {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    text-align: center;
  }

  .pin:has(.summit-pilatus:hover) .statement-hint,
  .pin:has(.summit-pilatus:focus) .statement-hint,
  .pin:has(.summit-pilatus:focus-visible) .statement-hint {
    opacity: 1;
  }

  .summit,
  .summit-spot {
    width: 30vw;
    min-width: 0;
    height: 26vh;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .summit-spot {
    transform: translate(-50%, -0.6rem);
  }

  .summit-spot .summit {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    background: transparent;
  }

  .summit-spot .summit:focus,
  .summit-spot .summit:focus-visible,
  .summit-spot .summit:active {
    outline: none;
    background: transparent;
    box-shadow: none;
  }

  .summit-spot:hover .summit-line,
  .summit-spot:focus-within .summit-line,
  .summit:hover .summit-line,
  .summit:focus-visible .summit-line {
    height: 0;
  }

  .summit-spot:hover .summit-label,
  .summit-spot:focus-within .summit-label,
  .summit:hover .summit-label,
  .summit:focus-visible .summit-label {
    opacity: 0;
  }

  .pin.is-end:not(.is-peaks) .summit-spot.is-shown .summit-line {
    height: 2.05rem;
    box-shadow: 0 0 6px rgba(8, 22, 48, 0.7);
  }

  .summit-spot:last-child .summit-line {
    transform: translate(calc(-50% + 0.75rem), -100%);
  }

  .pin.is-end:not(.is-peaks) .summit-spot.is-shown .summit-label {
    opacity: 1;
  }

  .summit-name,
  .summit-height {
    color: #1a3358;
    text-shadow: none;
  }

  .summit-label {
    padding: 0.22rem 0.48rem 0.28rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.58);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
  }

  .summit-spot .summit-label {
    left: var(--apex-x, 50%);
    text-align: center;
    transform: translate(calc(-50% + var(--name-x, 0px)), calc(-100% - 2.2rem + var(--name-y, 0px)));
  }

  .summit-spot .summit-label.is-adjustable {
    z-index: 2;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    outline: 1px dashed rgba(255, 255, 255, 0.8);
    outline-offset: 0.4rem;
  }

  .peaks {
    --peak-shift: 0.11;
  }

  .pin .peaks .range {
    width: calc(var(--frame) * 4);
    transform: translate3d(calc((100cqi - var(--frame)) / 2 - (var(--peak) + max(0, var(--peak) - 2) * var(--peak-shift)) * var(--frame)), -50%, 0);
  }

  .pin .peaks .peak-close {
    display: none;
  }

  .phase-copy {
    left: 50%;
    right: auto;
    width: min(22rem, calc(100cqi - 2.4rem));
    transform: translate(-50%, -50%);
    text-align: center;
    container-type: inline-size;
  }

  .phase-kicker {
    font-size: 1.05rem;
  }

  .phase-title {
    font-size: clamp(1.95rem, 9vw, 2.65rem);
    white-space: nowrap;
  }

  .phase-text {
    font-size: min(1.24rem, 5.65cqi);
    line-height: 1.25;
    letter-spacing: -0.015em;
    white-space: nowrap;
  }

  .next-peak {
    display: none;
  }

  .contact-card {
    z-index: 2;
    top: 13%;
    left: calc(50% - 50vw + 1.55rem + env(safe-area-inset-left, 0px));
    width: min(12.25rem, 50vw);
    height: auto;
    justify-content: flex-start;
  }

  .contact-email-field {
    flex: none;
    width: 100%;
    max-width: none;
    max-height: 3.4rem;
  }

  .contact-email.is-joined .contact-email-field {
    flex-basis: auto;
    max-width: none;
    width: 100%;
    max-height: 0;
    min-height: 0;
  }

  .contact-title {
    margin-top: 0.5rem;
    font-size: clamp(1.5rem, 6.2vw, 1.9rem);
    white-space: normal;
  }

  .contact-kicker {
    font-size: 0.82rem;
  }

  .contact-email {
    margin-top: 0.95rem;
  }

  .contact-email input {
    font-size: 16px;
  }

  .contact-email-row {
    flex-direction: column;
  }

  .contact-email button {
    width: 100%;
  }

  .contact-close {
    margin-top: 1.25rem;
  }

  .contact-sign,
  .contact-touch {
    font-size: 0.92rem;
  }

  html.is-iphone .replay {
    display: none;
  }

  .step {
    width: 2.45rem;
    height: 2.45rem;
  }

  .step svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .advance {
    max-width: calc(100vw - 2rem);
    font-size: 1rem;
  }

  .name-adjust {
    position: fixed;
    z-index: 20;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    left: 0.8rem;
    right: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: #fff;
    font: 400 0.82rem/1.35 system-ui, sans-serif;
    text-shadow: 0 1px 8px rgba(8, 28, 64, 0.45);
  }

  .name-adjust[hidden] {
    display: none;
  }

  .name-adjust button {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
  }

  .name-adjust-readout {
    margin-left: auto;
    font: 400 0.72rem/1.35 ui-monospace, monospace;
    white-space: pre-line;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrub {
    height: 100dvh;
  }

  .pin video {
    display: none;
  }

  .end-still,
  .wordmark,
  .next,
  .next svg,
  .advance,
  .advance svg,
  .flash,
  .flash.is-on,
  .peaks,
  .statement,
  .statement-hint,
  .summit-line,
  .summit-label,
  .summits,
  .height-reel,
  .step,
  .step svg,
  .replay,
  .replay.is-hint,
  .peak-exit,
  .more-fog,
  .contact-email button,
  .peak-dots button::before,
  .contact-email-field::before,
  .join-face,
  .join-done,
  .join-label,
  .join-spin,
  .next-peak-copy,
  .next-peak-site,
  .contact-site {
    transition: none;
    animation: none;
  }

  .contact-email.is-joined .join-check path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .contact-email.is-error .contact-email-row {
    animation: none;
  }
}
