/* People on Boat home page: tokens, cartoon chart skin, map furniture and the bounty-card chart index. */
@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: 'Lilita One'; src: url(../fonts/lilita-one-latin-400-normal.woff2) format('woff2'); font-weight: 400; 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-btn: #15668c; --foam: #c8e8f5;
  --copper: #c47c2f; --rust: #d65c3a; --mist: #e8eef3; --white: #fff;
  --line-dark: rgba(200, 232, 245, .16);
  --ol: #0d1f3c; --yellow: #ffd23f; --orange: #ff7a2f; --pin: #ff5a5a; --panel: #f2fbff; --sea: #0f5fb4;
  /* Cool chart paper. The design doc's #f9f1d8 is a beige, which the house rules do not allow on any surface. */
  --paper: #eef7fc;
  --serif: 'DM Serif Display', Georgia, serif; --sans: 'Syne', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --toon: 'Lilita One', 'Syne', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px); --maxw: 1200px; --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--mist); font: 500 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(64px, 10vw, 120px) var(--gutter); }
.ocean { background: linear-gradient(180deg, var(--ocean), #0a2c46); color: var(--mist); }
.kicker { font: italic 400 1.15rem/1.3 var(--serif); color: var(--yellow); margin: 0 0 .6rem; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; }
.lede { max-width: 38rem; opacity: .86; }
.mono { font-family: var(--mono); font-size: .82rem; letter-spacing: .02em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; font: 400 1.05rem var(--toon); letter-spacing: .01em; text-decoration: none; border: 3px solid var(--ol); box-shadow: 0 4px 0 var(--ol); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ol); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ol); }
.btn-primary { background: var(--yellow); color: var(--ol); }
.btn-primary:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: #fff; color: var(--ol); }
.btn-ghost:hover { background: var(--foam); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }


/* Header: floating pill */
.site-header { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: .4rem; padding: .35rem .5rem .35rem 1rem; max-width: calc(100vw - 24px);
  background: rgba(11, 15, 20, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-dark); border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 400 1.05rem var(--serif); color: #fff; white-space: nowrap; min-height: 44px; }
.brand svg { width: 34px; height: 22px; flex: none; }
.site-nav { display: flex; gap: .15rem; margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--line-dark); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 999px; text-decoration: none; font: 700 .82rem var(--sans); color: var(--foam); white-space: nowrap; }
.site-nav a:hover { background: rgba(200, 232, 245, .12); }
.site-nav .nav-cta { background: var(--yellow); color: var(--ol); }
.site-nav .nav-cta:hover { background: var(--orange); color: #fff; }
.ex-lock .site-header { display: none; }
/* Phone: the brand word hides so the three nav items fit at 360px. */
@media (max-width: 560px) {
  .brand span { display: none; }
  .site-header { padding-left: .7rem; }
  .site-nav { margin-left: .2rem; padding-left: .3rem; }
  .site-nav a { padding: 0 .65rem; }
}
/* Phones: Chart index has its own hero button, and below 440px the brand icon already returns to the hero, so Explore drops out. */
@media (max-width: 560px) { .site-nav .nav-index { display: none; } }
@media (max-width: 440px) { .site-nav .nav-explore { display: none; } }
@media (max-width: 380px) { .site-nav a { padding: 0 .45rem; font-size: .76rem; } }


/* Explore: the hero that opens into the map */
.explore { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #08243a; --photo-focus: 50% 50%; }
.explore .sp3d-canvas { cursor: grab; }
.explore.is-dragging .sp3d-canvas { cursor: grabbing; }
.explore.is-exploring { touch-action: none; }
/* sp3d.css sets every direct child of [data-sp3d] to position: relative; the overlay layer must stay absolute. */
.ex-layer { position: absolute !important; inset: 0; z-index: 3 !important; pointer-events: none; }
.ex-layer > * { pointer-events: auto; }
.ex-hero { position: absolute; left: var(--gutter); bottom: clamp(24px, 7vh, 72px); max-width: 38rem; padding: 1.4rem 1.6rem 1.6rem; border-radius: var(--radius); background: linear-gradient(135deg, rgba(8, 20, 32, .74), rgba(8, 20, 32, .42)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ex-hero h1 { font: 400 clamp(2.6rem, 7vw, 5.4rem)/1.02 var(--toon); letter-spacing: .01em; color: #fff; -webkit-text-stroke: 3px var(--ol); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ol); transform: rotate(-1.5deg); }
.ex-hero h1 span { display: block; }
.hero-tag { font: italic 400 clamp(1.4rem, 2.6vw, 2.1rem)/1.2 var(--serif); color: var(--yellow); margin: 1.2rem 0 1rem; }
.hero-intro { max-width: 32rem; color: rgba(232, 238, 243, .92); }
.ex-coords { margin: 1rem 0 0; color: var(--foam); font-size: .8rem; letter-spacing: .08em; }
.explore.is-exploring .ex-hero, .explore.is-shot .ex-layer { display: none; }
.explore.is-3d-fallback .ex-furniture, .explore.is-3d-fallback .ex-pins { display: none; }
.explore:not(.is-exploring) .ex-furniture, .explore:not(.is-exploring) .ex-pins, .explore:not(.is-exploring) .ex-panel { display: none; }
.ex-furniture { position: absolute; z-index: 4; }
.ex-top { top: 20px; left: var(--gutter); right: var(--gutter); display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; pointer-events: none; }
.ex-top > * { pointer-events: auto; }
.ex-bottom { left: var(--gutter); right: var(--gutter); bottom: 20px; display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; pointer-events: none; }
.ex-bottom > * { pointer-events: auto; }
.ex-btn { min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 3px solid var(--ol); background: var(--yellow); color: var(--ol); font: 400 1rem var(--toon); cursor: pointer; box-shadow: 0 4px 0 var(--ol); transition: transform .12s, box-shadow .12s; }
.ex-btn:hover, .ex-btn[aria-pressed="true"], .ex-btn[aria-expanded="true"] { background: var(--orange); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ol); }
.ex-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ol); }
.ex-small { min-height: 32px; padding: .25rem .7rem; font-size: .8rem; }
.ex-menu-wrap { position: relative; }
.ex-menu { position: absolute; top: 56px; left: 0; width: min(18rem, 86vw); max-height: 62vh; overflow: auto; padding: .7rem; border-radius: var(--radius); background: rgba(8, 20, 32, .94); border: 1px solid var(--line-dark); display: grid; gap: .15rem; }
.ex-menu[hidden] { display: none; }
.ex-menu-h { margin: .5rem 0 .2rem; font: 400 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--foam); }
.ex-menu-item { text-align: left; min-height: 44px; padding: .4rem .6rem; border-radius: 8px; border: 0; background: transparent; color: #fff; font: 500 .9rem var(--sans); cursor: pointer; }
.ex-menu-item:hover, .ex-menu-item:focus-visible { background: rgba(26, 125, 168, .5); }
.ex-compass { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 20, 32, .72); cursor: pointer; }
.ex-compass svg { width: 100%; height: 100%; display: block; }
.ex-time { display: flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(8, 20, 32, .78); border: 1px solid rgba(200, 232, 245, .35); color: #fff; font: 400 .74rem var(--mono); }
.ex-time input { width: clamp(90px, 16vw, 180px); accent-color: var(--orange); }
.ex-cartouche { margin: 0 0 0 auto; padding: .6rem .9rem; border-radius: 10px; border: 1px solid rgba(200, 232, 245, .5); background: rgba(8, 20, 32, .78); color: #fff; font: 400 .85rem/1.35 var(--serif); text-align: right; }
.ex-cartouche b { display: block; font: 700 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.ex-cartouche .mono { font-size: .68rem; color: var(--foam); }
.ex-hint { align-self: center; padding: 2px 8px; border-radius: 99px; background: rgba(8, 20, 32, .6); width: max-content; margin: 0; color: rgba(200, 232, 245, .9); font-size: .72rem; text-shadow: 0 1px 4px #000; }
.explore.has-panel .ex-cartouche { display: none; }


/* Map pins and fact dots, placed by the scene every frame */
.ex-pins { position: absolute; inset: 0; pointer-events: none; }
.ex-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 6px; border: 0; background: transparent; cursor: pointer; will-change: transform; }
.ex-pin.is-off { visibility: hidden; }
.ex-pin-label { padding: 3px 12px 4px; border-radius: 12px; background: #fff; border: 3px solid var(--ol); box-shadow: 0 3px 0 var(--ol); font: 400 1.05rem/1.1 var(--toon); color: var(--ol); white-space: nowrap; letter-spacing: .01em; }
.ex-pin-dot { order: 2; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ol); background: var(--yellow); box-shadow: 0 2px 0 var(--ol); transition: transform .2s; }
.ex-service .ex-pin-dot { background: var(--orange); }
.ex-career .ex-pin-label { font: 400 .85rem var(--toon); background: var(--yellow); }
.ex-career .ex-pin-dot { width: 12px; height: 12px; background: var(--pin); }
.ex-pin:hover .ex-pin-dot, .ex-pin:focus-visible .ex-pin-dot, .ex-pin[aria-pressed="true"] .ex-pin-dot { transform: scale(1.5); }
.ex-pin:focus-visible { outline: 3px solid #fff; border-radius: 8px; }
.ex-dot { position: absolute; left: 0; top: 0; z-index: 3; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); cursor: default; animation: ex-pulse 2.2s ease-in-out infinite; }
.ex-dot-tip { position: absolute; left: 50%; bottom: 140%; transform: translateX(-50%); padding: .25rem .6rem; border-radius: 999px; background: rgba(8, 20, 32, .92); color: #fff; font: 700 .76rem var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ex-dot:hover .ex-dot-tip, .ex-dot:focus .ex-dot-tip { opacity: 1; }
@keyframes ex-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }


/* Island panel: side panel on desktop, bottom sheet on phones */
.ex-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 40vw); z-index: 6; overflow: auto; padding: 4rem 1.8rem 2rem; background: var(--panel); color: var(--ol); border-left: 5px solid var(--ol); box-shadow: -8px 0 0 rgba(13, 31, 60, .35); animation: ex-slide .55s cubic-bezier(.2, .8, .2, 1); }
.ex-panel[hidden] { display: none; }
@keyframes ex-slide { from { transform: translateX(100%); } to { transform: none; } }
.ex-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ol); background: #fff; color: var(--ol); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.ex-eyebrow { margin: 0 0 .3rem; font: 400 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #2f5a73; }
.ex-title { margin: 0 0 1rem; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--toon); letter-spacing: .01em; color: var(--ol); }
.ex-title:focus { outline: none; }
.ex-thumb { display: block; width: 100%; height: auto; margin: 0 0 1rem; background: var(--ocean); border: 4px solid var(--ol); border-radius: 16px; box-shadow: 0 5px 0 var(--ol); }
.ex-status { display: inline-block; margin: 0 0 .8rem; padding: .15rem .7rem; border-radius: 999px; background: var(--ocean); color: #fff; font: 700 .74rem var(--sans); }
.ex-text { margin: 0 0 1rem; line-height: 1.6; }
.ex-chips, .facts { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1.2rem; list-style: none; }
.ex-chips li { padding: .2rem .7rem; border: 3px solid var(--ol); border-radius: 12px; background: #fff; color: var(--ol); font: 400 .9rem var(--toon); }
.ex-go { margin-top: .4rem; }
.ex-panel .links a { color: #8f3a12; font-weight: 700; }


/* Shared extras inside a card and the panel */
.bars { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; gap: .6rem; align-items: center; font: 400 .85rem var(--sans); }
.bars .bar { display: block; height: 10px; border-radius: 99px; background: rgba(13, 31, 60, .2); overflow: hidden; }
.bars i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; }
.bars b { font: 400 .78rem var(--mono); text-align: right; }
.stat-line b { font: 400 1.5rem var(--serif); }
.links { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.portrait { margin: 0 0 1rem; }
/* The source photo has almost no headroom, so the frame pads the top to keep the whole head clear of the edge. */
.portrait img { display: block; width: 100%; max-width: 15rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; padding-top: 1.2rem; background: var(--ocean); border: 4px solid var(--ol); border-radius: 12px; box-shadow: 0 5px 0 var(--ol); }
@media (max-width: 860px) {
  .ex-panel { top: auto; left: 0; width: auto; max-height: 56svh; padding: 3.4rem 1.2rem 1.4rem; border-left: 0; border-top: 5px solid var(--ol); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 0 rgba(13, 31, 60, .35); animation-name: ex-rise; }
  @keyframes ex-rise { from { transform: translateY(100%); } to { transform: none; } }
  .ex-bottom { bottom: 12px; gap: .5rem; }
  .ex-cartouche, .ex-hint { display: none; }
  .explore.has-panel .ex-bottom { display: none; }
  .bars li { grid-template-columns: 6.6rem 1fr 2.4rem; }
  .ex-hero { right: var(--gutter); padding: 1.1rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .ex-dot, .ex-panel { animation: none; } }
.explore.is-shot .sp3d-canvas { transition: none; }
body.ex-shot .site-header, body.ex-shot .ex-hero, body.ex-shot .ex-furniture, body.ex-shot .ex-pins { display: none !important; }


/* Chart index: a board of pinned bounty-style posters, one per island */
.bounty-board { background: var(--sea) radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .14) 0 2px, transparent 3px) 0 0 / 34px 34px; color: #fff; border-top: 6px solid var(--ol); }
.bounty-board h2 { font-family: var(--toon); font-weight: 400; color: #fff; -webkit-text-stroke: 2px var(--ol); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ol); }
.bounty-board .list-intro { color: #e8f6ff; margin-bottom: 1.4rem; }
.group-h { margin: 2.4rem 0 1rem; font: 400 1.6rem/1.1 var(--toon); color: var(--yellow); text-shadow: 0 3px 0 var(--ol); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.8rem 1.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.project { position: relative; display: flex; flex-direction: column; padding: 3.4rem 1.1rem 1.2rem; border: 5px solid var(--ol); border-radius: 6px; background: var(--paper); color: var(--ol); box-shadow: 0 8px 0 var(--ol); transition: transform .2s; scroll-margin-top: 90px; }
.project:nth-child(odd) { transform: rotate(-1.2deg); }
.project:nth-child(even) { transform: rotate(1deg); }
.project:nth-child(3n) { transform: rotate(-.4deg); }
.project:hover, .project:focus-within, .project:target { transform: rotate(0) translateY(-6px); }
.project::before { content: "Charted"; position: absolute; left: 0; right: 0; top: .85rem; text-align: center; font: 400 1.6rem/1 var(--toon); letter-spacing: .14em; text-transform: uppercase; color: var(--ol); }
.project::after { content: ""; position: absolute; top: -13px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--pin); border: 3px solid var(--ol); box-shadow: 0 3px 0 var(--ol); }
.bounty-img { order: 1; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border: 4px solid var(--ol); background: #6fd6ff; }
.project h3 { order: 2; margin: .7rem 0 .5rem; text-align: center; font: 400 1.7rem/1.1 var(--toon); color: var(--ol); text-transform: uppercase; letter-spacing: .02em; }
.project .meta { order: 3; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .25rem 0 .6rem; border-top: 3px solid var(--ol); border-bottom: 3px solid var(--ol); margin-bottom: .8rem; text-align: center; }
.project .meta .mono { font: 400 .8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8f3a12; }
.badge { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font: 700 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; background: var(--ol); color: var(--yellow); }
.badge.wip { background: var(--rust); color: #fff; }
.project .text { order: 4; color: var(--ol); }
.project .extra { order: 5; color: var(--ol); }
.project .extra a { color: #8f3a12; font-weight: 700; }
.project .embed { display: none; }
.ex-panel .embed { margin: 0 0 1rem; }
.ex-panel .embed-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ocean); border: 4px solid var(--ol); border-radius: 16px; box-shadow: 0 5px 0 var(--ol); }
.ex-panel .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-panel .embed figcaption { margin-top: .7rem; font-size: .9rem; }
.ex-panel .embed figcaption a { color: #8f3a12; font-weight: 700; }
.project .facts { order: 6; margin-top: auto; padding-top: .6rem; }
.tags li { padding: .1rem .55rem; border: 2px solid var(--ol); border-radius: 8px; background: #fff; color: var(--ol); font: 400 .84rem var(--toon); letter-spacing: .02em; }
.project a.go { order: 7; align-self: center; margin-top: .9rem; padding: .5rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; border: 3px solid var(--ol); border-radius: 999px; background: var(--yellow); color: var(--ol); font: 400 1rem var(--toon); text-decoration: none; box-shadow: 0 4px 0 var(--ol); }
.project a.go:hover { background: var(--orange); color: #fff; }
.project a:focus-visible { outline: 3px solid var(--ol); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .project, .project:hover, .project:focus-within, .project:target { transform: none; transition: none; } }


/* Contact and footer */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; max-width: var(--maxw); margin: 0 auto; }
.contact-grid h2 { font-family: var(--toon); color: #fff; -webkit-text-stroke: 2px var(--ol); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ol); }
.contact-list { list-style: none; margin: 0; padding: 1.2rem 1.6rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(11, 15, 20, .5); }
.contact-list li { padding: .85rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list li:last-child { border: 0; }
.contact-list a { font-weight: 700; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.site-footer { padding: 2rem var(--gutter); background: var(--ink); color: rgba(232, 238, 243, .75); font-size: .88rem; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.site-footer a { color: var(--foam); }


/* Preloader: shown only while html.pob-loading is set by pob-loader.js, so it never appears without JavaScript */
.pob-loader { display: none; }
html.pob-loading { overflow: hidden; }
.pob-loading .pob-loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 42%, #1788f0 0, #0b55c0 52%, #0a1a4a 100%); transition: opacity .5s ease, visibility 0s linear .5s; }
.pob-loaded .pob-loader { opacity: 0; visibility: hidden; }
.pl-rose { position: absolute; width: min(120vmin, 900px); height: auto; opacity: .1; animation: pl-spin 40s linear infinite; }
.pl-inner { position: relative; width: min(320px, calc(100vw - 32px)); }
.pl-brand { margin: 0 0 1.4rem; font: 400 clamp(2rem, 8vw, 2.8rem)/1 var(--toon); letter-spacing: .01em; -webkit-text-stroke: 3px var(--ol); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ol); transform: rotate(-1.5deg); }
.pl-voyage { position: relative; height: 96px; overflow: hidden; }
.pl-route { position: absolute; left: 22px; right: 46px; bottom: 30px; border-bottom: 4px dotted rgba(255, 255, 255, .45); }
/* Progress drawn as the voyage route; --p (0 to 1) is set by pob-loader.js. */
.pl-route-done { border-bottom-color: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .45s ease; }
.pl-port { position: absolute; right: -6px; bottom: 14px; width: 60px; height: auto; }
.pl-ship { position: absolute; left: 0; bottom: 18px; width: 54px; transform: translateX(calc(var(--p, 0) * (min(320px, 100vw - 32px) - 104px))); transition: transform .45s ease; }
.pl-ship svg { display: block; width: 100%; height: auto; transform-origin: 50% 90%; animation: pl-bob 1.6s ease-in-out infinite; }
.pl-waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 24px; animation: pl-sea 3s linear infinite; }
.pl-status { margin: 1.2rem 0 .3rem; font: 400 1.25rem var(--toon); color: var(--yellow); text-shadow: 0 2px 0 var(--ol); }
.pl-coords { margin: 0; font: 400 .74rem var(--mono); letter-spacing: .1em; color: var(--foam); }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes pl-sea { to { transform: translateX(-50%); } }
