/* Voyage — the layouts that sit on the sky.
 *
 * Tokens stay in star-sea.css and the atlas itself in atlas.css. Everything
 * here is written against new class names, so nothing has to out-rank the
 * structural base in style.css.
 *
 * Contents: stage · hero · atlas track · card · intro · log · course ·
 * opening · responsive · reduced motion
 */

/* Stage: the page is laid over one fixed sky ---------------------------------- */
.voyage > section { position: relative; z-index: 1; }
.voyage > .atlas-track { z-index: 0; }
.voyage { --gutter: calc((100vw - var(--wrap)) / 2); }

/* Hero: verse standing in the sky, a signature by the water -------------------- */
.voyage-hero { min-height: max(640px, 100svh); margin: 0; color: var(--hero-ink); }
.voyage-hero::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 190px; pointer-events: none; background: linear-gradient(to bottom, var(--hero-top), transparent); }
.voyage-hero__verse { position: absolute; top: calc(var(--header-height) + clamp(20px, 5.5vh, 64px)); right: var(--gutter); display: flex; flex-direction: column; gap: .3em; margin: 0; writing-mode: vertical-rl; color: var(--hero-ink); font: 300 clamp(46px, 9.6vh, 104px)/1.18 var(--serif); letter-spacing: .16em; text-shadow: 0 2px 46px var(--hero-shade); opacity: calc(1 - var(--hero-out, 0) * 1.7); transform: translateY(calc(var(--hero-out, 0) * -70px)); }
.voyage-hero__verse span { display: block; white-space: nowrap; }
/* The second line is hung lower, as a couplet is. */
.voyage-hero__verse span:last-child { margin-top: 1.2em; }
html[lang^="en"] .voyage-hero__verse { top: calc(var(--header-height) + clamp(34px, 11vh, 130px)); right: auto; left: var(--gutter); display: block; writing-mode: horizontal-tb; font: italic 500 clamp(44px, 7.2vw, 118px)/1.02 var(--display-serif); letter-spacing: -.02em; }
html[lang^="en"] .voyage-hero__verse span:last-child { margin: 0 0 0 1.1em; }
.voyage-hero__frame { position: absolute; left: var(--gutter); bottom: clamp(34px, 6.5vh, 70px); max-width: min(34em, calc(100vw - var(--gutter) * 2)); opacity: calc(1 - var(--hero-out, 0) * 1.7); transform: translateY(calc(var(--hero-out, 0) * -50px)); }
.voyage-hero__name { margin: 0; color: var(--hero-ink); font: italic 500 clamp(34px, 3.4vw, 52px)/1 var(--display-serif); letter-spacing: -.01em; }
.voyage-hero__role { margin: 14px 0 0; color: var(--hero-soft); font-size: 13px; letter-spacing: .06em; text-shadow: 0 1px 18px var(--hero-shade); }
.voyage-hero__role .rocket-capital-link { color: var(--hero-ink); }
.voyage-hero__sub { margin: clamp(18px, 3vh, 28px) 0 0; color: var(--hero-ink); font: 300 clamp(18px, 1.7vw, 24px)/1.7 var(--serif); letter-spacing: .1em; text-shadow: 0 1px 24px var(--hero-shade); }
html[lang^="en"] .voyage-hero__sub { font-weight: 400; letter-spacing: 0; }
.voyage-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.2vh, 30px); }
.voyage-hero .btn { min-height: 46px; padding: 12px 30px; font-size: 14px; }
.voyage-hero .btn--light { background: var(--hero-ink); border-color: var(--hero-ink); color: var(--hero-on-ink); box-shadow: none; }
.voyage-hero .btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--hero-on-ink); }
.voyage-hero .btn--ghost-dark { background: color-mix(in srgb, var(--hero-on-ink) 22%, transparent); border-color: color-mix(in srgb, var(--hero-ink) 46%, transparent); color: var(--hero-ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.voyage-hero .btn--ghost-dark:hover { background: var(--hero-ink); border-color: var(--hero-ink); color: var(--hero-on-ink); }
.voyage-hero .sea-pause { position: absolute; right: calc(var(--gutter) + 6px); bottom: clamp(34px, 6.5vh, 70px); }
.sea-pause { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; color: var(--hero-soft); font: 12px var(--sans); letter-spacing: .06em; cursor: pointer; transition: color .25s ease, border-color .25s ease; }
.sea-pause:hover { color: var(--hero-ink); border-color: currentColor; background: none; }
.sea-pause:focus-visible { outline: 2px solid var(--hero-ink); outline-offset: 4px; }
.no-js .sea-pause { display: none; }
/* Over the hero the header reads against the sky, whatever the theme. */
body.home:not(.nav-open) .site-header:not(.is-scrolled) { --ink: var(--hero-ink); --ink-soft: var(--hero-soft); --ink-faint: var(--hero-soft); --line-strong: color-mix(in srgb, var(--hero-ink) 42%, transparent); --bg: var(--hero-on-ink); color: var(--hero-ink); }

/* Atlas track ------------------------------------------------------------------ */
/* Still: a heading and a plate, in the page's column. */
.atlas-track:not(.is-live) { width: var(--wrap); margin: 0 auto; padding: clamp(90px, 14vh, 160px) 0 clamp(40px, 7vh, 90px); }
.atlas-hud { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(30px, 5vh, 56px); }
.atlas-hud h2 { margin: 0; font: 300 clamp(40px, 5.6vw, 84px)/1.15 var(--serif); letter-spacing: .08em; }
html[lang^="en"] .atlas-hud h2 { font-weight: 400; letter-spacing: -.02em; }
.atlas-hud__lede { max-width: 30em; margin: 14px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.atlas-hud__hint { margin: 6px 0 0; color: var(--ink-faint); font-size: 13px; line-height: 1.8; }
.atlas-track:not(.is-live) .atlas-hud__hint, .atlas-hud__hint--touch { display: none; }
.atlas-hud__routes { display: none; margin: 0; padding: 0; list-style: none; }
.atlas-hud__tools { display: flex; align-items: center; gap: 18px; }
.atlas-hud__toggle { padding: 9px 20px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--bg) 50%, transparent); color: var(--ink); font: 13px var(--sans); letter-spacing: .06em; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.atlas-hud__toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.atlas-hud__skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas-hud__skip:focus-visible { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--ink); font-size: 13px; text-decoration: underline; }
/* Live: the track is only tall. Its legend is pinned like a map's margin while
   the chart itself is fixed to the sky and moved by atlas.js. */
.atlas-track.is-live { min-height: 230svh; }
.atlas-track.is-live .atlas-hud { position: sticky; z-index: 2; top: 0; height: 100svh; margin: 0; padding: 0 var(--gutter) clamp(26px, 5vh, 46px); pointer-events: none; }
.atlas-track.is-live .atlas-hud :is(a, button) { pointer-events: auto; }
.atlas-track.is-live .atlas-hud h2 { font-size: clamp(30px, 3.2vw, 46px); }
.atlas-track.is-live .atlas-hud__lede { margin-top: 10px; font-size: 14px; }
/* Type on the open sky follows the sky: light at night, ink at first light. */
.atlas-track.is-live { color: var(--hero-ink); --ink: var(--hero-ink); --ink-soft: var(--hero-soft); --ink-faint: color-mix(in srgb, var(--hero-ink) 62%, transparent); --line-strong: color-mix(in srgb, var(--hero-ink) 40%, transparent); }
/* By day the held chart is a sheet of paper laid on the sky: ink stars, a trace of mist behind. */
html[data-theme="day"] .atlas.is-live .atlas__sky { background: color-mix(in srgb, var(--bg) 78%, transparent) var(--grain, none); }
.atlas.is-live { position: static; }
.atlas.is-live .atlas__sky { position: fixed; z-index: 1; top: 0; left: 0; width: 100%; height: 100lvh; opacity: 0; pointer-events: none; }
.atlas.is-live .atlas__chart { top: 0; left: 0; will-change: transform; }
.atlas.is-live.is-open :is(.atlas-star, .atlas-group__name a) { pointer-events: auto; }
.atlas.is-live .atlas-star:not(.is-tip) .atlas-star__text { display: none; }
.atlas.is-live .atlas__lines polyline { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); transition: stroke .4s ease, opacity .4s ease; }
.atlas__lines polyline.is-lit { stroke: var(--star); }
.atlas[data-active] .atlas__lines polyline:not(.is-lit) { opacity: .34; }
.atlas[data-active] .atlas-group:not([data-cat]) { opacity: 1; }
/* The reader's own choice of a plain list keeps the page's column. */
.atlas.is-list { padding-top: 8px; }

/* The card a star hands over when it is asked ---------------------------------- */
.atlas-card { position: fixed; z-index: 6; top: 0; left: 0; display: block; width: 320px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 86%, transparent); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .42); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); pointer-events: none; }
.atlas-card[hidden] { display: none; }
.atlas-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-deep); }
.atlas-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.atlas-card__meta { color: var(--star); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.atlas-card b { font: 400 19px/1.5 var(--serif); letter-spacing: .02em; }
.atlas-card__excerpt { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 13px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.atlas-card.is-sheet { top: auto; right: 14px; bottom: 14px; left: 14px; display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: stretch; width: auto; transform: none; pointer-events: auto; }
.atlas-card.is-sheet img { height: 100%; aspect-ratio: auto; }
.atlas-card.is-sheet .atlas-card__excerpt { -webkit-line-clamp: 2; line-clamp: 2; }

/* Intro: one paragraph, lit as it is read --------------------------------------- */
.voyage-intro { padding: clamp(70px, 13vh, 150px) 0 clamp(60px, 10vh, 120px); text-align: center; }
.voyage-intro p { max-width: 24em; margin: 0 auto; color: var(--ink); font: 300 clamp(24px, 3.1vw, 44px)/1.85 var(--serif); letter-spacing: .05em; text-wrap: balance; }
html[lang^="en"] .voyage-intro p { max-width: 26em; font-weight: 400; line-height: 1.45; letter-spacing: -.005em; }
.ink-word { transition: color .25s, opacity .25s; }

/* Log: articles as dated entries ------------------------------------------------ */
.log { padding: clamp(70px, 11vh, 140px) 0 clamp(80px, 12vh, 150px); }
.log__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 4vh, 44px); }
.log__head h2 { margin: 0; font: 300 clamp(40px, 5.6vw, 84px)/1.15 var(--serif); letter-spacing: .08em; }
html[lang^="en"] .log__head h2 { font-weight: 400; letter-spacing: -.02em; }
.entries { border-top: 1px solid var(--line-strong); }
.entry { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) clamp(150px, 17vw, 236px); gap: clamp(18px, 3vw, 48px); align-items: start; padding: clamp(22px, 3.4vh, 36px) 0; border-bottom: 1px solid var(--line); }
.entry__date { padding-top: .55em; color: var(--ink-faint); font: 400 13px/1.6 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.entry__title { margin: 0; font: 400 clamp(21px, 2.1vw, 29px)/1.45 var(--serif); letter-spacing: .03em; }
html[lang^="en"] .entry__title { line-height: 1.28; letter-spacing: -.005em; }
.entry__title a { color: var(--ink); transition: color .25s ease; }
.entry:hover .entry__title a, .entry__title a:focus-visible { color: var(--star); }
.entry__excerpt { max-width: 44em; margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; }
.entry__excerpt p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: var(--ink-faint); font-size: 12.5px; letter-spacing: .04em; }
.entry__meta a { color: var(--gold); }
.entry__meta a:hover { color: var(--ink); }
.entry__visual { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface); }
.entry__visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--motion-ease), opacity .25s ease; }
.entry:hover .entry__visual img { transform: scale(1.04); }
/* The newest entry is given the room of a lead. */
.entry--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: auto 1fr; gap: 14px clamp(28px, 4.4vw, 68px); padding: clamp(30px, 5vh, 56px) 0; }
.entry--lead .entry__date { padding-top: clamp(6px, 2vh, 22px); }
.entry--lead .entry__visual { grid-area: 1 / 2 / 3 / 3; }
.entry--lead .entry__title { font-size: clamp(30px, 3.5vw, 54px); font-weight: 300; line-height: 1.3; letter-spacing: .05em; }
html[lang^="en"] .entry--lead .entry__title { font-weight: 400; line-height: 1.12; letter-spacing: -.015em; }
.entry--lead .entry__excerpt { margin-top: 18px; font-size: 15.5px; }
.entry--lead .entry__excerpt p { -webkit-line-clamp: 4; line-clamp: 4; }

/* Course: a conviction, and four stars to steer by ------------------------------ */
.course { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; padding: clamp(90px, 14vh, 170px) 0; border-top: 1px solid var(--line); }
.course__statement h2 { margin: 0 0 clamp(24px, 4vh, 36px); font: 300 clamp(26px, 2.9vw, 42px)/1.55 var(--serif); letter-spacing: .06em; }
html[lang^="en"] .course__statement h2 { font-weight: 400; line-height: 1.22; letter-spacing: -.02em; }
.course__statement p { max-width: 34em; margin: 0 0 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 2.05; }
.course__stars { position: relative; margin: 0; padding: 0; list-style: none; }
/* The route between them. */
.course__stars::before { content: ''; position: absolute; top: 32px; bottom: 46px; left: 9px; width: 1px; background: linear-gradient(to bottom, var(--star-line), var(--line)); }
.course__stars li { position: relative; padding: 20px 0 24px 46px; }
.course__stars li::before { content: ''; position: absolute; top: 22px; left: 0; width: 19px; height: 19px; background: var(--star); clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); }
.course__stars h3 { margin: 0 0 8px; font: 400 clamp(20px, 1.9vw, 25px)/1.4 var(--serif); letter-spacing: .06em; }
html[lang^="en"] .course__stars h3 { letter-spacing: 0; }
.course__stars p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.9; }

/* Sky: every other page stands on a still copy of it --------------------------- */
:root { --sky-veil: .80; --sky-veil-top: .44; --sky-poster: url('../images/sky-night-desktop.webp?v=ink-1'); --sky-poster-mobile: url('../images/sky-night-mobile.webp?v=ink-1'); }
html[data-theme="day"] { --sky-veil: .97; --sky-veil-top: .86; --sky-poster: url('../images/sky-day-desktop.webp?v=ink-1'); --sky-poster-mobile: url('../images/sky-day-mobile.webp?v=ink-1'); }
body.has-sky { background: transparent; }
.sky { position: fixed; z-index: -2; top: 0; left: 0; width: 100%; height: 100lvh; overflow: hidden; background: var(--bg) var(--sky-poster) center / cover no-repeat; }
.sky__canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.sky.is-ready .sky__canvas { opacity: 1; }
html.page-snapshot .sky__canvas { visibility: hidden; transition: none; }
/* The page's paper: thin where a page opens, full once the reader is into it. */
.sky::after { content: ''; position: absolute; inset: 0; background: var(--bg) var(--grain, none); opacity: calc(var(--sky-veil-top) + (var(--sky-veil) - var(--sky-veil-top)) * var(--sky-depth, 1)); }

/* The footer on these pages is two things, kept apart: the words, on the page,
   and under them a strip of the sea with the boat. Nothing is set over the boat. */
.has-sky .site-footer { --strip: clamp(300px, 34vw, 900px); isolation: isolate; padding-bottom: var(--strip); background: none; }
.has-sky .site-footer::before { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: calc(var(--strip) * 1.25); background: var(--sea-poster) center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%); }
.has-sky .site-footer__inner { padding-top: clamp(60px, 9vh, 110px); }
.has-sky .site-footer__top { padding-bottom: clamp(24px, 4vh, 44px); }
.has-sky .site-footer__statement { font-size: clamp(26px, 3.4vw, 50px); text-shadow: none; }
.has-sky .site-footer__links a { text-shadow: none; }
/* The legal line sits in the strip's corners, clear of the boat in the middle. */
.has-sky .site-footer__bottom { position: absolute; bottom: 0; left: calc((100% - var(--wrap)) / 2); width: var(--wrap); border-top: 0; }

/* Inner pages: title and filter beside the atlas, then the archive as a log ------- */
.archive-top { margin-bottom: clamp(28px, 5vh, 56px); }
.archive-hero { display: block; margin-bottom: 0; padding-top: clamp(8px, 3vh, 40px); padding-bottom: clamp(22px, 3.6vh, 36px); border-bottom: 0; }
.archive-hero h1 { max-width: none; }
.archive-hero__intro { max-width: 36em; margin: clamp(14px, 2.4vh, 22px) 0 0; }
.archive-top .category-filter { padding-bottom: 0; }
.atlas-plate { margin: 0 0 clamp(20px, 4vh, 36px); }
@media (min-width: 861px) {
  .archive-top--plate { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 88px); }
  .archive-top--plate .archive-hero { grid-area: 1 / 1; }
  .archive-top--plate .archive-hero h1 { font-size: clamp(42px, 4.8vw, 72px); }
  .archive-top--plate .category-filter { grid-area: 2 / 1; align-self: start; }
  .archive-top--plate .atlas-plate { grid-area: 1 / 2 / 3 / 3; align-self: center; margin: 0; }
}
.archive-list { padding-bottom: clamp(70px, 10vh, 130px); }
.not-found-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.not-found-page .btn--light { background: var(--ink); color: var(--bg); }

/* Article: where it sits on its route, and the way on ----------------------------- */
.article-header__top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 18vw, 250px); gap: clamp(28px, 5vw, 80px); align-items: end; }
.article-star { display: grid; gap: 14px; justify-items: end; margin: 0; }
.article-star .atlas-mini { width: 100%; height: auto; max-height: 190px; }
.article-star figcaption { color: var(--ink-faint); font-size: 12.5px; letter-spacing: .04em; text-align: right; }
.article-star figcaption a:hover { color: var(--star); }
.route-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(50px, 8vh, 90px); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.route-nav__link { display: grid; align-content: start; gap: 8px; padding: clamp(24px, 4vh, 40px) 24px clamp(24px, 4vh, 40px) 0; color: var(--ink); }
.route-nav__link--next { justify-items: end; padding: clamp(24px, 4vh, 40px) 0 clamp(24px, 4vh, 40px) 24px; border-left: 1px solid var(--line); text-align: right; }
.route-nav__label { color: var(--gold); font-size: 12.5px; letter-spacing: .06em; }
.route-nav__link b { font: 400 clamp(19px, 2vw, 26px)/1.45 var(--serif); letter-spacing: .03em; transition: color .25s ease; }
html[lang^="en"] .route-nav__link b { line-height: 1.28; letter-spacing: -.005em; }
.route-nav__link time { color: var(--ink-faint); font-size: 12px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
a.route-nav__link:hover b, a.route-nav__link:focus-visible b { color: var(--star); }

/* Leaving by a star: the sky is flown into at that star, and the article arrives. */
html.star-dive::view-transition-old(root) { z-index: 2; box-shadow: none; transform-origin: var(--dive-x, 50%) var(--dive-y, 50%); animation-name: gf-star-dive; animation-timing-function: cubic-bezier(.6, 0, .9, .3); }
html.star-dive::view-transition-new(root) { box-shadow: none; transform-origin: 50% 40%; animation-name: gf-star-arrive; animation-timing-function: var(--motion-ease); }
@keyframes gf-star-dive { from { opacity: 1; transform: scale(1); } 70% { opacity: .9; } to { opacity: 0; transform: scale(7); } }
@keyframes gf-star-arrive { from { opacity: 0; transform: scale(.92); } 45% { opacity: 0; } to { opacity: 1; transform: none; } }
/* While the atlas is held, a page snapshot shows the sky rather than the water. */
html[data-voyage="atlas"] .sea-scene, html[data-voyage="log"] .sea-scene { background-image: var(--sky-poster); }

/* Opening: the one orchestrated moment ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  html.js .voyage-hero__verse span { animation: verse-write 1.5s var(--motion-ease) .55s both; }
  html.js .voyage-hero__verse span:last-child { animation-delay: 1.15s; }
  html.js[lang^="en"] .voyage-hero__verse span { animation-name: verse-write-across; }
  html.js .voyage-hero__frame > * { animation: hero-arrive .95s var(--motion-ease) both; animation-delay: 1.75s; }
  html.js .voyage-hero__frame > :nth-child(2) { animation-delay: 1.87s; }
  html.js .voyage-hero__frame > :nth-child(3) { animation-delay: 1.99s; }
  html.js .voyage-hero__frame > :nth-child(4) { animation-delay: 2.11s; }
}
@keyframes verse-write { from { opacity: 0; clip-path: inset(0 -30% 100% -30%); } to { opacity: 1; clip-path: inset(-10% -30% -10% -30%); } }
@keyframes verse-write-across { from { opacity: 0; clip-path: inset(-20% 100% -20% -5%); } to { opacity: 1; clip-path: inset(-20% -5% -20% -5%); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Responsive -------------------------------------------------------------------- */
@media (max-width: 860px) {
  .voyage-hero__verse { right: 20px; font-size: clamp(38px, 7vh, 62px); }
  html[lang^="en"] .voyage-hero__verse { top: calc(var(--header-height) + 22px); font-size: clamp(40px, 11.6vw, 80px); }
  .voyage-hero__frame { right: 20px; bottom: 22px; left: 20px; max-width: none; }
  .voyage-hero__name { font-size: 30px; }
  .voyage-hero__role { margin-top: 10px; font-size: 12px; }
  .voyage-hero__sub { margin-top: 14px; font-size: 16px; line-height: 1.6; letter-spacing: .05em; }
  .voyage-hero__actions { margin-top: 18px; gap: 10px; }
  .voyage-hero .btn { min-height: 44px; padding: 11px 22px; }
  /* The pause control becomes a small round button, stacked above the assistant's. */
  .voyage-hero .sea-pause { right: 26px; bottom: 82px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid color-mix(in srgb, var(--hero-ink) 40%, transparent); border-radius: 50%; font-size: 0; }
  .voyage-hero .sea-pause::before { content: ''; width: 8px; height: 10px; border: solid var(--hero-ink); border-width: 0 2.5px; }
  .voyage-hero .sea-pause[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 3px; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--hero-ink); }
  .atlas-hud { flex-direction: column; align-items: flex-start; gap: 16px; }
  .atlas-track.is-live { min-height: 200svh; }
  .atlas-track.is-live .atlas-hud { flex-direction: column-reverse; justify-content: space-between; padding: calc(var(--header-height) + 6px) 20px 18px; }
  .atlas-track.is-live .atlas-hud__tools { align-self: flex-end; }
  .atlas-track.is-live .atlas-hud__legend { width: 100%; padding-right: 64px; }
  .atlas-track.is-live .atlas-hud h2 { font-size: 26px; }
  .atlas-track.is-live .atlas-hud__lede { display: none; }
  .atlas-track.is-live .atlas-hud__hint { margin-top: 4px; font-size: 12.5px; }
  /* Too little room for names in the chart: the routes are listed under it, and
     the newest star on each is only marked. */
  .atlas.is-live .atlas-group__name, .atlas.is-live .atlas-star.is-tip .atlas-star__text { display: none; }
  .atlas-track.is-live .atlas-hud__routes { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
  .atlas-hud__routes a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; color: var(--ink); font: 400 15px/1.4 var(--serif); letter-spacing: .04em; }
  .atlas-hud__routes small { color: var(--ink-faint); font: 400 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
  .atlas.is-live .atlas-star { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .voyage-intro { padding: clamp(60px, 12vh, 110px) 0 clamp(40px, 7vh, 70px); }
  .voyage-intro { text-align: left; }
  .voyage-intro p { font-size: 23px; line-height: 1.8; letter-spacing: .03em; }
  .entry, .entry--lead { grid-template-columns: minmax(0, 1fr) 104px; gap: 6px 18px; }
  .entry__date { grid-column: 1 / -1; padding: 0; font-size: 12px; }
  .entry__excerpt { display: none; }
  .entry--lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .entry--lead .entry__visual { grid-area: auto; order: -1; margin-bottom: 14px; }
  .entry--lead .entry__title { font-size: 30px; }
  .entry--lead .entry__excerpt { display: block; }
  .course { grid-template-columns: minmax(0, 1fr); }
  .sky, html[data-voyage="atlas"] .sea-scene, html[data-voyage="log"] .sea-scene { background-image: var(--sky-poster-mobile); }
  .article-header__top { grid-template-columns: minmax(0, 1fr); }
  .article-star { grid-template-columns: 96px minmax(0, 1fr); align-items: center; justify-items: start; }
  .article-star figcaption { text-align: left; }
  .route-nav { grid-template-columns: minmax(0, 1fr); }
  .route-nav__link--next { justify-items: start; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .route-nav__link.is-end { display: none; }
  .has-sky .site-footer__bottom { position: static; width: auto; border-top: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); }
  .archive-page { padding-top: calc(var(--header-height) + 28px); }
}
@media (max-width: 600px) {
  .has-sky .site-footer { --strip: 112vw; }
  .has-sky .site-footer::before { background-image: var(--sea-poster-mobile); }
}
@media (hover: none), (pointer: coarse) {
  .atlas-hud__hint--pointer { display: none; }
  .atlas-hud__hint--touch { display: inline; }
}

/* Reduced motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .voyage-hero__verse, .voyage-hero__frame { opacity: 1; transform: none; }
  .entry__visual img, .atlas-star__dot { transition: none; }
  .entry:hover .entry__visual img { transform: none; }
}
