.intro-viewport {
  width: 100%;
  min-height: 100dvh;
  color: #f5f1e8;
  background: #020b12;
}

.intro-experience {
  --split: 50%;
  position: relative;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr) auto;
  width: min(100%, 430px);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #020b12;
}

.intro-experience.is-leaving {
  animation: intro-out 260ms ease-in both;
}

.intro-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) 12px 6px;
  background: #08263a;
  border-bottom: 1px solid rgba(245, 241, 232, 0.16);
}

.intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.intro-brand b {
  font-weight: 850;
  color: #ffffff;
}

.intro-brand .brand-orb-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(110, 208, 242, 0.6));
}

.intro-experience-name {
  display: none;
}

.intro-comparison {
  position: relative;
  min-height: 0;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  isolation: isolate;
}

.intro-comparison:focus-visible {
  outline: 3px solid #82d9f5;
  outline-offset: -4px;
}

.intro-ocean-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.intro-ocean-damaged {
  clip-path: inset(0 0 0 var(--split));
}

.intro-title-lockup {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(32px, 7vh, 66px);
  left: 0;
  height: 104px;
  pointer-events: none;
}

.intro-title-lockup > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f5f1e8;
  font-size: clamp(42px, 14vw, 62px);
  font-weight: 900;
  line-height: 0.83;
  text-align: center;
  text-shadow: 0 2px 7px #020b12, 0 0 20px rgba(2, 11, 18, 0.88);
}

.intro-title-damaged {
  color: #ded7ca !important;
  -webkit-text-stroke: 2px #020b12;
  paint-order: stroke fill;
  clip-path: inset(0 0 0 var(--split));
  text-shadow: 0 2px 0 #020b12, 0 0 10px rgba(2, 11, 18, 0.72);
}

.intro-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #f5f1e8;
  box-shadow: 0 0 12px rgba(2, 11, 18, 0.7);
  transform: translateX(-1px);
  pointer-events: none;
}

.intro-handle {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: grid;
  width: 52px;
  height: 38px;
  place-items: center;
  color: #08263a;
  background: #ffc627;
  border: 1px solid #08263a;
  border-radius: 4px;
  transform: translateX(-50%);
}

.intro-handle svg {
  display: block;
}

.intro-panel {
  position: relative;
  z-index: 6;
  padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  background: #08263a;
  border-top: 1px solid rgba(245, 241, 232, 0.16);
}

.intro-instruction {
  margin: 0 0 5px;
  color: #82d9f5;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.intro-summary {
  margin: 0 0 11px;
  color: rgba(245, 241, 232, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.intro-primary-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: #08263a;
  background: #ffc627;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.intro-primary-button:focus-visible {
  outline: 3px solid #82d9f5;
  outline-offset: 3px;
}

.intro-copyright {
  margin: 10px 0 0;
  color: rgba(245, 241, 232, 0.45);
  font-size: 11px;
  text-align: center;
  letter-spacing: 0.02em;
}

@keyframes intro-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@media (max-height: 640px) {
  .intro-experience {
    grid-template-rows: 46px minmax(0, 1fr) auto;
  }

  .intro-title-lockup {
    bottom: 26px;
  }

  .intro-summary {
    display: none;
  }
}

@media (max-width: 350px) {
  .intro-experience-name {
    display: none;
  }
}

@media (min-width: 700px) {
  .intro-experience {
    border-inline: 1px solid rgba(245, 241, 232, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-experience.is-leaving {
    animation: none;
  }
}
