/* public/css/site.css — the public page. "Passage plan": an Admiralty chart
   typeset like a boat-show brochure. Tokens live in tokens.css.
   No inline styles anywhere (CSP style-src 'self'); per-element values come
   in as CSS custom properties set through the CSSOM by the JS modules. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: clip; /* clip, not hidden: no scroll container, so position:sticky still works */
}

body {
  overflow-x: clip;
}

::selection {
  background: var(--navy);
  color: var(--tube);
}

/* ------------------------------------------------------------------ type */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 460;
  margin: 0;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.caption-note {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-3);
}

/* ------------------------------------------------------------- controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active {
  transform: translateY(1px);
}
.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--accent:hover {
  background: color-mix(in srgb, var(--accent) 86%, black);
}
.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.btn--small {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.9rem;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: progress;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover {
  border-color: var(--ink);
}
.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.link-quiet {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 4px;
}
.link-quiet:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------- masthead */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.masthead.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 var(--rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 10px var(--gutter);
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand__ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}
.brand__slice {
  fill: var(--accent);
}
.brand__spokes {
  stroke: var(--ink);
  stroke-width: 1;
  fill: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav {
  display: none;
}
.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 3px;
}
.nav__list a:hover,
.nav__list a[aria-current='true'] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 419px) {
  .masthead__actions .link-quiet {
    display: none;
  }
}
@media (min-width: 1000px) {
  .nav {
    display: block;
  }
  .brand {
    margin-right: 12px;
  }
  .nav {
    margin-right: auto;
  }
}

/* ------------------------------------------------------ chart backdrop */

.chart {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
}
.chart__contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.chart__contours svg {
  width: 100%;
  height: 100%;
}
.contour {
  fill: none;
  stroke: var(--contour);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.contour--deep {
  stroke-dasharray: 5 4;
}

/* The chart neatline: a ruled border with alternating minute bars. */
.neatline {
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--rule-strong);
}
.neatline::before,
.neatline::after {
  content: '';
  position: absolute;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 48px, transparent 48px 96px);
  opacity: 0.55;
}
.neatline::before {
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-bottom: 1px solid var(--rule-strong);
}
.neatline::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  border-right: 1px solid var(--rule-strong);
  background-image: repeating-linear-gradient(180deg, var(--ink) 0 48px, transparent 48px 96px);
}
.neatline__lab {
  position: absolute;
  font-size: 0.66rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  background: var(--paper);
  padding: 0 4px;
}
.neatline__lab--n1,
.neatline__lab--n2 {
  display: none;
  left: 10px;
  transform: rotate(-90deg);
  transform-origin: left top;
}
.neatline__lab--n1 {
  top: 34%;
}
.neatline__lab--n2 {
  top: 78%;
}
.neatline__lab--w1,
.neatline__lab--w2 {
  display: none;
  top: 9px;
}
.neatline__lab--w1 {
  left: 30%;
}
.neatline__lab--w2 {
  left: 72%;
}

/* ------------------------------------------------------------ waypoints */

.waypoint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.waypoint .mono {
  letter-spacing: 0.08em;
}
.waypoint__mark {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  flex: none;
}
.waypoint__mark::after {
  content: '';
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: currentColor;
}
.waypoint__mark--here {
  color: var(--accent);
}
.waypoint__sep {
  color: var(--ink-3);
}
.waypoint--dark {
  color: #c9cdd2;
}

/* ---------------------------------------------------------------- hero */

.hero {
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__frame {
  inset: 70px 12px 12px 12px;
}
.hero__grid {
  display: grid;
  gap: 36px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 8px;
}
.hero__title {
  display: block;
  font-weight: 400;
}
.hero__name {
  display: block;
  font-size: clamp(3.9rem, 13.5vw, 9.6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-weight: 480;
  font-variation-settings: 'opsz' 72;
  margin-left: -0.04em;
}
.hero__line {
  display: block;
  margin-top: 0.5em;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.hero__line em {
  color: var(--navy);
}

:root[data-theme="dark"] .hero__line em {
  color: var(--shoal);
}

.hero__lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 32px;
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.hero__facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.hero__facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.hero__inset {
  position: relative;
  margin: 0;
}
.inset {
  position: relative;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--rule);
}
.inset__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 16 / 9;
}
.inset__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inset__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 10px 4px 2px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.inset__caption .mono {
  font-size: 0.72rem;
  color: var(--ink-3);
}
.motion-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 23, 29, 0.62);
  color: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.motion-toggle__icon {
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}
.motion-toggle[aria-pressed='true'] .motion-toggle__icon {
  border: 0;
  width: 0;
  height: 0;
  border-left: 9px solid #fff;
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
}
.rose {
  position: absolute;
  width: clamp(76px, 10vw, 128px);
  height: auto;
  right: clamp(-56px, -3.4vw, -14px);
  top: clamp(-60px, -4vw, -30px);
  overflow: visible;
  pointer-events: none;
}
.rose__ring {
  fill: color-mix(in srgb, var(--paper) 70%, transparent);
  stroke: var(--ink);
  stroke-width: 0.8;
}
.rose__ring--inner {
  fill: none;
  stroke-dasharray: 1 2.2;
}
.rose__tick {
  stroke: var(--ink);
  stroke-width: 0.6;
}
.rose__tick--major {
  stroke-width: 1.1;
}
.rose__needle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 0.8;
}
.rose__needle--ew {
  opacity: 0.8;
}
.rose__north {
  fill: var(--accent);
}
.rose__n {
  font-family: var(--font-display);
  font-size: 11px;
  fill: var(--ink);
  font-style: italic;
}
.hero__scroll {
  align-self: center;
  margin-top: 40px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 8px;
}
.hero__scroll span {
  display: inline-block;
  margin-right: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll span {
    animation: bob 2.6s var(--ease-in-out) infinite;
  }
}
@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 104px calc(var(--gutter) + 12px) 56px;
  }
  .hero__frame {
    inset: 78px 24px 24px 24px;
  }
  .neatline__lab {
    display: block;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    padding-left: 20px;
  }
  .hero__inset {
    margin-right: calc(-1 * clamp(0px, 3vw, 48px));
  }
}

/* -------------------------------------------------------- scroll track */

.track {
  display: none;
}
@media (min-width: 1240px) {
  .track {
    display: block;
    position: fixed;
    left: 20px;
    top: 90px;
    bottom: 40px;
    width: 2px;
    z-index: 5;
    background-image: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.3px);
    background-size: 2px 8px;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
  }
  .track.is-on {
    opacity: 1;
  }
  .track__fill {
    position: absolute;
    inset: 0;
    background: var(--navy);
    transform-origin: top;
    transform: scaleY(var(--progress, 0));
  }
}
@media (min-width: 1240px) {
  :root[data-theme="dark"] .track__fill {
    background: var(--shoal-deep);
  }
}

/* ------------------------------------------------------------- sections */

.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 124px);
}
.section__inner {
  position: relative;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section__inner--narrow {
  max-width: calc(880px + 2 * var(--gutter));
}
/* lat/long tick rule across the top of each section */
.section:not(.chart)::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  height: 9px;
  border-top: 1px solid var(--rule);
  background-image: linear-gradient(90deg, var(--rule-strong) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 120px 9px, 24px 5px;
  background-repeat: repeat-x;
}
.section__head {
  max-width: 900px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section__title {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  font-variation-settings: 'opsz' 60;
}
.section__lede {
  margin-top: 20px;
  max-width: 36em;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .section__head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
  }
}

/* -------------------------------------------------------------- the boat */

.boat__layout {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.legend {
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}
.legend__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.legend dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding-top: 3px;
}
.legend dd {
  margin: 0;
}
.boat__note {
  align-self: start;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.boat__note .mono {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
@media (min-width: 900px) {
  .boat__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(40px, 6vw, 96px);
  }
}

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.gallery__item {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}
.gallery__item img {
  height: min(62vh, 400px);
  width: auto;
  max-width: 82vw;
  object-fit: cover;
  background: var(--paper-3);
}
.gallery__item figcaption {
  max-width: 82vw;
  padding-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.gallery__item figcaption .mono,
.gallery__more .mono {
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-right: 6px;
}
.gallery__more {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
@media (min-width: 760px) {
  .gallery {
    display: block;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    columns: 3 220px;
    column-gap: 20px;
  }
  .gallery__item {
    break-inside: avoid;
    margin-bottom: 26px;
  }
  .gallery__item img {
    width: 100%;
    height: auto;
    max-width: none;
  }
  .gallery__item figcaption {
    max-width: none;
  }
}

/* --------------------------------------------- exploded diagram (pinned) */

.exploded {
  position: relative;
  background: var(--panel-deep);
  color: #e6e3da;
}
.exploded.is-live {
  height: 330vh;
}
.exploded__sticky {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 18px;
  padding: clamp(64px, 9vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  max-width: calc(1440px + 2 * var(--gutter));
  margin: 0 auto;
}
.exploded.is-live .exploded__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: 76px;
  padding-bottom: 28px;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: stretch;
}
.exploded__head {
  max-width: 760px;
}
.exploded__title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f1efe8;
}
.exploded__hint {
  margin-top: 10px;
  color: #b9c0c4;
  font-size: 0.98rem;
}
.exploded__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 0;
}
.exploded__canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 714;
  max-height: 100%;
}
.exploded.is-live .exploded__canvas-wrap {
  width: min(100%, calc((100svh - 330px) * 1.7927));
}
.exploded__still,
.exploded__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 66% 72% at 50% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 66% 72% at 50% 50%, #000 55%, transparent 98%);
}
.exploded__canvas {
  display: none;
}
.exploded.is-live .exploded__canvas {
  display: block;
}
.exploded.is-live .exploded__still {
  opacity: 0; /* stays in the layout (and loads) under the canvas; the canvas paints the scrub */
}
.exploded__leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.leader {
  fill: none;
  stroke: #e6e3da;
  stroke-width: 0.9;
  opacity: var(--o, 1);
}
.leader-dot {
  fill: var(--panel-deep);
  stroke: #e6e3da;
  stroke-width: 1.2;
  opacity: var(--o, 1);
}
.leader-dot--core {
  fill: var(--avon);
  stroke: none;
}
.leader-num {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: #0e1a20;
  font-weight: 500;
  opacity: var(--o, 1);
}
.leader-badge {
  fill: #e6e3da;
  opacity: var(--o, 1);
}
.exploded__labels {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}
.exploded__label {
  opacity: var(--o, 1);
  transform: translateY(calc((1 - var(--o, 1)) * 6px));
  font-size: 0.9rem;
  line-height: 1.3;
  color: #eeebe4;
}
.exploded__label .mono {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #9aa3a8;
  margin-bottom: 2px;
}
.exploded__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-size: 0.8rem;
  line-height: 1.3;
}
.exploded__legend li {
  display: flex;
  gap: 8px;
  opacity: var(--o, 1);
  transition: opacity 0.2s linear;
}
.exploded__legend .mono {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e6e3da;
  color: #0e1a20;
  font-size: 0.62rem;
  font-weight: 500;
}
.exploded__credit {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa3a8;
}
.exploded__progress {
  display: none;
}
.exploded.is-live .exploded__progress {
  display: block;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 14px;
  height: 1px;
  background: rgba(230, 227, 218, 0.18);
}
.exploded__progress span {
  display: block;
  height: 100%;
  background: #e6e3da;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}

@media (min-width: 1024px) {
  .exploded__stage {
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 28px;
  }
  .exploded__labels {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-self: stretch;
    gap: 10px;
  }
  .exploded__labels--left {
    text-align: right;
  }
  .exploded__legend {
    display: none;
  }
  .exploded__canvas-wrap {
    width: min(58vw, 980px); /* the stage's middle column is auto-sized, so give it a real width */
  }
  .exploded.is-live .exploded__canvas-wrap {
    width: min(60vw, calc((100svh - 260px) * 1.7927));
  }
  .exploded .leader-num,
  .exploded .leader-badge {
    display: none;
  }
}

/* ------------------------------------------------ passage (destinations) */

.section--passage .section__head {
  margin-bottom: 36px;
}
.passage {
  position: relative;
}
.passage__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 18px;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  scrollbar-width: thin;
}
.passage__list:focus-visible {
  outline-offset: -4px;
}
.stop {
  flex: 0 0 min(84vw, 540px);
  scroll-snap-align: start;
  padding-right: clamp(16px, 2.4vw, 32px);
}
.stop:last-child {
  flex-basis: min(84vw, 540px);
}
.stop__marker {
  position: relative;
  height: 22px;
  margin-bottom: 8px;
}
.stop__marker::before {
  content: '';
  position: absolute;
  left: 11px;
  right: calc(-1 * clamp(16px, 2.4vw, 32px));
  top: 10px;
  height: 2px;
  background-image: radial-gradient(circle, var(--ink-3) 1px, transparent 1.4px);
  background-size: 8px 2px;
}
.stop.is-passed .stop__marker::before {
  background: var(--navy);
}

:root[data-theme="dark"] .stop.is-passed .stop__marker::before {
  background: var(--shoal-deep);
}

.stop:last-child .stop__marker::before {
  display: none;
}
.stop__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.stop__dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0.45);
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.stop.is-current .stop__dot::after {
  transform: scale(1);
}
.stop__dot--here::after {
  background: var(--accent);
  transform: scale(1);
}
.stop__wp {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.stop__card {
  margin: 0;
}
.stop__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-3);
  border-radius: 2px;
}
.stop__caption {
  padding-top: 16px;
}
.stop__title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-style: italic;
  font-weight: 420;
  line-height: 1.05;
  margin-bottom: 8px;
}
.stop__caption p,
.stop__home-text p {
  font-size: 0.97rem;
  color: var(--ink-2);
  max-width: 34em;
}
.stop__caption .caption-note {
  margin-top: 10px;
  font-size: 0.9rem;
}
.stop__home {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--shoal);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

:root[data-theme="dark"] .stop__home {
  background: var(--paper-2);
}

.stop__chart {
  position: absolute;
  inset: 0;
}
.stop__chart svg {
  width: 100%;
  height: 100%;
}
.stop__pin {
  position: absolute;
  left: 38%;
  top: 46%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stop__pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.stop__pin .mono {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--paper);
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
}
.stop__caption p + p {
  margin-top: 10px;
}
.stop__aside {
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3) !important;
}
.passage__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 12px auto 0;
  padding-inline: var(--gutter);
}
.passage__count {
  font-size: 0.85rem;
  color: var(--ink-2);
  min-width: 3.5em;
  text-align: center;
}

/* --------------------------------------------------------------- how */

.figures {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}
.figure {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.figure__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.figure__value {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 440;
  white-space: nowrap;
}
.figure__text {
  font-size: 0.92rem;
  color: var(--ink-2);
}
@media (min-width: 960px) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
}

.split {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(22px, 3.5vw, 44px);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.split__title,
.fair__title,
.practical__title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.split__copy p,
.fair__intro p {
  color: var(--ink-2);
  max-width: 34em;
}
.split__picker {
  border: 0;
  margin: 0;
  padding: 0;
}
.split__picker legend {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.split__buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  overflow: hidden;
}
.split__buttons button {
  min-height: 48px;
  border: 0;
  border-left: 1px solid var(--rule);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.3rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.split__buttons button:first-child {
  border-left: 0;
}
.split__buttons button[aria-checked='true'] {
  background: var(--navy);
  color: var(--tube);
}

:root[data-theme="dark"] .split__buttons button[aria-checked='true'] {
  background: var(--shoal);
  color: var(--water);
}

.split__boats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}
.split__boat {
  height: 18px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px 40% 40% 999px / 999px 50% 50% 999px;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.split__boat.is-on {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

:root[data-theme="dark"] .split__boat.is-on {
  background: var(--shoal);
  border-color: var(--shoal);
}

.split__result {
  font-size: 1.05rem;
  min-height: 3.2em;
}
.split__result strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
}

.fair {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 7vw, 96px);
}
.tide-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.tide-table th,
.tide-table td {
  text-align: left;
  vertical-align: top;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.tide-table tr:last-child th,
.tide-table tr:last-child td {
  border-bottom: 0;
}
.tide-table th {
  width: 36%;
  padding-right: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 16px;
}
.tide-table .num {
  font-family: var(--font-display);
  font-size: 1.2em;
  font-weight: 500;
}
@media (min-width: 900px) {
  .fair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 56px;
  }
}

.practical {
  margin-top: clamp(48px, 7vw, 96px);
}
.practical__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
.practical__list li {
  padding: 14px 0 14px 26px;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink-2);
}
.practical__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 21px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink-2);
  border-radius: 50%;
}
.practical__list strong {
  color: var(--ink);
  font-weight: 600;
}
@media (min-width: 900px) {
  .practical__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------- requirements */

.reqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.req {
  padding: 22px 22px 26px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  position: relative;
}
.req:first-child {
  background: var(--navy);
  color: var(--tube);
  border-color: var(--navy);
}
.req:first-child p {
  color: #d8dae3;
}
.req:first-child .req__n {
  color: #aeb6d6;
}
.req__n {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.req__title {
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 10px;
}
.req p {
  color: var(--ink-2);
  font-size: 0.97rem;
}
@media (min-width: 700px) {
  .reqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .reqs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------- shares */

.shares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.share {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
}
.share__no {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.share__status {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}
.share__meta {
  font-size: 0.88rem;
  color: var(--ink-2);
}
.share__meta a {
  color: var(--accent-ink);
  font-weight: 500;
  text-underline-offset: 3px;
}
.share--owned {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--tube);
}
.share--owned .share__no,
.share--owned .share__meta {
  color: #b8bfd9;
}
.share--open .share__status::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 0.12em;
}
@media (min-width: 900px) {
  .shares {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .share {
    grid-template-columns: 1fr;
    align-content: space-between;
    min-height: 220px;
    padding: 20px;
  }
  .share__status {
    font-size: 1.6rem;
    align-self: end;
  }
}

/* ------------------------------------------------------------------ faq */

.faq {
  border-top: 2px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--rule-strong);
}
.faq__item summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '';
  justify-self: end;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s var(--ease-out);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__body {
  padding: 0 0 24px;
  max-width: 40em;
  color: var(--ink-2);
}
.faq__body p + p {
  margin-top: 12px;
}

/* ------------------------------------------------------------- interest */

.section--interest {
  background-color: var(--paper-2);
}
.interest {
  display: grid;
  gap: 36px;
}
@media (min-width: 960px) {
  .interest {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }
}
.form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
.form__row {
  display: grid;
  gap: 18px;
}
@media (min-width: 600px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field__label {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
}
.field__opt {
  font-weight: 400;
  color: var(--ink-3);
}
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: color-mix(in srgb, var(--paper) 60%, white);
  font-size: 1rem;
}

:root[data-theme="dark"] .field__input {
  background: var(--paper-2);
}

.field__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field__input[aria-invalid='true'] {
  border-color: var(--accent-ink);
}
.field__input--area {
  min-height: 110px;
  resize: vertical;
}
.choice {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  cursor: pointer;
}
.choice__opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--navy);
}
.choice__opt:has(input:checked) {
  border-color: var(--navy);
  background: color-mix(in srgb, var(--navy) 8%, transparent);
}
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__privacy {
  font-size: 0.85rem;
  color: var(--ink-3);
}
.form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form__status {
  font-size: 0.92rem;
  color: var(--ink-2);
}
.form__status.is-error {
  color: var(--accent-ink);
}
.form__done {
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--accent);
}
.form__done .mono {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.form__done h3 {
  font-size: 1.9rem;
  margin: 8px 0 10px;
}
.form__done p:last-child {
  color: var(--ink-2);
}

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--water);
  color: #d9dcd6;
  padding: 48px var(--gutter) 56px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #f1efe8;
}
.footer__sub {
  display: block;
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: #aab4b6;
  margin-top: 6px;
}
.footer__note {
  font-size: 0.85rem;
  color: #aab4b6;
}
.footer__links a {
  color: #f1efe8;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .exploded.is-live {
    height: auto;
  }
  .exploded.is-live .exploded__sticky {
    position: static;
    height: auto;
  }
  .hero__scroll span {
    animation: none;
  }
}
