/*
 * tcna-solutions.com 2.0 — the home page: the round trip (31 "Round trip", PLAN.md §v3). Loaded on the home only,
 * after site.css.
 *
 * Two pages from the same markup (app/views/site/home.php):
 *   html.stage   the film: the canvas (#gl) draws the world, the plates hold beside it while the scroll plays the story
 *                (31's layout, ported exactly: the same rules, scoped to .trip so site.css's components of the same
 *                names — .plate, .jk, .pb, .kick, .btn, .inc, .nums… — can't leak in; where they would, a property
 *                is set back to 31's value and marked "31").
 *   otherwise    the plain page (no JavaScript, no WebGL, reduced motion, a phone saving data, or the stage's safety
 *                net html.stage-off): the same plates stacked in a column, the trace lines between them.
 * The header is the site's (layout/site.php); on the home it is fixed over the film like 31's, fading into the
 * scene at its lower edge, with room kept at its right end for the locator that stands there (--top-reserve).
 */

/* ---------------------------------------------------------------- 31's tokens, where site.css has no exact twin */
.trip, .page-home {
  --line2: rgba(143, 151, 156, .4);
  --steel: var(--mute);
  --steel-d: var(--mute-2);
  --jk: var(--jacket);
  --red-hi: #E2503E;
  --f-d: var(--display);
  --f-m: var(--mono);
}
.trip { font-size: 16px; line-height: 1.5; font-stretch: normal; }

/* ================================================================ the film (html.stage) */
html.stage body.page-home { background: var(--ground); }
html.stage .page-home .main { display: block; }
/* the header: fixed over the scene as 31's top strip, the scene showing through its lower edge */
@media (min-width: 761px) {   /* the header keeps room for the locator standing at its right end (C4: the map's or the parts list's width, or none) */
  html.stage .page-home { --top-reserve: calc(var(--rtw) + 14px); }
  html.stage[data-loc="parts"] .page-home { --top-reserve: calc(var(--bomw) + 14px); }
  html.stage:is([data-loc="cable"], [data-loc="hidden"]) .page-home { --top-reserve: 0px; }
}
html.stage .page-home .top { position: fixed; left: 0; right: 0; top: 0; background: linear-gradient(rgba(4, 16, 18, .97) 72%, rgba(4, 16, 18, 0)); box-shadow: none; pointer-events: none; }
html.stage .page-home .top > * { pointer-events: auto; }
html.stage .page-home .top.is-scrolled { box-shadow: none; }
/* the phone menu covers the film; the route strip under the header steps aside for it */
html.menu-open .trip :is(.rt, .cbl, .bom) { visibility: hidden; }

.trip #gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; touch-action: pan-y; }
.trip #gl.grab { cursor: grab; } .trip #gl.grabbing { cursor: grabbing; } .trip #gl.pick { cursor: pointer; }
.trip #veil { position: fixed; inset: 0; z-index: 1; background: var(--ground); pointer-events: none; transition: opacity 1.1s var(--e-out); }
html.stage:not(.boot) .trip #veil { opacity: 0; }
.trip .labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

/* ---------------------------------------------------------------- the stops */
.trip .stops { position: relative; z-index: 2; pointer-events: none; }
.trip .stop { position: relative; }
.trip .hold { min-height: 150vh; padding: 0 var(--gut); }
.trip .stop.short .hold { min-height: 112vh; }
.trip .stop.long .hold { min-height: 230vh; }
.trip .stop.xlong .hold { min-height: 300vh; }
.trip .travel { height: 96vh; padding: 0 var(--gut); position: relative; }
.trip .travel.long { height: 170vh; }
.trip .stop:last-child .hold { min-height: 130vh; }
.trip .stop:last-child .travel { display: none; }

/* plate: cable-jacket header strip (R-0's job log) over a solid deep-teal panel */
.trip .plate {
  pointer-events: auto; position: sticky; top: calc(var(--top) + 14px); width: min(462px, 100%); max-height: calc(100vh - var(--top) - 24px); overflow: auto;
  scrollbar-width: thin; scrollbar-color: #24474b transparent; background: #071A1D; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .18), 0 30px 60px -32px rgba(0, 0, 0, .85);
}
.trip .plate::after, .trip .cap::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; }
.trip .jk {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 14px 0 0; background: var(--jk); min-height: 31px;
  font: 500 9.5px/1.2 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); border-bottom: 1px solid #1a1f20;
}
.trip .jk .des { align-self: stretch; display: flex; align-items: center; padding: 0 11px; background: var(--red); color: var(--laser); letter-spacing: .08em; white-space: normal; }
.trip .jk .job { min-width: auto; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip .jk .job b { font-weight: 500; color: var(--ink); }
.trip .jk .st { display: flex; align-items: center; gap: 7px; color: var(--steel-d); white-space: nowrap; }
.trip .jk .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2b3638; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.trip .jk .st.run { color: var(--laser); } .trip .jk .st.run::before { background: var(--laser); box-shadow: 0 0 0 3px rgba(255, 241, 214, .14); }
.trip .jk .st.ok { color: var(--ink2); } .trip .jk .st.ok::before { background: var(--red); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6); }
.trip .pb { position: static; padding: 18px 20px 20px; }
.trip .pb > * + * { margin-top: 0; }   /* 31: each piece sets its own spacing (site.css spaces .pb's children) */
.trip .kick { display: block; font: 400 10.5px/1.4 var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 0 0 8px; }
.trip .plate h1, .trip .plate h2 { font-family: var(--f-d); font-weight: 600; letter-spacing: -.022em; margin: 0 0 12px; color: var(--laser); }
.trip .plate h1 { font-size: 50px; line-height: .98; }
.trip .plate h2 { font-size: 38px; line-height: 1.0; }
.trip .plate p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.trip .plate p.lede { font-size: 18px; line-height: 1.45; max-width: none; }
.trip .plate p.mute { color: var(--ink2); font-size: 15px; }
.trip .stamp { display: inline-block; font: 500 9.5px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); border: 1px solid currentColor; padding: 5px 6px 4px; vertical-align: middle; margin-left: 8px; transform: translateY(-8px) rotate(-2deg); }
.trip .ln { font: 500 11px/1 var(--f-m); letter-spacing: .12em; color: var(--red-ink); margin: 0 0 6px; display: block; text-transform: uppercase; }
.trip .inc { list-style: none; margin: 12px 0 6px; padding: 0; counter-reset: i; border-bottom: 0; }
.trip .inc li { counter-increment: i; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink); }
.trip .inc li::before { content: "+" counter(i, decimal-leading-zero); padding-top: 0; font: 400 10px/1.9 var(--f-m); letter-spacing: .06em; color: var(--steel); }
.trip .inc a { color: var(--laser); text-decoration: none; border-bottom: 1px solid var(--red); }
.trip .road__h { margin: 16px 0 0; }
/* B · the roadmap at What's next: the board's footprints as a list — RM#, the item (its line, a real time if any), its
   status mark (a pie that fills from planned to launching); the item R-0 probes is lit (home-world.js → .on) */
.trip .road { list-style: none; margin: 6px 0 4px; padding: 0; }
.trip .road li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); transition: background .4s; }
.trip .road li::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 3px; background: var(--laser); transform: scaleY(0); transition: transform .35s var(--e-latch); }
.trip .road li.on { background: linear-gradient(90deg, rgba(255, 241, 214, .07), transparent 70%); }
.trip .road li.on::before { transform: scaleY(1); }
.trip .road__n { font: 400 10px/1.9 var(--f-m); letter-spacing: .06em; color: var(--steel); }
.trip .road__t b { display: block; font: 600 17px/1.2 var(--f-d); color: var(--laser); }
.trip .road__t small { display: block; margin-top: 3px; font: 400 9.5px/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.trip .road__st { display: inline-flex; align-items: center; gap: 7px; font: 500 10px/1.9 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.trip .road__st::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--laser); background: conic-gradient(var(--laser) 0 var(--fill, 0%), transparent 0); }
.trip .road .st-designing { --fill: 25%; } .trip .road .st-building { --fill: 50%; } .trip .road .st-testing { --fill: 75%; } .trip .road .st-launching { --fill: 100%; }
.trip .road li.on .road__st { color: var(--laser); }
.trip .road__note { grid-column: 2 / -1; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.trip .tools small { margin-left: 6px; font: 400 9px/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.trip .ref { font: 400 10px/1.5 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); border-top: 1px solid var(--line); padding-top: 10px; margin: 10px 0 0; }
.trip .ref a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--red); }
.trip .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 18px 0 4px; }
.trip .btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; border-radius: 0; background: var(--red); color: var(--laser); text-decoration: none; border: 0; cursor: pointer;
  padding: 15px 18px 14px; font: 600 19px/1 var(--f-d); letter-spacing: .005em; transition: background .3s var(--e-latch), transform .3s var(--e-latch);
}
.trip .btn::after { content: ""; flex: none; width: 16px; height: 2px; background: currentColor; transition: none; }
.trip .btn:hover { background: var(--red-hi); }
.trip .btn:hover::after { width: 16px; }
.trip .btn:active { transform: translateY(2px); }
.trip .lnk { display: inline; font: 500 17px/1.2 var(--f-d); color: var(--laser); text-decoration: none; border-bottom: 2px solid var(--steel-d); padding-bottom: 2px; transition: none; }
.trip .lnk:hover { border-color: var(--red); }
/* F · the page a stop stands for, at the foot of its plate: one link in the strip's language, laser on a print-red rule.
   With the film it comes in once R-0's job here is done or the visitor stops (home-film.js: .stop.is-open); a
   keyboard focus shows it at once; on the plain page it is simply there */
.trip .go { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.trip .go__a { display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px/1.25 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--laser); text-decoration: none; border-bottom: 2px solid var(--red); padding: 6px 0 6px; }
.trip .go__a:hover { color: #fff; border-color: var(--red-hi); }
.trip .go__a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
html.stage .trip .go__a { transition: opacity .5s var(--e-latch), transform .5s var(--e-latch), color .2s, border-color .2s; }
html.stage .trip .stop:not(.is-open) .go__a:not(:focus-visible) { opacity: 0; transform: translateY(8px); pointer-events: none; }
html.stage .trip .go__a:focus-visible { transition: none; }   /* a keyboard focus shows it at once */
.trip .hint { font: 400 10px/1.6 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin: 16px 0 0 !important; border-top: 1px solid var(--line); padding-top: 10px; }
.trip .hint kbd { font: inherit; color: var(--laser); border: 1px solid var(--line2); padding: 1px 5px; margin: 0 2px; }
.trip .plate p.kick { font-size: 10.5px; line-height: 1.4; color: var(--steel); } .trip .plate p.hint { font-size: 10px; line-height: 1.6; color: var(--steel); }

/* own products */
.trip .prj { list-style: none; margin: 12px 0 4px; padding: 0; }
.trip .prj li { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: start; cursor: pointer; transition: background .4s; }
.trip .prj li::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 3px; background: var(--laser); transform: scaleY(0); transition: transform .35s var(--e-latch); }
.trip .prj li.on { background: linear-gradient(90deg, rgba(255, 241, 214, .07), transparent 70%); } .trip .prj li.on::before { transform: scaleY(1); }
.trip .prj img, .trip .prj .ph { width: 74px; height: 50px; max-width: none; object-fit: cover; object-position: top left; display: block; background: #0a2226; grid-row: 1/3; }
.trip .prj .ph { display: grid; place-items: center; font: 400 7.5px/1.3 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); text-align: center; border: 1px dashed var(--line2); background: transparent; }
.trip .prj b { font: 600 17px/1.15 var(--f-d); color: var(--laser); }
.trip .prj b a { color: inherit; text-decoration: none; }
.trip .prj b a::after { content: ""; position: absolute; inset: 0; }   /* F: the whole row is the link to the project's page */
.trip .prj b a:focus-visible { outline: none; }
.trip .prj li:has(a:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.trip .prj li:hover b a, .trip .prj li:has(a:focus-visible) b a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.trip .prj li:hover, .trip .prj li:has(a:focus-visible) { background: linear-gradient(90deg, rgba(255, 241, 214, .07), transparent 70%); }
.trip .road__t b a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--red); }
.trip .road__t b a:hover { color: #fff; }
.trip .prj b small { font: 400 9px/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-left: 8px; white-space: nowrap; }
.trip .prj span { font-size: 14px; line-height: 1.35; color: var(--ink2); }
.trip .fact { display: flex; gap: 18px; margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.trip .fact div { flex: 1; }
.trip .fact b { display: block; font: 600 30px/1 var(--f-d); color: var(--laser); letter-spacing: -.02em; }
.trip .fact span { font: 400 9.5px/1.4 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

/* agents */
.trip .ai { margin: 12px 0 0; padding: 12px 14px; background: #0A2327; border-left: 2px solid var(--laser); font-size: 15px !important; line-height: 1.5 !important; }
.trip .ask { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font: 500 11px/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--laser); border: 1px solid var(--line2); padding: 10px 12px; }
.trip .ask::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(208, 58, 42, .2); }
.trip .ask:hover, .trip .ask:focus-visible { border-color: var(--laser); }

/* about */
.trip .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 14px 0 6px; padding: 0; }
.trip .nums div { display: block; border-top: 1px solid var(--line); padding: 10px 0 8px; }
.trip .nums dt { order: 0; font: 600 34px/1 var(--f-d); color: var(--laser); letter-spacing: -.02em; text-transform: none; font-variant-numeric: normal; }
.trip .nums dd { order: 0; margin: 5px 0 0; font: 400 9.5px/1.45 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); font-variant-numeric: normal; }
.trip .who { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.trip .who b { font: 600 19px/1.2 var(--f-d); color: var(--laser); display: block; }
.trip .who small { font: 400 9.5px/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); display: block; margin: 4px 0 6px; }

/* order: every option on the screen is also a real link to the brief here */
.trip .opts { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 8px; }
.trip .opts a { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line2); font: 500 17px/1.1 var(--f-d); color: var(--laser); transition: border-color .3s, background .3s; }
.trip .opts a:hover, .trip .opts a:focus-visible { border-color: var(--laser); background: rgba(255, 241, 214, .05); }
.trip .opts a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.trip .opts a small { font: 400 9px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.trip .opts li:first-child a { background: var(--red); border-color: var(--red); font-size: 23px; font-weight: 600; padding: 17px 16px; }
.trip .opts li:first-child a small { color: var(--laser); }
.trip .opts li:first-child a:hover, .trip .opts li:first-child a:focus-visible { background: var(--red-hi); }

/* caption: the plate-less holds (a short readout printed on the jacket) */
.trip .cap { pointer-events: auto; position: sticky; top: calc(var(--top) + 14px); width: min(392px, 100%); background: #061416; box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .18), 0 24px 50px -30px rgba(0, 0, 0, .85); }
.trip .cap .pb { padding: 13px 16px 15px; }
.trip .cap h2 { font: 600 26px/1.05 var(--f-d); letter-spacing: -.015em; color: var(--laser); margin: 0 0 8px; }
.trip .cap p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.trip .cap p + p { margin-top: 8px; }

/* C3 · on a desktop the plates are the main information, not a note in the corner: wider, larger type, set in from the
   edge; a short one stands centred in the room under the header, a long one starts under it (home-film.js sets --py
   from the plate's real height, and .tight / .compact when it would not fit the window: never a cut).
   C4 · the sizes are the layout's tokens (site.css "layout": text panel S · M · L, the admin's fine-tune --pw-set and
   --ts), the same ones the inner pages' head plates read. */
@media (min-width: 1280px) {
  .trip .hold { padding-left: var(--pin); }
  .trip .plate { width: var(--pw); top: var(--py, calc(var(--top) + 24px)); max-height: calc(100vh - var(--top) - 32px); }
  .trip .cap { width: min(var(--cw0), var(--pw)); top: var(--py, calc(var(--top) + 24px)); }
  .trip .jk { min-height: calc(var(--fs-mono) * 3.2 * var(--ts)); font-size: calc(var(--fs-mono) * var(--ts)); padding-right: 18px; }
  .trip .jk .des { padding: 0 14px; }
  .trip .pb { padding: var(--pb-t) var(--pb-x) var(--pb-x); }
  .trip .plate h1 { font-size: calc(var(--fs-h1) * var(--ts)); }
  .trip .plate h2 { font-size: calc(var(--fs-h2) * var(--ts)); margin-bottom: 16px; }
  .trip .plate p, .trip .plate p.lede, .trip .cap p { font-size: calc(var(--fs-p) * var(--ts)); line-height: 1.5; }
  .trip .plate p.mute { font-size: calc(var(--fs-mute) * var(--ts)); }
  .trip .kick, .trip .plate p.kick, .trip .ln, .trip .ref, .trip .hint, .trip .plate p.hint, .trip .stamp, .trip .fact span, .trip .nums dd, .trip .prj b small,
  .trip .opts a small, .trip .who small, .trip .tools small, .trip .ask, .trip .prj .ph { font-size: calc(var(--fs-mono) * var(--ts)); }
  .trip .inc li { grid-template-columns: calc(var(--fs-mono) * 4 * var(--ts)) 1fr; padding: 11px 0; font-size: calc(var(--fs-li) * var(--ts)); }
  .trip .inc li::before { font-size: calc(var(--fs-mono) * var(--ts)); line-height: 1.75; }
  .trip .prj li { grid-template-columns: var(--prj-w) 1fr; gap: 4px 16px; padding: 12px 0; }
  .trip .prj li::before { left: calc(-1 * var(--pb-x)); }
  .trip .prj img, .trip .prj .ph { width: var(--prj-w); height: auto; aspect-ratio: 3 / 2; }
  .trip .prj b { font-size: calc(var(--fs-prjb) * var(--ts)); }
  .trip .prj span { font-size: calc(var(--fs-prjs) * var(--ts)); }
  .trip .fact b { font-size: calc(var(--fs-fact) * var(--ts)); }
  .trip .nums dt { font-size: calc(var(--fs-nums) * var(--ts)); }
  .trip .who b { font-size: calc(var(--fs-who) * var(--ts)); }
  .trip .ai { font-size: calc(var(--fs-mute) * var(--ts)) !important; }
  .trip .btn { font-size: calc(var(--fs-btn) * var(--ts)); padding: 18px 22px 17px; }
  .trip .lnk { font-size: calc(var(--fs-lnk) * var(--ts)); }
  .trip .go__a { font-size: calc(var(--fs-mono) * 1.12 * var(--ts)); padding: 7px 0; }
  .trip .opts a { font-size: calc(var(--fs-opt) * var(--ts)); padding: 14px 18px; }
  .trip .opts li:first-child a { font-size: calc(var(--fs-opt1) * var(--ts)); padding: 19px 18px; }
  .trip .cap h2 { font-size: calc(var(--fs-caph2) * var(--ts)); }
  .trip .road li { grid-template-columns: calc(var(--fs-mono) * 4 * var(--ts)) minmax(0, 1fr) auto; padding: 10px 0; }
  .trip .road li::before { left: calc(-1 * var(--pb-x)); }
  .trip .road__n, .trip .road__t small, .trip .road__st { font-size: calc(var(--fs-mono) * var(--ts)); }
  .trip .road__t b { font-size: calc(var(--fs-prjb) * var(--ts)); }
  .trip .road__note { font-size: calc(var(--fs-prjs) * var(--ts)); }
  .trip .beat { max-width: min(620px, 92%); font-size: 15px; padding: 14px 18px 14px 16px; }
  .trip .beat small { font-size: 12.5px; }
  /* too tall for the window: the type tightened within its clamps, then the product list in two columns */
  .trip .plate.tight .pb { padding: calc(var(--pb-t) * .82) calc(var(--pb-x) * .8) calc(var(--pb-x) * .82); }
  .trip .plate.tight h2 { font-size: calc(var(--fs-h2) * .8 * var(--ts)); margin-bottom: 10px; }
  .trip .plate.tight p, .trip .plate.tight p.lede { font-size: calc(var(--fs-p) * .9 * var(--ts)); line-height: 1.45; margin-bottom: 8px; }
  .trip .plate.tight .prj li, .trip .plate.tight .inc li { padding: 8px 0; }
  .trip .plate.tight .prj span { font-size: calc(var(--fs-prjs) * .9 * var(--ts)); }
  .trip .plate.tight .fact { margin-top: 8px; padding-top: 8px; } .trip .plate.tight .fact b { font-size: calc(var(--fs-fact) * .8 * var(--ts)); }
  /* still too tall: the compact list — one row a product (its picture small, its name and kind; the line about it is on its page) */
  .trip .plate.compact .prj li { grid-template-columns: calc(var(--prj-w) * .62) 1fr; align-items: center; gap: 0 14px; padding: 6px 0; }
  .trip .plate.compact .prj img, .trip .plate.compact .prj .ph { width: calc(var(--prj-w) * .62); grid-row: auto; }
  .trip .plate.compact .prj span { display: none; }
  .trip .plate.compact .prj b { font-size: calc(var(--fs-prjb) * .85 * var(--ts)); }
  .trip .plate.compact > .pb > p { font-size: calc(var(--fs-p) * .86 * var(--ts)); }
}

/* travel beat: one line of the packet trace */
.trip .beat {
  pointer-events: auto; position: sticky; top: 44vh; margin: 0; max-width: min(470px, 92%); background: var(--jk); color: var(--laser);
  font: 400 13px/1.6 var(--f-m); letter-spacing: .01em; padding: 12px 16px 12px 14px; border-left: 3px solid var(--red); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8);
}
.trip .beat i { font-style: normal; color: var(--red-ink); margin-right: 8px; letter-spacing: .1em; }
.trip .beat small { display: block; font: 400 9.5px/1.2 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-top: 6px; }

/* ---------------------------------------------------------------- route nav: a plan of the desk, the whole round trip */
.trip .rt { position: fixed; top: 12px; right: var(--gut); z-index: 31; width: var(--rtw); background: #051315; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .22), 0 20px 40px -24px rgba(0, 0, 0, .9); transition: opacity .35s, visibility 0s; }
.trip.is-past .rt { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
.trip .rt-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px 6px; font: 400 calc(9px * var(--mk))/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--line); }
.trip .rt-h b { font-weight: 500; color: var(--red-ink); }
.trip .rt svg { display: block; width: 100%; height: auto; max-width: none; }
.trip .rt svg .ds { fill: #071a1d; stroke: #2c4447; stroke-width: .7; }
.trip .rt svg .dl { fill: none; stroke: #2c4447; stroke-width: .7; stroke-dasharray: 2 1.6; }
.trip .rt svg .mc { fill: #08201f; stroke: #5B6569; stroke-width: .8; }
.trip .rt svg .pt { fill: none; stroke: #3f585b; stroke-width: .6; }
.trip .rt svg .ky { fill: #D03A2A; }
.trip .rt svg .rp { fill: none; stroke: #1d4a4f; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.trip .rt svg .rl { fill: none; stroke: var(--laser); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.trip .rt svg .cw { fill: none; stroke: var(--red); stroke-width: 1.6; }
.trip .rt svg text { font: 500 5.6px var(--f-m); fill: var(--steel); letter-spacing: .08em; }
.trip .rt svg a { cursor: pointer; outline: none; }
.trip .rt svg a circle { fill: #051315; stroke: var(--steel); stroke-width: .9; transition: fill .3s var(--e-latch), stroke .3s; }
.trip .rt svg a.done circle { stroke: var(--laser); }
.trip .rt svg a:hover circle, .trip .rt svg a:focus-visible circle { fill: #183a3e; stroke: var(--laser); }
.trip .rt svg a[aria-current] circle { fill: var(--red); stroke: var(--red); }
.trip .rt svg a:focus-visible circle { stroke: var(--red); stroke-width: 1.4; }
.trip .rt svg #pdot { fill: var(--laser); }
.trip .rt svg #pring { fill: none; stroke: var(--laser); stroke-width: .7; opacity: .55; }
.trip .rt-f { display: grid; grid-template-columns: auto 1fr; gap: 2px 11px; align-items: baseline; padding: 8px 12px 8px; border-top: 1px solid var(--line); }
.trip .rt-n { font: 500 calc(22px * var(--mk))/1 var(--f-m); font-variant-numeric: tabular-nums; color: var(--laser); letter-spacing: -.02em; grid-row: 1/3; }
.trip .rt-n small { font-size: 10px; color: var(--steel); letter-spacing: .06em; margin-left: 2px; }
.trip .rt-d { font: 400 calc(8.5px * var(--mk))/1.25 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip .rt-t { font: 600 calc(15px * var(--mk))/1.15 var(--f-d); color: var(--laser); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trip .rt-m { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 6px 12px 8px; border-top: 1px solid var(--line); font: 400 calc(8.5px * var(--mk))/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.trip .rt-m b { font-weight: 500; color: var(--laser); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.trip .scl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.trip .scl i { display: block; height: 5px; border: 1.5px solid var(--laser); border-top: 0; width: 40px; transition: width .2s linear; }
.trip .rt-seg { display: none; }

/* ---------------------------------------------------------------- the other locators (C4): the cable, the parts list */
/* Which one stands is the admin's layout (<html data-loc / data-locm>, site.css "layout"): the route nav above, the cable
   down the right edge (the request's light rides it with the film: home-film.js sets --p), the parts list where the
   route nav would stand, or none. The components are site.css's; here they are placed over the film and lit like 31. */
@media (min-width: 761px) { html[data-loc]:not([data-loc="map"]) .trip .rt { display: none; } }
@media (min-width: 768px) { html:not([data-loc="parts"]) .trip .bom { display: none; } }
.trip .cbl { position: fixed; z-index: 31; right: 12px; top: calc(var(--top) + 16px); bottom: 24px; min-height: 0; transition: opacity .35s, visibility 0s; }
html.gd-on .trip .cbl { bottom: 96px; }
.trip .cbl__lit { box-shadow: 0 0 8px rgba(255, 241, 214, .5); }
.trip .cbl__pulse { box-shadow: 0 0 0 3px rgba(255, 241, 214, .16), 0 0 16px 4px rgba(255, 241, 214, .5); }
html.motion .trip .cbl__pulse { animation: cbl-beat 1.6s ease-in-out infinite; }
@keyframes cbl-beat { 50% { opacity: .6; } }
.trip .bom { position: fixed; z-index: 31; top: 12px; right: var(--gut); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .22), 0 20px 40px -24px rgba(0, 0, 0, .9); transition: opacity .35s, visibility 0s; }
.trip.is-past :is(.cbl, .bom) { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }

/* hover tag for parts and objects in the 3D world */
.trip .tip {
  position: fixed; z-index: 40; pointer-events: none; left: 0; top: 0; background: #061416; color: var(--laser); padding: 8px 12px 9px; border-left: 2px solid var(--red);
  font: 400 11px/1.35 var(--f-m); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .22); opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.trip .tip b { display: block; font: 600 17.5px/1.1 var(--f-d); letter-spacing: 0; text-transform: none; margin-bottom: 3px; }
.trip .tip b em { font-style: normal; color: var(--red-ink); font: 500 11.5px var(--f-m); letter-spacing: .1em; margin-right: 7px; }
.trip .tip.on { opacity: 1; }

/* a direct flight (home-film.js goStop): the plates, the callouts and the hover tag step aside; the destination's
   number, designator and name stand in the middle of the screen, in the route nav's type */
.trip .stops { transition: opacity .35s var(--e-out); }
.trip .fly {
  position: fixed; z-index: 30; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 5px; padding: 12px 20px 14px;
  background: rgba(5, 19, 21, .78); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .22); border-top: 2px solid var(--red); pointer-events: none;
  font: 400 9.5px/1.3 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s;
}
.trip .fly b { font: 500 30px/1 var(--f-m); letter-spacing: .02em; color: var(--red-ink); }
.trip .fly span:last-child { font: 600 21px/1.1 var(--f-d); letter-spacing: -.01em; text-transform: none; color: var(--laser); }
.trip.is-flying .fly { opacity: 1; visibility: visible; transition: opacity .25s .08s; }
.trip.is-flying :is(.stops, .labels, .tip) { opacity: 0 !important; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }

/* labels of the whole desk (About): callouts, each a button that flies you to its stop */
.trip .lbl {
  position: absolute; left: 0; top: 0; font: 400 9px/1.25 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); background: rgba(5, 19, 21, .92); padding: 4px 7px 5px; white-space: nowrap;
  border: 2px outset rgb(0, 0, 0); border-left: 2px solid var(--red); border-radius: 0; text-align: center;   /* 31: a button's own frame, centred (its size places the callouts) */
  pointer-events: auto; cursor: pointer; opacity: 0; transition: opacity .35s; will-change: transform;
}
.trip .lbl b { display: block; font: 600 13px/1.1 var(--f-d); letter-spacing: 0; text-transform: none; color: var(--laser); }
.trip .lbl:hover, .trip .lbl:focus-visible { background: #0c2b2f; outline: none; }
.trip .lbl.r0 { background: var(--red); border-color: var(--laser); color: var(--laser); }
.trip .lbl.r0 b { color: var(--laser); }
.trip .leads { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; transition: opacity .35s; }
.trip .leads .ld { fill: none; stroke: rgba(255, 241, 214, .6); stroke-width: 1; stroke-linejoin: round; }
.trip .leads .ring { fill: rgba(5, 19, 21, .35); stroke: rgba(255, 241, 214, .55); stroke-width: 1; }
.trip .leads .pin { fill: #FFF1D6; stroke: none; }
.trip .leads .r0 .pin { fill: #E2503E; } .trip .leads .r0 .ring { stroke: rgba(226, 80, 62, .8); }
.trip .leads .off .ring, .trip .leads .off .pin { display: none; }

/* Martian Mono at its condensed width, as 31 (the font shorthand above resets it) */
.trip :is(.kick, .hint, .jk, .ref, .ln, .stamp, .inc li::before, .prj b small, .prj .ph, .fact span, .nums dd, .who small, .opts a small, .tools small, .beat, .rt-h, .rt-n, .rt-d, .rt-m, .ask, .lbl, .tip, .road__n, .road__t small, .road__st) { font-stretch: 76%; }
.trip .inc li::before { font-stretch: 76%; }

/* the site's footer ends the film: the route nav steps aside for it (home-film.js: .trip.is-past) */
html.stage .page-home .foot { z-index: 7; }

/* ---------------------------------------------------------------- narrow desktop + phone (31's breakpoint) */
@media (max-width: 760px) {
  .trip { --gut: 16px; }
  html.stage .page-home .top { background: var(--ground); }
  .trip .rt { left: 0; right: 0; top: var(--top); width: auto; box-shadow: inset 0 -1px 0 rgba(143, 151, 156, .22); }
  .trip .rt-h, .trip .rt svg, .trip .rt-m { display: none; }
  .trip .rt-f { border-top: 0; padding: 6px 16px 4px; }
  .trip .rt-n { font-size: 16px; }
  .trip .rt-t { font-size: 13px; }
  .trip .rt-seg { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; padding: 0 16px 8px; }
  .trip .rt-seg a { display: block; height: 20px; text-decoration: none; font: 500 6.2px/20px var(--f-m); font-stretch: 76%; letter-spacing: .02em; text-align: center; color: var(--steel); background: #0a2023; overflow: hidden; white-space: nowrap; }
  .trip .rt-seg a.done { background: #1d3a3d; color: var(--ink); }
  .trip .rt-seg a[aria-current] { background: var(--red); color: var(--laser); }
  html[data-locm]:not([data-locm="strip"]) .trip .rt { display: none; }
  .trip .hold { min-height: auto !important; padding-top: 64vh; padding-bottom: 26vh; }
  .trip .stop.long .hold { padding-bottom: 60vh; } .trip .stop.xlong .hold { padding-bottom: 100vh; }
  .trip .plate, .trip .cap { position: relative; top: auto; max-height: none; overflow: visible; width: 100%; }
  .trip .pb { padding: 14px 16px 16px; }
  .trip .plate p { font-size: calc(16px * var(--tm)); } .trip .plate p.mute { font-size: calc(15px * var(--tm)); }
  .trip .plate h1 { font-size: calc(38px * var(--tm)); } .trip .plate h2 { font-size: calc(31px * var(--tm)); }
  .trip .plate p.lede { font-size: calc(16.5px * var(--tm)); }
  .trip .cap h2 { font-size: calc(26px * var(--tm)); } .trip .cap p { font-size: calc(14.5px * var(--tm)); }
  .trip .inc li { font-size: calc(15px * var(--tm)); } .trip .prj b { font-size: calc(17px * var(--tm)); } .trip .prj span { font-size: calc(14px * var(--tm)); }
  .trip .travel { height: 72vh; } .trip .travel.long { height: 120vh; }
  .trip .beat { top: auto; position: relative; font-size: 12px; margin-top: 30vh; }
  .trip .stop:last-child .hold { padding-bottom: 110px; }
  .trip .tip { display: none; }
  .trip .fact b { font-size: 26px; } .trip .nums dt { font-size: 28px; }
  .trip .lbl { font-size: 0; padding: 3px 5px 3px; } .trip .lbl b { font-size: 10px; line-height: 1.15; white-space: normal; max-width: 98px; }   /* phones: the name only (the chips above carry the designators) */
}
@media (max-width: 767.98px) {   /* the parts list: site.css's drawer (the film's own placement off), only when the layout asks for it on phones */
  .trip .bom { top: auto; right: 0; max-height: none; overflow: visible; z-index: 32; box-shadow: inset 0 1px 0 rgba(143, 151, 156, .3), 0 -18px 30px -18px rgba(0, 0, 0, .8); }
  html:not([data-locm="parts"]) .trip .bom { display: none; }
}
@media (prefers-reduced-motion: reduce) { .trip #veil { transition: none; } }

/* ================================================================ the plain page (no film: html without .stage) */
.trip .pstill { display: none; }
html:not(.stage) .trip :is(#gl, #veil, .labels, .tip, .rt, .cbl, .bom, .hint) { display: none; }
html:not(.stage) .trip .stops { pointer-events: auto; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 96px); }
html:not(.stage) .trip .hold { min-height: 0 !important; padding: 0 var(--gut) !important; }
html:not(.stage) .trip .travel { height: auto !important; padding: 18px var(--gut) 28px; }
html:not(.stage) .trip :is(.plate, .cap) { position: relative; top: auto; max-height: none; overflow: visible; width: min(640px, 100%); box-shadow: inset 0 0 0 1px rgba(143, 151, 156, .18); }
html:not(.stage) .trip .cap { width: min(560px, 100%); }
html:not(.stage) .trip .beat { position: relative; top: auto; margin: 0; max-width: min(640px, 100%); box-shadow: none; }
html:not(.stage) .trip .prj li { cursor: default; }
/* a still of the part beside its chapter (the inner pages' frames of the film) */
html:not(.stage) .trip .pstill { display: block; margin: 16px 0 0; width: min(640px, 100%); background: var(--teal); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
html:not(.stage) .trip .pstill img { display: block; width: 100%; height: auto; }
@media (min-width: 1100px) {
  html:not(.stage) .trip :is(.hold, .travel) { padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2)) !important; padding-right: max(var(--gut), calc((100vw - var(--wrap)) / 2)) !important; }
  html:not(.stage) .trip .hold { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
  html:not(.stage) .trip .pstill { grid-column: 2; grid-row: 1; margin: 0; width: 100%; }
}
