/* CatBarge — site styles. Mobile first. */
@font-face { font-family: "Bonum"; src: url("../fonts/bonum-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bonum"; src: url("../fonts/bonum-bolditalic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #12252e;
  --deep: #0b3c4b;
  --deep-2: #145262;
  --sea: #1f7a85;
  --foam: #eaf6f3;
  --mist: #bfe3dc;
  --red: #b5332a;
  --gold: #f4b23e;
  --cream: #fff7df;
  --galley: #b8562a;
  --deck: #96701c;
  --engine: #56626c;
  --skiff: #9a6c12;
  --passengers: #2f5f99;
  --display: "Bonum", "Bookman Old Style", "Bookman", Georgia, serif;
  --body: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 5.5vw, 56px);
  --bar: 60px;
  --p: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.62; color: var(--ink); background: var(--foam); overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
:where(ul[role="list"], ol) { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 8.4vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 5.4vw, 2rem); }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cats :focus-visible, .story :focus-visible, .shore :focus-visible, .sheet :focus-visible { outline-color: var(--red); }

.wrap { width: min(100%, 1160px); margin-inline: auto; padding-inline: var(--pad); }
.lede { font-size: clamp(1.08rem, 3.6vw, 1.3rem); line-height: 1.55; max-width: 34em; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* buttons: enamel-sign plates */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.1; text-decoration: none; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: translate .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:hover { background: #ffc85c; }
.btn:active { translate: 0 4px; box-shadow: 0 1px 0 var(--ink); }
.btn--small { min-height: 42px; padding: 6px 18px; font-size: .95rem; border-width: 2.5px; box-shadow: 0 3px 0 var(--ink); }
.btn--line { background: transparent; box-shadow: none; border-width: 2.5px; min-height: 48px; padding: 8px 18px; font-size: .98rem; }
.btn--line:hover { background: var(--mist); }
.btn--line:active { translate: 0 1px; box-shadow: none; }

/* reading progress: the waterline */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: var(--red); transform-origin: 0 50%; scale: 0 1; animation: fill linear both; animation-timeline: scroll(root); }
  @keyframes fill { to { scale: 1 1; } }
}

/* top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--bar) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--pad) 0; display: flex; align-items: center; gap: 18px; color: #fff; transition: background-color .25s ease, box-shadow .25s ease; }
.topbar.is-solid { background: color-mix(in srgb, var(--deep) 92%, transparent); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.topbar__logo { display: block; margin-right: auto; border-radius: 6px; }
.topbar__logo img { width: 132px; height: auto; }
.topbar__nav { display: none; gap: 26px; font-weight: 500; }
.topbar__nav a { text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.topbar__nav a:hover { border-color: var(--gold); }
@media (min-width: 760px) { .topbar__nav { display: flex; } .topbar__logo img { width: 150px; } }

/* ───────── hero ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; overflow: clip; color: #fff; background: var(--deep); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #1f6f7c url("../video/hero-portrait-poster.jpg") 50% 78% / cover no-repeat; transform: translate3d(0, calc(var(--p) * 16%), 0) scale(calc(1 + var(--p) * .1)); transform-origin: 50% 70%; will-change: transform; }
.hero__video { display: none; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.js .hero__video { display: block; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 36, 46, .82) 0%, rgba(6, 36, 46, .5) 30%, rgba(6, 36, 46, 0) 52%), linear-gradient(0deg, rgba(6, 36, 46, .5) 0%, rgba(6, 36, 46, 0) 22%); }
.hero__copy { position: absolute; inset: calc(var(--bar) + env(safe-area-inset-top, 0px) + clamp(8px, 3svh, 36px)) var(--pad) auto; max-width: 660px; transform: translate3d(0, calc(var(--p) * -70px), 0); opacity: calc(1 - var(--p) * 1.9); }
.hero h1 { font-size: clamp(2.1rem, 9.7vw, 4.3rem); text-shadow: 0 2px 0 rgba(6, 36, 46, .35); }
.hero h1 span { display: block; }
.hero__copy p { margin-top: 12px; max-width: 30em; font-size: clamp(1rem, 3.9vw, 1.2rem); line-height: 1.45; text-shadow: 0 1px 8px rgba(6, 36, 46, .6); }
.hero__copy .btn { margin-top: 18px; }
.hero__foot { position: absolute; inset: auto var(--pad) calc(clamp(26px, 5vw, 58px) + 18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; opacity: calc(1 - var(--p) * 3); }
.hero__pause { white-space: nowrap; min-height: 44px; padding: 6px 14px; background: rgba(6, 36, 46, .55); color: #fff; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.hero__pause:hover { background: rgba(6, 36, 46, .8); }

.social-dots { display: flex; gap: clamp(6px, 2.4vw, 10px); }
.social-dots a { display: grid; place-items: center; width: clamp(44px, 12vw, 48px); height: clamp(44px, 12vw, 48px); border-radius: 50%; background: rgba(6, 36, 46, .55); border: 2px solid rgba(255, 255, 255, .7); color: #fff; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.social-dots a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social-dots svg { width: 22px; height: 22px; }

@media (min-aspect-ratio: 1/1) {
  .hero__media { background-image: url("../video/hero-landscape-poster.jpg"); background-position: 50% 70%; }
  .hero__video { object-position: 50% 70%; }
  .hero__scrim { background: linear-gradient(100deg, rgba(6, 36, 46, .78) 0%, rgba(6, 36, 46, .42) 34%, rgba(6, 36, 46, 0) 58%), linear-gradient(180deg, rgba(6, 36, 46, .5) 0%, rgba(6, 36, 46, 0) 30%); }
  .hero h1 { font-size: clamp(2rem, 3.7vw, 3.5rem); }
  .hero h1 span { display: inline; }
  .hero h1 span:last-child { display: block; }
  .hero__copy { max-width: min(54vw, 780px); }
  .hero__foot { justify-content: flex-start; gap: 20px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 640px) {
  .hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.4rem); }
  .hero__copy p { display: none; }
}
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
  .hero__copy p { display: none; }
}

/* layered wave dividers */
.waves { position: absolute; inset: auto 0 -1px 0; height: clamp(26px, 5vw, 58px); pointer-events: none; overflow: hidden; overflow: clip; }
.waves__l { position: absolute; left: -30%; bottom: 0; width: 160%; max-width: none; height: 100%; }
.waves__l--back { transform: translate3d(calc(var(--p) * -9%), 0, 0); height: 118%; }
.waves__l--front { transform: translate3d(calc(var(--p) * 12% - 6%), 0, 0); }
.waves--top { inset: -1px 0 auto 0; }
.waves--flip { transform: scaleY(-1); }

/* ───────── story ───────── */
.story { padding-block: clamp(48px, 10vw, 110px) clamp(64px, 12vw, 130px); }
.story__grid { display: grid; gap: clamp(28px, 6vw, 72px); }
.story h2 { max-width: 13em; margin-bottom: 18px; }
.plate { align-self: start; border: 3px solid var(--ink); border-radius: 14px; background: #fff; padding: 8px 20px; box-shadow: 0 6px 0 var(--ink); }
.plate > div { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); }
.plate > div:last-child { border-bottom: 0; }
.plate dt { flex: none; width: 5.2em; font-size: .86rem; font-weight: 500; color: var(--sea); }
.plate dd { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
@media (min-width: 860px) { .story__grid { grid-template-columns: 1.25fr 1fr; align-items: center; } }

/* ───────── captain ───────── */
.captain { position: relative; background: var(--deep); color: var(--cream); padding-block: clamp(84px, 15vw, 160px) clamp(56px, 9vw, 110px); overflow: hidden; overflow: clip; }
.captain__grid { display: grid; gap: clamp(24px, 6vw, 72px); align-items: center; }
.captain__art { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 420 / 480; }
.captain__glow { position: absolute; inset: 4% -6% 0; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #ffb24a 0%, #e9772b 34%, rgba(233, 119, 43, 0) 68%); opacity: .9; transform: translate3d(0, calc((var(--p) - .5) * 90px), 0) scale(calc(.92 + var(--p) * .16)); }
.captain__img { position: relative; width: 100%; transform: translate3d(0, calc((var(--p) - .5) * -46px), 0); filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .18)); }
.captain__embers { position: absolute; inset: 0; transform: translate3d(0, calc((var(--p) - .5) * -260px), 0); }
.captain__embers i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffd34a; box-shadow: 0 0 10px 3px rgba(255, 150, 40, .7); }
.captain__embers i:nth-child(1) { left: 6%; top: 34%; }
.captain__embers i:nth-child(2) { left: 88%; top: 20%; width: 6px; height: 6px; }
.captain__embers i:nth-child(3) { left: 96%; top: 62%; }
.captain__embers i:nth-child(4) { left: 0%; top: 78%; width: 5px; height: 5px; }
.captain__embers i:nth-child(5) { left: 78%; top: 92%; width: 6px; height: 6px; }
.captain__embers i:nth-child(6) { left: 16%; top: 6%; width: 5px; height: 5px; }
.rank { font-weight: 500; color: var(--gold); margin-bottom: 6px; }
.captain__copy h2 { margin-bottom: 18px; }
.captain__copy p + p { margin-top: 14px; }
.captain__copy > p { max-width: 34em; }
.pull { margin-top: 26px; padding: 4px 0 4px 20px; border-left: 5px solid var(--red); }
.pull p { font-family: var(--display); font-weight: 700; font-style: italic; font-size: clamp(1.4rem, 5.6vw, 2rem); line-height: 1.15; color: #fff; }
.pull footer { margin-top: 8px; font-size: .92rem; color: var(--mist); }
@media (min-width: 860px) { .captain__grid { grid-template-columns: minmax(280px, 400px) 1fr; } }

.crew { margin-top: clamp(52px, 9vw, 96px); }
.crew h3 { margin-bottom: 22px; }
.crew__list { display: grid; gap: 22px 40px; }
.mate { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.mate__icon { width: 56px; height: 56px; padding: 6px; border-radius: 50%; background: var(--deep-2); color: var(--gold); }
.mate h4 { font-size: 1.22rem; }
.mate__role { font-size: .9rem; font-weight: 500; color: var(--gold); margin-bottom: 4px; }
.mate p:last-child { color: color-mix(in srgb, var(--cream) 88%, transparent); }
@media (min-width: 720px) { .crew__list { grid-template-columns: 1fr 1fr; } }

/* ───────── shore run ───────── */
.shore { background: var(--foam); padding-top: clamp(56px, 10vw, 120px); }
.shore__intro h2 { margin-bottom: 14px; }
.voyage { --strip-h: max(clamp(250px, 50svh, 460px), 21.6vw); position: relative; margin-top: clamp(28px, 6vw, 56px); color: #fff; }
.voyage__sticky { position: relative; overflow: hidden; padding-top: 28px; background: linear-gradient(180deg, #0f4c5c 0%, #2a8087 30%, #8fc2ad 52%, #f7c877 72%, #ffdf9c 100%); }
.voyage__sun { position: absolute; right: 12%; bottom: calc(var(--strip-h) * .3); width: clamp(90px, 16vw, 170px); aspect-ratio: 1; border-radius: 50%; background: #fff6d2; box-shadow: 0 0 80px 50px rgba(255, 210, 122, .55); transform: translate3d(calc(var(--p) * -8vw), 0, 0); }
.voyage__far { position: absolute; left: 0; bottom: calc(var(--strip-h) * .268); width: max(1500px, 140vw); max-width: none; transform: translate3d(calc(var(--p) * -32vw), 0, 0); }
.voyage__cloud { display: none; position: absolute; width: clamp(120px, 26vw, 260px); max-width: none; opacity: .85; }
.voyage__cloud--a { left: 58%; top: 30%; transform: translate3d(calc(var(--p) * -60vw), 0, 0); }
.voyage__cloud--b { left: 96%; top: 42%; width: clamp(90px, 18vw, 190px); opacity: .7; transform: translate3d(calc(var(--p) * -95vw), 0, 0); }
.voyage__cloud--c { left: 8%; top: 38%; width: clamp(80px, 15vw, 160px); opacity: .55; transform: translate3d(calc(var(--p) * -22vw), 0, 0); }
.voyage__steps { position: relative; z-index: 2; display: grid; gap: 18px; padding: 0 var(--pad) 26px; counter-reset: step; }
.voyage__steps li { max-width: 31em; }
.voyage__steps h3 { margin-bottom: 4px; text-shadow: 0 2px 0 rgba(6, 36, 46, .3); }
.voyage__steps h3::before { counter-increment: step; content: counter(step) ". "; color: var(--gold); }
.voyage__steps p { text-shadow: 0 1px 8px rgba(6, 36, 46, .55); }
.voyage__scroller { position: relative; height: var(--strip-h); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.voyage__strip { position: relative; height: 100%; aspect-ratio: 2600 / 560; }
.voyage__world { width: 100%; height: 100%; max-width: none; }
.voyage__skiff { position: absolute; left: 13%; bottom: 7%; width: 13.85%; max-width: none; height: auto; animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-4%) rotate(1.6deg); } }
.voyage__water { display: none; }

/* scroll-driven version: pinned scene, the camera follows the skiff */
@media (prefers-reduced-motion: no-preference) {
  .js .voyage { height: 330vh; height: 330svh; }
  .js .voyage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 0; }
  .js .voyage__cloud { display: block; }
  .js .voyage__steps { position: absolute; inset: calc(var(--bar) + clamp(10px, 3svh, 40px)) 0 auto; display: block; padding-bottom: 0; }
  .js .voyage__steps li { position: absolute; inset: 0 var(--pad) auto; --c: .5; opacity: clamp(0, calc((.2 - max(var(--p) - var(--c), var(--c) - var(--p))) * 14), 1); transform: translate3d(0, calc((var(--p) - var(--c)) * -60px), 0); }
  .js .voyage__steps li:nth-child(1) { --c: .1; }
  .js .voyage__steps li:nth-child(3) { --c: .9; }
  .js .voyage__scroller { position: absolute; inset: auto 0 0 0; overflow: hidden; }
  .js .voyage__strip { transform: translate3d(clamp(100vw - 100%, 50vw - (19.9% + var(--p) * 60.6%), 0px), 0, 0); will-change: transform; }
  .js .voyage__skiff { translate: calc(var(--p) * 404%) 0; }
  .js .voyage__water { display: block; position: absolute; inset: auto -20% 0 -20%; height: calc(var(--strip-h) * .1); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 9 q20 -9 40 0 t40 0 t40 0 t40 0 V40 H0 Z' fill='%230f5c6b'/%3E%3C/svg%3E") 0 0 / 170px 100% repeat-x; transform: translate3d(calc(var(--p) * -14%), 0, 0); }
}

.menu { padding-block: clamp(44px, 8vw, 90px) clamp(64px, 11vw, 120px); display: grid; gap: 22px clamp(28px, 6vw, 72px); }
.menu__head h3 { margin-bottom: 10px; }
.menu__list { display: grid; gap: 0; }
.menu__list li { padding: 14px 0; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 30%, transparent); }
.menu__list li:first-child { border-top: 3px solid var(--ink); }
.menu__list h4 { font-size: 1.2rem; margin-bottom: 2px; }
.menu__note a { font-weight: 700; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 860px) { .menu { grid-template-columns: 1fr 1.2fr; align-items: start; } .menu__note { grid-column: 2; } }

/* ───────── the cats ───────── */
.cats { background: #fff; padding-block: clamp(56px, 10vw, 120px) clamp(40px, 8vw, 100px); }
.cats__intro h2 { margin-bottom: 14px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump a { padding: 9px 15px; min-height: 44px; display: inline-flex; align-items: center; border: 2.5px solid currentColor; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.jump a:hover { background: var(--foam); }
.jump__galley, .station--galley { --tone: var(--galley); }
.jump__deck, .station--deck { --tone: var(--deck); }
.jump__engine, .station--engine { --tone: var(--engine); }
.jump__skiff, .station--skiff { --tone: var(--skiff); }
.jump__passengers, .station--passengers { --tone: var(--passengers); }
.jump a { color: var(--tone); }

.station { margin-top: clamp(40px, 7vw, 72px); scroll-margin-top: calc(var(--bar) + 8px); }
.station__head { width: min(100%, 1160px); margin-inline: auto; padding-inline: var(--pad); }
.station__head h3 { display: inline-block; padding-bottom: 6px; border-bottom: 6px solid var(--tone); }
.station__head p { margin-top: 8px; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.station__count { white-space: nowrap; font-weight: 700; color: var(--tone); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(60vw, 224px); gap: 18px; margin-top: 18px; padding: 6px var(--pad) 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--tone) transparent; }
.cat { position: relative; scroll-snap-align: start; }
.cat__open { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: rotate .25s ease, scale .25s ease; }
.cat__open::after { content: ""; position: absolute; inset: 0; }
.cat__open:hover { rotate: -3deg; scale: 1.03; }
.cat__img { width: 100%; }
.cat__name { margin-top: 10px; font-size: 1.28rem; }
.cat__role { font-size: .84rem; font-weight: 700; color: var(--tone); line-height: 1.3; margin-top: 2px; }
.cat__line { font-size: .93rem; line-height: 1.45; margin-top: 6px; }
@media (min-width: 900px) {
  .row { width: min(100%, 1160px); margin-inline: auto; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 34px 26px; overflow: visible; padding-bottom: 0; }
}

/* cat file: bottom sheet on phones, card on larger screens */
.sheet { width: 100%; max-width: 100%; max-height: 90vh; max-height: 90dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: #fff; color: var(--ink); overflow: auto; overscroll-behavior: contain; opacity: 0; translate: 0 40px; transition: opacity .25s ease, translate .3s cubic-bezier(.2, .8, .2, 1), overlay .3s allow-discrete, display .3s allow-discrete; }
.sheet[open] { opacity: 1; translate: 0 0; }
@starting-style { .sheet[open] { opacity: 0; translate: 0 40px; } }
.sheet::backdrop { background: rgba(6, 30, 38, 0); transition: background-color .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
.sheet[open]::backdrop { background: rgba(6, 30, 38, .66); }
@starting-style { .sheet[open]::backdrop { background: rgba(6, 30, 38, 0); } }
.sheet__inner { position: relative; padding: 24px var(--pad) calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 8px solid var(--tone, var(--sea)); border-radius: 24px 24px 0 0; }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--foam); cursor: pointer; }
.sheet__close:hover { background: var(--mist); }
.sheet__head { display: grid; grid-template-columns: clamp(96px, 30vw, 150px) 1fr; gap: 16px; align-items: center; padding-right: 44px; }
.sheet__station { font-size: .84rem; font-weight: 700; color: var(--tone, var(--sea)); }
.sheet__name { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.sheet__role { font-weight: 500; margin-top: 4px; line-height: 1.3; }
.sheet__body { margin-top: 18px; }
.file__facts { margin-top: 16px; display: grid; gap: 12px; }
.file__facts dt { font-size: .84rem; font-weight: 700; color: var(--tone, var(--sea)); }
.log { margin-top: 18px; padding: 14px 16px; background: var(--foam); border-left: 5px solid var(--red); border-radius: 0 10px 10px 0; }
.log p { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.14rem; line-height: 1.25; }
.log footer { margin-top: 6px; font-size: .86rem; }
.log footer::before { content: "Ship’s log, "; }
.sheet__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.sheet__nav .btn { flex: 1; }
@media (min-width: 700px) {
  .sheet { width: min(640px, 92vw); margin: auto; border-radius: 24px; }
  .sheet__inner { padding: 30px 34px; }
}
/* without JS the files simply sit under each card */
.cat__more { margin-top: 10px; font-size: .92rem; }
.sheet__line { font-size: 1.08rem; line-height: 1.4; margin-bottom: 12px; }

/* ───────── follow ───────── */
.follow { position: relative; isolation: isolate; color: #fff; padding-block: clamp(72px, 12vw, 130px) clamp(330px, 40vw, 560px); overflow: hidden; overflow: clip; background: #0b3c4b; }
.follow__bg { position: absolute; inset: auto 0 0 0; z-index: -1; height: max(520px, 56.25vw); background: url("../img/sunset.jpg") 62% 100% / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%); transform: translate3d(0, calc((1 - var(--p)) * 60px), 0); transform-origin: 50% 100%; }
.follow h2 { font-size: clamp(2.4rem, 10vw, 4.4rem); margin-bottom: 14px; }
.follow__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 760px; }
.chan { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); text-decoration: none; transition: translate .12s ease, box-shadow .12s ease, background-color .12s ease; }
.chan:hover { background: var(--gold); }
.chan:active { translate: 0 4px; box-shadow: 0 1px 0 var(--ink); }
.chan svg { flex: none; width: 28px; height: 28px; }
.chan span { display: grid; line-height: 1.15; min-width: 0; }
.chan b { font-size: 1.04rem; }
.chan small { font-size: .84rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 760px) { .follow__list { grid-template-columns: repeat(4, 1fr); } }

/* ───────── footer ───────── */
.foot { background: var(--ink); color: var(--cream); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; justify-items: center; gap: 18px; text-align: center; }
.foot__grid img { width: 140px; }
.social-dots--foot a { background: transparent; }
.foot__small { font-size: .84rem; opacity: .75; max-width: 34em; }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: var(--deep); color: var(--cream); }
.lost__main { display: grid; justify-items: center; gap: 16px; text-align: center; padding: var(--pad); max-width: 34em; }
.lost h1 { font-size: clamp(2rem, 9vw, 3.4rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__media, .hero__copy, .captain__glow, .captain__img, .captain__embers, .waves__l, .follow__bg, .voyage__sun, .voyage__far, .voyage__cloud { transform: none !important; }
  .hero__copy, .hero__foot { opacity: 1 !important; }
  .progress { display: none !important; }
}

@media (max-height: 520px) { .js .voyage__cloud { display: none; } }

/* real photos dropped in for a cat (jpg / webp / png) get a porthole ring automatically */
.cat__img:is([src$=".jpg"], [src$=".jpeg"], [src$=".webp"], [src$=".png"]),
.sheet__img:is([src$=".jpg"], [src$=".jpeg"], [src$=".webp"], [src$=".png"]) { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 7px solid var(--tone, var(--sea)); box-shadow: 0 0 0 3px var(--ink); }
