/* Round 4 · the five journey words as the page's spine (CHANGES-ROUND4.md)
   1. Each world opens with its word (Tune, Align, Activate, Create, Amplify) set large in gold serif.
      A thin gold pen line draws itself under the word. The number, title and line sit beneath in softer text.
   2. The same word floats on the open stars just before each world.
   3. The journey spine: the old five-state bar, now a slim rail of five dots. Upright on the right edge
      on desktop, along the bottom edge on phones. Lit gold = where you are. Soft gold = already passed.
   4. A quiet strip of the five words under the hero buttons. It goes to Tune.
   Only existing gold tokens and the existing --teal are used. ?copy=V2 keeps its old look (no big words). */

/* ---------- 1. the word in each world ---------- */
.jw{display:none}
html:not([data-copy="V2"]) .jw{display:block;margin:0}
.jw__w{display:block;font:400 clamp(76px,7vw,128px)/.86 var(--serif);letter-spacing:-.012em;color:var(--gold-lit);
  /* soft dark cloud first (so it reads over bright photos), then a gentle gold glow */
  text-shadow:0 0 6px rgba(5,6,15,.85),0 2px 22px rgba(5,6,15,.85),0 0 40px rgba(var(--gold-lit-rgb),.3)}
.jw__pen{display:block;width:min(300px,82%);height:20px;margin-top:2px;overflow:visible}
.jw__pen path{fill:none;stroke:var(--gold-lit);stroke-width:1.8;stroke-linecap:round;stroke-dasharray:1 1;stroke-dashoffset:1;filter:drop-shadow(0 0 3px rgba(5,6,15,.8))}
.jw__pen .jw__hair{stroke-width:.9;opacity:.6}
/* draws itself when the world's words come up (flight: .ov.is-on · still page: .is-in, set by js/journey.js) */
html.gl .ov.is-on .jw__pen path,html:not(.gl) .jw.is-in .jw__pen path{stroke-dashoffset:0;transition:stroke-dashoffset 1.25s .3s cubic-bezier(.3,.6,.2,1)}
html.gl .ov.is-on .jw__pen .jw__hair,html:not(.gl) .jw.is-in .jw__pen .jw__hair{transition-delay:.85s}
@media (prefers-reduced-motion:reduce){.jw__pen path{stroke-dashoffset:0!important}}

/* the number, title and line beneath: softer, so the word leads */
html:not([data-copy="V2"]) .block--state{--pw:clamp(360px,31vw,540px)}
html:not([data-copy="V2"]) .block--state .state__n{margin-top:14px;letter-spacing:.24em;color:var(--gold-lit-soft)}
html:not([data-copy="V2"]) .block--state .state__name{font-size:clamp(30px,2.5vw,46px);line-height:1.04;margin:10px 0 8px;color:rgba(241,238,229,.94)}
html:not([data-copy="V2"]) .block--state .state__name em{color:var(--gold-100)}
html:not([data-copy="V2"]) .block--state .state__line{color:rgba(236,226,207,.88)}

/* ---------- 2. the word on the open stars ---------- */
.starline__w{display:none}
html:not([data-copy="V2"]) .starline__w{display:block;margin-bottom:.16em;font:400 clamp(84px,8.6vw,160px)/.9 var(--serif);font-style:normal;letter-spacing:-.012em;color:var(--gold-lit);
  text-shadow:0 0 6px rgba(5,6,15,.85),0 2px 24px rgba(5,6,15,.9),0 0 46px rgba(var(--gold-lit-rgb),.32)}

/* ---------- 3. the journey spine (desktop: upright on the right edge) ---------- */
.statebar.spine{left:auto;right:clamp(12px,1.6vw,28px);top:50%;bottom:auto;transform:translate(0,-50%);width:auto}
/* a soft dark cloud behind the rail so the words read over bright photos (no hard panel) */
.statebar.spine::before{content:"";position:absolute;inset:-46px -30px -46px -54px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 50% 50% at 62% 50%,rgba(14,14,13,.72),rgba(14,14,13,.45) 60%,rgba(14,14,13,0));filter:blur(6px)}
.spine ol{position:relative;display:grid;gap:2px;padding:0;margin:0;list-style:none;background:none;border-radius:0}
/* the hairline track, and the gold line that grows down it as you travel */
.spine ol::before,.spine ol::after{content:"";position:absolute;right:calc(14px + 4px);top:22px;bottom:22px;width:1px;pointer-events:none}
.spine ol::before{background:rgba(var(--gold-lit-rgb),.28)}
.spine ol::after{background:var(--gold-lit);transform-origin:50% 0;transform:scaleY(var(--jp,0));transition:transform .6s var(--ease)}
.statebar.spine a{position:relative;display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-start;gap:12px;min-height:var(--tap);min-width:var(--tap);padding:0 14px 0 10px;border-radius:999px;background:none;
  font:400 11.5px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:rgba(241,238,229,.66);text-shadow:var(--shade);transition:color .35s}
.spine a i{position:relative;z-index:1;flex:none;width:9px;height:9px;border-radius:50%;border:1px solid rgba(var(--gold-lit-rgb),.7);background:rgba(14,14,13,.85);transition:background .35s,transform .35s var(--ease),box-shadow .35s}
.statebar.spine a:hover{color:var(--cream)}
.statebar.spine a.done{color:rgba(236,226,207,.7)}
.spine a.done i{background:rgba(var(--gold-lit-rgb),.55)}
.statebar.spine a.on{background:none;color:var(--gold-lit-hi);font-weight:500}
.spine a.on i{background:var(--gold-lit);border-color:var(--gold-lit-hi);transform:scale(1.35);box-shadow:0 0 0 3px rgba(var(--gold-lit-rgb),.18),0 0 12px rgba(var(--gold-lit-rgb),.6)}
/* keep the text of right-hand worlds clear of the spine */
@media (min-width:1024px) and (min-aspect-ratio:21/20){
  html.gl .stop--state .ov--r{padding-right:clamp(150px,12vw,200px)}
  html.static .stop--state{padding-right:max(var(--pad-x),150px)}
}

/* phones and tall screens: spine along the bottom — Round v24: lift UP off the portrait feet /
   Safari chrome, keep >=16px under the state sub-line, and make the track/dots/labels read clearly. */
@media (max-width:1023px),(max-aspect-ratio:21/20){
  .statebar.spine{left:50%;right:auto;top:auto;
    bottom:calc(env(safe-area-inset-bottom,0px) + clamp(36px,5.5vh,56px));
    transform:translate(-50%,0);width:min(560px,calc(100% - 20px))}
  /* soft scrim behind the bar only (not a hard dark band that muddies the photo) */
  .statebar.spine::before{inset:-20px -14px -16px;filter:blur(12px);
    background:radial-gradient(ellipse 80% 95% at 50% 65%,rgba(7,7,15,.58),rgba(7,7,15,.28) 58%,rgba(7,7,15,0) 78%)}
  .spine ol{display:flex;justify-content:space-between;gap:0}
  .spine li{flex:1 1 0;display:flex;justify-content:center;min-width:0}
  .spine ol::before,.spine ol::after{left:10%;right:10%;top:calc(8px + 4px);bottom:auto;width:auto;height:1.5px}
  .spine ol::before{background:rgba(var(--gold-lit-rgb),.62)} /* was ~.28 — too dark/faded under photo */
  .spine ol::after{transform-origin:0 50%;transform:scaleX(var(--jp,0));background:var(--gold-lit-hi);height:2px;top:calc(8px + 3.5px)}
  .statebar.spine a{flex-direction:column;gap:7px;padding:8px 2px 6px;width:100%;font-size:10.5px;letter-spacing:.1em;
    color:rgba(246,238,222,.92);text-shadow:0 1px 10px rgba(5,6,15,.95),0 0 2px rgba(5,6,15,.8)}
  .spine a i{border-color:rgba(var(--gold-lit-rgb),.95);box-shadow:0 0 0 1px rgba(5,6,15,.55)}
  .statebar.spine a.done{color:rgba(236,226,207,.86)}
  .statebar.spine a.on{color:var(--gold-lit-hi)}
}

/* the still page shows the spine too, while you read the five states (js/journey.js) */
html.static .statebar.spine{display:block}

/* ---------- 4. the hero strip ---------- */
.jstrip{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 10px;min-height:var(--tap);margin-top:14px;padding:0 10px;border-radius:999px;
  font:italic 400 clamp(17px,1.25vw,22px)/1.2 var(--serif);letter-spacing:.02em;color:var(--gold-lit-soft);text-shadow:var(--shade);transition:color .3s}
.jstrip i{font-style:normal;color:rgba(var(--gold-lit-rgb),.55)}
.jstrip:hover{color:var(--gold-lit-hi)}
@media (max-width:760px){.jstrip{margin-top:6px;gap:0 7px;font-size:16px}}

/* phone sizes for the word and the softer lines */
@media (max-width:760px){
  .jw__w{font-size:clamp(58px,17vw,74px)}
  .jw__pen{width:200px;height:16px;margin:0 auto}
  html:not([data-copy="V2"]) .block--state .state__n{margin-top:10px}
  html:not([data-copy="V2"]) .block--state .state__name{font-size:clamp(26px,7.2vw,32px);margin:6px 0 6px}
  html:not([data-copy="V2"]) .block--state .state__line{font-size:17px}
  html:not([data-copy="V2"]) .starline__w{font-size:clamp(68px,20vw,88px)}
}
@media (max-width:1023px),(max-aspect-ratio:21/20){.jw__pen{margin-inline:auto}}
