/* NVS homepage. The house language is lux.css (which also carries the house menu and footer); this file holds only what
   the homepage adds: self-hosted type, the opening, the destinations, the two journey plates, where you stay, ways to
   travel, how it works, the people, the letter, why North v South, and the invitation.
   Type stays on the four house sizes; the opening line, the journey names and the letter are the display voice, scaled. */

/* type, self-hosted (SIL Open Font Licence: see fonts/LICENCE.txt). Latin subset; roman 300 and 400, italic 300, sans 400 to 500. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/newsreader-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(fonts/newsreader-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/hanken-grotesk-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --t-mid: clamp(3.25rem, 8.6vw, 9rem); --t-open: clamp(3rem, 6.5vw, 6.75rem); }
html { scrollbar-gutter: stable; }                               /* the mark no longer steps sideways when the menu opens */
.jn { font: 300 var(--t-mid)/.92 var(--disp); letter-spacing: -.04em; }
main [id] { scroll-margin-top: 0; }                              /* the page already pads its scroll by the header's height */
main h3 { margin: 0; font-weight: 300; }
/* the focus ring keeps a dark edge, so it holds over pale ice as well as over the night ground */
:focus-visible { box-shadow: 0 0 0 7px rgba(8, 22, 31, .78); }
.pln svg, .mi-say svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; flex: none; }
/* once the opening has passed, nothing reads through the header */
[data-page="home"].has-bar .lx-top::after { background: linear-gradient(180deg, rgb(var(--veil)) 0%, rgb(var(--veil)) 62%, rgba(var(--veil), 0)); }

/* ---------- 1. the opening: one photograph, one line ---------- */
.o { min-height: 100svh; display: grid; align-items: end; }
.o > picture img { object-position: 50% 62%; }
.o::after { background: linear-gradient(180deg, rgba(8,22,31,.5) 0%, rgba(8,22,31,.22) 16%, rgba(8,22,31,0) 36%, rgba(8,22,31,.14) 52%, rgba(8,22,31,.6) 76%, rgba(8,22,31,.92) 100%); }
.o-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); align-items: end; padding-block: calc(76px + var(--s8)) var(--s7); row-gap: var(--s6); }
.o-h { grid-column: 1 / span 9; grid-row: 1; font: 300 var(--t-open)/.98 var(--disp); letter-spacing: -.04em; text-wrap: balance; padding-bottom: .04em; }
.o-h em { font-style: italic; }
.o-foot { grid-column: 1 / span 8; grid-row: 2; display: flex; align-items: center; gap: var(--s5) var(--s8); flex-wrap: wrap; }
.o-strap { color: #E3ECEA; }
.o-go { font: 400 var(--t-note)/1.2 var(--sans); letter-spacing: .04em; gap: var(--s3); }
.o-go > i { width: 44px; height: 44px; background: rgba(8,22,31,.28); border-color: rgba(244,247,245,.7); } .o-go svg { width: 16px; height: 16px; }
.o-pl { grid-column: 9 / -1; grid-row: 2; justify-self: end; min-height: 44px; transition: opacity 120ms ease; }
.o-pl svg { transition: transform 160ms var(--ease-out); }
.o-pl:active, .mi-say a:active, .wy-l a:active, .at-worlds button:active, .at-names button:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .o-go:hover > i { transform: translateY(4px); } .o-pl:hover svg { transform: translateX(4px); } }

/* ---------- 2. the statement ---------- */
.st { padding-block: var(--s11) var(--s10); }
.st .g { align-items: end; }
.st-say { grid-column: 2 / span 6; padding-bottom: var(--s7); }
.st-fig { grid-column: 9 / -1; margin-right: calc(-1 * var(--gut)); display: grid; gap: var(--s3); }
.st-fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 50%; }

/* ---------- 3. the destinations ---------- */
.at { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: grid; padding-block: var(--s10) var(--s8); }
main .at { scroll-margin-top: -96px; }                           /* arrive with the whole section, and its ring, on one screen */
.at-photo { position: absolute; inset: 0 0 0 42%; z-index: -1; background: var(--night); }
.at-photo picture { position: absolute; inset: 0; opacity: 0; visibility: hidden; clip-path: inset(3px 0 3px 3px); }   /* the photograph's own edge stays inside the veil: no stray hairline */
.at-photo picture.on { opacity: 1; visibility: visible; z-index: 1; transition: opacity 600ms ease; }
.at-photo picture.was { opacity: 1; visibility: visible; }
.at-photo img { width: 100%; height: 100%; object-fit: cover; }
.at-photo::after { content: ''; position: absolute; inset: -1px 0 -1px -2px; z-index: 2; background: linear-gradient(90deg, rgb(var(--veil)) 0%, rgb(var(--veil)) 2%, rgba(var(--veil), .92) 12%, rgba(var(--veil), .84) 24%, rgba(var(--veil), .3) 44%, rgba(var(--veil), 0) 64%), linear-gradient(180deg, rgb(var(--veil)) 0%, rgb(var(--veil)) 2%, rgba(var(--veil), .5) 10%, rgba(var(--veil), 0) 24%, rgba(var(--veil), 0) 58%, rgba(var(--veil), .82) 84%, rgb(var(--veil)) 98%, rgb(var(--veil)) 100%); }
.at-in { display: grid; grid-template-rows: auto 1fr; row-gap: var(--s7); }
.at-in .ch::after { max-width: 34%; flex: 0 1 34%; }             /* the hairline stops before the photograph */
#atBody { display: grid; grid-template-rows: auto 1fr auto; row-gap: var(--s6); align-content: space-between; }
.at-top { display: grid; gap: var(--s1); justify-items: start; }
.at-worlds { display: flex; gap: 0 var(--s6); }
.at-worlds button { min-height: 44px; min-width: 44px; padding: 0; border: 0; cursor: pointer; font: 400 var(--t-note)/1.2 var(--sans); letter-spacing: .02em; color: var(--quiet); background: linear-gradient(currentColor, currentColor) 0 calc(100% - 11px) / 0 1px no-repeat; transition: color 200ms ease, background-size 240ms var(--ease-out), opacity 120ms ease; white-space: nowrap; }
.at-worlds [aria-pressed="true"] { color: var(--ink); background-size: 100% 1px; }
.at-key { color: var(--quiet); }
/* round 3: no longer a key to the typography. One sentence, each part set the way its places are set, so it reads and is not studied. */
.at-key span { font: 400 1rem/1.5 var(--disp); color: var(--soft); } .at-key .mk, .at-key .dr { font-style: italic; } .at-key .dr { color: var(--quiet); }
.at-names { align-self: center; max-width: min(11.2em, 50vw); font: 300 clamp(2.125rem, 1.1rem + 3.1vw, 4.125rem)/1.12 var(--disp); letter-spacing: -.03em; text-shadow: 0 1px 30px rgba(var(--veil), .6); }
.at-names li { display: inline-block; margin-right: .22em; color: var(--quiet); }
.at-names li[hidden] { display: none; }
.at-names button { display: inline-block; padding: .1em 0; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-shadow: inherit; color: var(--soft); background: linear-gradient(currentColor, currentColor) 0 calc(100% - .12em) / 0 1px no-repeat; transition: color 200ms ease, background-size 220ms var(--ease-out), opacity 120ms ease; }
.at-names button[data-s="making"], .at-names button[data-s="drawn"] { font-style: italic; }
.at-names button[data-s="drawn"] { color: var(--quiet); }
.at-names button.on { color: #F6F9F7; background-size: 100% 1px; }
.at-names button:focus-visible { outline-offset: 2px; }
.at-now { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); align-items: end; row-gap: var(--s4); }
.at-what { grid-column: 1 / span 5; display: grid; gap: var(--s2); }
.at-what .ts { max-width: 24em; }
.at-st { color: var(--soft); }
.at-go { grid-column: 7 / -1; justify-self: end; display: grid; justify-items: end; gap: var(--s2); text-align: right; }
.at-go .ring { color: #F4F7F5; text-shadow: 0 1px 24px rgba(var(--veil), .8); } .at-go .ring > i { background: rgba(var(--veil), .4); border-color: rgba(244,247,245,.8); }
.at-go .ring.go > i { background: var(--red); border-color: var(--red); }
.at-go .n { color: #E3ECEA; text-shadow: 0 1px 14px rgba(var(--veil), .9); max-width: 26em; min-height: 1.5em; }
.at-go .pln { justify-content: flex-end; }
@media (hover: hover) and (pointer: fine) { .at-worlds button:hover { color: var(--ink); } .at-names button:hover { color: #F6F9F7; } .ring:hover:active > i { transform: translateX(6px) scale(.96); } .at-go .ring:not(.go):hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }
.at-swap { animation: lx-fade 180ms ease both; }

/* ---------- 4. Antarctica ---------- */
.ja { min-height: min(100svh, 1000px); display: grid; align-items: end; }
.ja::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.2) 12%, rgba(8,22,31,0) 34%, rgba(8,22,31,.16) 56%, rgba(8,22,31,.86) 92%, rgb(8,22,31) 100%); }
.ja-in { display: grid; justify-items: start; gap: var(--s4); padding-block: var(--s8) var(--s7); padding-right: calc(var(--gut) + 80px); }
.jx-go { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); margin-top: var(--s3); } .jx-go .ring { margin-top: 0 !important; }
.ja .jn { margin: 0 0 var(--s2) -.04em; } .ja-t { color: #F4F7F5; max-width: 22em; } .ja .ring { margin-top: var(--s3); } .ja .ring > i { background: rgba(8,22,31,.3); }
.ja-pl, .jz-pl { margin-top: var(--s3); }
@media (hover: hover) and (pointer: fine) { .ja .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }

/* ---------- 5. Sossusvlei ---------- */
.jz { min-height: min(100svh, 1000px); display: grid; align-items: end; color: #F4F7F5; }
.jz > picture img { object-position: 36% 50%; filter: saturate(.74); }   /* the one grade: no sky louder than the ice */
.jz::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(14,14,18,.5) 9%, rgba(18,10,8,0) 26%, rgba(18,10,8,0) 62%, rgba(13,15,20,.7) 90%, rgb(8,22,31) 100%), linear-gradient(270deg, rgba(18,10,8,.66) 0%, rgba(18,10,8,.34) 30%, rgba(18,10,8,0) 52%); }
.jz-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); row-gap: var(--s4); padding-block: var(--s8) var(--s9); }
.jz-in > * { grid-column: 8 / -1; justify-self: start; }
.jz .jn { font-style: italic; margin: 0 0 var(--s2) -.06em; padding-bottom: .08em; }
.jz-t { color: #F4F7F5; max-width: 20em; } .jz .ring { margin-top: var(--s3); } .jz .ring > i { background: rgba(18,10,8,.3); }
@media (hover: hover) and (pointer: fine) { .jz .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--dusk); } }
/* the living light, kept small: the dune comes out of the hour before dawn as it rises up the screen.
   One overlay changing opacity, so nothing is repainted while you scroll. */
.jz::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #070B16; opacity: 0; pointer-events: none; }

/* ---------- 5b. Greenland: centred on the waterline, where the photograph folds (round 3) ---------- */
.jg { min-height: min(100svh, 1000px); display: grid; align-items: center; color: #F4F7F5; }
.jg > picture img { object-position: 50% 50%; filter: saturate(.8); }
.jg::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.3) 10%, rgba(8,22,31,.06) 28%, rgba(8,22,31,.5) 48%, rgba(8,22,31,.5) 64%, rgba(8,22,31,.78) 90%, rgb(8,22,31) 100%); }
.jg-in { display: grid; justify-items: center; text-align: center; gap: var(--s4); padding-block: var(--s9) var(--s8); }
.jg .jn { margin: 0 0 var(--s2); letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(8,22,31,.55); }
.jg-t { color: #F4F7F5; max-width: 24em; } .jg-t, .jg-go, .jg-pl { text-shadow: 0 0 14px rgba(8,22,31,.9), 0 1px 28px rgba(8,22,31,.8); }
.jg-go { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3) var(--s7); margin-top: var(--s3); }
.jg .ring > i { background: rgba(8,22,31,.3); } .jg-pl { margin-top: var(--s4); }
@media (hover: hover) and (pointer: fine) { .jg .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }
/* ---------- 5c. Patagonia: the name on the ridge, the way onward opposite it on the same line ---------- */
.jp { min-height: min(100svh, 1000px); display: grid; align-items: end; color: #F4F7F5; }
.jp > picture img { object-position: 50% 38%; }
.jp::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.28) 9%, rgba(8,22,31,0) 24%, rgba(8,22,31,0) 52%, rgba(10,16,14,.62) 74%, rgba(8,20,24,.9) 92%, rgb(8,22,31) 100%); }
.jp-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); row-gap: var(--s4); align-items: end; padding-block: var(--s8) var(--s8); }
.jp .jn { grid-column: 1 / span 7; margin: 0 0 0 -.04em; padding-bottom: .04em; text-shadow: 0 2px 40px rgba(8,22,31,.6); }
.jp-go { grid-column: 9 / -1; display: grid; justify-items: start; gap: var(--s2); padding-bottom: var(--s3); }
.jp-t { color: #F4F7F5; max-width: 20em; padding-bottom: var(--s3); } .jp-t, .jp-go .ring, .jp-pl { text-shadow: 0 0 14px rgba(8,22,31,.9), 0 1px 28px rgba(8,22,31,.8); }
.jp .ring > i { background: rgba(8,22,31,.3); } .jp-pl { grid-column: 1 / -1; }
@media (hover: hover) and (pointer: fine) { .jp .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }

/* ---------- 5d. Svalbard: said high on the dark mountain; the ice front and the yacht are left to themselves ---------- */
.jv { min-height: min(100svh, 1000px); display: grid; color: #F4F7F5; }
.jv > picture img { object-position: 50% 100%; filter: saturate(.9); }
.jv::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.72) 12%, rgba(8,22,31,.5) 34%, rgba(8,22,31,.12) 54%, rgba(8,22,31,0) 68%, rgba(8,22,31,.5) 90%, rgb(8,22,31) 100%), linear-gradient(90deg, rgba(8,22,31,.5) 0%, rgba(8,22,31,.2) 40%, rgba(8,22,31,0) 62%); }
.jv-in { display: grid; grid-template-rows: 1fr auto; padding-block: calc(76px + var(--s7)) var(--s7); row-gap: var(--s6); }
.jv-top { display: grid; justify-items: start; align-content: start; gap: var(--s4); }
.jv .jn { margin: 0 0 var(--s2) -.04em; letter-spacing: -.035em; text-shadow: 0 2px 40px rgba(8,22,31,.6); }
.jv-t { color: #F4F7F5; max-width: 21em; } .jv-t, .jv-go, .jv-pl { text-shadow: 0 0 14px rgba(8,22,31,.9), 0 1px 28px rgba(8,22,31,.8); }
.jv-go { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); margin-top: var(--s3); }
.jv .ring > i { background: rgba(8,22,31,.3); } .jv-pl { justify-self: end; }
@media (hover: hover) and (pointer: fine) { .jv .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }
/* ---------- 5e. four more, as two pairs: a wide picture beside a tall one, then the reverse ---------- */
.jq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s4); padding-block: var(--s9) var(--s6); }
.jq-p { min-height: min(84svh, 800px); display: grid; align-items: end; color: #F4F7F5; }
.jq-wide { grid-column: span 7; } .jq-tall { grid-column: span 5; }
.jq-p::after { background: linear-gradient(180deg, rgba(8,22,31,.2) 0%, rgba(8,22,31,0) 26%, rgba(8,22,31,0) 46%, rgba(8,22,31,.62) 76%, rgba(8,22,31,.92) 100%); }
.jq-in { display: grid; justify-items: start; gap: var(--s3); padding: var(--s7) var(--s6) var(--s5); }
.jq .jn { font-size: clamp(2.75rem, 5.2vw, 5.25rem); margin: 0 0 0 -.03em; padding-bottom: .06em; text-shadow: 0 2px 40px rgba(8,22,31,.6); }
.jq-t { color: #F4F7F5; max-width: 22em; } .jq-t, .jq-go, .jq .pln { text-shadow: 0 0 14px rgba(8,22,31,.9), 0 1px 28px rgba(8,22,31,.8); }
.jq-go { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s6); margin-top: var(--s2); } .jq .ring > i { background: rgba(8,22,31,.3); } .jq .pln { margin-top: var(--s2); }
.jo > picture img { object-position: 50% 70%; } .jl > picture img { object-position: 70% 50%; } .jr > picture img { object-position: 50% 30%; filter: saturate(.86); }
/* Bhutan speaks from the cloud at the top; the monastery is left alone below it */
.jb { align-items: stretch; } .jb > picture img { object-position: 44% 50%; } .jb .jq-in { grid-template-rows: auto auto 1fr auto; align-content: stretch; padding-top: var(--s6); } .jb .jq-go { align-self: end; }
.jb::after { background: linear-gradient(180deg, rgba(8,22,31,.72) 0%, rgba(8,22,31,.4) 24%, rgba(8,22,31,0) 44%, rgba(8,22,31,0) 58%, rgba(8,22,31,.7) 84%, rgba(8,22,31,.92) 100%); }
/* Petra is italic, as the desert is on this page */
.jr .jn { font-style: italic; }
@media (hover: hover) and (pointer: fine) { .jq .ring:hover > i { background: #F4F7F5; border-color: #F4F7F5; color: var(--night); } }
/* round 5: on a wide screen each of the four stands alone, at the height of the five before it and in a composition of its
   own. Okavango is said low on the water; Petra is a tall picture beside its name; Bhutan is named in the cloud with the
   way onward at the foot of the cliff; the Galápagos is said across the foot of the lava. The phone keeps its own layout. */
@media (min-width: 861px) {
  .jq { display: block; max-width: none; padding: 0; }
  .jq-p { min-height: min(100svh, 1000px); }
  .jq-in { width: 100%; max-width: 1560px; margin-inline: auto; padding: var(--s8) max(var(--gut), env(safe-area-inset-right, 0px)) var(--s7) max(var(--gut), env(safe-area-inset-left, 0px)); gap: var(--s4); }
  .jq .jn { font-size: var(--t-mid); margin: 0 0 var(--s2) -.04em; }
  .jq-go { gap: var(--s2) var(--s7); margin-top: var(--s3); } .jq .pln { margin-top: var(--s3); }
  .jo::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.24) 10%, rgba(8,22,31,0) 28%, rgba(8,22,31,0) 46%, rgba(8,22,31,.6) 76%, rgba(8,22,31,.9) 93%, rgb(8,22,31) 100%), linear-gradient(90deg, rgba(8,22,31,.5) 0%, rgba(8,22,31,.16) 38%, rgba(8,22,31,0) 60%); }
  /* Petra: the Treasury stands tall on the right, and the name is set against the dark beside it */
  .jr { align-items: center; }
  .jr > picture { inset: 0 0 0 44%; width: 56%; }
  .jr > picture img { object-position: 50% 26%; }
  .jr::after { background: linear-gradient(90deg, rgb(8,22,31) 0%, rgb(8,22,31) 44%, rgba(8,22,31,.5) 52%, rgba(8,22,31,0) 64%), linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.3) 9%, rgba(8,22,31,0) 22%, rgba(8,22,31,0) 78%, rgba(8,22,31,.4) 92%, rgb(8,22,31) 100%); }
  .jr .jq-in > * { max-width: min(40%, 30em); }
  .jr .jq-go { flex-direction: column; gap: 0; }
  .jb::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.7) 10%, rgba(8,22,31,.4) 26%, rgba(8,22,31,0) 44%, rgba(8,22,31,0) 58%, rgba(8,22,31,.7) 84%, rgba(8,22,31,.92) 94%, rgb(8,22,31) 100%); }
  .jb .jq-in { padding-top: calc(76px + var(--s7)); }
  /* the Galápagos: the name low on the left, the way onward opposite it on the same line */
  .jl::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.24) 10%, rgba(8,22,31,0) 28%, rgba(8,22,31,0) 50%, rgba(8,22,31,.62) 76%, rgba(8,22,31,.92) 93%, rgb(8,22,31) 100%); }
  .jl .jq-in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col); align-items: end; justify-items: start; }
  .jl .jn { grid-column: 1 / span 7; grid-row: 1 / span 2; margin-bottom: 0; }
  .jl .jq-t { grid-column: 9 / -1; grid-row: 1; } .jl .jq-go { grid-column: 9 / -1; grid-row: 2; flex-direction: column; gap: 0; margin-top: 0; }
  .jl .pln { grid-column: 1 / -1; grid-row: 3; }
}
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .jz::before { animation: jz-dawn linear both; animation-timeline: view(); animation-range: entry 0% cover 48%; }
} }
@keyframes jz-dawn { from { opacity: .8; } to { opacity: 0; } }

/* ---------- 6. a quiet invitation ---------- */
.mi { padding-block: var(--s10) var(--s8); }
.mi-say { max-width: 22em; margin-left: calc((100% + var(--col)) / 12); }
.mi-say a { display: inline-flex; align-items: center; gap: var(--s3); min-height: 48px; font-style: italic; text-decoration: underline; text-decoration-color: var(--line); white-space: nowrap; transition: text-decoration-color 200ms ease, opacity 120ms ease; }
.mi-say a svg { width: 20px; height: 20px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mi-say a:hover { text-decoration-color: currentColor; } .mi-say a:hover svg { transform: translateX(5px); } }

/* ---------- 7. where you stay ---------- */
.hu { padding-block: var(--s9) var(--s8); }
.hu .g { align-items: start; }
.hu-h { grid-column: 2 / span 8; padding-bottom: var(--s9); }
.hu figure { display: grid; gap: var(--s4); align-content: start; } .hu img { width: 100%; object-fit: cover; }
.hu figcaption { display: grid; gap: var(--s2); max-width: 22em; }
.hu-a { grid-column: 1 / span 7; margin-left: calc(-1 * var(--gut)); } .hu-a img { aspect-ratio: 3 / 2; } .hu-a figcaption { padding-left: var(--gut); }
.hu-b { grid-column: 9 / span 3; margin-top: var(--s10); } .hu-b img { aspect-ratio: 4 / 5; }
.hu-c { grid-column: 2 / span 5; margin-top: var(--s9); } .hu-c img { aspect-ratio: 3 / 2; }
.hu-d { grid-column: 8 / span 4; margin-top: var(--s10); } .hu-d img { aspect-ratio: 4 / 3; filter: saturate(.8); }
/* round 2: the way onward closes the section; the honest line about the photographs sits apart at its foot, in readable ink */
.hu-go { grid-column: 2 / span 6; margin-top: var(--s7); }
.hu-n { grid-column: 2 / span 8; margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--line); max-width: none; color: var(--soft); } .hu-n a { color: inherit; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; margin-left: .3em; }
.hu-l { color: var(--soft); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; margin-left: .3em; }

/* ---------- 8. ways to travel ---------- */
.wy { padding-block: var(--s9) var(--s8); }
.wy-h { padding-bottom: var(--s8); margin-left: calc((100% + var(--col)) / 12); }
.wy-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: calc(var(--col) * 2); border-top: 1px solid var(--line); padding-top: var(--s5); }
.wy-l a { display: grid; gap: var(--s3); align-content: start; padding-block: var(--s5) var(--s6); text-decoration: none; transition: opacity 120ms ease; }
.wy-l b { font: 300 italic var(--t-head)/1.1 var(--disp); letter-spacing: -.02em; transition: transform 300ms var(--ease-out); }
.wy-l span { color: var(--soft); max-width: 26em; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .wy-l a:hover b { transform: translateX(.2em); } .wy-l a:hover span { color: var(--ink); } }

/* ---------- 9. how it works ---------- */
.hw { padding-block: var(--s9) var(--s8); }
.hw .g { row-gap: var(--s7); align-items: start; }
.hw-a { grid-column: 2 / span 4; display: grid; gap: var(--s4); } .hw-a .n { max-width: 24em; }
.hw-l { grid-column: 7 / -1; counter-reset: hw; display: grid; }
.hw-l li { counter-increment: hw; display: grid; grid-template-columns: 2.5rem minmax(0, 9.5em) minmax(0, 1fr); column-gap: var(--s4); align-items: baseline; padding-block: var(--s4); }
.hw-l li::before { content: counter(hw); font: 300 italic var(--t-text)/1.2 var(--disp); color: var(--quiet); }
.hw-l li:nth-child(3) { margin-top: var(--s5); padding-top: var(--s6); border-top: 1px solid var(--line); }   /* from here on: how a trading house would continue */
.hw-l b { font: 400 var(--t-text)/1.3 var(--disp); }
.hw-l span { color: var(--soft); line-height: 1.5; }
.hw-go { grid-column: 7 / -1; justify-self: start; }

/* ---------- 10. the people ---------- */
.pp { padding-block: var(--s9) var(--s8); }
.pp-top { display: grid; gap: var(--s4); margin-left: calc((100% + var(--col)) / 12); padding-bottom: var(--s9); }
.pp-note { color: var(--soft); font-style: italic; max-width: 30em; }
.pp-l { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col); align-items: start; }
.pp-l li { display: grid; gap: var(--s3); align-content: start; }
.pp-l li:nth-child(even) { margin-top: var(--s9); }
.pp-l figure { display: grid; gap: var(--s3); margin-bottom: var(--s3); } .pp-l img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pp-n { font: 300 var(--t-head)/1.1 var(--disp); letter-spacing: -.022em; }
.pp-r { color: var(--quiet); margin-top: calc(-1 * var(--s1)); }
.pp-l .t { max-width: 24em; }
.pp-care { margin: var(--s9) 0 0 calc((100% + var(--col)) / 12); max-width: 32em; color: var(--ink); }
.pp-care .ql { margin-left: .2em; white-space: nowrap; }

/* ---------- 11. the letter ---------- */
.lt { padding-block: var(--s9) var(--s8); }
.lt .g { align-items: end; }
.lt-f { grid-column: 2 / span 3; display: grid; gap: var(--s3); } .lt-f img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lt-q { grid-column: 6 / -1; display: grid; gap: var(--s5); justify-items: start; padding-bottom: var(--s5); }
.lt-q .lt-say { position: relative; font: 300 clamp(1.875rem, 1rem + 2.5vw, 3.375rem)/1.16 var(--disp); letter-spacing: -.025em; text-wrap: pretty; max-width: 19em; }
.lt-q .lt-say em { font-style: italic; }
.lt-q figcaption { color: var(--soft); font-style: italic; max-width: 28em; }

/* ---------- 12. why North v South ---------- */
.ho { padding-block: var(--s9) var(--s8); }
.ho .g { align-items: start; row-gap: var(--s6); }
.ho-h { grid-column: 2 / span 4; }
.ho-t { grid-column: 7 / span 6; display: grid; gap: var(--s5); }
.ho-lead { font-size: var(--t-head); line-height: 1.22; letter-spacing: -.018em; font-weight: 300; max-width: 20em; }
.ho-t .t { color: var(--soft); max-width: 33em; }
.ho-links { display: flex; flex-wrap: wrap; gap: 0 var(--s7); }

/* ---------- 13. the invitation ---------- */
.iv { min-height: 100svh; display: grid; align-items: end; }
.iv > picture img { object-position: 50% 50%; }
.iv::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.62) 14%, rgba(8,22,31,.34) 36%, rgba(8,22,31,.06) 52%, rgba(8,22,31,.3) 68%, rgba(8,22,31,.86) 90%, rgb(8,22,31) 100%); }
.iv { align-items: stretch; }
.iv-in { min-height: 100svh; grid-template-rows: 1fr auto auto; padding-block: calc(76px + var(--s7)) var(--s8); row-gap: var(--s6); align-items: end; }   /* the line above the ship, the invitation below it */
.iv .d { grid-column: 1 / -1; align-self: start; font-size: clamp(3.5rem, 11.4vw, 11.5rem); line-height: .94; color: #F4F7F5; text-shadow: 0 2px 40px rgba(8,22,31,.5); }
.iv-t { grid-column: 1 / span 5; color: #F4F7F5; text-shadow: 0 1px 20px rgba(8,22,31,.8); }
.iv-go { grid-column: 8 / -1; display: grid; gap: var(--s5); justify-items: start; } .iv-go .ring { color: #F4F7F5; text-shadow: 0 1px 20px rgba(8,22,31,.8); }
.iv-pl { grid-column: 1 / -1; }

/* ---------- laptop and tablet ---------- */
@media (max-width: 1180px) {
  .st-say { grid-column: 1 / span 7; }
  .at-what { grid-column: 1 / span 6; }
  .jq-in { padding-inline: var(--s5); } .jz-in > * { grid-column: 7 / -1; } .jp .jn { grid-column: 1 / span 6; } .jp-go { grid-column: 8 / -1; } .hu-h { grid-column: 1 / span 10; }
  .hw-a { grid-column: 1 / span 4; } .hw-l, .hw-go { grid-column: 6 / -1; }
  .ho-h { grid-column: 1 / span 5; } .lt-f { grid-column: 1 / span 4; }
  .iv-t { grid-column: 1 / span 6; }
  .wy-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-l { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s8); } .pp-l li:nth-child(even) { margin-top: var(--s8); }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  :root { --t-mid: clamp(3rem, 15.4vw, 6rem); --t-open: clamp(2.75rem, 13.2vw, 5rem); }
  html { scroll-padding-block: 64px 76px; }
  main .at { scroll-margin-top: -64px; }
  .mi-say, .wy-h, .pp-top, .pp-care { margin-left: 0; }

  /* one bar, one action, from first paint: the place on the left, the way onward under the thumb */
  [data-page="home"] .lx-bar { transform: none; visibility: visible; transition: transform 260ms var(--ease-out), visibility 260ms; min-height: 64px; }
  [data-page="home"].bar-off .lx-bar { transform: translateY(105%); visibility: hidden; }
  [data-page="home"] .lx-bar .ring:not(.go) > i { background: none; }

  .o > picture img { object-position: 50% 50%; }
  .o::after { background: linear-gradient(180deg, rgba(8,22,31,.56) 0%, rgba(8,22,31,.2) 16%, rgba(8,22,31,0) 32%, rgba(8,22,31,.2) 46%, rgba(8,22,31,.74) 66%, rgba(8,22,31,.95) 100%); }
  .o-in { display: flex; flex-direction: column; align-items: stretch; padding-block: calc(64px + var(--s7)) calc(64px + var(--s4) + env(safe-area-inset-bottom, 0px)); row-gap: var(--s4); }
  .o-foot { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .o-br { display: block; }                                     /* the line breaks the same way whichever face has arrived */
  .o-go { min-height: 48px; }
  .o-pl { align-self: stretch; justify-content: flex-start; padding-top: var(--s2); border-top: 1px solid rgba(244,247,245,.28); min-height: 48px; }
  .o-pl svg { margin-left: auto; }

  .st { padding-block: var(--s9) var(--s9); } .st .g { display: block; }
  .st-say { padding-bottom: 0; } .st-fig { margin: var(--s8) calc(-1 * var(--gut)) 0 var(--s8); } .st-fig figcaption { padding-right: var(--gut); }

  /* the index on a phone: the names, then the photograph they bring, then its line. The action is in the bar. */
  .at { padding-block: calc(64px + var(--s5)) var(--s7); min-height: 0; display: block; }
  .at-in { row-gap: var(--s2); } .at-in .ch::after { max-width: none; flex: 1; }
  #atBody { display: flex; flex-direction: column; row-gap: 0; }
  .at-worlds { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 0 var(--s5); align-self: stretch; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 48px), transparent 100%); }
  .at-worlds::-webkit-scrollbar { display: none; }
  .at-top { justify-items: stretch; } .at-key span { font-size: .9375rem; }
  .at-names { margin-top: var(--s3); font-size: clamp(1.75rem, 8.2vw, 2.5rem); line-height: 1.5; max-width: none; text-shadow: none; }
  .at-names button { padding: 0; min-height: 44px; }
  .at-photo picture { clip-path: none; }
  .at-photo { position: relative; inset: auto; z-index: 0; margin: var(--s4) calc(-1 * var(--gut)) 0; aspect-ratio: 16 / 10; }
  .at-photo::after { inset: 0; background: linear-gradient(180deg, rgba(var(--veil), .5) 0%, rgba(var(--veil), 0) 22%, rgba(var(--veil), 0) 70%, rgba(var(--veil), .7) 100%); }
  .at-now { display: block; margin-top: var(--s4); }
  .at-what { min-height: 6.4em; align-content: start; }
  .at-go { justify-items: start; text-align: left; margin-top: var(--s3); } .at-go .n { color: var(--soft); text-shadow: none; } .at-go .pln { justify-content: flex-start; }
  .js .at-go .ring { display: none; }                            /* the bar carries this place's action; it is never offered twice */

  .ja { min-height: 0; display: block; } .ja > video { position: relative; inset: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; } .ja::after { z-index: 0; inset: 0 0 auto 0; height: 100vw; background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,0) 16%, rgba(8,22,31,0) 60%, rgba(8,22,31,.8) 90%, rgb(8,22,31) 100%); }
  .ja-in { padding: 0 var(--gut) var(--s8); margin-top: -1.9em; position: relative; z-index: 1; background: none; }
  .ja .jn { text-shadow: 0 2px 30px rgba(8,22,31,.7); } .ja-t { color: var(--ink); text-shadow: none; } .ja .ring { text-shadow: none; } .ja-pl.on-photo { color: var(--quiet); text-shadow: none; }
  .ja .film-ctl { bottom: auto; top: calc(100vw - 150px); }

  .jg { min-height: min(92svh, 760px); } .jg > picture img { object-position: 42% 50%; } .jg-in { padding-block: var(--s8); } .jg-go { flex-direction: column; align-items: center; gap: var(--s2); }
  .jp { min-height: min(92svh, 760px); } .jp > picture { height: 70%; } .jp > picture img { object-position: 50% 100%; }   /* the guanacos stand above the words, never behind them */
  .jp::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.3) 7%, rgba(8,22,31,0) 18%, rgba(8,22,31,0) 46%, rgba(8,22,31,.5) 60%, rgb(8,22,31) 70%, rgb(8,22,31) 100%); }
  .jp-in { grid-template-columns: 1fr; padding-block: var(--s8); } .jp .jn, .jp-go, .jp-pl { grid-column: 1; } .jp-go { padding-bottom: 0; } .jp-t { padding-bottom: var(--s2); }
  .jv { min-height: min(92svh, 760px); } .jv > picture img { object-position: 52% 100%; }
  .jv::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.78) 10%, rgba(8,22,31,.62) 40%, rgba(8,22,31,.16) 58%, rgba(8,22,31,0) 70%, rgba(8,22,31,.56) 90%, rgb(8,22,31) 100%); }
  .jv-in { padding-block: var(--s8) var(--s6); } .jv-go { flex-direction: column; gap: var(--s2); } .jv-pl { justify-self: start; }
  .jz { min-height: min(92svh, 760px); } .jz > picture img { object-position: 64% 50%; }
  .jz::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(14,14,18,.4) 8%, rgba(18,10,8,0) 24%, rgba(18,10,8,.1) 44%, rgba(13,12,14,.82) 76%, rgb(8,22,31) 100%); }
  .jz-in { display: grid; grid-template-columns: 1fr; padding-block: var(--s8) var(--s8); } .jz-in > * { grid-column: 1; }

  .jq { display: block; padding: var(--s7) 0 var(--s5); } .jq-p { min-height: min(72svh, 600px); margin-bottom: var(--s2); } .jq-in { padding: var(--s6) var(--gut) var(--s5); } .jq-go { flex-direction: column; gap: 0; } .jq .jn { font-size: clamp(2.75rem, 13vw, 4rem); }
  .mi { padding-block: var(--s9) var(--s8); }

  .hu { padding-block: var(--s8) var(--s7); } .hu .g { display: block; } .hu-h { padding-bottom: var(--s7); }
  .hu-a { margin-inline: calc(-1 * var(--gut)); } .hu-a figcaption { padding-inline: var(--gut); }
  .hu-b { margin: var(--s8) 0 0 38%; } .hu-c { margin: var(--s8) var(--s7) 0 calc(-1 * var(--gut)); } .hu-c figcaption { padding-left: var(--gut); }
  .hu-d { margin: var(--s8) calc(-1 * var(--gut)) 0 var(--s8); } .hu-go { margin-top: var(--s6); } .hu-n { margin-top: var(--s6); }

  .wy { padding-block: var(--s8) var(--s7); } .wy-h { padding-bottom: var(--s6); }
  .wy-l { grid-template-columns: 1fr; padding-top: var(--s3); } .wy-l a { padding-block: var(--s4); gap: var(--s1); }

  .hw { padding-block: var(--s8) var(--s7); } .hw .g { display: grid; grid-template-columns: 1fr; row-gap: var(--s6); } .hw-a, .hw-l, .hw-go { grid-column: 1; }
  .hw-l li { grid-template-columns: 2rem 1fr; } .hw-l li span { grid-column: 2; }
  .hw-go { width: 100%; justify-content: space-between; }

  /* the people on a phone: one row to move through sideways, each profile most of a screen wide */
  .pp { padding-block: var(--s8) var(--s7); } .pp-top { padding-bottom: var(--s7); }
  .pp-l { display: flex; gap: var(--s5); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .pp-l::-webkit-scrollbar { display: none; }
  .pp-l li, .pp-l li:nth-child(even) { flex: 0 0 72%; margin-top: 0; scroll-snap-align: start; }
  .pp-care { margin-top: var(--s7); }

  .lt { padding-block: var(--s8) var(--s7); } .lt .g { display: block; }
  .lt-f { width: 62%; margin-left: auto; } .lt-q { margin-top: var(--s7); padding-left: .5em; }
  .lt-q .lt-say { font-size: clamp(1.75rem, 7.6vw, 2.25rem); }

  .ho { padding-block: var(--s8) var(--s7); } .ho .g { display: block; } .ho-h { padding-bottom: var(--s6); }

  .iv { min-height: 100svh; } .iv > picture img { object-position: 50% 50%; }
  .iv > picture { height: 82%; }                                /* the ship sits above the words, never behind them */
  .iv::after { background: linear-gradient(180deg, rgb(8,22,31) 0%, rgba(8,22,31,.6) 12%, rgba(8,22,31,.3) 30%, rgba(8,22,31,.04) 46%, rgba(8,22,31,.4) 62%, rgba(8,22,31,.9) 74%, rgb(8,22,31) 81%, rgb(8,22,31) 100%); }
  .iv-in { display: flex; flex-direction: column; padding-block: calc(64px + var(--s6)) var(--s7); row-gap: 0; align-items: stretch; } .iv .d { margin-bottom: auto; } .iv .d { font-size: 15.6vw; } .iv-t { margin-top: var(--s6); } .iv-go { margin-top: var(--s7); } .iv-go .ring.big { width: 100%; justify-content: space-between; } .iv-pl { margin-top: var(--s7); }
}
@media (prefers-reduced-motion: reduce) { .at-swap { animation: none; } .at-photo picture.on { transition-duration: 200ms; } .o-go > i, .at-names button, .at-worlds button, .wy-l b, .o-pl svg, .mi-say a svg { transition-property: color, background-color, border-color, opacity; } }
@media (prefers-contrast: more) { .at-names button, .at-names button[data-s="drawn"] { color: var(--ink); } }
