/* Trekkup, the trip pages and the cancellation policy (pages written by build-pages.mjs). Loaded after site.css, whose
   parts (header, footer, .btn, .qlink, .code, .chip, .print, .poster, .glow, .dissolve-*) are used as they are; where a
   shared part needs a change on these pages, the rule is here.
   The trip page is the app's trip page taken to a wide screen: the cover fills the first screen with the name lapping
   its foot (TOKENS.md section 7), a lit glass facts card led by the app's strip of cells, the story with prints in it,
   days that open, a wall of prints with a full-screen viewer, a closing band, three posters. Nothing moves but hover and
   the viewer's fade. */

/* the header's shade (site.css) is no taller than the header on these pages: the cover's own top dissolve carries the rest */

/* ---------- 1. The top: the cover, capped at its file (--cw x --ch), the name lapping its foot ---------- */
.ttop {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(100vh, var(--ch)); min-height: min(100svh, var(--ch));
}
.ttop__media {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; margin: 0 auto; overflow: hidden;
  width: 100%; max-width: var(--cw); height: min(100vh, var(--ch)); height: min(100svh, var(--ch));
  --top: 26%; --foot: 50%;
}
.ttop__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--dx, 50%) 45%; }
/* a cover whose top must leave the frame (BF14's overhang): drawn taller than its box, anchored at its foot; the box's
   height times the zoom never passes the file's height, so the picture is never drawn wider than its file */
.ttop--zoom .ttop__img { top: auto; bottom: 0; height: min(calc(100% * var(--zoom)), var(--ch)); object-position: var(--dx, 50%) 100%; }
/* the side the name sits on is darkened from its corner up to the code line, never across the picture's subject */
.ttop__grade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ttop--left .ttop__grade { background: radial-gradient(90% 108% at 0% 100%, rgba(11, 6, 7, .94) 0%, rgba(11, 6, 7, .92) 46%, rgba(11, 6, 7, .64) 64%, rgba(11, 6, 7, .22) 81%, rgba(11, 6, 7, 0) 97%); }
.ttop--right .ttop__grade { background: radial-gradient(90% 108% at 100% 100%, rgba(11, 6, 7, .94) 0%, rgba(11, 6, 7, .92) 46%, rgba(11, 6, 7, .64) 64%, rgba(11, 6, 7, .22) 81%, rgba(11, 6, 7, 0) 97%); }
.ttop__back {
  position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--head-h) + 4px);
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 16px; border-radius: 999px;
  font: 700 .9375rem/1 var(--font-body); color: var(--color-text);
  /* the app's glass back button: a tint, no blur (it sits over any sky) */
  background: rgba(20, 12, 13, .74); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background var(--motion-fast);
}
.ttop__back::before { content: ""; width: 7px; height: 7px; border: solid var(--color-hi); border-width: 0 0 1.6px 1.6px; transform: rotate(45deg); margin-right: 2px; }
@media (hover: hover) { .ttop__back:hover { background: rgba(26, 16, 17, .9); } }
.ttop__credit {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--head-h) + 10px);
  padding: 6px 11px; border-radius: 999px; background: rgba(20, 12, 13, .7);
  font: 400 .75rem/1.2 var(--font-body); color: var(--color-text);
}
.ttop__in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(88px, 13vh, 150px); display: flex; }
/* a name on the right sits at the picture's own right edge, so it keeps clear of a subject in the middle */
.ttop--right .ttop__in { justify-content: flex-end; max-width: min(100%, var(--cw)); }
.ttop__title { display: grid; justify-items: start; gap: 14px; max-width: min(100%, var(--tw, 62rem)); }
.ttop--right .ttop__title { max-width: min(100%, var(--tw, 52rem)); }
/* a title on the right is set flush right, so its code sits in the darkest corner of the grade */
.ttop--right .ttop__title { justify-items: end; text-align: right; }
.ttop--right .ttop__name { margin-left: 0; margin-right: -.02em; }
.ttop__name {
  font: 800 calc(clamp(2.5rem, 6.4vw, 7rem) * var(--ns, 1))/.92 var(--font-display); letter-spacing: -.04em; margin: 2px 0 4px -.04em;
  text-wrap: balance; overflow-wrap: normal; hyphens: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 2px 24px rgba(0, 0, 0, .45);
}
.ttop__feat { display: block; margin-top: .22em; font-size: .4em; letter-spacing: -.02em; line-height: 1.05; color: rgba(247, 241, 239, .92); }
.ttop__line { font: 400 clamp(1.125rem, 1.6vw, 1.5rem)/1.35 var(--font-body); color: var(--color-text); text-shadow: 0 1px 12px rgba(11, 6, 7, .8); max-width: 40rem; }
.ttop__where { display: flex; align-items: center; gap: 8px; font: 700 1rem/1.3 var(--font-body); color: rgba(247, 241, 239, .86); text-shadow: 0 1px 10px rgba(11, 6, 7, .8); }
.ttop__where .i { width: 18px; height: 18px; color: var(--color-hi); }
@media (max-width: 1099px) {
  /* phone and tablet: the app's top. The cover in a box of capped height (tablet: min(64vh, 640px), so a 2x tablet draws it
     about 1.2 times its file at most); the name laps its foot by about 130 px over a grade that reaches the code line */
  .ttop { display: block; min-height: 0; }
  .ttop__media { position: relative; height: min(64vh, 640px, var(--ch)); height: min(64svh, 640px, var(--ch)); --top: 30%; --foot: 44%; }
  .ttop__grade, .ttop--left .ttop__grade, .ttop--right .ttop__grade { background: linear-gradient(0deg, rgba(11, 6, 7, .94) 0, rgba(11, 6, 7, .92) 150px, rgba(11, 6, 7, .6) 210px, rgba(11, 6, 7, .2) 262px, rgba(11, 6, 7, 0) 300px); }
  .ttop__in { margin-top: -132px; padding-bottom: 8px; }
  /* the box is narrower than the cover here: the phone's crop (--x) keeps the subject in it */
  .ttop__img { object-position: var(--x) 45%; }
  .ttop--zoom .ttop__img { object-position: var(--x) 100%; }
}
@media (max-width: 699px) {
  /* phone: a tall crop that keeps the subject (--x; the phone's own portrait file is that window), never more than about
     1.35 times the file on a 3x screen (--ph) */
  .ttop__media { height: min(66vh, var(--ph)); height: min(66svh, var(--ph)); }
  .ttop__img, .ttop--zoom .ttop__img { inset: 0; height: 100%; object-position: var(--x) 50%; }
  .ttop--right .ttop__in { justify-content: flex-start; }
  .ttop__title, .ttop--right .ttop__title { gap: 10px; max-width: 100%; justify-items: start; text-align: left; }
  .ttop__back { top: calc(var(--head-h) + 2px); min-height: 40px; }
  .ttop__name { font-size: clamp(2.375rem, 11.5vw, 3.25rem); }
  .ttop__line { font-size: 1.0625rem; }
  .ttop__where { font-size: .9375rem; }
}

/* ---------- 2. The facts card: the kit's lift, the app's strip of glass cells, the program's own rows ---------- */
.tfacts { position: relative; padding: 0 var(--gutter); margin-top: clamp(-64px, -5vw, -24px); }
@media (max-width: 1099px) { .tfacts { margin-top: 28px; } }
.tfacts__card {
  position: relative; isolation: isolate; overflow: hidden; max-width: var(--max); margin: 0 auto; padding: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) clamp(10px, 2.4vw, 36px);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .04) 100%), rgba(11, 6, 7, .55);
  box-shadow: var(--lit-edge), var(--shadow-print);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
}
.tfacts__glow { z-index: -1; left: -8%; top: -60%; width: 60%; height: 150%; opacity: .7; }
/* the strip: two or three cells, each an icon, the value and its small label, divided by fading hairlines */
.tfacts__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035)); box-shadow: var(--lit-edge);
}
.tfacts__cell { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 14px 15px; min-width: 0; }
.tfacts__cell + .tfacts__cell::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .12) 25%, rgba(255, 255, 255, .12) 75%, rgba(255, 255, 255, 0)); }
.tfacts__cell .i { width: 22px; height: 22px; margin-bottom: 6px; color: var(--color-hi); filter: drop-shadow(0 0 6px rgba(255, 40, 36, .45)); }
.tfacts__v { font: 800 1.0625rem/1.15 var(--font-display); letter-spacing: -.01em; color: var(--color-text); overflow-wrap: break-word; hyphens: none; }
.tfacts__l { font: 400 .8125rem/1.2 var(--font-body); color: var(--color-text-muted); }
.tfacts__rows { display: grid; column-gap: clamp(28px, 4vw, 72px); margin-top: clamp(10px, 1.6vw, 22px); padding: 0 clamp(4px, 1vw, 14px); }
.tfacts__row { position: relative; padding: 16px 0 18px; }
.tfacts__row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .1) 18%, rgba(255, 255, 255, .1) 82%, rgba(255, 255, 255, 0)); }
.tfacts__rows > .tfacts__row:first-child::before { display: none; }
.tfacts__row dt { font: 800 .75rem/1.3 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 241, 239, .66); }
.tfacts__row dd { margin: 8px 0 0; font: 400 1.0625rem/1.55 var(--font-body); color: rgba(247, 241, 239, .9); overflow-wrap: anywhere; }
.tfacts__row dd a { color: var(--color-text); text-decoration: underline; text-decoration-color: rgba(255, 93, 82, .6); text-underline-offset: 4px; }
@media (hover: hover) { .tfacts__row dd a:hover { text-decoration-color: var(--color-hi); } }
@media (min-width: 700px) {
  .tfacts__cell { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 22px clamp(18px, 2.4vw, 32px); }
  .tfacts__cell .i { grid-row: 1 / span 2; width: 26px; height: 26px; margin: 0; padding: 12px; box-sizing: content-box; border-radius: 50%; background: rgba(202, 5, 8, .16); box-shadow: inset 0 0 0 1px rgba(255, 93, 82, .18); }
  .tfacts__v { font-size: var(--text-card); align-self: end; }
  .tfacts__l { font-size: .875rem; align-self: start; }
  .tfacts__rows { grid-template-columns: 1fr 1fr; }
  .tfacts__rows > .tfacts__row:nth-child(2):not(.tfacts__row--wide)::before { display: none; }
  .tfacts__rows > .tfacts__row--wide:first-child + .tfacts__row::before { display: block; }
  .tfacts__row--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) { .tfacts__rows { grid-template-columns: 1fr 1fr; } .tfacts__row dd { max-width: 40rem; } }

/* ---------- 3. The story: one reading column, the drop cap, prints in it on phones and tablets, beside it from 1100 px ---------- */
.tstory { padding: var(--space-section) var(--gutter) 0; }
.tstory__in { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(48px, 8vw, 72px); }
.tstory__text { max-width: var(--measure); font: 400 var(--text-base)/1.7 var(--font-body); color: rgba(247, 241, 239, .86); }
.tstory__text > * + p, .tstory__text > * + .tstory__list { margin-top: 1.15em; }
.tstory__sub {
  margin: 2.6em 0 .85em; font: 800 .8125rem/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--color-text);
  display: flex; align-items: center; gap: 14px;
}
.tstory__sub::after { content: ""; flex: 1; height: 1px; max-width: 120px; background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); }
.tstory__text > .tstory__sub:first-child { margin-top: 0; }
.tstory__first::first-letter {
  float: left; margin: .07em .12em -.05em -.02em; font: 800 3.4em/.8 var(--font-display); letter-spacing: -.02em; color: var(--color-hi);
  text-shadow: 0 0 22px rgba(255, 40, 36, .55), 0 0 2px rgba(255, 93, 82, .6);
}
.tstory__first--word::first-letter { all: unset; }
.tstory__cap {
  float: left; margin: .07em .14em -.05em -.02em; font: 800 3.4em/.8 var(--font-display); letter-spacing: -.03em; color: var(--color-hi);
  text-shadow: 0 0 22px rgba(255, 40, 36, .55), 0 0 2px rgba(255, 93, 82, .6);
}
.tstory__list { display: grid; gap: 0; }
.tstory__list li { position: relative; padding: 12px 0 12px 22px; }
.tstory__list li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 2px; border-radius: 2px; background: var(--color-hi); box-shadow: 0 0 8px rgba(255, 40, 36, .6); }
.tstory__list li + li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tstory__list strong { font-weight: 700; color: var(--color-text); }
.tstory--lead .tstory__text { max-width: 38rem; font-size: clamp(1.25rem, 1.75vw, 1.5625rem); line-height: 1.55; color: var(--color-text); }
/* in the text (under 1100 px): one print, or an overlapping pair or trio, breaking the column */
.tstory__inl { display: flex; flex-direction: column; margin: 2.2em 0 2.4em; }
.tstory__ip { width: 100%; max-width: var(--mw); }
.tstory__inl--2 .tstory__ip:nth-child(1), .tstory__inl--3 .tstory__ip:nth-child(1) { width: 84%; }
.tstory__inl--2 .tstory__ip:nth-child(2), .tstory__inl--3 .tstory__ip:nth-child(2) { width: 64%; align-self: flex-end; margin-top: -12%; position: relative; z-index: 1; }
.tstory__inl--3 .tstory__ip:nth-child(3) { width: 72%; margin-left: 6%; margin-top: -4%; }
.tstory__ip--4 { width: 86%; align-self: flex-end; }
.tstory__prints { display: none; }
@media (min-width: 700px) and (max-width: 1099px) {
  /* a tablet: the text column sits in the middle, the prints run a little wider than it */
  .tstory__text { margin: 0 auto; }
  .tstory__inl { margin-left: -6%; margin-right: -6%; }
}
@media (min-width: 1100px) {
  .tstory__inl { display: none; }
  .tstory__prints { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(40px, 4vw, 72px); }
  .tstory__in { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); column-gap: clamp(64px, 7vw, 152px); padding-left: clamp(0px, 4vw, 88px); }
  .tstory--lead .tstory__in { grid-template-columns: minmax(0, 38rem) minmax(0, 1fr); }
  .tstory--lead .tstory__text, .tstory--short .tstory__text { align-self: center; }
  .tstory__print { max-width: var(--mw); }
  /* two prints overlap as a pair; three or four step down the column, alternating sides, close together */
  .tstory--n2 .tstory__prints { justify-content: center; gap: 0; }
  .tstory--n2 .tstory__print--1 { width: 86%; }
  .tstory--n2 .tstory__print--2 { width: 62%; align-self: flex-end; margin-top: -10%; position: relative; z-index: 1; }
  /* three or four prints share the text's own height: the column takes the text's height (size containment) and each
     print is as wide as its place allows but no taller than its share of that height, so the prints fill the column
     beside the text, evenly, with no long gap and no print running past the text */
  .tstory--n3 .tstory__prints, .tstory--n4 .tstory__prints { container-type: size; }
  .tstory--n3 .tstory__print { --f: .3; }
  .tstory--n4 .tstory__print { --f: .225; }
  .tstory--n3 .tstory__print, .tstory--n4 .tstory__print { width: min(var(--w), calc(var(--f) * 100cqh * var(--r))); }
  .tstory--n3 .tstory__print--1 { --w: 100%; }
  .tstory--n3 .tstory__print--2 { --w: 80%; align-self: flex-end; }
  .tstory--n3 .tstory__print--3 { --w: 92%; margin-left: 3%; }
  .tstory--n4 .tstory__print--1 { --w: 96%; }
  .tstory--n4 .tstory__print--2 { --w: 80%; align-self: flex-end; }
  .tstory--n4 .tstory__print--3 { --w: 90%; margin-left: 5%; }
  .tstory--n4 .tstory__print--4 { --w: 76%; align-self: flex-end; margin-right: 2%; }
}

/* ---------- 4. Day by day: native details; the label in red, the title as a label in Trekkup's own case ---------- */
.tdays { position: relative; padding: var(--space-section) var(--gutter) 0; }
.tdays__in { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(28px, 4vw, 40px); }
.tday { position: relative; }
.tdays__list > li .tday::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .11) 12%, rgba(255, 255, 255, .11) 88%, rgba(255, 255, 255, 0));
}
.tdays__list > li:last-child .tday::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .11) 12%, rgba(255, 255, 255, .11) 88%, rgba(255, 255, 255, 0));
}
.tday summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; column-gap: 16px; row-gap: 6px;
  min-height: 64px; padding: 14px 0;
}
.tday summary::-webkit-details-marker { display: none; }
.tday__label { grid-column: 1; font: 800 .8125rem/1 var(--font-display); letter-spacing: .08em; color: var(--color-hi); text-shadow: 0 0 12px rgba(255, 40, 36, .35); }
.tday__title { grid-column: 1; font: 700 1.0625rem/1.3 var(--font-display); letter-spacing: .03em; color: var(--color-text); overflow-wrap: anywhere; }
.tday--fromtext .tday__title { letter-spacing: .01em; }
.tday__plus {
  grid-column: 2; grid-row: 1 / span 2; position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); box-shadow: var(--lit-edge); transition: transform var(--motion-base) var(--ease), background var(--motion-fast);
}
.tday__plus::before, .tday__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--color-text); }
.tday__plus::after { transform: rotate(90deg); }
.tday[open] .tday__plus { transform: rotate(135deg); background: rgba(202, 5, 8, .28); }
@media (hover: hover) { .tday summary:hover .tday__plus { background: rgba(255, 255, 255, .12); } .tday[open] summary:hover .tday__plus { background: rgba(202, 5, 8, .38); } .tday summary:hover .tday__title { color: #fff; } }
.tday__body { padding: 2px 60px 26px 0; max-width: 46rem; font: 400 var(--text-base)/1.7 var(--font-body); color: rgba(247, 241, 239, .84); }
.tday__body p + p { margin-top: 1em; }
.tdays__print { width: 72%; max-width: var(--mw); justify-self: end; margin-top: 16px; }
@media (min-width: 700px) {
  .tday summary { grid-template-columns: 5.5rem minmax(0, 1fr) 44px; min-height: 68px; align-items: baseline; }
  .tday__label { grid-column: 1; grid-row: 1; }
  .tday__title { grid-column: 2; grid-row: 1; }
  .tday__plus { grid-column: 3; grid-row: 1; align-self: center; }
  .tday__body { padding-left: calc(5.5rem + 16px); }
}
@media (min-width: 1100px) {
  .tdays__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; column-gap: clamp(56px, 7vw, 128px); align-items: start; }
  /* one line at every width: the type is capped to its column (the words run about 5.6 times their size) */
  .tdays__h { grid-column: 1; grid-row: 1; padding-top: 8px; white-space: nowrap; font-size: min(var(--text-section), 5.25vw, 5.5rem); }
  .tdays__list { grid-column: 2; grid-row: 1 / span 2; }
  .tdays__print { grid-column: 1; grid-row: 2; width: 82%; justify-self: start; margin-top: clamp(40px, 5vw, 72px); }
}

/* ---------- 5. Photos: a wall of prints at their own ratios (justified rows), never wider than a file ---------- */
.tphotos { padding: var(--space-section) var(--gutter) 0; }
.tphotos__in { max-width: var(--max); margin: 0 auto; }
.tphotos__h { margin-bottom: clamp(28px, 4vw, 48px); }
.tphotos { --gap: 10px; }
.wall__lead, .wall__row { display: flex; gap: var(--gap); }
.wall__lead { margin-bottom: var(--gap); }
.wall { display: grid; gap: var(--gap); }
.wall__item {
  position: relative; display: block; flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  border-radius: var(--radius); background: var(--color-sheet); box-shadow: var(--shadow-print);
}
.wall__item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: var(--lit-edge); }
.wall__img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--motion-base) var(--ease), filter var(--motion-base) var(--ease); }
@media (hover: hover) { .wall__item:hover .wall__img { scale: 1.03; filter: brightness(1.06); } }
@media (min-width: 700px) { .tphotos { --gap: 14px; } }
@media (min-width: 1100px) { .tphotos { --gap: 18px; } }
@media (max-width: 899px) {
  /* phone and small tablet: the two lead pictures one under the other, then the rows open into two columns at their own ratios */
  .wall { display: block; columns: 2; column-gap: var(--gap); }
  .wall__row { display: contents; }
  .wall__item { border-radius: var(--radius-sm); }
  .wall .wall__item { width: 100%; margin-bottom: var(--gap); break-inside: avoid; }
}
@media (max-width: 699px) {
  .wall__lead { flex-direction: column; }
  .wall__lead .wall__item { flex: none; width: 100%; }
}

/* ---------- The photo viewer: a modal dialog on the sheet colour; Escape closes, arrows and swipe step ---------- */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--color-sheet); color: var(--color-text); opacity: 0; transition: opacity var(--motion-fast) var(--ease); overflow: hidden;
}
.viewer.is-open { opacity: 1; }
.viewer::backdrop { background: rgba(11, 6, 7, .7); }
.viewer__in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 84px 72px; touch-action: pan-y; }
.viewer__img { display: block; max-width: none; height: auto; border-radius: var(--radius-sm); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); background: #140D0E; user-select: none; -webkit-user-drag: none; }
.viewer__count { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font: 700 .875rem/1 var(--font-body); letter-spacing: .04em; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.viewer__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  color: var(--color-text); background: rgba(255, 255, 255, .07); box-shadow: var(--lit-edge); transition: background var(--motion-fast);
}
.viewer__btn .i { width: 22px; height: 22px; }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; margin-top: -26px; }
.viewer__next { right: 16px; top: 50%; margin-top: -26px; }
@media (hover: hover) { .viewer__btn:hover { background: rgba(255, 255, 255, .14); } }
@media (max-width: 699px) {
  .viewer__in { padding: 72px 12px 96px; }
  .viewer__img { border-radius: 14px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; }
  .viewer__count { bottom: 32px; }
}
html.viewer-open { overflow: hidden; }


/* ---------- 6. The closing band. Phone: the picture at its own ratio, the words under it on the ground. From 700 px:
   full-bleed, the sign-off in the section-headline role on its dissolve. Past the file's width the page's own style turns it
   into a large print beside the words (build-pages.mjs writes that rule with the file's width). ---------- */
.tjoin {
  position: relative; isolation: isolate; margin-top: clamp(4rem, 8vw, 7.5rem); display: flex; align-items: flex-end;
  min-height: min(84vh, var(--ch)); min-height: min(84svh, var(--ch));
}
.tjoin__media { position: absolute; z-index: -1; inset: 0; margin: 0 auto; width: 100%; max-width: var(--cw); max-height: var(--ch); overflow: hidden; --top: 20%; --foot: 56%; }
.tjoin__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tjoin__edge { display: none; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: var(--lit-edge); }
.tjoin__in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); display: grid; justify-items: start; gap: 18px; }
.tjoin__sign { display: grid; gap: 10px; font: 800 var(--text-card)/1.1 var(--font-display); letter-spacing: -.02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 2px 24px rgba(0, 0, 0, .5); }
.tjoin__crew { font: 700 1rem/1.2 var(--font-body); letter-spacing: .01em; color: rgba(247, 241, 239, .86); }
.tjoin__sign > span:first-child + .tjoin__crew { margin-top: 4px; }
@media (min-width: 700px) { .tjoin__sign > span:first-child + .tjoin__crew { margin-top: 10px; } }
.tjoin__line { font: 400 var(--text-base)/1.5 var(--font-body); color: rgba(247, 241, 239, .92); text-shadow: 0 1px 12px rgba(11, 6, 7, .8); }
.tjoin__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 8px; }
@media (min-width: 700px) {
  .tjoin__sign > span:first-child { font: 800 var(--text-section)/.95 var(--font-display); letter-spacing: -.035em; text-wrap: balance; max-width: 14em; }
}
/* phone and tablet: the picture at its own ratio, full width (a 768 tablet draws it about 1.15 times its file), the words
   under it on the ground */
@media (max-width: 1099px) {
  .tjoin { display: block; min-height: 0; }
  .tjoin__media { position: relative; inset: auto; z-index: 0; max-height: none; aspect-ratio: var(--ar); --top: 16%; --foot: 42%; }
  .tjoin__in { position: relative; z-index: 1; margin-top: -6px; padding-bottom: 8px; }
}
@media (max-width: 699px) {
  .tjoin__sign > span:first-child { font-size: clamp(1.75rem, 8.4vw, 2.25rem); line-height: 1; letter-spacing: -.03em; }
  .tjoin__acts { width: 100%; }
  .tjoin__acts .btn { width: 100%; }
}

/* ---------- 7. More trekkups: three of the app's posters ---------- */
.tmore { padding: var(--space-section) var(--gutter) clamp(24px, 4vw, 48px); }
.tmore__in { max-width: var(--max); margin: 0 auto; }
.tmore__list { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: clamp(28px, 4vw, 48px); }
.tmore__list > li { display: flex; } /* the three cards in a row share one height */
.tmore__list > li > .poster { flex: 1; }
.tmore__all { margin-top: 28px; }
@media (min-width: 760px) { .tmore__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* ---------- The cancellation policy: one reading column on the ground, lit by the kit's top glow; the timeline as a list ---------- */
.policy { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--head-h) + clamp(56px, 10vw, 128px)) var(--gutter) clamp(72px, 10vw, 128px); }
.policy__glow { inset: -45% -15% auto -15%; height: 100%; z-index: -1; opacity: 1; }
.policy__glow2 { right: -20%; top: 10%; width: 70%; height: 60%; z-index: -1; opacity: .35; }
.policy__in { max-width: var(--max); margin: 0 auto; }
.policy__h { margin-bottom: clamp(32px, 5vw, 56px); }
.policy__text { max-width: var(--measure); font: 400 var(--text-base)/1.7 var(--font-body); color: rgba(247, 241, 239, .86); }
.policy__text > * + * { margin-top: 1.15em; }
.policy__text strong { font-weight: 700; color: var(--color-text); }
.policy__steps { margin: 1.8em 0 2em; }
.policy__steps li { position: relative; display: grid; gap: 6px; padding: 20px 0 22px; }
.policy__steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .14) 15%, rgba(255, 255, 255, .14) 85%, rgba(255, 255, 255, 0)); }
.policy__steps li:last-child::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .14) 15%, rgba(255, 255, 255, .14) 85%, rgba(255, 255, 255, 0)); }
.policy__steps .policy__lead { font: 800 var(--text-card)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--color-text); }
.policy__ask { margin-top: 40px; }
@media (min-width: 1100px) {
  .policy__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(56px, 7vw, 128px); align-items: start; }
  .policy__h { grid-row: 1 / span 2; margin: 0; }
  .policy__text, .policy__ask { grid-column: 2; }
}
