*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
  line-height: 1.55;
}

a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  position: fixed;
  top: clamp(1.25rem, 4vw, 2.75rem);
  left: clamp(1.25rem, 4vw, 2.75rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 800;
  font-size: clamp(1rem, 0.85rem + 0.9vw, 1.35rem);
  letter-spacing: -0.02em;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  column-gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
}

.hero {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-top: clamp(-4.5rem, -10vh, -1.5rem);
  /* Start video to the right of the fixed “Captain Dock” wordmark */
  padding-left: clamp(6.75rem, 17vw, 11.5rem);
}

.media {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(96vw, 62rem);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  background: #000;
}

.media__video {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(82vh, 92vw);
  object-fit: contain;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.media__video.is-ready {
  opacity: 1;
  cursor: pointer;
}

.media__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.25s ease;
}

.media__play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(20, 20, 20, 0.65);
}

.media__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.media__play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.media__play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.85rem;
  border-color: transparent transparent transparent #fff;
}

.copy {
  position: relative;
  z-index: 2;
  max-width: min(40rem, 100%);
  width: 100%;
  justify-self: start;
  align-self: end;
  margin-top: 0;
  margin-bottom: clamp(2rem, 7vh, 5rem);
  text-align: left;
}

.copy__email {
  cursor: pointer;
  touch-action: manipulation;
}

.copy__lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.92);
}

@media (min-width: 768px) {
  .copy__mid {
    white-space: nowrap;
  }
}

.copy__contact {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 900px) {
  .page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-top: clamp(5rem, 14vw, 6.5rem);
  }

  .hero {
    justify-content: center;
    padding-left: 0;
    padding-top: clamp(3.25rem, 10vw, 5rem);
    margin-top: 0;
  }

  .media {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .copy {
    max-width: min(46rem, 92vw);
    align-self: unset;
    justify-self: unset;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .media__play,
  .media__video {
    transition: none;
  }
}