/* Option 9, Into the Sea. Loaded after options.css, so Option 3's type,
   colours and footer carry over. The film fills the first screen; once it
   opens onto the sea it hands over to a loop of the water (nine.js), and the
   words arrive over the sea, with a soft shade behind them (only behind the
   words, never across the whole film) so they read against the bright sky. */

.concept-nine {
  --ease: cubic-bezier(.2, .7, .1, 1);
  background: #20342c;
}

/* ------------------------------------------------------------------ Stage */
.nine-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #0f1a15;
  color: #f4eedf;
}
.nine-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nine-sea {
  opacity: 0;
  transition: opacity .35s linear;
}
.concept-nine.is-sea .nine-sea {
  opacity: 1;
}
/* Once the sea is showing, the camera drifts in very slowly. */
.concept-nine.is-sea .nine-sea {
  animation: nine-drift 26s ease-in-out infinite alternate;
}
@keyframes nine-drift {
  from { scale: 1; }
  to { scale: 1.06; }
}

/* ----------------------------------------------------------------- Header */
.nine-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 53px;
}
.nine-header .brand {
  width: 116px;
  filter: drop-shadow(0 2px 12px rgb(0 0 0 / .35));
}
.nine-header .brand img {
  width: 100%;
  height: auto;
}
.nine-header-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nine-header .text-link,
.nine-film-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #f4eedf;
  letter-spacing: 1.5px;
  font: 500 9px/1 Alexandria, sans-serif;
  text-shadow: 0 1px 10px rgb(0 0 0 / .55);
  cursor: pointer;
}
.nine-film-link svg {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / .5));
}
.nine-film-link:hover,
.nine-header .text-link:hover {
  color: #e8cf98;
}

/* ------------------------------------------------------------------ Words */
.nine-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 75% at 12% 82%, rgb(8 22 20 / .62), rgb(8 22 20 / .28) 55%, transparent 80%),
    linear-gradient(0deg, rgb(8 22 20 / .45), transparent 45%);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.concept-nine.is-open .nine-shade {
  opacity: 1;
}
.nine-words {
  position: absolute;
  z-index: 3;
  left: max(53px, 50vw - 647px);
  bottom: 11vh;
  max-width: 640px;
  text-shadow: 0 2px 28px rgb(6 18 22 / .6), 0 1px 3px rgb(6 18 22 / .45);
}
.nine-words .eyebrow {
  margin: 0 0 18px;
  color: #f4eedf;
  letter-spacing: 2.6px;
  font-size: 10px;
  font-weight: 500;
}
.nine-words h1 {
  margin: 0;
  font: 400 clamp(62px, 8vw, 120px)/.95 Mirage, Georgia, serif;
  letter-spacing: -.02em;
}
.nine-script {
  margin: 10px 0 0;
  color: #edd59f;
  font: 400 clamp(34px, 3.6vw, 54px)/1.1 Antigua, cursive;
}
.nine-copy {
  max-width: 420px;
  margin: 22px 0 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.85;
}
.nine-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 15px 22px;
  border: 1px solid rgb(232 207 152 / .7);
  background: rgb(16 37 29 / .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f4eedf;
  letter-spacing: 1.6px;
  font-size: 9px;
  text-shadow: none;
  transition: background .35s, color .35s;
}
.nine-cta:hover,
.nine-cta:focus-visible {
  background: #e8cf98;
  color: #20342c;
}
.nine-cta svg {
  width: 16px;
  height: 16px;
  transition: translate .4s var(--ease);
}
.nine-cta:hover svg {
  translate: 3px -3px;
}

/* ------------------------------------------------- Arrival over the sea */
.nine-after {
  opacity: 0;
  translate: 0 16px;
  pointer-events: none;
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
  transition-delay: 0s;
}
.concept-nine.is-open .nine-after {
  opacity: 1;
  translate: 0 0;
  pointer-events: auto;
  transition-delay: var(--d, 0s);
}
.nine-header.nine-after {
  translate: 0 -12px;
}
.nine-script.nine-after {
  translate: 0 0;
  clip-path: inset(-30% 100% -40% 0);
  transition: opacity .4s, clip-path 1.6s cubic-bezier(.6, .1, .3, 1);
}
.concept-nine.is-open .nine-script.nine-after {
  clip-path: inset(-30% -10% -40% 0);
}
/* Without scripts the page shows the sea and the words straight away. */
.concept-nine:not(.has-js) .nine-intro {
  display: none;
}
.concept-nine:not(.has-js) .nine-sea {
  opacity: 1;
}
.concept-nine:not(.has-js) .nine-replay {
  display: none;
}
.concept-nine:not(.has-js) .nine-shade {
  opacity: 1;
}
.concept-nine:not(.has-js) .nine-after {
  opacity: 1;
  translate: 0 0;
  clip-path: none;
  pointer-events: auto;
}

/* ---------------------------------------------------------- Small screens */
@media (max-width: 767px) {
  .nine-header {
    padding: 18px 22px;
  }
  .nine-header .brand {
    width: 92px;
  }
  .nine-words {
    left: 22px;
    right: 22px;
    bottom: 56px;
  }
  .nine-words h1 {
    font-size: clamp(52px, 15vw, 72px);
  }
  .nine-script {
    font-size: 32px;
  }
  .nine-copy {
    font-size: 12px;
  }
  .nine-header-links {
    gap: 18px;
  }
  .nine-film-link span {
    display: none;
  }
  .nine-shade {
    background: linear-gradient(0deg, rgb(8 22 20 / .7), rgb(8 22 20 / .3) 55%, transparent 80%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-nine *,
  .concept-nine *::before,
  .concept-nine *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
