/* JourneyCard (CONTRACT §18.3, §19.1). Owner: STORY. Loaded by home, the intro and outro pages, and the host.
   Self-contained: every token has a fallback, fonts and images resolve against this file / card.js.

   A display in a gallery: bezel (.jc-glass) · screen (.jc-screen, the preview) · glass face (.jc-sheen) · caption
   outside, below (.jc-cap). --jc-reveal 0 → 1 turns the preview into the story's introduction (card.js header).
   Layout inside the screen is in ITS container units (cqw, cqh, cqmin), so one composition serves the 16:9 display on
   the home page, the phone card and the full viewport (data-state="expanded" = the intro's p 0) and reflows while
   the card grows. Words are in --jc-u (viewport units), so they never scale while it grows.

   Glass (liquid-glass-js as the visual reference, built in CSS: no WebGL context, no page sampling): a bevelled bezel
   lit from the top left (a brighter hairline on the edge facing the light, a fainter one opposite), a seat shadow, a
   glass face over the screen with a specular band and a warm caustic inside the far edge, and, on the selected card
   only (the page's one blurred surface), a frosted rim: backdrop blur masked to the screen's edges, so the preview's
   centre is never covered. */

@font-face { font-family: "Junge"; src: url("assets/fonts/junge-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("assets/fonts/inter-tight-latin-wght.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

.jcard {
  --jc-gold: var(--gold, #d8ad55);
  --jc-ivory: var(--ivory, #eeebe3);
  --jc-ink2: rgba(238, 235, 227, .78);
  --jc-ink3: rgba(238, 235, 227, .66);
  --jc-display: var(--f-display, "Funnel Display", "Helvetica Neue", Arial, sans-serif);
  --jc-sans: var(--f-sans, "Funnel Sans", "Helvetica Neue", Arial, sans-serif);
  --jc-mono: var(--f-mono, "Plex Mono", ui-monospace, Menlo, monospace);
  --jc-open: 0;
  --jc-reveal: 0;
  /* the words' unit: the viewport's (= the expanded card's cqmin), so text keeps its final size while the card grows */
  --jc-u: min(1vw, 1svh);
  --jc-tx: clamp(0, (var(--jc-reveal) - .7) * 4, 1);                    /* the words emerge in the last stretch of the reveal */
  --jc-bez: calc(clamp(5px, .5vw, 11px) * (1 - var(--jc-reveal)));     /* the glass bezel, gone when revealed */
  --jc-r: var(--jc-radius, calc(4px + 8px * (1 - var(--jc-reveal))));
  /* expanded, the words clear the host's floor (desktop: the journey track, tokens --floor) or its phone bar */
  --jc-floor: calc(var(--floor, 8.5rem) + .5rem);
  --jc-pad: clamp(1.1rem, 5.3cqw, 4rem);           /* = the page --margin when the card is the viewport */
  --jc-padv: clamp(1.1rem, 5.3vw, 4rem);
  --jc-cue-on: 1;                                   /* the cue row shows when expanded (phones, short windows) */
  /* the art: full-bleed in the preview; revealed, a landscape card keeps the right side, a portrait card leaves --txth */
  --txth: clamp(15rem, 52cqmin, 30rem);
  --arth1: clamp(38cqh, max(100cqh - var(--txth), 100cqh - (100cqh - 100cqw) * 9), 100cqh);
  --artw1: clamp(48cqw, 100cqw - (100cqw - 100cqh) * 1.2, 100cqw);
  --arth: calc(var(--arth1) + (100cqh - var(--arth1)) * (1 - var(--jc-reveal)));
  --artw: calc(var(--artw1) + (100cqw - var(--artw1)) * (1 - var(--jc-reveal)));
  position: relative; display: block; isolation: isolate;
  border-radius: var(--jc-r);
  color: var(--jc-ivory); text-decoration: none; font-family: var(--jc-sans);
  -webkit-tap-highlight-color: transparent;
}
.jcard[data-state="expanded"] {
  --jc-open: 1; --jc-reveal: 1;
  position: fixed; left: var(--jc-x, 0px); top: var(--jc-y, 0px); width: var(--jc-w, 100vw); height: var(--jc-h, 100svh);
  --jc-r: var(--jc-radius, 0px); z-index: var(--jc-z, auto);
}
.jcard .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.jcard span, .jcard .jc-world * { pointer-events: none; }
.jcard:focus-visible { outline: 2px solid var(--jc-gold); outline-offset: 5px; }

/* ---------- the display: bezel, screen, glass face ---------- */
.jc-glass { position: absolute; inset: 0; z-index: 0; border-radius: inherit; opacity: calc(1 - var(--jc-reveal));
  background: linear-gradient(158deg, rgba(246, 242, 232, .22), rgba(246, 242, 232, .07) 28%, rgba(246, 242, 232, .035) 62%, rgba(246, 242, 232, .11));
  box-shadow: inset 0 1px 0 rgba(255, 250, 238, .58), inset 1px 0 0 rgba(255, 250, 238, .24), inset 0 -1px 0 rgba(255, 250, 238, .1), inset -1px 0 0 rgba(255, 250, 238, .08),
    0 28px 50px -26px rgba(0, 0, 0, .9), 0 6px 14px -6px rgba(0, 0, 0, .55); }
.jc-screen { position: absolute; inset: var(--jc-bez); z-index: 1; overflow: hidden; container: jcard / size;
  border-radius: max(0px, calc(var(--jc-r) - var(--jc-bez) * .7)); background: #0a0b0a; }
.jc-sheen { position: absolute; inset: var(--jc-bez); z-index: 5; border-radius: max(0px, calc(var(--jc-r) - var(--jc-bez) * .7)); pointer-events: none; }
.jc-sheen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: calc(1 - var(--jc-reveal));
  background:
    linear-gradient(114deg, rgba(255, 255, 255, .15) 0, rgba(255, 255, 255, .045) 15%, transparent 31%, transparent 70%, rgba(255, 255, 255, .03) 86%, rgba(255, 255, 255, .085)),
    radial-gradient(55% 38% at 86% 104%, rgba(216, 173, 85, .16), transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 20px rgba(255, 255, 255, .05), inset 0 -14px 26px -16px rgba(0, 0, 0, .65);
  transition: background-position 600ms var(--ease-out, ease); background-size: 140% 100%, 100% 100%; background-position: 0 0, 0 0; }
@media (hover: hover) { .jcard:hover .jc-sheen::after { background-position: 30% 0, 0 0; } }
/* the frosted rim: only on the selected display (one blurred surface), masked to the edges, never over the centre.
   Only at rest: a page that grows the card sets [data-xp-moving] on an ancestor and the rim steps aside (a backdrop blur
   on a growing element costs a full re-filter every frame). */
[data-xp-moving] .jc-sheen::before { content: none !important; }
.jcard[data-selected]:not([data-state="expanded"]) .jc-sheen::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: calc(1 - var(--jc-reveal) * 1.6);
  -webkit-backdrop-filter: blur(5px) saturate(1.3) brightness(1.1); backdrop-filter: blur(5px) saturate(1.3) brightness(1.1);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 6%, transparent 94%, #000), linear-gradient(to bottom, #000, transparent 10%, transparent 88%, #000);
  mask-image: linear-gradient(to right, #000, transparent 6%, transparent 94%, #000), linear-gradient(to bottom, #000, transparent 10%, transparent 88%, #000); }

.jc-ground, .jc-world, .jc-veil { position: absolute; inset: 0; }
.jc-world { z-index: 1; }
.jc-screen { transition: filter 420ms var(--ease-out, ease); }
.jc-veil { z-index: 2; opacity: calc(.22 + .78 * var(--jc-reveal)); }
.jc-frame { position: absolute; inset: 0; z-index: 6; border-radius: inherit; pointer-events: none; transition: box-shadow 300ms var(--ease-out, ease);
  opacity: calc((1 - var(--jc-open)) * (1 - var(--jc-reveal))); }
.jc-top { position: absolute; z-index: 3; left: var(--jc-pad); right: var(--jc-pad);
  top: calc(var(--jc-pad) * .6 * (1 - var(--jc-open)) + var(--jc-open) * (var(--xp-safe-top, var(--top, 5rem)) + .25rem));
  display: flex; justify-content: space-between; gap: 1rem;
  font: 400 clamp(.5625rem, .45rem + .3 * var(--jc-u), .75rem)/1.2 var(--jc-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--jc-ink3);
  opacity: var(--jc-reveal); }
.jc-text { position: absolute; z-index: 3; left: var(--jc-pad);
  bottom: calc(var(--jc-pad) * (1 - var(--jc-open)) + var(--jc-open) * max(var(--jc-pad), var(--jc-floor))); width: min(max(40rem, 52 * var(--jc-u)), 100vw - 2 * var(--jc-padv));
  display: grid; gap: clamp(.45rem, 1.6 * var(--jc-u), 1.4rem); justify-items: start;
  opacity: var(--jc-tx); transform: translate3d(0, calc((1 - var(--jc-tx)) * 1.4rem), 0); }

/* ---------- the caption, outside the glass ---------- */
.jc-cap { position: absolute; left: 0; right: 0; top: calc(100% + .85rem); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem;
  font: 500 .8125rem/1.2 var(--jc-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--jc-ink3);
  opacity: calc(clamp(0, 1 - var(--jc-reveal) * 3, 1) * (1 - var(--jc-open))); transition: color 240ms var(--ease-out, ease); }
.jc-ct { font-weight: 600; color: inherit; }
.jc-cap > span { white-space: nowrap; }
.jc-cs { color: rgba(238, 235, 227, .6); }
.jc-cm { flex-basis: 100%; padding-left: calc(6px + .5rem); font: 400 var(--instrument, .6875rem)/1.2 var(--jc-mono); letter-spacing: .1em; color: rgba(238, 235, 227, .58); }   /* what is inside: its own timeline */
.jc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jc-gold); box-shadow: 0 0 10px rgba(216, 173, 85, .8); flex: none; opacity: 0; transform: scale(.4); transition: opacity 240ms var(--ease-out, ease), transform 240ms var(--ease-out, ease); }
/* the suggested track (Felix, 19 Nov: "highlight the next track the user should click on"): a gold tag in its caption,
   the one filled element on the row; card.js recommend() / suggest() */
.jc-pick { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 .62rem; margin-left: .35rem; border-radius: 999px;
  background: var(--jc-gold); color: #0a0b0a; font: 600 .6875rem/1 var(--jc-sans); letter-spacing: .09em; box-shadow: 0 6px 16px -8px rgba(216, 173, 85, .9); }
.jc-pick:empty { display: none; }
.jc--vision .jc-pick { background: #F9C44E; color: #12223F; }
.jc-cap > .jc-cm { white-space: normal; text-wrap: balance; }   /* a long chapter line wraps inside the card's width (a narrow outro display, a phone), never runs under its neighbour */
.jcard[data-selected] .jc-cap { color: var(--jc-ivory); }
.jcard[data-selected] .jc-dot { opacity: 1; transform: none; }
.jcard[data-state="expanded"] .jc-cap { display: none; }

/* ---------- type (revealed) ---------- */
.jc-label { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .32em; row-gap: .1em;
  font: 300 clamp(2.3rem, 13 * var(--jc-u), 13rem)/.9 var(--jc-display); letter-spacing: -.045em; }
.jc-sub { display: inline-flex; align-items: center; gap: .3em; font-size: .3em; font-weight: 400; letter-spacing: -.01em; color: var(--jc-ink2); transform: translateY(-.35em); }
.jc-dash { display: inline-block; width: 1.6em; height: 1px; background: var(--jc-gold); box-shadow: 0 0 8px rgba(216, 173, 85, .5); }
.jc-desc { max-width: 34ch; font: 400 clamp(.875rem, .62rem + 1.05 * var(--jc-u), 1.5rem)/1.5 var(--jc-sans); color: var(--jc-ink2); text-wrap: pretty; }
.jc-line { max-width: 22ch; font: 300 clamp(1.05rem, .55rem + 2.4 * var(--jc-u), 2.8rem)/1.18 var(--jc-display); letter-spacing: -.02em; color: var(--jc-ivory); text-wrap: balance;
  padding-left: .8em; border-left: 1px solid var(--jc-gold); }
.jc--vision .jc-s { display: block; }
/* the cue row: "Begins at … · Begin →", identical in the host's clone and on the intro page (where Begin is a link) */
.jc-cue { display: flex; align-items: center; min-height: 44px; opacity: calc(var(--jc-open) * var(--jc-cue-on)); }
.jc-begins { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; margin: 0; }
.jc-bl { font: 400 var(--instrument, .6875rem)/1.3 var(--jc-mono); letter-spacing: var(--instrument-track, .14em); text-transform: uppercase; color: var(--jc-ink3); }
.jc-bgo { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(216, 173, 85, .6);
  color: var(--jc-ivory); text-decoration: none; font: 500 var(--ui, .8125rem)/1 var(--jc-sans); letter-spacing: .02em; transition: background 200ms var(--ease-out, ease), box-shadow 200ms var(--ease-out, ease); }
.jc-bgo b { font-weight: 400; color: var(--jc-gold); }
a.jc-bgo { pointer-events: auto; }
a.jc-bgo:hover { background: rgba(216, 173, 85, .12); box-shadow: inset 0 0 0 1px var(--jc-gold); }
@media (min-width: 1024px) and (min-height: 600px) { .jcard { --jc-cue-on: 0; } }   /* the stage: the intro brings it in with --c */

/* ---------- selection: obvious, not loud ---------- */
.jcard[data-selected] .jc-frame { box-shadow: inset 0 1px 0 rgba(216, 173, 85, .85), 0 0 0 1px rgba(216, 173, 85, .32); }
/* not selected: the whole display dims (its ground too, Vision's indigo included), not just the art */
.jcard:not([data-selected]):not([data-state="expanded"]) .jc-screen { filter: saturate(.45) brightness(.56); }
.jcard:not([data-selected]):not([data-state="expanded"]) .jc-line { border-left-color: rgba(238, 235, 227, .3); }
@media (hover: hover) { .jcard:not([data-selected]):hover .jc-screen { filter: saturate(.75) brightness(.8); } .jcard:not([data-selected]):hover .jc-cap { color: var(--jc-ink2); } }

/* ================= CAREER · data, interfaces, systems, product UI ================= */
.jc--career .jc-screen { background: #080a09; }
.jc--career .jc-ground { background:
  radial-gradient(70% 60% at 78% 28%, rgba(93, 202, 165, .16), transparent 62%),
  radial-gradient(50% 50% at 10% 90%, rgba(216, 173, 85, .07), transparent 60%),
  linear-gradient(160deg, #0b100e, #060706 70%); }
.jc--career .jc-ground::after { content: ""; position: absolute; inset: 0; opacity: .9;
  background-image: linear-gradient(rgba(238, 235, 227, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 235, 227, .035) 1px, transparent 1px);
  background-size: 4cqmin 4cqmin; -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 70%); mask-image: linear-gradient(200deg, #000 20%, transparent 70%); }
.jc--career .jc-art { position: absolute; top: 0; right: 0; width: var(--artw); height: var(--arth); container: jcart / size; }
.jc-prints { position: absolute; inset: 0; --pw: min(56cqw, 88cqh); --ph: calc(var(--pw) * .6);
  --dx: calc((100cqw - var(--pw) - 6cqw) / 5); --t0: max(16cqh, var(--jc-open) * 8.5rem); --dy: calc((100cqh - var(--ph) - var(--t0) - 8cqh) / 5); }
.jc-print { position: absolute; width: var(--pw); height: var(--ph);
  left: calc(2cqw + var(--i) * var(--dx)); top: calc(var(--t0) + var(--i) * var(--dy));
  border-radius: 2px; box-shadow: 0 1.6cqmin 4cqmin rgba(0, 0, 0, .6), 0 0 0 1px rgba(238, 235, 227, .08); }
/* older work further back: a dark film over each print (not a CSS filter: filters re-raster every frame while the card grows) */
.jc-print::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; background: #060706; opacity: calc(.5 - var(--i) * .1); pointer-events: none; }
.jc-print img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.jc-print::before { content: ""; position: absolute; z-index: 2; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--jc-gold); box-shadow: 0 0 10px rgba(216, 173, 85, .7); }
.jc-plab { position: absolute; z-index: 2; left: .6em; bottom: calc(100% + .45em); white-space: nowrap;
  font: 400 clamp(.5625rem, .45rem + .4 * var(--jc-u), .75rem)/1 var(--jc-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--jc-ink2);
  opacity: clamp(0, (var(--jc-reveal) - .3) * 2.5, 1); }   /* at rest the stair and the prints say it; the names arrive as the card grows */
.jc-plab b { font-weight: 500; color: var(--jc-gold); margin-right: .35em; }
.jc-print:last-of-type::after { opacity: 0; }
.jc-step { position: absolute; z-index: 1; pointer-events: none;
  left: calc(2cqw + var(--i) * var(--dx)); top: calc(var(--t0) + var(--i) * var(--dy)); width: var(--dx); height: var(--dy);
  border-top: 1px solid var(--jc-gold); border-right: 1px solid var(--jc-gold); opacity: .8; }
.jc--career .jc-veil { background: linear-gradient(to top, rgba(6, 7, 6, .94) 0, rgba(6, 7, 6, .82) calc(100cqh - var(--arth) + 6cqh), transparent calc(100cqh - var(--arth) + 26cqh)),
  linear-gradient(to right, rgba(6, 7, 6, .8), rgba(6, 7, 6, .3) 40cqw, transparent 64cqw); }

/* ================= PASSION · "I DJ the way I feel" (Felix, 19 Nov 2026) =================
   One idea: the record on the deck is a Mood Gem. A platter, a record and a tonearm drawn here (no imagery); the
   record's label is Moodstream's own mood disc (the app's dark disc, an original gem at its centre, its glow); the
   signal runs into the groove from the left; under the record, the app's mood line carries Felix's words. Calm and
   static: nothing spins (the card is the same in the host's clone and on the intro). Replaces Phase L's three layers
   (photograph, signal, phone): no photograph on the card any more.
   Geometry in the screen's units: the record sits in the art region (right; revealed, the right or top part), so the
   words never meet it. Portrait screens (the phone's expanded card, the intro's p 0) take a larger record. */
.jc--passion .jc-world {
  --d: min(var(--arth) * .74, var(--artw) * .56);              /* the record's diameter */
  --cx: calc(100cqw - var(--artw) * .4);                        /* its centre */
  --cy: calc(var(--arth) * .47);
  --wvh: clamp(1.4rem, min(14cqh, 9cqw), 6.5rem);
  /* the signal's visible run: from the art region's left edge into the record's centre (hidden under it) */
  --wl0: calc(100cqw - var(--artw) + 4cqw); --wl1: calc(100cqw - var(--artw) + 24cqw); --wr: var(--cx);
}
@container jcard (aspect-ratio < 1) {
  .jc--passion .jc-world { --d: min(var(--arth) * .62, var(--artw) * .8); --cx: calc(100cqw - var(--artw) * .54); --cy: calc(var(--arth) * .5); }
}
.jc--passion .jc-screen { background: #0b0909; }
.jc--passion .jc-ground { background:
  radial-gradient(60% 70% at 70% 40%, rgba(138, 53, 255, .13), transparent 66%),
  radial-gradient(55% 55% at 8% 92%, rgba(226, 166, 82, .09), transparent 62%),
  linear-gradient(170deg, #120d0e, #070606 75%); }
.jc--passion .jc-art { position: absolute; inset: 0; }
/* the disc's own light, as in the app: the gem's gold close in, Passion's violet around it */
.jc-glow { position: absolute; left: calc(var(--cx) - var(--d) * 1.1); top: calc(var(--cy) - var(--d) * 1.1); width: calc(var(--d) * 2.2); height: calc(var(--d) * 2.2); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 166, 82, .17), rgba(138, 53, 255, .09) 52%, transparent 100%); }
/* the signal: one gold strand and a violet echo, into the groove */
.jc-wave { position: absolute; z-index: 1; left: 0; width: 100cqw; height: var(--wvh); top: calc(var(--cy) - var(--wvh) * .5); overflow: visible;
  -webkit-mask-image: linear-gradient(to right, transparent var(--wl0), #000 var(--wl1), #000 var(--wr), transparent var(--wr));
  mask-image: linear-gradient(to right, transparent var(--wl0), #000 var(--wl1), #000 var(--wr), transparent var(--wr)); }
.jc-wave path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.jc-wave .w1 { stroke: rgba(226, 166, 82, .85); stroke-width: 1.2; }
.jc-wave .w3 { stroke: rgba(138, 53, 255, .45); stroke-width: 1; }
/* the deck: platter, record, label, tonearm */
.jc-deck { position: absolute; z-index: 2; left: calc(var(--cx) - var(--d) * .5); top: calc(var(--cy) - var(--d) * .5); width: var(--d); height: var(--d); }
.jc-platter { position: absolute; inset: calc(var(--d) * -.034); border-radius: 50%;
  background: conic-gradient(from 210deg, #1c1c1d, #2b2a27 10%, #151516 28%, #1b1b1c 52%, #272623 68%, #151516 86%, #1c1c1d);
  box-shadow: inset 0 0 0 1px rgba(238, 235, 227, .1), inset 0 1px 0 rgba(255, 250, 238, .14), 0 2.2cqmin 5cqmin -1cqmin rgba(0, 0, 0, .8); }
.jc-rec { position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from -24deg, transparent 0deg, rgba(255, 250, 240, .07) 26deg, transparent 58deg, transparent 180deg, rgba(255, 250, 240, .05) 206deg, transparent 238deg),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .03) 0 .6px, transparent .6px 2.4px),
    radial-gradient(circle, #0c0c0d 0 50%, #19191b 50.6%, #0b0b0c 52%, #111112 95.5%, #1e1e1f 97.5%, #0a0a0b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 .5cqmin 1.2cqmin rgba(0, 0, 0, .55); }
/* the label is Moodstream's mood disc: dark, a fine inner ring, the gem at its centre */
.jc-disc { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 36%, #1f1e22, #111113 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 2.6cqmin rgba(226, 166, 82, .16); }
.jc-disc::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }
.jc-disc .jc-gem { position: relative; width: 46%; height: auto; max-width: none; filter: drop-shadow(0 0 1.4cqmin rgba(242, 195, 91, .42)); }
.jc-arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .7cqmin .6cqmin rgba(0, 0, 0, .55)); }
.jc-arm .a-base { fill: #151516; stroke: rgba(238, 235, 227, .16); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.jc-arm .a-ring { fill: none; stroke: rgba(238, 235, 227, .2); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.jc-arm .a-cap { fill: #3b3a37; }
.jc-arm .a-weight { fill: #2a2927; stroke: rgba(238, 235, 227, .24); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.jc-arm .a-tube { fill: none; stroke: rgba(228, 223, 212, .62); stroke-width: clamp(1px, .42cqmin, 2.6px); vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.jc-arm .a-shell { fill: #232221; stroke: rgba(238, 235, 227, .34); stroke-width: 1px; vector-effect: non-scaling-stroke; }
/* the app's mood line (Moodstream: "◆ lost in the haze below"), with Felix's words */
.jc-mood { position: absolute; z-index: 2; left: var(--cx); top: calc(var(--cy) + var(--d) * .5 + clamp(.4rem, 2.6cqmin, 1.4rem)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .75em; white-space: nowrap;
  font: 400 clamp(.5625rem, 3cqmin, .9375rem)/1 var(--jc-mono); letter-spacing: .03em; color: rgba(238, 235, 227, .82); }
.jc-mdot { flex: none; width: .5em; height: .5em; background: #f2c35b; transform: rotate(45deg); box-shadow: 0 0 .7em rgba(242, 195, 91, .55); }
.jc--passion .jc-veil { background: linear-gradient(to bottom, rgba(7, 6, 6, .5), transparent 14cqh), linear-gradient(to top, rgba(7, 6, 6, .94) 0, rgba(7, 6, 6, .8) calc(100cqh - var(--arth) + 4cqh), transparent calc(100cqh - var(--arth) + 24cqh)),
  linear-gradient(to right, rgba(7, 6, 6, .72), transparent 62cqw); }

/* ================= VISION · SOMA's own world (12-soma, read only): Deep Indigo, Junge, the mandala, Palm Mist ================= */
.jc--vision { --canh: min(70cqh, 62cqw * 1.36, var(--arth) * .86); --canw: calc(var(--canh) / 1.3606); }
.jc--vision .jc-screen { background: #12223F; }
.jc--vision .jc-ground { background:
  radial-gradient(65% 60% at 70% 30%, rgba(199, 211, 224, .17), transparent 64%),
  radial-gradient(50% 45% at 15% 85%, rgba(232, 156, 54, .1), transparent 62%),
  linear-gradient(175deg, #142748, #0c1830 80%); }
.jc--vision .jc-art { position: absolute; inset: 0; }
.jc-mandala { position: absolute; width: 112cqmin; height: auto; left: calc(92cqw - var(--canw) * .5 - 56cqmin); top: calc(var(--cant, 12cqh) + var(--canh) * .45 - 53cqmin); opacity: .085; }
.jc-botanical { position: absolute; left: 0; bottom: 0; width: max(100cqw, 150cqh); height: auto; max-width: none; opacity: .9;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 85%); mask-image: linear-gradient(to top, #000 30%, transparent 85%); }
.jc-can { position: absolute; height: var(--canh); width: auto; max-width: none; right: 8cqw; top: var(--cant, 12cqh); filter: drop-shadow(0 4cqmin 5cqmin rgba(3, 8, 20, .6)); }
.jc-thread { position: absolute; left: calc(92cqw - var(--canw) * .46); top: var(--thr0, 0px); width: 1px; height: calc(var(--cant, 12cqh) + var(--canh) * .02 - var(--thr0, 0px)); background: linear-gradient(to bottom, rgba(249, 196, 78, 0), rgba(249, 196, 78, .85)); }
.jc-drop { position: absolute; left: 50%; bottom: 0; width: 1.5cqmin; height: 2.1cqmin; transform: translate(-50%, 60%); background: #F9C44E; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; box-shadow: 0 0 2cqmin rgba(249, 196, 78, .6); }
.jc--vision .jc-veil { background: linear-gradient(to top, rgba(12, 24, 48, .92) 0, rgba(12, 24, 48, .8) calc(100cqh - var(--arth) + 6cqh), transparent calc(100cqh - var(--arth) + 30cqh)),
  linear-gradient(to right, rgba(12, 24, 48, .78), transparent 58cqw); }
.jc--vision .jc-label { font-family: "Junge", Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
.jc--vision .jc-sub { transform: translateY(-.2em); }
.jc--vision .jc-dash { background: #F9C44E; box-shadow: 0 0 8px rgba(249, 196, 78, .5); }
.jc-wordmark { height: .78em; width: auto; display: inline-block; }
.jc--vision .jc-desc { font-family: "Inter Tight", var(--jc-sans); color: rgba(248, 243, 230, .82); }
.jc--vision .jc-line { font-family: "Junge", Georgia, serif; font-weight: 400; letter-spacing: 0; color: #F8F3E6; border-left-color: #F9C44E; }
.jc--vision .jc-top, .jc--vision .jc-bl { font-family: "Inter Tight", var(--jc-sans); letter-spacing: .16em; font-weight: 500; color: rgba(248, 243, 230, .74); }
.jc--vision .jc-bgo { box-shadow: inset 0 0 0 1px rgba(249, 196, 78, .7); font-family: "Inter Tight", var(--jc-sans); }
.jc--vision .jc-bgo b { color: #F9C44E; }
.jc--vision[data-selected] .jc-frame { box-shadow: inset 0 1px 0 rgba(249, 196, 78, .85), 0 0 0 1px rgba(249, 196, 78, .3); }
.jc--vision .jc-sheen::after { background:
    linear-gradient(114deg, rgba(255, 255, 255, .15) 0, rgba(255, 255, 255, .045) 15%, transparent 31%, transparent 70%, rgba(255, 255, 255, .03) 86%, rgba(255, 255, 255, .085)),
    radial-gradient(55% 38% at 86% 104%, rgba(249, 196, 78, .18), transparent 72%); background-size: 140% 100%, 100% 100%; }

/* the host's phone bar */
@media (max-width: 1023px), (max-height: 599px) { .jcard { --jc-floor: max(5.75rem, var(--xp-safe-bottom, 0px) + 1rem); } }
/* ---------- portrait, open: the phone's expanded card, which is the intro's p 0 and the host's clone (19 Nov 2026, Felix: "Intro panel for
   SOMA feels squished with the text, and the nav") ----------
   From the top:
   - the top bar's zone: nothing in it;
   - the index row;
   - the art, from --artt to --arth;
   - the readiness plate's zone (--jc-lane: a compact plate, 4.75rem, with air on both sides; intro.js XP_INDICATOR_CLEAR seats the plate there);
   - the words (their measured height --jc-th, card.js);
   - the host's bar (--jc-floor).
   The art region is whatever is left, so the can, the record and the prints never sit under the bar, the plate or the words.
   Every term carries --jc-open, so the host's clone reflows continuously while it grows. */
@container jcard (aspect-ratio < 1) {
  .jcard[data-state="expanded"] .jc-top { top: calc(var(--jc-pad) * .6 * (1 - var(--jc-open)) + var(--jc-open) * (var(--xp-safe-top, var(--top, 5rem)) + .85rem)); }
  .jcard[data-state="expanded"] :is(.jc-world, .jc-veil) {
    --jc-lane: 6.25rem;
    --artt: calc(var(--jc-open) * (var(--xp-safe-top, var(--top, 5rem)) + 2.5rem));
    --txth: calc(var(--jc-pad) * (1 - var(--jc-open)) + var(--jc-open) * (max(var(--jc-pad), var(--jc-floor)) + var(--jc-lane)) + var(--jc-th, 15rem));
    --arth1: clamp(calc(var(--artt) + 18cqh), 100cqh - var(--txth), 100cqh);
    --arth: calc(var(--arth1) + (100cqh - var(--arth1)) * (1 - var(--jc-reveal)));
  }
  /* the veil protects the words, not the art: its gradient starts under the plate's zone */
  .jcard[data-state="expanded"] .jc-veil { --arth: calc(var(--arth1) + var(--jc-lane) * var(--jc-open) + (100cqh - var(--arth1) - var(--jc-lane) * var(--jc-open)) * (1 - var(--jc-reveal))); }
  /* Career: the prints' cascade fills the art region */
  .jc--career[data-state="expanded"] .jc-art { top: var(--artt); height: calc(var(--arth) - var(--artt)); }
  .jc--career[data-state="expanded"] .jc-prints { --pw: min(56cqw, 62cqh); --t0: max(16cqh * (1 - var(--jc-open)), var(--jc-open) * 1.5rem); }   /* the region already clears the bar; a short region takes smaller prints, so the six labels keep their steps */
  /* Passion: the record at the top of its region, its mood line under it */
  .jc--passion[data-state="expanded"] .jc-world { --d: min((var(--arth) - var(--artt) - 2.1rem) * .95, var(--artw) * .8); --cy: calc(var(--artt) + var(--d) * .54); }
  /* Vision: the can hangs on a short thread that starts under the index row (not through the bar or the row's words) */
  .jc--vision[data-state="expanded"] .jc-world {
    --thr0: calc(var(--jc-open) * (var(--xp-safe-top, var(--top, 5rem)) + 2rem));
    --cant: calc(var(--artt) + var(--jc-open) * 1rem + 12cqh * (1 - var(--jc-open)));
    --canh: clamp(14cqh, min(62cqw * 1.36, var(--arth) - var(--cant) - .25rem), 70cqh); --canw: calc(var(--canh) / 1.3606);
  }
  /* the words' rhythm (19 Nov 2026, Felix: "Text in SOMA still needs better padding between text blocks... way too
     tight"): one scale, tight inside a group, a clear step between groups. The title (and its description, on tall
     phones) and the line are one group, .75rem apart; the cue row ("Begins …" and Begin) is the next, 2rem under the
     line; inside it "Begins …" and Begin sit .75rem apart when they stack. The words' height grows, so the art region
     above them gives the room back (--jc-th, card.js). Each term carries --jc-open, as above */
  .jcard[data-state="expanded"] .jc-text { row-gap: calc(clamp(.45rem, 1.6 * var(--jc-u), 1.4rem) * (1 - var(--jc-open)) + .75rem * var(--jc-open)); }
  .jcard[data-state="expanded"] .jc-cue { margin-top: calc(1.25rem * var(--jc-open)); }
  .jcard[data-state="expanded"] .jc-begins { row-gap: calc(.3rem + .45rem * var(--jc-open)); }
}
/* short phones (under 760 px tall, portrait): the description steps aside, as on landscape phones, so the art keeps room */
@media (max-width: 1023px) and (max-height: 759px) and (orientation: portrait) {
  .jcard[data-state="expanded"] .jc-desc, .jcard[data-variant="intro"] .jc-desc { display: none; }
}
/* Passion keeps its description on short phones (640-759 px tall): Felix's 19 Nov copy pairs it with a one-line quote
   ("Express Yourself."), so both fit; the record gives the room back (--jc-th). Expanded card and intro alike, so the
   handoff still matches */
@media (max-width: 1023px) and (min-height: 600px) and (max-height: 759px) and (orientation: portrait) {
  .jc--passion[data-state="expanded"] .jc-desc, .jc--passion[data-variant="intro"] .jc-desc { display: block; }
}
/* ---------- short windows (landscape phones): the description steps aside so the words stay below the top bar ---------- */
@media (max-height: 540px) {
  .jcard[data-state="expanded"] .jc-desc, .jcard[data-variant="intro"] .jc-desc { display: none; }
  .jcard { --jc-floor: max(4.5rem, var(--xp-safe-bottom, 0px) + .75rem); }
  .jc-label { font-size: clamp(2rem, 11 * var(--jc-u), 10.5rem); }
}
/* ---------- no-JS / no-container-query fallback is the plain link; reduced motion: states change instantly ---------- */
@media (prefers-reduced-motion: reduce) { .jcard *, .jcard, .jcard *::after { transition-duration: 0ms !important; } }
/* JourneyCard.select(id, { instant: true }): the page sets .jc-instant on the group for two frames; nothing eases */
.jc-instant .jcard, .jc-instant .jcard *, .jc-instant .jcard *::after { transition: none !important; }
@media (forced-colors: active) { .jc-screen { border: 1px solid CanvasText; } .jcard[data-selected] { outline: 3px solid Highlight; } .jc-sheen, .jc-glass { display: none; } }
@container jcart (max-width: 300px) { .jc-plab { display: none; } }
