@font-face { font-family: 'DM Serif Display'; src: url(../fonts/dm-serif-display-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url(../fonts/dm-serif-display-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Syne'; src: url(../fonts/syne-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url(../fonts/syne-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0f14; --ocean: #0e3a5a; --wave: #1a7da8; --wave-dark: #15668c; --foam: #c8e8f5;
  --paper: #eef7fc; --yellow: #ffd23f; --mute: #9fb8c8; --white: #fff;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: Syne, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 6.25vw, 90px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 500 16px/1.55 var(--sans);
  background: var(--paper) radial-gradient(rgba(11, 15, 20, .09) 1px, transparent 1.3px) 0 0 / 10px 10px;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
mark { background: var(--yellow); color: var(--ink); padding: 0 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .2em; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--yellow); color: var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 700 15px/1.2 var(--sans); text-decoration: none; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--wave); }
.btn-ghost { border: 1.5px solid var(--foam); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Compass mark */
.mark { fill: none; stroke: currentColor; stroke-width: 5; }
.mark path { fill: none; }
.mark-dot { fill: var(--yellow); stroke: var(--yellow); }

/* Header */
.hud {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 20px 30px; pointer-events: none;
}
.hud > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 8px; text-decoration: none;
  font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: rgba(238, 247, 252, .85); transition: color .3s, background .3s;
}
.brand .mark { width: 40px; height: 40px; }
[data-ground="dark"] .brand { color: var(--paper); background: transparent; }
.pill {
  display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--white);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.pill a { display: flex; align-items: center; min-height: 34px; padding: 0 16px; color: var(--ink); text-decoration: none; }
.pill a:hover { background: var(--paper); }
.pill .pill-voyage { background: var(--ink); color: var(--white); }
.pill .pill-cta { background: var(--yellow); }

/* 01 Harbour */
.harbour { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--ink); color: var(--paper); }
.harbour-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.harbour-boat { position: absolute; right: max(1vw, 4px); bottom: 54px; width: clamp(210px, 30vw, 430px); height: auto; }
.harbour-text { position: relative; z-index: 2; padding: clamp(118px, 19vh, 176px) var(--gutter) 160px; max-width: 1100px; }
.harbour-kicker { margin: 0; font-size: 14px; letter-spacing: .34em; color: var(--foam); }
.harbour h1 { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; }
.h-first { display: block; font-size: clamp(84px, 17.4vw, 250px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.h-last { display: block; margin: -.05em 0 0 .05em; font-style: italic; font-size: clamp(46px, 9vw, 130px); line-height: 1; color: var(--foam); }
.harbour-line { margin: 34px 0 0; font-size: 13px; letter-spacing: .26em; color: var(--foam); }
.harbour-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.harbour-hint { position: absolute; z-index: 2; left: var(--gutter); bottom: 110px; margin: 0; font-size: 12px; letter-spacing: .22em; }
.harbour-hint span { display: block; margin-top: 14px; font-size: 11px; letter-spacing: .3em; color: var(--mute); }
.harbour-edge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; z-index: 3; }

/* The comic, stacked: phones, tablets in portrait, and no JavaScript */
.comic-wrap { container-type: inline-size; max-width: 1440px; margin: 0 auto; }
.comic { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 48px 16px 64px; }
.doodles { display: none; }

.panel { position: relative; aspect-ratio: var(--w) / var(--h); }
.panel-art { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.panel-border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.panel-border polygon { fill: none; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.p-inset { width: 86%; align-self: flex-end; margin-top: -60px; z-index: 2; }

.tag { transition: opacity .3s;
  align-self: flex-start; margin: 0 0 -18px; padding: 7px 11px; position: relative; z-index: 3;
  background: var(--ink); color: var(--paper); font: 400 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}

.cap {
  position: relative; z-index: 4; margin: 0; max-width: 30em; align-self: flex-start;
  padding: 10px 14px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  font: 700 13px/1.45 var(--sans); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-1deg);
}
.comic > .cap:nth-of-type(even) { align-self: flex-end; transform: rotate(.8deg); }

.ports { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.ports li { position: absolute; left: calc(var(--px) * 1%); top: calc(var(--py) * 1%); }
.ports h3 { margin: 0; font: 400 clamp(8px, 1.05cqw, 15px)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); white-space: nowrap; }

/* 07 Cargo */
.p-cargo { aspect-ratio: auto; }
.p-cargo .panel-art {
  position: relative; display: flex; flex-direction: column; padding: 26px 18px 22px;
  background: var(--cargo-bg, var(--ocean)); color: var(--cargo-fg, var(--paper)); transition: background .6s, color .6s;
}
.cargo-count { margin: 0; font-size: 12px; letter-spacing: .16em; }
.cargo-list { list-style: none; margin: 0; padding: 0; }
.cargo-item + .cargo-item { margin-top: 34px; padding-top: 26px; border-top: 2px dashed currentColor; }
.cargo-name { margin: 18px 0 0; position: relative; z-index: 3; pointer-events: none; font: 400 clamp(54px, 17vw, 140px)/.88 var(--serif); letter-spacing: -.025em; }
.cargo-name span { display: block; }
.cargo-lantern { position: absolute; z-index: 2; right: 8px; top: 18px; width: clamp(80px, 24vw, 160px); height: auto; pointer-events: none; }
.cargo-cap { margin-top: 20px; max-width: none; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; transform: none; }
.cargo-cap p { margin: 0; }
.cargo-cap p + p { margin-top: 8px; }
.cargo-meta, .cargo-tags { font-size: 11px !important; letter-spacing: .14em !important; color: var(--wave-dark); }
.cargo-cap a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cargo-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-top: 16px; }
.cargo-dot { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.cargo-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 999px; transform: translate(-50%, -50%);
  background: currentColor; opacity: .45; transition: width .3s, background .3s, opacity .3s;
}
.cargo-dot.is-on::after { width: 34px; background: var(--yellow); opacity: 1; }
.cargo-all { margin-left: 12px; padding: 12px 0; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The comic as a page of panels, scaled from a 1440px layout */
@media (min-width: 900px) {
  .js .comic { --u: calc(100cqw / 1440); display: block; height: calc(8320 * var(--u)); padding: 0; }
  .js .doodles { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .js .comic > .panel, .js .comic > .cap, .js .comic > .tag { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); margin: 0; }
  .js .comic > .panel { width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); aspect-ratio: auto; z-index: 1; will-change: transform; }
  .js .comic > .p-inset { z-index: 2; }
  .js .panel-border polygon { vector-effect: none; stroke-width: 8; stroke-dasharray: 100; }
  .js .p-inset .panel-border polygon { stroke-width: 7; }
  .js .comic > .cap { width: calc(var(--w) * var(--u)); max-width: none; font-size: max(11px, calc(12.5 * var(--u))); }
  .js .comic > .tag { font-size: max(11px, calc(12 * var(--u))); }

  .js .p-cargo .panel-art { position: absolute; display: block; padding: 0; }
  .js .cargo-count { position: absolute; left: calc(60 * var(--u)); top: calc(44 * var(--u)); font-size: max(11px, calc(13 * var(--u))); }
  .js .cargo-item { display: block !important; z-index: 3; pointer-events: none; position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
  .js .cargo-item.is-on { opacity: 1; visibility: visible; }
  .js .cargo-cap { pointer-events: auto; }
  .js .cargo-name { position: absolute; left: 0; right: 0; top: calc(150 * var(--u)); margin: 0; text-align: center; font-size: calc(220 * var(--u)); }
  .js .cargo-lantern { left: calc(480 * var(--u)); top: calc(84 * var(--u)); right: auto; width: calc(300 * var(--u)); }
  .js .cargo-cap { position: absolute; left: calc(60 * var(--u)); bottom: calc(70 * var(--u)); width: calc(420 * var(--u)); margin: 0; font-size: max(12px, calc(14 * var(--u))); transform: rotate(-1deg); }
  .js .cargo-dot { display: block; }
  .js .cargo-item + .cargo-item { margin-top: 0; padding-top: 0; border-top: 0; }
  .js .cargo-nav { position: absolute; z-index: 4; right: calc(50 * var(--u)); bottom: calc(66 * var(--u)); margin: 0; }
}

/* 08 Log */
.log { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.log-inner { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.tag-flow { display: inline-block; margin: 0; }
.log-title { margin: .15em 0 .45em; font: 400 clamp(52px, 9vw, 130px)/.95 var(--serif); letter-spacing: -.02em; }
.log-grid { display: grid; gap: 28px; }
.box { background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 24px 22px; }
.box:nth-child(odd) { transform: rotate(-.4deg); }
.box:nth-child(even) { transform: rotate(.5deg); }
.box h3 { margin: 0 0 16px; font: 400 clamp(28px, 3vw, 36px)/1.05 var(--serif); }
.box p { margin: 0 0 10px; }
.box p:last-child { margin-bottom: 0; }
.ports-list, .career, .chips { list-style: none; margin: 0; padding: 0; }
.ports-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; border-top: 1.5px dashed rgba(11, 15, 20, .3); }
.ports-list li:first-child { border-top: 0; padding-top: 0; }
.ports-list .icon { width: 28px; height: 28px; }
.ports-list strong { font-size: 17px; }
.ports-list p { margin: 4px 0 0; font-size: 15px; }
.career li { position: relative; padding: 0 0 18px 24px; border-left: 2px dashed var(--wave); margin-left: 6px; }
.career li:last-child { padding-bottom: 0; }
.career li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.career .mono { display: block; font-size: 11px; letter-spacing: .14em; color: var(--wave-dark); }
.career strong { display: block; margin-top: 2px; font-size: 17px; }
.career p { margin: 4px 0 0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 2px solid var(--ink); font: 700 13px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.chips li:nth-child(3n + 1) { background: var(--yellow); }
.link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { background: var(--yellow); }

@media (min-width: 900px) {
  .log-grid { grid-template-columns: 1.15fr 1fr; gap: 34px 40px; align-items: start; }
  .box-services { grid-column: 1; grid-row: 1 / span 2; }
  .box-career { grid-column: 2; grid-row: 1; }
  .box-stack { grid-column: 2; grid-row: 2; }
  .box-director { grid-column: 1 / -1; grid-row: 3; }
  .box { padding: 30px 32px; }
}

/* 09 The Wake: earlier versions */
.wake { padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 7vw, 90px); }
.wake-inner { max-width: 1260px; margin: 0 auto; padding: 0 16px; }
.wake-title { margin: .15em 0 .3em; font: 400 clamp(52px, 9vw, 130px)/.95 var(--serif); letter-spacing: -.02em; }
.wake-intro { max-width: 34em; }
.wake-strip {
  list-style: none; margin: 36px -16px 0; padding: 8px 16px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px);
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin;
}
.wake-card { scroll-snap-align: start; }
.wake-card a {
  display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; background: var(--white); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .25s, box-shadow .25s;
}
.wake-card:nth-child(odd) a { transform: rotate(-.8deg); }
.wake-card:nth-child(even) a { transform: rotate(.7deg); }
.wake-card a:hover, .wake-card a:focus-visible { transform: translateY(-6px) rotate(0); box-shadow: 8px 10px 0 var(--ink); }
.wake-shot { display: block; overflow: hidden; background: var(--ink); clip-path: polygon(0 2%, 100% 0, 98.5% 100%, 1% 97%); }
.wake-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.wake-card a:hover img { transform: scale(1.05); }
.wake-meta { margin-top: 12px; font-size: 11px; letter-spacing: .14em; color: var(--wave-dark); }
.wake-meta b { font-weight: 400; padding: 1px 5px; background: var(--ink); color: var(--paper); }
.is-current .wake-meta b { background: var(--yellow); color: var(--ink); }
.wake-name { margin-top: 6px; font: 400 26px/1.1 var(--serif); }
.wake-swatches { display: flex; gap: 4px; margin-top: auto; padding-top: 14px; }
.wake-swatches i { width: 18px; height: 18px; border: 1.5px solid var(--ink); background: var(--swatch); }
.wake-more { margin: 26px 0 0; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); }
@media (min-width: 1100px) {
  .wake-strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 36px 0 0; padding: 8px 0 0; }
}

/* 10 Landfall */
.landfall { padding: 20px 16px clamp(70px, 9vw, 120px); }
.landfall-panel { position: relative; max-width: 960px; margin: 0 auto; background: var(--ink); color: var(--paper); border: 3px solid var(--ink); }
.landfall-art { position: relative; aspect-ratio: 960 / 700; overflow: hidden; }
.landfall-text { padding: 28px 20px 32px; }
.landfall-kicker { margin: 0; font-size: 13px; color: var(--foam); }
.landfall h2 { margin: 12px 0 0; font: 400 clamp(60px, 15vw, 150px)/.9 var(--serif); letter-spacing: -.02em; }
.landfall h2 em { color: var(--yellow); }
.cap-flow { margin-top: 26px; transform: rotate(-1deg); }
.landfall-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.landfall-note { margin: 18px 0 0; font-size: 11px; letter-spacing: .14em; color: var(--mute); }

@media (min-width: 900px) {
  .landfall-panel { aspect-ratio: 960 / 700; border: 0; background: none; }
  .landfall-art, .landfall-panel::before { position: absolute; inset: 0; aspect-ratio: auto; clip-path: polygon(0 4.29%, 100% 0, 96.88% 100%, 2.08% 95.71%); }
  .landfall-panel::before { content: ''; inset: -8px; background: var(--ink); clip-path: polygon(0 4%, 100% 0, 97% 100%, 1.6% 96%); }
  .landfall-art { background: var(--ink); }
  .landfall-text { position: absolute; left: 5.8%; top: 10%; width: 66%; padding: 0; }
  .landfall h2 { font-size: clamp(96px, 10.4vw, 150px); }
  .landfall .cap-flow { width: 400px; }
}

/* Footer */
.foot { background: var(--ink); color: var(--paper); text-align: center; padding: 50px 16px 70px; }
.foot .mark { width: 90px; height: 90px; margin: 0 auto; color: var(--foam); stroke-width: 4; }
.foot-name { margin: 20px 0 8px; font: 400 44px/1.1 var(--serif); }
.foot .mono { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 24px 0 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foam); font-weight: 700; text-underline-offset: 4px; }
.foot .foot-copy { font-size: 11px; letter-spacing: .14em; }

/* Grain, vignette and the fixed controls */
.grain {
  position: fixed; inset: -60px; z-index: 50; pointer-events: none; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -.82'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .04 0 0 0 0 .08 0 0 0 1.6 -.78'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23w)' opacity='.4'/%3E%3Crect width='220' height='220' filter='url(%23d)' opacity='.28'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-13px, 9px); } 40% { transform: translate(7px, -11px); }
  60% { transform: translate(-6px, 14px); } 80% { transform: translate(12px, 4px); } 100% { transform: translate(0, 0); }
}
body::after { content: ''; position: fixed; inset: 0; z-index: 49; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0) 52%, rgba(3, 6, 10, .38) 100%); }

.chapter {
  position: fixed; left: 30px; bottom: 26px; z-index: 60; margin: 0; padding: 4px 8px; pointer-events: none;
  font-size: 12px; letter-spacing: .18em; color: var(--ink); background: rgba(238, 247, 252, .85); transition: color .3s, background .3s;
}
[data-ground="dark"] .chapter { color: var(--paper); background: transparent; }
.sound {
  position: fixed; right: 26px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 8px 12px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: 11px; letter-spacing: .14em; cursor: pointer;
}
.sound rect { fill: var(--ink); }
.no-audio .sound { display: none; }

@media (max-width: 899px) {
  .chapter { display: none; }
}
@media (max-width: 700px) {
  .hud { padding: 12px; }
  .brand span { display: none; }
  .brand { padding: 2px; }
  .brand .mark { width: 36px; height: 36px; }
  .pill { gap: 2px; padding: 4px; font-size: 11px; box-shadow: 3px 3px 0 var(--ink); }
  .pill a { min-height: 40px; padding: 0 10px; }
  .pill .pill-voyage { display: none; }
  .harbour-text { padding-bottom: 300px; }
  .harbour-hint { display: none; }
  .harbour-boat { right: -14px; bottom: 40px; width: min(68vw, 300px); }
  .sound { right: 12px; bottom: 12px; padding: 6px 10px; }
  .sound span { display: none; }
}
@media (max-width: 420px) {
  .pill-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .js .comic { height: calc(5920 * var(--u)); }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 06 Charts: pick a port */
.p-chart .layer { pointer-events: none; }
.p-chart svg.layer { pointer-events: auto; }
.port-dot { cursor: pointer; }
.port-hit { fill: transparent; }
.port-ring { fill: none; stroke: var(--yellow); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.port-pin { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; transition: r .3s; }
.port-dot:hover .port-ring, .port-dot.is-on .port-ring { opacity: 1; }
.port-dot.is-on .port-ring { animation: port-pulse 1.8s ease-out infinite; }
@keyframes port-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.chart-boat { pointer-events: none; }
.ports li { pointer-events: auto; }
.port-btn {
  margin: -10px -12px; padding: 10px 12px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit;
  text-transform: inherit; cursor: pointer; text-decoration: underline dotted rgba(255, 210, 63, .7); text-underline-offset: 5px;
}
.port-btn:hover, .port-btn.is-on { color: var(--yellow); text-decoration-style: solid; }
.port-card { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 14px; }
.port-card p { margin: 0; }
.port-step { font-size: 11px !important; letter-spacing: .14em !important; color: var(--wave-dark); }
.port-title { margin-top: 4px !important; font: 400 24px/1.1 var(--serif) !important; }
.port-body { margin-top: 6px !important; }
.port-card.is-swap { animation: card-in .45s ease-out; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } }
@media (min-width: 900px) {
  .js .comic > .port-card { font-size: max(12px, calc(14 * var(--u))); z-index: 5; }
}
@media (max-width: 899px) {
  .port-card { align-self: stretch !important; max-width: none; margin-top: -10px; }
  .ports li:nth-child(4) { left: auto; right: 3%; }
}
@media (prefers-reduced-motion: reduce) {
  .port-dot.is-on .port-ring { animation: none; opacity: 1; transform: none; }
}
