/* Trekkup home page only. Shared parts (tokens, header, footer, button, poster, print, scene) are in site.css. */

/* ========== 1. Hero: the Lake Abbe poster ========== */
.hero {
  --hs: clamp(3.5rem, min(10vw, 17.5vh), 11rem);
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
}
.hero__pic, .hero__pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__pic { z-index: -2; }
.hero__pic img {
  object-fit: cover; object-position: 22% 50%;
  filter: brightness(.88) saturate(1.02) contrast(1.07) hue-rotate(-16deg) sepia(.12);
  transform-origin: 30% 80%;
}
@keyframes hero-breathe { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) { .hero__pic img { animation: hero-breathe var(--motion-slow) cubic-bezier(.2, .6, .2, 1) both; } }
html.motion-forced .hero__pic img { animation: hero-breathe var(--motion-slow) cubic-bezier(.2, .6, .2, 1) both !important; animation-duration: var(--motion-slow) !important; }
.hero__grade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 36% at 2% 2%, rgba(36, 15, 9, .72) 0%, rgba(30, 13, 9, .45) 45%, rgba(11, 6, 7, 0) 100%),
    radial-gradient(110% 60% at 50% -10%, rgba(202, 5, 8, .34) 0%, rgba(110, 2, 4, .14) 40%, rgba(110, 2, 4, 0) 70%),
    radial-gradient(42% 30% at 16% 56%, rgba(11, 6, 7, .62) 0%, rgba(11, 6, 7, .32) 55%, rgba(11, 6, 7, 0) 100%),
    radial-gradient(56% 15% at 36% 37%, rgba(11, 6, 7, .56) 0%, rgba(11, 6, 7, .4) 50%, rgba(11, 6, 7, 0) 100%),
    linear-gradient(0deg, #0B0607 0%, rgba(11, 6, 7, .86) 7%, rgba(11, 6, 7, .5) 22%, rgba(11, 6, 7, .12) 40%, rgba(11, 6, 7, 0) 52%);
}
/* the bright band of the sky sits behind the first line: a soft warm-black pool tied to the line itself, at every width */
.hero__l1 { position: relative; width: fit-content; }
.hero__l1::before {
  content: ""; position: absolute; z-index: -1; left: -18%; right: -10%; top: -100%; bottom: -60%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(44, 14, 6, .58) 0%, rgba(40, 13, 6, .54) 38%, rgba(30, 10, 6, .36) 60%, rgba(22, 8, 6, .16) 80%, rgba(11, 6, 7, .04) 92%, rgba(11, 6, 7, 0) 100%);
}
@media (min-width: 701px) and (max-width: 1279px) {
  .hero__l1::before { background: radial-gradient(closest-side, rgba(44, 14, 6, .64) 0%, rgba(40, 13, 6, .6) 38%, rgba(30, 10, 6, .38) 60%, rgba(22, 8, 6, .16) 80%, rgba(11, 6, 7, .04) 92%, rgba(11, 6, 7, 0) 100%); }
}
.hero__in { position: absolute; left: 0; right: 0; top: max(calc(var(--head-h) + 48px), 30vh); top: max(calc(var(--head-h) + 48px), 30svh); padding: 0 var(--gutter); }
/* tall tablets: the headline sits a little lower, on the darker band under the bright sky (the figure is far below) */
@media (min-width: 701px) and (max-width: 1279px) and (max-aspect-ratio: 1/1) {
  .hero__in { top: max(calc(var(--head-h) + 48px), 35vh); top: max(calc(var(--head-h) + 48px), 35svh); }
}
.hero__h1 { font-size: var(--hs); margin-left: -.05em; text-shadow: 0 2px 30px rgba(11, 6, 7, .35); }
/* two lines, flush left, broken where the sentence breaks: "Life's too short / for boring travels" (three on a phone) */
.hero__h1 > span { display: block; }
.hero__l1, .hero__l2 { white-space: nowrap; }
/* the words and the button sit in one row under the headline, so neither lands on the figure in the steam */
.hero__act { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: clamp(22px, 3.4vh, 40px); }
.hero__act p { max-width: 27rem; }
.hero__act p { font: 400 1.1875rem/1.45 var(--font-body); color: var(--color-text); text-shadow: 0 1px 12px rgba(11, 6, 7, .7); }
.hero__cap { position: absolute; left: var(--gutter); bottom: clamp(22px, 4vh, 44px); z-index: 1; }
.hero__cap a { display: grid; gap: 8px; min-height: 44px; font: 400 .9375rem/1.35 var(--font-body); color: var(--color-text-muted); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero__cap b { font: 800 .9375rem/1.2 var(--font-display); color: var(--color-text); letter-spacing: -.01em; }
@media (hover: hover) { .hero__cap a:hover b { text-decoration: underline; text-decoration-color: rgba(255, 93, 82, .8); text-underline-offset: 4px; } }

/* the home page opts in to the tall header shade over the Lake Abbe sky (site.css keeps it to the header's height) */
@media (min-width: 701px) {
  .site-head::before { height: 180px; background: linear-gradient(180deg, rgba(11, 6, 7, .78) 0%, rgba(11, 6, 7, .5) 40%, rgba(11, 6, 7, 0) 100%); }
}
@media (max-width: 700px) {
  .hero { --hs: min(12.3vw, 4.25rem); display: flex; flex-direction: column; }
  .hero__pic img { object-position: 30% 50%; }
  .hero__grade {
    background:
      linear-gradient(180deg, rgba(46, 14, 6, .8) 0%, rgba(42, 13, 6, .74) 28%, rgba(34, 11, 6, .68) 52%, rgba(22, 8, 6, .32) 60%, rgba(11, 6, 7, 0) 68%),
      radial-gradient(130% 50% at 50% -6%, rgba(202, 5, 8, .38) 0%, rgba(110, 2, 4, .16) 45%, rgba(110, 2, 4, 0) 75%),
      linear-gradient(0deg, #0B0607 0%, rgba(11, 6, 7, .9) 12%, rgba(11, 6, 7, .55) 24%, rgba(11, 6, 7, 0) 38%);
  }
  .hero__in { position: static; flex: 1; display: flex; flex-direction: column; padding: calc(var(--head-h) + 22px) var(--gutter) 0; }
  .hero__h1 { line-height: .9; }
  .hero__l3 { display: block; }
  /* the button keeps its own width, left under the words (not a bar across the middle of the screen) */
  .hero__act { display: grid; margin-top: clamp(18px, 3svh, 28px); gap: 20px; justify-items: start; }
  .hero__act p { max-width: none; }
  .hero__act::before {
    content: ""; position: absolute; z-index: -1; inset: -28px -24px -20px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(11, 6, 7, .5) 0%, rgba(11, 6, 7, .36) 60%, rgba(11, 6, 7, 0) 100%);
  }
  .hero__act p { font-size: 1.125rem; }
  /* the header's own shade stays inside the header on phones, so no word of the headline is dimmed */
  .site-head::before { height: calc(var(--head-h) + 16px); background: linear-gradient(180deg, rgba(11, 6, 7, .62) 0%, rgba(11, 6, 7, .3) 70%, rgba(11, 6, 7, 0) 100%); }
  .hero__cap { position: static; margin-top: auto; padding: 18px var(--gutter) 22px; }
}

/* ========== 2. Proof: one line of figures ========== */
.proof {
  position: relative; padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(56px, 10vh, 112px);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px;
}
.proof__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(28px, 3.6vw, 60px); font: 400 1.1875rem/1.3 var(--font-body); color: var(--color-text-muted); }
.proof__line > span { display: inline-flex; align-items: baseline; gap: 10px; }
.proof__line b { color: var(--color-text); }
@media (max-width: 700px) {
  .proof { flex-direction: column; gap: 14px; }
  .proof__line { flex-direction: column; gap: 12px; font-size: 1.0625rem; }
}

/* ========== 3. Crew: the Empty Quarter film, Piotr's words lapping its foot ========== */
.crew { padding-bottom: clamp(32px, 6vh, 72px); }
.crew__media { position: relative; inset: auto; z-index: -1; height: clamp(520px, 94vh, 1040px); height: clamp(520px, 94svh, 1040px); --top: 20%; --foot: 46%; }
.crew__media > video { object-position: 50% 55%; }
.crew__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(62% 58% at 0% 100%, rgba(11, 6, 7, .74) 0%, rgba(11, 6, 7, .42) 50%, rgba(11, 6, 7, 0) 100%);
}
.crew__copy {
  position: relative; display: grid; gap: 26px; padding: 0 var(--gutter);
  margin-top: calc(-1 * clamp(230px, 32vh, 340px)); margin-top: calc(-1 * clamp(230px, 32svh, 340px));
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto; margin-right: auto;
}
.crew__h { max-width: 11ch; text-shadow: 0 2px 30px rgba(11, 6, 7, .55); }
.crew__quote blockquote p { font: 400 var(--text-base)/1.65 var(--font-body); color: rgba(247, 241, 239, .88); max-width: var(--measure); }
.sign { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 800 1rem/1 var(--font-display); letter-spacing: -.01em; color: var(--color-text); }
.sign::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--color-hi); box-shadow: 0 0 8px rgba(255, 40, 36, .8); }
.crew__cap { font: 400 .875rem/1.35 var(--font-body); color: var(--color-text-muted); }
@media (min-width: 1100px) {
  /* the film opens out of the ground under the proof line over about 240 px, in the app's eased steps, never a hard band */
  .crew__media { --top: 240px; }
  .crew__media.dissolve-top::before {
    background: linear-gradient(0deg, rgba(11, 6, 7, 0) 0%, rgba(11, 6, 7, .06) 14%, rgba(11, 6, 7, .16) 28%, rgba(11, 6, 7, .3) 42%,
      rgba(11, 6, 7, .48) 56%, rgba(11, 6, 7, .68) 70%, rgba(11, 6, 7, .86) 84%, #0B0607 100%);
  }
  .crew__copy { grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)); column-gap: clamp(48px, 6vw, 120px); align-items: start; }
  .crew__quote { padding-top: clamp(190px, 21vh, 250px); padding-top: clamp(190px, 21svh, 250px); }
  .crew__h { grid-column: 1; grid-row: 1; }
  .crew__quote { grid-column: 2; grid-row: 1; }
  /* the film's caption under Piotr's signature, so no line sits alone on the empty ground at the left */
  .crew__cap { grid-column: 2; grid-row: 2; margin-top: -6px; }
}
@media (max-width: 899px) {
  .crew__media { height: clamp(380px, 62svh, 560px); --top: 18%; --foot: 40%; }
  .crew__media > video { object-position: 76% 50%; }
  .crew__copy { margin-top: calc(-1 * clamp(84px, 14svh, 130px)); }
  .crew__scrim { background: linear-gradient(0deg, rgba(11, 6, 7, .5) 0%, rgba(11, 6, 7, 0) 40%); }
}
/* two films: the wide cut (1080 from 1100 px, 720 from 700 px) and, under 700 px, the phone cut in its own 3:4 box,
   a traveler in every shot. A film that is not drawn never gets a source (site.js only loads what is near the screen). */
.crew__film--tall { display: none; }
.crew__media > noscript > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 699px) {
  .crew__film--wide { display: none; }
  .crew__film--tall { display: block; }
  .crew__media { height: auto; aspect-ratio: 3 / 4; --top: 14%; --foot: 36%; }
  .crew__media > video.crew__film--tall { object-position: 50% 50%; }
}

/* ========== 4. The trekkups: the names on the wall ========== */
.trekkups { position: relative; }
.tindex { position: relative; }
.tstage { display: none; }
.tindex__head { position: relative; z-index: 3; padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(24px, 4vh, 48px); display: grid; gap: 22px; align-items: end; }
.tindex__head .t-section { max-width: 12ch; text-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 2px 24px rgba(0, 0, 0, .45); }
.tindex__aside { display: grid; gap: 10px; justify-items: start; max-width: 26rem; }
.tindex__aside p { font: 400 var(--text-base)/1.5 var(--font-body); color: var(--color-text-muted); }

/* phone: the overview of names, then eleven posters */
.tjump { position: relative; z-index: 3; padding: 4px var(--gutter) 36px; }
.tjump ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.tjump a { display: grid; align-content: center; gap: 5px; min-height: 64px; padding: 8px 0; }
.tjump .code { font-size: .6875rem; }
.tjump__name { font: 800 1.0625rem/1.12 var(--font-display); letter-spacing: -.02em; color: var(--color-text); text-wrap: balance; }
.trows { position: relative; z-index: 2; display: grid; gap: 16px; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); }
.trow { scroll-margin-top: 16px; }
.trow__facts { display: grid; gap: 8px; justify-items: start; margin-top: 2px; }
.trow .poster__name { font-size: clamp(2rem, 11cqi, 3.25rem); }
.trow .poster__credit { top: auto; bottom: auto; top: 18px; left: 20px; right: auto; }

@media (min-width: 600px) and (max-width: 899px) {
  .tjump ul { grid-template-columns: 1fr 1fr 1fr; }
  .trows { grid-template-columns: 1fr 1fr; }
  .trow { display: flex; } /* the two cards in a row share one height */
  .trow > .poster { flex: 1; }
}

/* desktop: rows of names, and (without the script) each with its own print beside it */
@media (min-width: 900px) {
  .tindex__head { justify-items: start; }
  .tjump { display: none; }
  .trows { gap: 0; padding-bottom: clamp(64px, 12vh, 140px); }
  .trow__a {
    aspect-ratio: auto; border-radius: 0; overflow: visible; background: none; box-shadow: none; container-type: normal;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 28%); gap: 56px; align-items: center; padding: 40px 0;
  }
  .trow__a::before, .trow__a::after, .trow__a .poster__body::before { content: none; }
  .trow__a .poster__go { display: none; }
  .trow__a .poster__img {
    position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 5;
    border-radius: var(--radius); box-shadow: var(--shadow-print); -webkit-mask-image: none; mask-image: none; object-position: 50% 50%;
  }
  .trow__a .poster__credit { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; position: relative; top: 14px; right: 16px; left: auto; }
  .trow__a .poster__body { position: relative; grid-column: 1; grid-row: 1; margin: 0; padding: 0; gap: 12px; }
  .trow .poster__name { font: 800 var(--text-trip)/.92 var(--font-display); letter-spacing: -.04em; max-width: 13ch; }
  .trow .poster__line { font: 400 1.125rem/1.45 var(--font-body); color: var(--color-text); max-width: 34em; }
  .trow__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
  .trow .poster__chips { gap: 6px 24px; margin: 0; }
  .trow .chip { min-height: 0; padding: 0; background: none; box-shadow: none; font: 700 1rem/1.35 var(--font-body); color: var(--color-text-muted); gap: 8px; }
  .trow .chip .i, .trow .poster__where .i { width: 18px; height: 18px; }
  .trow .poster__where { font: 700 1rem/1.35 var(--font-body); gap: 8px; }
  @media (hover: hover) { .trow__a:hover .poster__img { scale: 1; } }
}

/* desktop with the script: the held layer and the lit name (design.md section 7) */
@media (min-width: 900px) {
  .tindex.is-staged { clip-path: inset(0); }
  .tindex.is-staged::before, .tindex.is-staged::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; height: 18vh; pointer-events: none; }
  .tindex.is-staged::before { top: -2px; background: linear-gradient(180deg, #0B0607 0%, rgba(11, 6, 7, .66) 40%, rgba(11, 6, 7, 0) 100%); }
  .tindex.is-staged::after { bottom: -2px; background: linear-gradient(0deg, #0B0607 0%, rgba(11, 6, 7, .66) 40%, rgba(11, 6, 7, 0) 100%); }
  .tindex.is-staged.is-near .tstage { display: block; position: fixed; z-index: 0; top: 0; bottom: 0; right: 0; left: 24%; pointer-events: none; transition: opacity var(--motion-base) ease; }
  /* the index ends on the warm black: once the sentinel after the last row passes mid-screen the held layer fades out */
  .tindex.is-staged.is-ended .tstage { opacity: 0; }
  .tindex__end { height: 1px; }
  .tstage__img {
    position: absolute; inset: 0; margin: auto 0 auto auto;
    width: min(100%, var(--fw)); height: min(100%, var(--fh));
    object-fit: cover; opacity: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%), linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 20%), linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect;
    transition: opacity var(--motion-base) ease;
  }
  .tstage__img.is-lit { opacity: 1; }
  .tstage__grade {
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(11, 6, 7, .9) 0%, rgba(11, 6, 7, .7) 22%, rgba(11, 6, 7, .42) 44%, rgba(11, 6, 7, .12) 60%, rgba(11, 6, 7, 0) 72%),
      linear-gradient(180deg, rgba(11, 6, 7, .7) 0%, rgba(11, 6, 7, .2) 12%, rgba(11, 6, 7, 0) 24%, rgba(11, 6, 7, 0) 76%, rgba(11, 6, 7, .3) 90%, rgba(11, 6, 7, .7) 100%);
  }
  .tstage__credit { position: absolute; right: var(--gutter); bottom: 28px; font: 400 .8125rem/1.2 var(--font-body); color: rgba(247, 241, 239, .82); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); opacity: 0; transition: opacity var(--motion-base) ease; }
  .tstage[data-lit="BF14"] .tstage__credit { opacity: 1; }
  .tindex.is-staged .tindex__head { padding-top: clamp(40px, 9vh, 96px); }
  .tindex.is-staged .trows { padding-top: 4vh; padding-bottom: 10vh; }
  .tindex.is-staged .trow__a { display: flex; align-items: center; min-height: 27vh; padding: 26px 0; }
  .tindex.is-staged .trow__a .poster__img, .tindex.is-staged .trow__a .poster__credit { display: none; }
  /* with the script the desktop never draws (so never loads) the row prints, even before home.js runs */
  html.js .trow__a .poster__img, html.js .trow__a .poster__credit { display: none; }
  .tindex.is-staged .poster__body { max-width: min(66vw, 1060px); }
  .tindex.is-staged .trow .poster__name { color: rgba(247, 241, 239, .78); transition: color .45s ease; max-width: 15ch; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 26px rgba(0, 0, 0, .5); }
  .tindex.is-staged .trow .code { transition: color .45s ease; }
  .tindex.is-staged .trow:not(.is-lit) .code { color: rgba(255, 93, 82, .7); }
  .tindex.is-staged .trow:not(.is-lit) .code::before { box-shadow: none; opacity: .7; }
  .tindex.is-staged .trow.is-lit .poster__name { color: var(--color-text); }
  .tindex.is-staged .poster__line, .tindex.is-staged .trow .chip, .tindex.is-staged .trow .poster__where { text-shadow: 0 1px 10px rgba(11, 6, 7, .8); }
  @media (hover: hover) { .tindex.is-staged .trow__a:hover .poster__name { color: var(--color-text); } }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) .tstage__img, html:not(.motion-forced) .trow .poster__name { transition: none; }
}

/* ========== 5. How to join: three real steps and the Ghadames print ========== */
.join { position: relative; z-index: 2; padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(40px, 6vw, 96px); } /* the words scene after it opens on its own long dissolve */
.join__in { max-width: var(--max); margin: 0 auto; display: grid; gap: 56px; }
.steps { margin-top: clamp(28px, 4vw, 56px); counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: .82em minmax(0, 1fr); column-gap: clamp(18px, 2vw, 30px); align-items: start; padding: clamp(18px, 2.2vw, 28px) 0; font-size: clamp(3.75rem, 7vw, 7rem); }
.step + .step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .12) 18%, rgba(255, 255, 255, .12) 70%, rgba(255, 255, 255, 0) 100%);
}
.step__n {
  font: 800 1em/.78 var(--font-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  color: var(--color-hi);
}
.step__body { display: grid; gap: 8px; font-size: 1rem; padding-top: .1em; }
.step__title { display: block; color: var(--color-text); }
.step__line { display: block; font: 400 var(--text-base)/1.5 var(--font-body); color: var(--color-text-muted); max-width: 28em; }
.join__ask { margin-top: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: 400 var(--text-base)/1.4 var(--font-body); color: var(--color-text-muted); }
.join__print { position: relative; }
.join__print .print__frame, .join__print figcaption { position: relative; z-index: 1; }
.join__glow { width: 130%; height: 130%; left: -15%; top: -12%; background: radial-gradient(closest-side, rgba(202, 5, 8, .3) 0%, rgba(110, 2, 4, .14) 50%, rgba(110, 2, 4, 0) 100%); }
.join__print img { filter: saturate(.94) sepia(.06); }
@media (min-width: 1000px) {
  /* the print is about 58 % of the screen wide and runs off its right edge at every width (1920 included):
     --out is the distance from the content's right edge past the screen's edge, the bleed included */
  .join { --pw: min(58vw, 1403px); --out: calc(var(--gutter) + max(0px, (100vw - 2 * var(--gutter) - var(--max)) / 2) + 5vw); }
  .join__in { grid-template-columns: minmax(0, 1fr) calc(var(--pw) - var(--out)); column-gap: clamp(48px, 5vw, 96px); align-items: center; }
  .join__print { width: var(--pw); margin-right: calc(-1 * var(--out)); justify-self: start; }
  .join__print figcaption { padding-left: 4px; }
}

/* ========== 6. Travelers' words: the Papua New Guinea group as the scene's ground, the quotes lapping its dark edge ========== */
/* The picture is a ground, not a print: it dissolves into the warm black at its top, its left and its foot. The faces sit
   in its lower middle; the left dissolve ends short of the first face, and the foot dissolve keeps a soft hole round the
   one low face (the crouching traveler, --fx/--fy), so no fade crosses a face. */
.words { position: relative; isolation: isolate; padding: 0 var(--gutter) clamp(56px, 7vw, 104px); }
.words__media { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.words__pic { position: relative; overflow: hidden; aspect-ratio: 4 / 3; --fx: 56.6%; --fy: 87%;
  -webkit-mask-image: radial-gradient(9% 11% at var(--fx) var(--fy), #000 55%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .35) 7%, rgba(0, 0, 0, .8) 15%, #000 22%, #000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-image: radial-gradient(9% 11% at var(--fx) var(--fy), #000 55%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .35) 7%, rgba(0, 0, 0, .8) 15%, #000 22%, #000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
  mask-composite: add;
}
.words__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; filter: saturate(.94) sepia(.08) brightness(.94); }
.words__pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 6, 7, .45) 0%, rgba(11, 6, 7, .12) 30%, rgba(11, 6, 7, 0) 45%); }
.words__cap { display: flex; justify-content: flex-end; padding: 0 var(--gutter); margin-top: -6px; }
.words__cap a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font: 400 .875rem/1.3 var(--font-body); color: var(--color-text-muted); }
@media (hover: hover) { .words__cap a:hover span:last-child { color: var(--color-text); } }
.words__in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(36px, 5vw, 64px); }
.words__lead { display: grid; gap: clamp(28px, 3.4vw, 48px); align-content: start; }
.words__tail { display: grid; gap: clamp(24px, 3vw, 40px); }
.words__h { font: 800 var(--text-card)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--color-text-muted); }
.q blockquote p {
  font: 800 clamp(1.875rem, 3vw, 3.25rem)/1.06 var(--font-display); letter-spacing: -.035em; color: var(--color-text);
  text-indent: -.4em; text-wrap: balance; text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 2px 26px rgba(11, 6, 7, .6);
}
.q--2 blockquote p { font-size: clamp(2.25rem, 3.6vw, 4rem); }
.q figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 400 .9375rem/1.35 var(--font-body); color: var(--color-text-muted); }
.q figcaption::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--color-hi); box-shadow: 0 0 8px rgba(255, 40, 36, .8); flex: none; }
.words__tags { display: grid; gap: 6px; justify-items: start; }
.words__list { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.words__list li { display: inline-flex; align-items: center; gap: 9px; font: 700 1rem/1.3 var(--font-body); color: var(--color-text); }
.words__list .i { width: 18px; height: 18px; color: var(--color-hi); }
.words__src { display: inline-flex; align-items: center; min-height: 44px; font: 400 .875rem/1.3 var(--font-body); color: var(--color-text-muted); text-decoration: underline; text-decoration-color: rgba(255, 93, 82, .55); text-underline-offset: 5px; }
@media (hover: hover) { .words__src:hover { color: var(--color-text); text-decoration-color: var(--color-hi); } }
@media (max-width: 1199px) {
  .words__in { margin-top: clamp(8px, 2vw, 24px); }
}
@media (min-width: 700px) and (max-width: 1199px) {
  /* tablets: the picture opens closer under the join caption (a shorter top dissolve, the section pulled up) */
  .words { margin-top: -24px; }
  .words__pic { aspect-ratio: 1.56; --fx: 57%;
    -webkit-mask-image: radial-gradient(9% 11% at var(--fx) var(--fy), #000 55%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .45) 5%, rgba(0, 0, 0, .85) 10%, #000 14%, #000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
    mask-image: radial-gradient(9% 11% at var(--fx) var(--fy), #000 55%, transparent 100%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .45) 5%, rgba(0, 0, 0, .85) 10%, #000 14%, #000 80%, rgba(0, 0, 0, .55) 90%, transparent 100%);
  }
  .words__pic img { object-position: 30% 50%; }
  .words__lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .words__h { grid-column: 1 / -1; }
}
/* wide: one scene, the quotes in one column at the left lapping the dissolve of the group on the right (about 60 % of the
   screen). The picture shows the window --sx to --sx + --f of its width (the whole group, the first face clear of the left
   dissolve); the section is at least as tall as the picture and ends with the column, so the app scene starts where the
   picture's dissolve ends. */
@media (min-width: 1200px) {
  .words { --edge: max(var(--gutter), (100vw - var(--max)) / 2); --lw: min(36vw, 600px); --W: calc(107vw - var(--edge) - var(--lw)); --f: .78; --sx: .04; --fx-w: 63.7%;
    --ph: calc(min(var(--W), 1614px) / var(--f) * .5643);
    padding-top: clamp(56px, 6vh, 88px); padding-bottom: clamp(16px, 2vh, 32px); min-height: var(--ph); }
  .words__media { position: absolute; z-index: 0; top: 0; right: 0; margin: 0; width: min(var(--W), 1614px); }
  .words__pic { aspect-ratio: auto; height: var(--ph); --fx: var(--fx-w); --fy: 87%;
    -webkit-mask-image: radial-gradient(8% 13% at var(--fx) var(--fy), #000 55%, transparent 100%),
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 6%, rgba(0, 0, 0, .75) 12%, #000 18%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .8) 22%, #000 32%, #000 72%, rgba(0, 0, 0, .8) 80%, rgba(0, 0, 0, .45) 89%, transparent 100%);
    -webkit-mask-composite: source-over, source-in;
    mask-image: radial-gradient(8% 13% at var(--fx) var(--fy), #000 55%, transparent 100%),
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 6%, rgba(0, 0, 0, .75) 12%, #000 18%),
      linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .8) 22%, #000 32%, #000 72%, rgba(0, 0, 0, .8) 80%, rgba(0, 0, 0, .45) 89%, transparent 100%);
    mask-composite: add, intersect;
  }
  .words__pic img { inset: 0 auto auto calc(-100% * var(--sx) / var(--f)); width: calc(100% / var(--f)); max-width: none; height: 100%; object-fit: cover; }
  /* the place's caption under the picture's right edge, on its dissolved foot */
  .words__cap { position: absolute; right: 0; bottom: 0; margin: 0; }
  .words__in { margin-top: 0; gap: clamp(28px, 3.4vw, 48px); }
  /* the third quote and the Meetup tags follow the first two in the same column */
  .words__lead, .words__tail { max-width: var(--lw); }
  .words__tail .words__tags { margin-top: 4px; }
}

/* ========== 7. The app (optional): the Cuernos as the ground, the whole iPhone standing on it with the app's real home screen ========== */
.app { position: relative; overflow: hidden; padding: clamp(72px, 12vh, 140px) var(--gutter) 0; }
.app__media { --top: 22%; --foot: 30%; }
.app__media img { object-position: 46% 40%; filter: saturate(.96) sepia(.08); }
.app__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 6, 7, .86) 0%, rgba(11, 6, 7, .66) 22%, rgba(11, 6, 7, .28) 42%, rgba(11, 6, 7, .06) 58%, rgba(11, 6, 7, 0) 70%),
    radial-gradient(30% 52% at 76% 54%, rgba(11, 6, 7, .5) 0%, rgba(11, 6, 7, 0) 100%); }
.app__in { position: relative; max-width: var(--max); margin: 0 auto; display: grid; gap: 44px; }
.app__copy { position: relative; z-index: 3; display: grid; gap: 22px; align-content: start; justify-items: start; }
.app__copy::before { content: ""; position: absolute; z-index: -1; inset: -14% -18% -10% -12%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 6, 7, .62) 0%, rgba(11, 6, 7, .5) 50%, rgba(11, 6, 7, .2) 80%, rgba(11, 6, 7, 0) 100%); }
.app__copy .t-section { max-width: 11ch; text-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 2px 30px rgba(11, 6, 7, .6); }
.app__copy p { font: 400 var(--text-base)/1.6 var(--font-body); color: rgba(247, 241, 239, .86); max-width: 26rem; text-shadow: 0 1px 12px rgba(11, 6, 7, .8); }
/* the place's caption sits on the scene's dark foot, bottom left, clear of the mountains */
.app__cap { position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(20px, 4vh, 44px); }
.app__cap a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font: 400 .875rem/1.3 var(--font-body); color: var(--color-text-muted); }
@media (hover: hover) { .app__cap a:hover span:last-child { color: var(--color-text); } }
/* the phone stands above the scene's foot fade, so the fade never dims its glass */
.app__stage { position: relative; z-index: 5; display: grid; justify-items: center; align-content: start; }
.app::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 22vh, 220px); z-index: 4; pointer-events: none;
  background: linear-gradient(0deg, #0B0607 0%, rgba(11, 6, 7, .92) 18%, rgba(11, 6, 7, .66) 42%, rgba(11, 6, 7, .3) 70%, rgba(11, 6, 7, 0) 100%); }

/* The iPhone: every measure in em of the phone's own font-size, 1em = a 30th of its width.
   A titanium rim (the gradient border), the black bezel (the padding), the glass with the app's real screen, the island, four buttons. */
.phone {
  position: relative; z-index: 1; font-size: 10px; width: 30em; padding: .78em; border: .3em solid transparent; border-radius: 5.5em;
  background:
    linear-gradient(#050404, #050404) padding-box,
    linear-gradient(140deg, #a59c9a 0%, #5d5655 14%, #2b2626 34%, #1b1717 52%, #3a3433 72%, #8d8482 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .55), 0 3.2em 4.2em -1.6em rgba(0, 0, 0, .8), 0 7em 10em -3em rgba(0, 0, 0, .9);
}
.phone__screen { position: relative; overflow: hidden; aspect-ratio: 1206 / 2622; border-radius: 4.45em; background: #0B0607; }
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the glass: one soft sheen from the top left, and the hairline where glass meets bezel */
.phone__screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .02) 22%, rgba(255, 255, 255, 0) 38%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone__island { position: absolute; top: .98em; left: 50%; width: 8.7em; height: 2.6em; margin-left: -4.35em; border-radius: 1.3em; background: #000; }
.phone__btn { position: absolute; width: .34em; border-radius: .2em 0 0 .2em; left: -.6em;
  background: linear-gradient(90deg, #8f8684 0%, #4a4443 45%, #262121 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -1px 0 rgba(0, 0, 0, .5); }
.phone__btn--action { top: 11.6em; height: 2.3em; }
.phone__btn--up { top: 16.4em; height: 4.3em; }
.phone__btn--down { top: 21.9em; height: 4.3em; }
.phone__btn--power { top: 18.4em; height: 6.8em; left: auto; right: -.6em; border-radius: 0 .2em .2em 0;
  background: linear-gradient(270deg, #8f8684 0%, #4a4443 45%, #262121 100%); }
/* wide: the whole phone fits the screen's height, right of the words, the words centred on it */
@media (min-width: 900px) {
  .app { min-height: min(100vh, 1000px); min-height: min(100svh, 1000px); display: flex; flex-direction: column; }
  .app__in { flex: 1; width: 100%; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 6vw, 120px); align-items: center; }
  .app__copy { padding-bottom: clamp(40px, 10vh, 120px); }
  .phone { font-size: clamp(8.5px, 1.16vh, 11.6px); font-size: clamp(8.5px, 1.16svh, 11.6px); }
  .app__stage { margin-right: clamp(0px, 7vw, 150px); padding-bottom: clamp(56px, 9vh, 104px); }
}
@media (max-width: 899px) {
  .app { padding-top: clamp(64px, 14vw, 112px); }
  .app__media { --top: 24%; --foot: 20%; }
  .app__media img { object-position: 50% 30%; }
  .app__grade { background: radial-gradient(80% 34% at 10% 20%, rgba(11, 6, 7, .62) 0%, rgba(11, 6, 7, .4) 55%, rgba(11, 6, 7, 0) 100%), linear-gradient(180deg, rgba(11, 6, 7, .55) 0%, rgba(11, 6, 7, .35) 40%, rgba(11, 6, 7, .3) 70%, rgba(11, 6, 7, .6) 100%); }
  /* the whole phone, about three quarters of the screen's width */
  .phone { font-size: min(2.45vw, 10px); }
  .app__stage { padding-bottom: 36px; }
  .app__copy::before { background: radial-gradient(closest-side, rgba(11, 6, 7, .74) 0%, rgba(11, 6, 7, .62) 50%, rgba(11, 6, 7, .26) 80%, rgba(11, 6, 7, 0) 100%); }
  .app__cap { position: relative; left: auto; bottom: auto; margin: 8px 0 0; padding-bottom: 28px; }
  .app::after { height: clamp(64px, 16vw, 110px); }
}

/* ========== 8. Closing: where next? ========== */
.closing { min-height: max(100vh, 640px); min-height: max(100svh, 640px); display: flex; flex-direction: column; }
.closing__media { --top: 22%; --foot: 34%; }
.closing__media img { object-position: 50% 38%; }
.closing__sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 36% at 26% 22%, rgba(11, 6, 7, .42) 0%, rgba(11, 6, 7, .18) 60%, rgba(11, 6, 7, 0) 100%),
    linear-gradient(180deg, rgba(11, 6, 7, .55) 0%, rgba(11, 6, 7, .38) 18%, rgba(11, 6, 7, .12) 30%, rgba(11, 6, 7, 0) 38%);
}
.closing__in { position: relative; flex: 1; display: flex; flex-direction: column; padding: clamp(110px, 15vh, 170px) var(--gutter) clamp(36px, 6vh, 72px); }
.closing__h { font-size: clamp(3.25rem, 8.4vw, 9.5rem); text-shadow: 0 2px 30px rgba(11, 6, 7, .45); }
.closing__h > span { display: inline; }
.closing__acts { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.closing__cap { position: absolute; right: var(--gutter); bottom: clamp(36px, 6vh, 72px); }
.closing__cap a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font: 400 .875rem/1.3 var(--font-body); color: var(--color-text-muted); }
@media (hover: hover) { .closing__cap a:hover span:last-child { color: var(--color-text); } }
/* the app scene above ends in a long dissolve; the closing's own top dissolve is long too, so the two meet on the ground */
@media (min-width: 900px) { .closing__media { --top: 34%; } }
/* under 900 px the button and the WhatsApp link drop under the picture, clear of the travelers */
@media (max-width: 899px) {
  .closing { min-height: 0; padding-top: clamp(40px, 10vw, 72px); }
  .closing__in { display: contents; }
  .closing__h { order: 1; position: relative; z-index: 2; padding: 0 var(--gutter); margin-bottom: calc(-1 * clamp(36px, 9vw, 72px)); font-size: clamp(3.25rem, 13vw, 7rem); }
  .closing__media { order: 2; position: relative; inset: auto; aspect-ratio: 1.55; --top: 26%; --foot: 22%; }
  .closing__media img { object-position: 50% 40%; }
  .closing__acts { order: 3; position: relative; z-index: 2; margin-top: -24px; padding: 0 var(--gutter); }
  .closing__cap { order: 4; position: static; padding: 0 var(--gutter) 40px; margin-top: 10px; }
}
@media (max-width: 699px) {
  .closing__h { font-size: clamp(3.25rem, 17vw, 5rem); margin-bottom: calc(-1 * clamp(36px, 12vw, 64px)); }
  .closing__media { aspect-ratio: 1120 / 1107; }
  .closing__media img { object-position: 50% 50%; }
  .closing__acts .btn { width: 100%; }
}
