:root {
  color-scheme: dark;
  --ocean: #534436;
  --sea-glass: #fff8e8;
  --ivory: #fff8e8;
  --sand: #d9d0bd;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ocean);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--ocean);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.arrival {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  place-items: center;
  isolation: isolate;
  background: var(--ocean);
}

.poster,
.poster img,
.ocean-video,
.water-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster {
  z-index: -3;
  display: block;
}

.poster img,
.ocean-video {
  object-fit: cover;
  object-position: center;
}

.poster img {
  display: block;
}

.ocean-video {
  z-index: -2;
  opacity: 0;
  transition: opacity 900ms ease;
}

.arrival.is-playing .ocean-video {
  opacity: 1;
}

.water-shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 48, 51, 0.26) 0%, rgba(14, 42, 45, 0.52) 100%),
    radial-gradient(ellipse at 50% 48%, rgba(17, 49, 51, 0.74) 0%, rgba(17, 49, 51, 0.62) 46%, rgba(17, 49, 51, 0.24) 82%);
}

.arrival-content {
  display: flex;
  width: min(100% - 40px, 640px);
  flex-direction: column;
  align-items: center;
  padding: 24px 0 54px;
  text-align: center;
}

.brand-lockup {
  width: min(100%, 640px);
  margin: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  max-height: min(42svh, 410px);
  height: auto;
  object-fit: contain;
}

.coming-soon {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: clamp(37px, 8vh, 62px) 0 0;
  color: var(--sea-glass);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.coming-soon::before,
.coming-soon::after {
  width: 20px;
  height: 1px;
  background: rgba(255, 248, 232, 0.68);
  content: "";
}

.description {
  margin: 16px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.03rem, 4.4vw, 1.27rem);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.55;
  text-shadow: 0 1px 18px rgba(83, 68, 54, 0.24);
}

.cleanup-link {
  margin-top: 18px;
  padding: 8px 2px;
  color: var(--ivory);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-transform: uppercase;
}

.cleanup-link:hover {
  color: var(--sand);
}

.cleanup-link:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 5px;
}

.motion-control {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.video-toggle {
  display: inline-flex;
  min-width: 130px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(244, 240, 229, 0.58);
  border-radius: 0;
  background: rgba(83, 68, 54, 0.25);
  color: var(--ivory);
  font: 500 0.7rem/1 var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.video-toggle[hidden] {
  display: none;
}

.video-toggle:hover {
  border-color: var(--ivory);
  background: rgba(83, 68, 54, 0.54);
}

.video-toggle:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.control-icon {
  position: relative;
  display: block;
  width: 11px;
  height: 12px;
}

.video-toggle[aria-pressed="false"] .control-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.video-toggle[aria-pressed="true"] .control-icon::before,
.video-toggle[aria-pressed="true"] .control-icon::after {
  position: absolute;
  top: 0;
  width: 3px;
  height: 12px;
  background: currentColor;
  content: "";
}

.video-toggle[aria-pressed="true"] .control-icon::before {
  left: 1px;
}

.video-toggle[aria-pressed="true"] .control-icon::after {
  right: 1px;
}

.playback-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  padding: 11px 15px;
  transform: translateY(calc(-100% - 18px));
  background: var(--ivory);
  color: var(--ocean);
  font-size: 0.84rem;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 360px) {
  .arrival-content {
    width: calc(100% - 28px);
    padding-bottom: 48px;
  }

  .coming-soon {
    margin-top: clamp(31px, 7vh, 45px);
  }
}

@media (max-height: 700px) {
  .arrival-content {
    padding-top: 16px;
    padding-bottom: 46px;
  }

  .brand-lockup {
    max-height: 36svh;
  }

  .coming-soon {
    margin-top: clamp(24px, 5.4vh, 39px);
  }

  .description {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
