/* /jcdas: "It started with a dream", v2's story, moved through by scrolling (jcdas.js). The stage is pinned (sticky) for
   the length of the track; every moving part is a picture's scale or opacity. */
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-var.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
:root { --night: #0b0a1f; --ink: #0d1a3f; --gold: #ffd79a; --yellow: #ffd23f; --orange: #ff8a1f; --pad: clamp(16px, 4vw, 40px); --focus: var(--orange);
  --display: "Bricolage", "Arial Black", system-ui, sans-serif; --text: "DM Sans", system-ui, sans-serif; }
html { scroll-behavior: auto; } /* the page's own smooth scrolling would fight the scrub */
html, body { background: var(--night); color: #fff; }
body { font-family: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* the track is as long as v2's story (8.2 screens of scrolling); the stage stays pinned in the window all the way.
   svh: the window with the phone's toolbars showing, so nothing jumps when they slide away (the night colour fills under) */
.jc__track { position: relative; height: calc(100vh + 820vh); height: calc(100svh + 820vh); }
.jc__pin { position: sticky; top: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100svh; overflow: hidden; }
.jc__bar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 10px max(var(--pad), env(safe-area-inset-left)); }
.jc__brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 800 1.15rem/1 var(--display); font-stretch: 90%; letter-spacing: -.03em; }
.jc__brand img { width: 40px; height: auto; }
.jc__ctl { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.jc__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgb(255 255 255 / .14); font-weight: 700; font-size: .92rem; line-height: 1; white-space: nowrap; }
.jc__btn svg { width: 17px; height: 17px; }
.jc__btn--quiet { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
.jc__btn--solid { background: #fff; color: var(--ink); }
@media (hover: hover) { .jc__btn:hover { background: rgb(255 255 255 / .24); } .jc__btn--solid:hover { background: var(--gold); } .jc__btn--quiet:hover { background: rgb(255 255 255 / .1); } }

/* the picture: the biggest 16:9 box that fits (wider would cut GLY's dream bubble off the top); squarer screens fill the
   stage; on a phone held upright, 4:5, each picture cropped around what matters in it (jcdas.js) */
.jc__stage { position: relative; display: grid; place-items: center; min-height: 0; container-type: size; }
.jc__screen { position: relative; overflow: hidden; width: min(100cqw, 100cqh * 16 / 9); height: min(100cqh, 100cqw * 5 / 4);
  background: #2b2c78; background: linear-gradient(180deg, #23266e 0%, #4b3f9c 55%, #2a2552 100%); }
@media (min-width: 900px) { .jc__screen { border-radius: 18px; } }
.jc__shot { position: absolute; inset: 0; visibility: hidden; }
.jc__shot.is-near { visibility: visible; }
.motion .jc__shot.is-near { will-change: transform, opacity; }
.jc__shot img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.jc__black { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: clamp(18px, 4vh, 30px); background: #000; opacity: 0; visibility: hidden; }
.jc__end { margin: 0; font: 800 clamp(2.4rem, 7vw, 4.8rem)/1 var(--display); letter-spacing: .02em; text-align: center; }
.jc__again { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.jc.is-end .jc__again { opacity: 1; visibility: visible; transition: opacity .5s ease; }

/* the subtitles: one sentence at a time in the band under the picture */
.jc__band { position: relative; display: grid; place-items: center; min-height: clamp(128px, 21vh, 190px); text-align: center;
  padding: 12px max(var(--pad), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left)); }
.jc__title, .jc__big { grid-area: 1 / 1; }
.jc__title { display: grid; gap: 6px; justify-items: center; }
.jc__title h1 { margin: 0; font: 800 clamp(2.1rem, 4.6vw, 4rem)/.98 var(--display); font-stretch: 90%; letter-spacing: -.03em; text-wrap: balance; }
.jc__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .72); }
.jc__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); } /* the shop's eyebrow */
.jc__cue { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: rgb(255 255 255 / .7); }
.jc__cue svg { width: 15px; height: 15px; }
:root:not(.reduce-motion) .jc__cue svg { animation: jc-nudge 1.8s ease-in-out infinite; }
.jc.is-past-cue .jc__cue svg { animation: none !important; }
@keyframes jc-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
/* 22 Nov (James + JC: "needs to be more on brand, looks a little too plain"): the subtitles in the shop's display type
   (Bricolage, heavy and a little narrow, as in its headlines), much bigger, the key words in the brand's yellow and orange */
.jc__big { display: grid; max-width: 21em; margin: 0; font: 800 clamp(1.5rem, 3.3vw, 2.9rem)/1.04 var(--display); font-stretch: 90%; letter-spacing: -.024em; }
.jc__line { grid-area: 1 / 1; align-self: center; text-wrap: balance; opacity: 0; }
.jc__line small { display: block; max-width: 34em; margin: .7em auto 0; font: 600 clamp(.95rem, 1.3vw, 1.15rem)/1.4 var(--text); letter-spacing: 0; color: rgb(255 255 255 / .8); text-wrap: balance; }
.jc__hi { color: var(--yellow); font-weight: inherit; }
.jc__hi--o { color: var(--orange); }
/* each word pops in when its line comes up (jcdas.js wraps them and sets .is-up): a quick rise with the shop's springy ease */
.jc__w { display: inline-block; }
:root:not(.reduce-motion) .jc.is-film .jc__w { opacity: 0; transform: translateY(.42em) rotate(4deg) scale(.9); transform-origin: 50% 80%;
  transition: opacity .3s var(--out), transform .55s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--k) * 38ms); }
:root:not(.reduce-motion) .jc.is-film .jc__line.is-up .jc__w { opacity: 1; transform: none; }
.motion :is(.jc__title, .jc__line, .jc__end) { will-change: transform, opacity; }

/* animations off (Reduce Motion, unless you ask for them): scrolling still steps through the beats, as still pictures */
.jc.is-steps .jc__shot.is-on { visibility: visible; }
.jc.is-steps .jc__title, .jc.is-steps .jc__line { visibility: hidden; }
.jc.is-steps .jc__title.is-on, .jc.is-steps .jc__line.is-on { visibility: visible; opacity: 1; }
.jc.is-steps.is-black .jc__black { opacity: 1; visibility: visible; }

/* v2's scroll progress bar, standing up on the side: how far through the dream you are */
.jc__progress { position: fixed; z-index: 7; right: max(8px, env(safe-area-inset-right)); top: 50%; width: 4px; height: min(44vh, 340px); translate: 0 -50%;
  border-radius: 4px; background: rgb(255 255 255 / .16); overflow: hidden; pointer-events: none; }
.jc__progress-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--yellow), var(--orange)); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }
@media (max-width: 420px) { .jc__brand span { display: none; } .jc__progress { right: 5px; width: 3px; } }
