/* The home page's "Halcyon standard" section (voyage-ship.js), after the "Why"
   section of the ELIOS concept: the words and three points on the
   left, a ship from the air on the right with the figures laid over it.
   Qualified with .intro--voyage throughout: the section keeps its old class,
   whose minified rules (a three-column grid, margins on every paragraph)
   would otherwise reach in. */

.intro.intro--voyage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}

.intro--voyage .intro-copy > .eyebrow { margin: 0 0 22px; max-width: none; }
.intro--voyage .intro-copy > .intro-lede { margin: 30px 0 0; max-width: 470px; }

/* ---------- The points ---------- */

.intro-points {
  --point-dim: #b3b1ac;
  list-style: none;
  margin: 46px 0 40px;
  padding: 0;
  display: grid;
  gap: 26px;
  max-width: 540px;
}
.dark .intro-points { --point-dim: #4f4f52; }

.intro-points h3 {
  margin: 0;
  font: 500 clamp(21px, 1.9vw, 28px)/1.15 var(--display);
  letter-spacing: -.04em;
  transition: color .45s ease;
}

.intro-points p {
  margin: 9px 0 0;
  max-width: 390px;
  font: 10px/1.7 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6c6c6c;
  transition: color .45s ease;
}
.dark .intro-points p { color: #9a9a9a; }

/* Once voyage-ship.js steps them, one is read at a time and the others wait
   in grey. By colour, not opacity: the reveal (motion.js) owns opacity. */
.intro-points.is-stepping li:not(.is-active) :is(h3, p) { color: var(--point-dim); }

/* ---------- The picture ---------- */

/* A sea at dusk on the light page; on the dark page a pale sea instead, as
   Halcyon asked, so the picture stands out from the page either way
   (voyage-ship.js sets the water to match; the dark-theme rules are below). */
.intro-voyage {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 88vh;
  overflow: hidden;
  background: #0b1114;
  color: #f4f3f1;
}

.intro-voyage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-out;
}
.intro-voyage.is-ready canvas { opacity: 1; }

/* Where the voyage starts, in the corner as a chart would put it. */
.intro-voyage-tag {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 500 10px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 243, 241, .8);
}
.intro-voyage-tag span:first-child::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--red);
}

/* The figures, on frosted cards over the wake, with a viewfinder's corner
   marks. */
.intro-voyage-stats {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.intro-voyage-stats > div {
  position: relative;
  padding: 22px 22px 18px;
  background: rgba(11, 17, 20, .34);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .12);
}
.intro-voyage-stats > div::before,
.intro-voyage-stats > div::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, .75);
}
.intro-voyage-stats > div::before { top: -3px; left: -3px; }
.intro-voyage-stats > div::after { right: -3px; bottom: -3px; }

.intro-voyage-stats strong {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font: 400 clamp(34px, 3.4vw, 52px)/1 var(--display);
  letter-spacing: -.04em;
}

.intro-voyage-stats span {
  display: block;
  margin-top: 14px;
  font: 500 10px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244, 243, 241, .78);
}

/* The pale sea on the dark page: the tag, the figures and their cards in ink
   rather than light, the glass frosted pale. */
.dark .intro-voyage { background: #e3e8e9; color: #141416; }
.dark .intro-voyage-tag { color: rgba(20, 20, 22, .75); }
.dark .intro-voyage-stats > div {
  background: rgba(255, 255, 255, .42);
  border-color: rgba(20, 20, 22, .14);
}
.dark .intro-voyage-stats > div::before,
.dark .intro-voyage-stats > div::after { background: rgba(20, 20, 22, .7); }
.dark .intro-voyage-stats strong { border-bottom-color: rgba(20, 20, 22, .2); }
.dark .intro-voyage-stats span { color: rgba(20, 20, 22, .72); }

/* ---------- Tablets and phones ---------- */

@media (max-width: 800px) {
  .intro.intro--voyage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .intro-points { margin: 36px 0 32px; gap: 22px; }
  .intro-voyage { aspect-ratio: 5 / 6; }
  .intro-voyage-tag { top: 16px; left: 16px; right: 16px; }
  .intro-voyage-stats { left: 14px; right: 14px; bottom: 14px; gap: 10px; }
  .intro-voyage-stats > div { padding: 16px 14px 13px; }
  .intro-voyage-stats strong { padding-bottom: 12px; font-size: 32px; }
}

/* ---------- The long ship (voyage-ship.js, sailLong) ---------- */

/* A window-sized canvas behind every section, following the scroll: the
   network and portal sections are transparent and show it, the map and the
   red quote section are not and pass over it. Its sides fade, so nothing it
   draws is ever cut square by its edge; the hull is well inside them. The
   script places it, sizes it and shows it while the ship is on screen. */
.voyage-long {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: none;
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* The network section's paragraph moves out to the right-hand margin, clear
   of the ship's bow. */
@media (min-width: 1101px) {
  .network-head > p { margin-right: 0; }
}

