/* written by landing_page.py from jigsaw-draft.css, jigsaw-v4.css, jigsaw-v5.css, landing-extra.css */
/* Draft Jigsaw AIOS page (15 Nov 2026). Built on fleet.css; follows the landing page standard part A2: one heavy wow (the loop),
   mouse-only parallax in the first screen, text on solid navy, 240ms entrances, no rounded cards, green never used (nothing is live). */
.jg .nw{white-space:nowrap}

/* ---------- first screen: the ship (above the waterline) and its water (below) are two copies of one photo that drift apart ---------- */
.jg-hx{--sky:clamp(400px,54vh,500px);--imgh:max(58vw,calc(var(--sky)/var(--hz,.75)))}
html[data-theme=dark] .jg-hx[style*="--hzd"]{--imgh:max(58vw,calc(var(--sky)/var(--hzd)))}
.jg-hx .hx-pic:not(.jg-sea){clip-path:inset(0 0 calc(100% - var(--sky)) 0)}
.jg-hx .jg-sea{clip-path:inset(var(--sky) 0 0 0)}
.jg-hx .hx-pic img{transform:translate3d(calc(-50% + var(--px,0) * 8px),0,0)}
.jg-hx .jg-sea img{transform:translate3d(calc(-50% + var(--px,0) * 18px),0,0)}
.jg-hx .hx-water{background:linear-gradient(rgba(26,26,46,.25),#1A1A2E 34px)}
.jg-band{margin-top:34px;padding-top:6px;align-items:flex-end}
.jg-hd{max-width:900px}
.jg-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-bottom:8px;font-size:15.5px;color:var(--mist)}
.jg-crumb a{display:inline-flex;align-items:center;min-height:32px;color:#fff;text-decoration:underline;text-underline-offset:3px}
.jg-hx h1{font-weight:600}
.jg-nm{display:block;font:500 clamp(48px,6vw,88px)/1.02 var(--en);letter-spacing:-.045em}
.jg-hook{display:block;margin-top:10px;font-size:clamp(24px,2.4vw,36px);line-height:1.35;text-wrap:balance}
.jg-def{max-width:780px;margin-top:14px;font-size:clamp(17px,1.35vw,20px);line-height:1.65;color:#fff}
.jg-st{margin-top:12px;font-size:15px;font-weight:500;color:var(--mist)}
.jg-st::before{content:none}
.jg-st span{color:#fff;font-weight:500}
.jg-cta{flex:none}

.jg-draft{display:flex;align-items:flex-start;gap:10px;padding:12px var(--gut) 12px 56px;background:var(--navy2);color:#fff;font-size:15px;line-height:1.5}
.jg-draft b{flex:none;padding:1px 8px;background:#C81E17;font-weight:700}

/* ---------- shared section parts ---------- */
.jg-sec{padding:72px var(--gut) 72px 56px}
.jg-head h2{font-size:clamp(28px,3.2vw,48px);line-height:1.28;font-weight:600;text-wrap:balance}
.jg-ans{max-width:680px;margin-top:12px;font-size:clamp(18px,1.45vw,21px);line-height:1.6;color:var(--ink)}
.jg-plan{border-style:dashed}
.jg-rv-on [data-rv]:not(.in){opacity:0;transform:translateY(12px)}
[data-rv]{transition:opacity .24s var(--ease),transform .24s var(--ease)}

/* ---------- who has the problem ---------- */
.jg-who{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px 56px}
.jg-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
.jg-tab{min-height:60px;padding:10px 12px 10px 0;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;font:600 16.5px/1.35 var(--th);color:var(--ink2);text-align:left;cursor:pointer}
.jg-tab:hover{color:var(--ink)}
.jg-tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--red)}
.jg-panel{padding-top:6px}
.jg-panel:focus-visible{outline-offset:6px}
.jg-who .jg-role{display:none;margin-top:28px;font-size:20px;font-weight:700}
html:not(.js) .jg-tabs{display:none}
html:not(.js) .jg-who .jg-role{display:block}
.jg-pains li{position:relative;padding:16px 0 16px 24px;border-bottom:1px solid var(--line)}
.jg-pains li::before{content:"";position:absolute;left:0;bottom:30px;width:12px;height:2px;background:var(--red)}
.jg-cat{display:block;margin-bottom:4px;font:500 13.5px/1.4 var(--mono);color:var(--ink2)}
.jg-pains p{font-size:clamp(19px,1.65vw,24px);line-height:1.45;font-weight:500}
.jg-gain{margin-top:22px;padding:20px 24px;background:var(--navy);color:#fff}
[data-theme=dark] .jg-gain{background:var(--navy2);box-shadow:inset 3px 0 0 var(--red)}
.jg-lb{display:block;font:500 13.5px/1.4 var(--mono);color:#FF6A60}
.jg-gain p{margin-top:6px;font-size:clamp(19px,1.6vw,23px);line-height:1.5;font-weight:600}
.jg-gain .tag,.jg-now .tag{color:#fff;border-color:rgba(255,255,255,.62)}
.jg-gain .tag{margin-left:8px;vertical-align:3px;font-weight:500}

/* ---------- the loop (the one heavy wow): the red waterline runs into the ring and flows round it, part by part ---------- */
.jg-loop{position:relative}
.jg-loop-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"head pic" "steps pic" "end pic";gap:22px 48px;align-items:start;padding:72px var(--gut) 72px 56px}
.jg-loop .jg-head{grid-area:head}
.jg-loop .dl{color:#FF6A60}
.jg-loop .jg-ans{color:var(--mist)}
.jg-turn{margin-top:16px;padding-left:14px;border-left:3px solid var(--red);font-size:clamp(18px,1.45vw,21px);line-height:1.55;font-weight:600}
.jg-pic{grid-area:pic;align-self:center;min-width:0}
.jg-ring{display:block;width:100%;height:auto;overflow:visible}
.jg-in{fill:none;stroke:var(--red);stroke-width:3}
.jg-arc{fill:none;stroke:rgba(255,255,255,.3);stroke-width:12;stroke-dasharray:100}
.jg-hot{fill:none;stroke:var(--red);stroke-width:12;stroke-dasharray:100;stroke-dashoffset:0}
.jg-next{fill:none;stroke:var(--red);stroke-width:2.5;stroke-dasharray:100;stroke-dashoffset:100;opacity:.75;transition:stroke-dashoffset .7s var(--ease)}
.jg-lab{fill:var(--mist);font:600 27px var(--th);transition:fill .24s}
.jg-ico{fill:none;stroke:#fff;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;opacity:0;transition:opacity .24s}
.jg-ico .ln{stroke-dasharray:1;stroke-dashoffset:1}
@keyframes jg-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.jg-ico .hot{stroke:var(--red);stroke-width:2.6}
.jg-ico .soft{stroke:rgba(255,255,255,.55)}
.jg-ico .dash{stroke-dasharray:4 5}
.jg-ico .dot{fill:var(--red)}
.jg-ico text{fill:var(--mist);stroke:none;font:500 13px var(--mono);text-anchor:middle}
.jg-loop[data-step="0"] .jg-lab[data-i="0"],.jg-loop[data-step="1"] .jg-lab[data-i="1"],.jg-loop[data-step="2"] .jg-lab[data-i="2"],.jg-loop[data-step="3"] .jg-lab[data-i="3"],.jg-loop[data-step="4"] .jg-lab{fill:#FF6A60}
.jg-loop[data-step="0"] .jg-ico[data-i="0"],.jg-loop[data-step="1"] .jg-ico[data-i="1"],.jg-loop[data-step="2"] .jg-ico[data-i="2"],.jg-loop[data-step="3"] .jg-ico[data-i="3"],.jg-loop[data-step="4"] .jg-ico[data-i="4"]{opacity:1}
.jg-loop[data-step="0"] .jg-ico[data-i="0"] .ln,.jg-loop[data-step="1"] .jg-ico[data-i="1"] .ln,.jg-loop[data-step="2"] .jg-ico[data-i="2"] .ln,.jg-loop[data-step="3"] .jg-ico[data-i="3"] .ln,.jg-loop[data-step="4"] .jg-ico[data-i="4"] .ln{stroke-dashoffset:0;animation:jg-draw .5s var(--ease) .06s both}
.jg-loop[data-step="4"] .jg-next{stroke-dashoffset:0}
.jg-steps{grid-area:steps}
.jg-steps li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px;padding:13px 0 13px 16px;border-left:3px solid rgba(255,255,255,.2);transition:border-color .24s}
.jg-n{padding-top:5px;font:500 14px var(--mono);color:var(--mist)}
.jg-steps b{font-size:22px;font-weight:700;color:var(--mist);transition:color .24s}
.jg-steps p{margin-top:2px;font-size:17px;line-height:1.55;color:var(--mist)}
.jg-loop[data-step="0"] li[data-i="0"],.jg-loop[data-step="1"] li[data-i="1"],.jg-loop[data-step="2"] li[data-i="2"],.jg-loop[data-step="3"] li[data-i="3"],.jg-loop[data-step="4"] .jg-steps li{border-left-color:var(--red)}
.jg-loop[data-step="0"] li[data-i="0"] :is(b,p),.jg-loop[data-step="1"] li[data-i="1"] :is(b,p),.jg-loop[data-step="2"] li[data-i="2"] :is(b,p),.jg-loop[data-step="3"] li[data-i="3"] :is(b,p),.jg-loop[data-step="4"] .jg-steps :is(b,p){color:#fff}
.jg-end{grid-area:end;max-width:24em;font-size:clamp(19px,1.6vw,23px);line-height:1.5;font-weight:600;text-wrap:balance;transition:opacity .24s}
/* pinned only with a mouse, enough room and motion allowed: the stage stays for two screens of scrolling (three screens tall in all) */
.jg-loop.pin{height:300vh}
.jg-loop.pin .jg-loop-in{position:sticky;top:0;height:100vh;padding-top:92px;padding-bottom:24px;align-content:center}
.jg-loop.pin .jg-ring{max-height:calc(100vh - 130px)}
.jg-loop.pin:not([data-step="4"]) .jg-end{opacity:0}

/* ---------- pictures: chart-line drawings in a corner-marked frame on a faint chart grid, never a grey card ---------- */
.jg-fig{--c:var(--ink2);position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;margin:0 0 18px;
  background:
    linear-gradient(var(--c),var(--c)) 0 0/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 0 0/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 100% 0/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 0 100%/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 100% 100%/2px 16px no-repeat,
    linear-gradient(color-mix(in srgb,var(--line) 55%,transparent) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,color-mix(in srgb,var(--line) 55%,transparent) 1px,transparent 1px) 0 0/24px 24px}
.jg-fig svg{width:88%;height:auto;fill:none;stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.jg-fig .soft{stroke:var(--ink2);stroke-width:1}
.jg-fig .hot{stroke:var(--red);stroke-width:2.6}
.jg-fig .dot{fill:var(--red)}
.jg-fig .fill{fill:var(--bg)}
.jg-fig .hollow{fill:var(--bg);stroke-dasharray:4 4}
.jg-fig .dash{stroke-dasharray:6 6}
.jg-fig text{fill:var(--ink);stroke:none;font:500 14px var(--th)}
.jg-fig .hotx{fill:var(--link)}
.jg-fig .mid{text-anchor:middle}
.jg-fig figcaption{position:absolute;right:12px;bottom:8px;font:500 12.5px var(--mono);color:var(--ink2)}
.jg-beats .jg-fig .fill,.jg-beats .jg-fig .hollow{fill:var(--bg2)}

/* ---------- real questions, short answers ---------- */
.jg-qs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 32px;margin-top:40px}
.jg-qs>li{padding-top:16px;border-top:2px solid var(--ink)}
.jg-qs h3{font-size:clamp(20px,1.6vw,24px);line-height:1.4;font-weight:600;text-wrap:balance}
.jg-qs p{margin-top:8px;font-size:17.5px;line-height:1.6}
.jg-qs .jg-state{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:14px;font-size:15px;color:var(--ink2)}
.jg-s{display:inline-flex;align-items:center;gap:8px}
.jg-trust{max-width:860px;margin-top:48px;padding:18px 22px;border-left:3px solid var(--red);background:var(--bg2);font-size:18px;line-height:1.6}
.jg-trust b{display:block;font:500 13.5px var(--mono);color:var(--link)}

/* ---------- key moments per role (simulated) ---------- */
.jg-beats{background:var(--bg2)}
.jg-sim{display:inline-block;margin-top:12px;padding:3px 10px;border:1px dashed var(--ink2);font:500 13.5px var(--mono);color:var(--ink2)}
.jg-lanes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin-top:36px}
.jg-lanes>li{padding-top:14px;border-top:2px solid var(--ink)}
.jg-lanes .jg-role{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;font-size:20px;font-weight:700}
.jg-fig-s{margin-bottom:16px}
.jg-beat li{position:relative;padding:0 0 18px 28px;font-size:17px;line-height:1.55}
.jg-beat li::before{content:"";position:absolute;left:0;top:6px;width:12px;height:12px;border:2px solid var(--ink);border-radius:50%;background:var(--bg2)}
.jg-beat li:not(:last-child)::after{content:"";position:absolute;left:7px;top:21px;bottom:3px;width:1px;background:var(--ink2)}
.jg-beat li:last-child::before{background:var(--red);border-color:var(--red)}

/* ---------- where it is now ---------- */
.now.jg-now{align-items:start}
.jg-now h2{margin-top:8px;font-size:clamp(24px,2.4vw,34px);line-height:1.35;font-weight:600;text-wrap:balance}
.jg-sb{margin-top:8px}
.jg-big{margin-top:12px;font-size:clamp(44px,5vw,76px);line-height:1.1;font-weight:600}
.jg-h{margin-bottom:10px;font-size:22px;font-weight:600}
.jg-h2{margin-top:26px}
.jg-plans li{align-items:center}

/* ---------- where it came from, FAQ, follow ---------- */
.jg-say{font-size:clamp(22px,2.2vw,32px);line-height:1.5;font-weight:500}
.jg-say2{margin-top:16px;font-size:18px;line-height:1.65}
.join .jg-jh{margin-top:0;font-size:clamp(26px,2.6vw,40px);line-height:1.32;font-weight:600;color:var(--ink);text-wrap:balance}
.jg-mh{font-size:clamp(28px,3.6vw,56px);line-height:1.28;font-weight:600}
.jg-faqs li{padding:20px 0;border-top:1px solid var(--line)}
.jg-faqs li:last-child{border-bottom:1px solid var(--line)}
.jg-faqs h3{font-size:clamp(19px,1.6vw,23px);line-height:1.4;font-weight:600}
.jg-faqs p{margin-top:6px;font-size:17.5px;line-height:1.6}

@media (max-width:1100px){
  .jg-qs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jg-lanes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .jg-sec,.jg-loop-in{padding:44px var(--gut) 44px 44px}
  .jg-draft{padding-left:44px}
  .jg-who{grid-template-columns:minmax(0,1fr)}
  .jg-loop-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "pic" "steps" "end"}
  .jg-pic{max-width:560px}
  .jg-band{flex-direction:column;align-items:flex-start}
  .jg-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jg-tab{min-height:52px}
}
@media (max-width:768px){
  .jg-qs,.jg-lanes{grid-template-columns:minmax(0,1fr)}
  .jg-hx{--sky:clamp(220px,32vh,270px);--imgh:max(150vw,calc(var(--sky)/var(--hz,.75)))}
  .jg-cta,.jg-cta .btn{width:100%}
  .jg-cta .btn{white-space:normal;text-align:center}
  .jg-lab{font-size:38px}
}
/* phones: the whole ship fits the width and sits in the middle */
@media (max-width:460px){
  .jg-hx{--sky:240px;--imgh:calc(var(--sky)/var(--hz,.75))}
  html[data-theme=dark] .jg-hx[style*="--hzd"]{--imgh:calc(var(--sky)/var(--hzd))}
  .jg-hx .hx-pic img,.jg-hx .jg-sea img{transform:translate3d(-65%,0,0)}
}
@media (prefers-reduced-motion:reduce){
  [data-rv],.jg-next,.jg-lab,.jg-ico,.jg-steps li,.jg-steps b,.jg-end{transition:none}
  .jg-ico .ln{animation:none!important}
}

/* Jigsaw AIOS draft round 4: the dive. Loaded after jigsaw-draft.css and overrides it.
   Motion values measured on award sites in a browser (owner gate): Cerebrium reveals 800ms, 19px rise, scale .95,
   cubic-bezier(.645,.045,.355,1), 100-200ms stagger · Optikka chapter length 2-4.5 screens of scrolling. */
.jg4{--jg-dur:.8s;--jg-ease:cubic-bezier(.645,.045,.355,1);--jg-rise:19px;--deep:#11111F}

/* entrance: fade + 19px rise, 800ms (measured) */
.jg-rv-on [data-rv]:not(.in){opacity:0;transform:translateY(var(--jg-rise))}
.jg4 [data-rv]{transition:opacity var(--jg-dur) var(--jg-ease),transform var(--jg-dur) var(--jg-ease)}
@keyframes jg-in{from{opacity:0;transform:translateY(19px)}to{opacity:1;transform:none}}

/* ---------- first screen: three days of telling the AI the same thing ---------- */
.jg-days{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:16px}
.jg-day{display:inline-flex;align-items:baseline;gap:8px;padding:7px 12px;border-left:2px solid rgba(255,255,255,.4);background:rgba(255,255,255,.07);font-size:15px;line-height:1.4;color:var(--mist)}
.jg-day b{color:#fff;font-weight:600;white-space:nowrap}
.jg-day:last-child{border-left-color:var(--red);color:#fff}
.jg-rv-on .jg-day{animation:jg-in var(--jg-dur) var(--jg-ease) both;animation-delay:calc(.5s + var(--i) * .7s)}
.jg-dive{display:block;margin-top:10px;font:500 13.5px var(--mono);color:var(--mist);text-align:right}

/* ---------- depth meter on the red gauge (desktop) ---------- */
.jg-meter{position:fixed;left:2px;top:50%;z-index:20;display:none;align-items:center;gap:0;transform:translateY(-50%);pointer-events:none;opacity:0;transition:opacity .3s}
.jg-meter.on{opacity:1}
.jg-meter span{padding:2px 5px;background:#C81E17;color:#fff;font:600 11px var(--mono);white-space:nowrap}
@media (min-width:1100px) and (hover:hover){.jg-meter{display:flex}}

/* ---------- −10 m: the same problem, seen from four seats ---------- */
.jg-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin-top:36px}
.jg-cols .jg-role{display:block;padding-bottom:10px;border-bottom:2px solid var(--ink);font-size:19px;font-weight:700}
.jg-cols li li{position:relative;padding:13px 0 13px 22px;border-bottom:1px solid var(--line);font-size:18px;line-height:1.5;transition:opacity var(--jg-dur) var(--jg-ease) calc(var(--i) * 120ms),transform var(--jg-dur) var(--jg-ease) calc(var(--i) * 120ms)}
.jg-cols li li::before{content:"";position:absolute;left:0;top:25px;width:12px;height:2px;background:var(--red)}
.jg-rv-on .jg-cols>li:not(.in) li{opacity:0;transform:translateY(var(--jg-rise))}

/* ---------- −40 m: the bottom and the turn (one pinned stage, the page's big moment) ---------- */
.jg-deep{position:relative;background:var(--deep);color:#fff}
.jg-deep-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px 48px;align-items:center;padding:72px var(--gut) 72px 56px}
.jg-deep .dl{color:#FF6A60}
.jg-deep .jg-ans{color:var(--mist)}
.jg-loss{margin-top:16px;padding-left:14px;border-left:3px solid var(--red);font-size:clamp(18px,1.45vw,21px);line-height:1.55;font-weight:600}
.jg-bridge{margin:28px 0;font-size:clamp(24px,2.4vw,34px);line-height:1.35;font-weight:600;color:#fff}
.jg-h2b{font-size:clamp(28px,3vw,44px);line-height:1.28;font-weight:600;text-wrap:balance}
.jg-deep .jg-steps{margin-top:18px}
.jg-credit{margin-top:14px;font:500 14px var(--mono);color:var(--mist)}
.jg-deep .jg-end{margin-top:16px;max-width:none}
.jg-deep .jg-pic,.jg-deep .jg-steps,.jg-deep .jg-end{grid-area:auto}
.jg-pic{min-width:0}
.jg-stage{display:block;width:100%;height:auto;overflow:visible}
.jg-deep-in{position:relative}
.jg-deep-in::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 70% 60% at 62% 0%,rgba(255,255,255,.12),transparent 70%);opacity:var(--light,1);transition:opacity .4s}
.jg-cap{fill:var(--mist);font:500 15px var(--mono);text-anchor:middle;letter-spacing:.04em}
.jg-hole{fill:none;stroke:rgba(255,255,255,.38);stroke-width:1.5;stroke-dasharray:5 5}
.jg-pc{transform-box:fill-box;transform-origin:center}
.jg-pc path{fill:#25253F;stroke:rgba(255,255,255,.5);stroke-width:1.5;stroke-linejoin:round}
.jg-fall path{fill:#2E2E50;stroke:#fff}
.jg-pc text,.jg-lesson text{fill:#fff;stroke:none;font:600 14px var(--th);text-anchor:middle}
.jg-lesson{transform-box:view-box;transform-origin:0 0;transform:translate(366px,320px)}
.jg-lesson path{fill:var(--red);stroke:#fff;stroke-width:2;stroke-linejoin:round}
.jg-lesson text{font-weight:700}
.jg-deep .f2{opacity:0}
.jg-arc{stroke:rgba(255,255,255,.22);stroke-width:10}
.jg-hot{fill:none;stroke:var(--red);stroke-width:10;stroke-dasharray:100;stroke-dashoffset:0}
.jg-next{opacity:.7}
.jg-deep .jg-lab{fill:var(--mist);font:600 26px var(--th);transition:fill .3s,opacity .6s}
.jg-deep.pin:not(.ring) .jg-lab{opacity:0}
.jg-deep[data-step="0"] .jg-lab[data-i="0"],.jg-deep[data-step="1"] .jg-lab[data-i="1"],.jg-deep[data-step="2"] .jg-lab[data-i="2"],.jg-deep[data-step="3"] .jg-lab[data-i="3"],.jg-deep[data-step="4"] .jg-lab{fill:#FF6A60}
.jg-deep[data-step="4"] .jg-next{stroke-dashoffset:0}
.jg-deep .jg-steps li{border-left-color:rgba(255,255,255,.2)}
.jg-deep[data-step="0"] li[data-i="0"],.jg-deep[data-step="1"] li[data-i="1"],.jg-deep[data-step="2"] li[data-i="2"],.jg-deep[data-step="3"] li[data-i="3"],.jg-deep[data-step="4"] .jg-steps li{border-left-color:var(--red)}
.jg-deep[data-step="0"] li[data-i="0"] :is(b,p),.jg-deep[data-step="1"] li[data-i="1"] :is(b,p),.jg-deep[data-step="2"] li[data-i="2"] :is(b,p),.jg-deep[data-step="3"] li[data-i="3"] :is(b,p),.jg-deep[data-step="4"] .jg-steps :is(b,p){color:#fff}

/* pinned: three screens tall, so the story plays over two screens of scrolling (Optikka's chapters run 2-4.5) */
.jg-deep.pin{height:400vh}
.jg-deep.pin .jg-deep-in{position:sticky;top:0;height:100vh;padding-top:88px;padding-bottom:20px}
.jg-deep.pin .jg-stage{max-height:calc(100vh - 116px)}
.jg-deep.pin .jg-txt{display:grid}
.jg-deep.pin .jg-txt>*{grid-area:1/1;align-self:center;margin:0;transition:opacity .6s var(--jg-ease),transform .6s var(--jg-ease)}
.jg-deep.pin .jg-txt>:not(.on){opacity:0;transform:translateY(var(--jg-rise));pointer-events:none}
.jg-deep.pin:not([data-step="4"]) .jg-end,.jg-deep.pin:not(.lit) .jg-credit{opacity:0}
.jg-deep.pin .jg-end,.jg-deep.pin .jg-credit{transition:opacity .6s}

/* phones, touch screens and tablets: no pinned stage; the pieces fall back into place once when the picture comes into view */
.jg-deep.prep .f1{transform:translate(70px,300px) rotate(28deg);opacity:.25}
.jg-deep.prep .f3{transform:translate(20px,200px) rotate(16deg);opacity:.25}
.jg-deep.prep .jg-lesson{transform:translate(200px,320px) scale(.5)}
.jg-deep.prep .jg-hot{stroke-dashoffset:100}
.jg-deep.play .f1{animation:jg-ret1 var(--jg-dur) var(--jg-ease) .2s both}
.jg-deep.play .f3{animation:jg-ret3 var(--jg-dur) var(--jg-ease) .35s both}
.jg-deep.play .jg-hot{animation:jg-arcs .5s var(--jg-ease) both}
.jg-deep.play .jg-hot[data-i="1"]{animation-delay:.5s}
.jg-deep.play .jg-hot[data-i="2"]{animation-delay:1s}
.jg-deep.play .jg-hot[data-i="3"]{animation-delay:1.5s}
.jg-deep.play .jg-lesson{animation:jg-lock var(--jg-dur) var(--jg-ease) 2s both}
@keyframes jg-ret1{from{transform:translate(70px,300px) rotate(28deg);opacity:.25}to{transform:none;opacity:1}}
@keyframes jg-ret3{from{transform:translate(20px,200px) rotate(16deg);opacity:.25}to{transform:none;opacity:1}}
@keyframes jg-arcs{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes jg-lock{from{transform:translate(200px,320px) scale(.5)}to{transform:translate(366px,320px) scale(1)}}

/* ---------- −30 m ↑: what is → what Jigsaw does ---------- */
.jg-help .jg-qs{grid-template-columns:repeat(2,minmax(0,1fr));gap:52px 40px}
.jg-help .jg-fig{transition:opacity var(--jg-dur) var(--jg-ease),transform var(--jg-dur) var(--jg-ease)}
.jg-rv-on .jg-pair:not(.in) .jg-fig{opacity:0;transform:translateY(var(--jg-rise)) scale(.95)}
.jg-before,.jg-after{display:flex;flex-direction:column;gap:2px;margin-top:10px}
/* the answer comes first for search and screen readers; the eye still reads "before" then "with Jigsaw" */
.jg-pair{display:flex;flex-direction:column}
.jg-pair .jg-fig{order:0}.jg-pair h3{order:1}.jg-pair .jg-before{order:2}.jg-pair .jg-after{order:3}.jg-pair .jg-state{order:4}
.jg-k{font:500 13px var(--mono);color:var(--ink2)}
.jg-was{align-self:flex-start;font-size:18px;line-height:1.55;color:var(--ink2);background:linear-gradient(var(--red),var(--red)) 0 60%/100% 2px no-repeat;-webkit-box-decoration-break:clone;box-decoration-break:clone;transition:background-size var(--jg-dur) var(--jg-ease) .3s}
.jg-rv-on .jg-pair:not(.in) .jg-was{background-size:0 2px}
.jg-after{font-size:19px;line-height:1.55;font-weight:600;transition:opacity var(--jg-dur) var(--jg-ease) .7s,transform var(--jg-dur) var(--jg-ease) .7s}
.jg-after .jg-k{color:var(--link)}
.jg-rv-on .jg-pair:not(.in) .jg-after{opacity:0;transform:translateY(var(--jg-rise))}

/* ---------- −20 m ↑: you, compared only with yourself ---------- */
.jg-grow-in{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:32px 56px;align-items:center}
.jg-why{max-width:600px;margin-top:14px;font-size:18px;line-height:1.6}
.jg-grow-fig{margin:0;position:relative}
.jg-grow-fig figcaption{position:absolute;right:0;bottom:0;font:500 12.5px var(--mono);color:var(--ink2)}
.jg-stairs{display:block;width:100%;height:auto;fill:none;stroke:var(--ink);stroke-width:1.6}
.jg-st{transform-box:fill-box;transform-origin:center;transition:opacity var(--jg-dur) var(--jg-ease) calc(var(--i) * 150ms),transform var(--jg-dur) var(--jg-ease) calc(var(--i) * 150ms)}
.jg-st path{fill:var(--bg2);stroke:var(--ink);stroke-width:1.6}
.jg-st[data-i="3"] path{fill:var(--red);stroke:var(--red)}
.jg-st text{fill:var(--ink);stroke:none;font:600 13px var(--th);text-anchor:middle}
.jg-grow-fig{max-width:560px;justify-self:end;width:100%}
.jg-stairs .ln{stroke:var(--ink2)}
.jg-only{fill:var(--ink2);stroke:none;font:500 13px var(--mono)}
.jg-rv-on .jg-grow-fig:not(.in) .jg-st{opacity:0;transform:translateY(24px)}

/* ---------- −15 m ↑: pick your seat ---------- */
.jg-roles-in{margin-top:28px}
.jg-roles .jg-role{display:none}
html:not(.js) .jg-roles .jg-role{display:block;margin-top:28px;font-size:20px;font-weight:700}
.jg-panel-row{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px;margin-top:20px;align-items:start}
.jg-panel-row .jg-fig{margin:0}
.jg-beat{margin-top:6px}
.jg-roles .jg-beat li::before{background:var(--bg)}
.jg-rv-on .jg-panel:not([hidden]) .jg-beat li{animation:jg-in var(--jg-dur) var(--jg-ease) both;animation-delay:calc(var(--i) * 150ms)}

/* ---------- −10 m ↑: where it is now, who sees what, money last ---------- */
.jg-now .jg-trust{max-width:none;margin-top:28px;background:rgba(255,255,255,.06);color:#fff}
.jg-now .jg-trust b{color:#FF6A60}
.jg-money{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.22)}
.jg-money h3{font-size:clamp(19px,1.6vw,23px);line-height:1.4;font-weight:600}
.jg-money p{margin-top:6px;font-size:17.5px;line-height:1.6;color:#fff}
.jg-money .jg-state{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--mist);font-size:15px}
.jg-money .tag{color:#fff;border-color:rgba(255,255,255,.62)}
.jg-now .lad span{transition:border-color .5s var(--jg-ease)}
.jg-now .lad span:nth-child(2){transition-delay:.15s}
.jg-now .lad span:nth-child(3){transition-delay:.3s}
.jg-now .lad span:nth-child(4){transition-delay:.45s}
.jg-rv-on .jg-now [data-rv]:not(.in) .lad span{border-color:rgba(255,255,255,.3)}

/* ---------- −5 m ↑: where it came from, lit line by line as you read ---------- */
.jg-say .jg-ln{display:block;transition:opacity .5s var(--jg-ease)}
.jg-say.lr .jg-ln:not(.lit){opacity:.3}

/* ---------- 0 m: back at the surface ---------- */
.jg-surface{position:relative;height:clamp(220px,34vh,320px);overflow:hidden;background:var(--navy)}
.jg-surface .hx-pic{position:absolute;inset:0}
.jg-surface .hx-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.jg-surface-line{position:absolute;left:0;right:0;top:62%;height:2px;background:var(--red);transform-origin:left;transition:transform 1.2s var(--jg-ease)}
.jg-rv-on .jg-surface:not(.in) .jg-surface-line{transform:scaleX(0)}
.jg-surface-tx{position:absolute;left:56px;bottom:14px;padding:4px 10px;background:rgba(26,26,46,.82);color:#fff;font:500 14px var(--mono)}

@media (max-width:1100px){
  .jg-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* short screens (laptops 720-880 tall, tablets): the follow button stays inside the first screen */
@media (min-width:461px) and (max-height:880px){
  .jg-hx{--sky:clamp(300px,42vh,420px)}
  .jg-band{margin-top:28px}
}
@media (max-width:900px){
  .jg-deep-in{grid-template-columns:minmax(0,1fr);padding:44px var(--gut) 44px 44px}
  .jg-grow-in,.jg-panel-row{grid-template-columns:minmax(0,1fr)}
  .jg-help .jg-qs{grid-template-columns:minmax(0,1fr)}
  .jg-surface-tx{left:44px}
}
@media (max-width:600px){
  .jg-cols{grid-template-columns:minmax(0,1fr)}
  .jg-day{font-size:14px}
  .jg-day:not(:last-child){display:none}
  .jg-dive{text-align:left}
}
@media (prefers-reduced-motion:reduce){
  .jg4 [data-rv],.jg-cols li li,.jg-was,.jg-after,.jg-st,.jg-surface-line,.jg-say .jg-ln,.jg-now .lad span,.jg-deep .jg-lab{transition:none}
  .jg-day,.jg-beat li,.jg-deep *{animation:none!important}
}
/* short phones (about 667 tall): smaller ship and no breadcrumb, so the follow button stays near the first screen */
@media (max-width:460px) and (max-height:700px){
  .jg-hx{--sky:190px}
  .jg-crumb{display:none}
  .jg-band{margin-top:22px}
}

/* ===================== round 4.2 (design critic, 15 Nov evening) ===================== */
/* motion values: only the measured ones (800ms, 19px, 100-200ms stagger) */
.jg-rv-on .jg-day{animation-delay:calc(.5s + var(--i) * .2s)}
.jg-deep.pin .jg-txt>*,.jg-deep.pin .jg-end,.jg-deep.pin .jg-credit,.jg-say .jg-ln,.jg-surface-line{transition-duration:.8s}

/* pieces with depth: gradient, light edge, shadow (no flat boxes) */
.jg-pc path{fill:url(#jg-g1);stroke:rgba(255,255,255,.4);filter:url(#jg-sh)}
.jg-fall path{stroke:rgba(255,255,255,.85)}
.jg-pc text{font-size:15px}
.jg-deep .jg-fall{opacity:0}
.jg-lesson path,.jg-new path{fill:url(#jg-g2);stroke:#fff;stroke-width:2;filter:url(#jg-sh)}
.jg-lesson text{font:700 17px var(--th)}
.jg-lesson .jg-small{font:600 13px var(--th)}
.jg-new{transform-box:fill-box;transform-origin:center}
.jg-new text{fill:#fff;font:700 15px var(--th);text-anchor:middle}

/* stills where the stage is not pinned */
.jg-frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-width:0}
.jg-frame{margin:0;background:rgba(255,255,255,.04);padding:10px 10px 14px}
.jg-frame svg{display:block;width:100%;height:auto;overflow:hidden}
.jg-frame figcaption{margin-top:8px;font-size:15.5px;line-height:1.5;color:#fff}
.jg-frame .jg-arc,.jg-frame .jg-hot,.jg-frame .jg-next,.jg-frame .jg-lab{display:none}
.st-a .jg-fall{opacity:1}
.st-a .jg-lesson,.st-a .jg-new,.st-b .jg-lesson,.st-b .jg-new{opacity:0}
.jg-rv-on .jg-frame:not(.in){opacity:0;transform:translateY(var(--jg-rise))}
.jg-frame{transition:opacity var(--jg-dur) var(--jg-ease),transform var(--jg-dur) var(--jg-ease)}
.jg-frame:nth-child(2){transition-delay:.15s}.jg-frame:nth-child(3){transition-delay:.3s}

/* −10 m: the light page darkens into the dive, no hard cut */
.jg-probs{padding-bottom:0}
.jg-sink{margin:56px calc(-1 * var(--gut)) 0 -56px;padding:26vh var(--gut) 64px 56px;background:linear-gradient(to bottom,transparent,var(--deep) 62%);color:#fff;font-size:clamp(22px,2.3vw,34px);line-height:1.4;font-weight:600;text-wrap:balance}

/* the ascent gets lighter section by section, back to the surface */
.jg-help{--bg:#1C1C33;--bg2:#26264A;--ink:#fff;--ink2:#C3C7D8;--line:#3A3A5C;--link:#FF7A70;background:var(--bg);color:var(--ink)}
.jg-help .dl{color:#FF7A70}
html:not([data-theme=dark]) .jg-grow{--bg:#E3E6EF;--bg2:#F3F4F8;background:var(--bg)}
html:not([data-theme=dark]) .jg-roles{--bg:#EEF0F5;--bg2:#F8F9FB;background:var(--bg)}
[data-theme=dark] .jg-grow{--bg:#1F1F38;--bg2:#2A2A48;background:var(--bg)}
[data-theme=dark] .jg-roles{--bg:#23233F;--bg2:#2D2D4D;background:var(--bg)}
[data-theme=dark] .jg-now,[data-theme=dark] .jg-origin,[data-theme=dark] .jg-faq{background:#26264A}
[data-theme=dark] .jg-now{--bg2:#30305A}

/* −10 m status on a light page (light theme): dark text, same layout */
html:not([data-theme=dark]) .jg-now{background:#FAFAFC;color:var(--ink)}
html:not([data-theme=dark]) .jg-now .dl,html:not([data-theme=dark]) .jg-now li b{color:var(--link)}
html:not([data-theme=dark]) .jg-now .lb,html:not([data-theme=dark]) .jg-now .sb{color:var(--ink)}
html:not([data-theme=dark]) .jg-now li{border-top-color:var(--line)}
html:not([data-theme=dark]) .jg-now .lad span{color:var(--ink2);border-top-color:var(--line)}
html:not([data-theme=dark]) .jg-now .lad .d{border-top-color:var(--ink)}
html:not([data-theme=dark]) .jg-now .lad .c{border-top-color:var(--red);color:var(--ink)}
html:not([data-theme=dark]) .jg-now .tag{color:var(--ink);border-color:var(--ink2)}
html:not([data-theme=dark]) .jg-now .jg-trust{background:#EEF0F5;color:var(--ink)}
html:not([data-theme=dark]) .jg-now .jg-trust b{color:var(--link)}
.jg-rv-on html:not([data-theme=dark]) .jg-now [data-rv]:not(.in) .lad span{border-color:var(--line)}

/* −30 m ↑: four rows on one screen, "before" on the left, "with Jigsaw" on the right, struck one row after another */
.jg-help .jg-qs{grid-template-columns:minmax(0,1fr);gap:0;margin-top:32px}
.jg-help .jg-pair{display:grid;grid-template-columns:200px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"fig q q" "fig before after" "fig state state";gap:6px 32px;padding:22px 0;border-top:1px solid var(--line);align-items:start}
.jg-help .jg-qs>li.jg-pair{border-top:1px solid var(--line)}
.jg-help .jg-pair .jg-fig{grid-area:fig;margin:0;aspect-ratio:16/10}
.jg-help .jg-pair h3{grid-area:q}
.jg-help .jg-pair .jg-before{grid-area:before;margin-top:4px}
.jg-help .jg-pair .jg-after{grid-area:after;margin-top:4px}
.jg-help .jg-pair .jg-state{grid-area:state;margin-top:6px}

/* −20 m ↑: pride gets a full screen and a bigger picture */
.jg-grow{min-height:100vh;display:flex;align-items:center}
.jg-grow-in{width:100%}
.jg-grow-fig{max-width:660px}
.jg-st text{font-size:13.5px}

/* −5 m ↑: the four lines are the voice; the heading steps back */
.jg-origin h2{font-size:clamp(22px,2vw,30px)}
.jg-origin .jg-say{font-size:clamp(28px,3vw,46px);line-height:1.4}

/* 0 m: back at the surface, the ship at full height, the follow form on solid navy over the water */
.jg-surface.join{display:block;position:relative;min-height:92vh;padding:0;background:var(--navy);overflow:hidden;color:#fff}
.jg-surf-pic{position:absolute;inset:0}
.jg-surf-pic .hx-pic{position:absolute;inset:0}
.jg-surf-pic .hx-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% calc(var(--hz) * 100%)}
.jg-surf-pic .jg-surface-line{top:calc(var(--hz) * 100%)}
[data-theme=dark] .jg-surf-pic .hx-pic img{object-position:50% calc(var(--hzd) * 100%)}
[data-theme=dark] .jg-surf-pic .jg-surface-line{top:calc(var(--hzd) * 100%)}
.jg-surf-panel{position:absolute;left:56px;right:var(--gut);bottom:48px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px 40px;align-items:end;padding:28px 32px;background:var(--navy);--ink:#fff;--ink2:#C9D0DE;--line:rgba(255,255,255,.3);color:#fff}
.jg-surf-panel .dl{color:#FF6A60}
.jg-surf-panel .jg-jh{color:#fff}
.jg-jp{margin-top:8px;font-size:17px;color:var(--mist)}
.jg-surf-panel .fld{border-color:rgba(255,255,255,.7)}
.jg-surf-panel .fld input{color:#fff}
.jg-surf-panel .line-add{color:#fff;border-color:rgba(255,255,255,.7)}
.jg-surf-panel .pg-fine,.jg-surf-panel .line-or{color:var(--mist)}

@media (max-width:900px){
  .jg-frames{grid-template-columns:minmax(0,1fr)}
  .jg-help .jg-pair{grid-template-columns:minmax(0,1fr);grid-template-areas:"fig" "q" "before" "after" "state"}
  .jg-help .jg-pair .jg-fig{max-width:300px}
  .jg-grow{min-height:0}
  .jg-surface.join{min-height:0}
  .jg-surf-pic{position:relative;height:46vh}
  .jg-surf-panel{position:static;grid-template-columns:minmax(0,1fr);padding:28px var(--gut) 36px 44px}
  .jg-sink{margin-left:-44px;padding-left:44px}
}
@media (prefers-reduced-motion:reduce){ .jg-frame{transition:none} }
/* the closing line of −10 m sits on solid deep water; only the space above it fades */
.jg-sink{position:relative;margin-top:calc(56px + 26vh);padding-top:40px;background:var(--deep)}
.jg-sink::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:26vh;background:linear-gradient(to bottom,transparent,var(--deep))}
/* ===================== round 4.3 (design critic round 2) ===================== */
.jg-pc text,.jg-new text{font-size:14.5px}
.jg-lesson text{font-size:16px}
.jg-now .lad span,.jg-deep .jg-lab{transition-duration:.8s}
/* −30 m: bigger thumbnails, caption below the drawing */
.jg-help .jg-pair{grid-template-columns:280px minmax(0,1fr) minmax(0,1fr)}
.jg-help .jg-thumb{aspect-ratio:auto;padding-bottom:22px;display:block}
.jg-help .jg-thumb svg{display:block;width:100%}
.jg-help .jg-thumb figcaption{position:static;margin-top:4px;text-align:right}
/* −30 → −20 m (light theme): the dark water fades up into the light, no hard cut */
html:not([data-theme=dark]) .jg-grow{position:relative;padding-top:calc(72px + 18vh)}
html:not([data-theme=dark]) .jg-grow::before{content:"";position:absolute;left:0;right:0;top:0;height:18vh;background:linear-gradient(to bottom,#1C1C33,#E3E6EF)}
/* stills placed inside the story (phones, reduced motion): complete + holes after the loss, the mended picture after the loop */
.jg-deep:not(.pin) .jg-deep-in{grid-template-columns:minmax(0,1fr)}
.jg-deep:not(.pin) .jg-txt{max-width:980px}
.jg-frames{margin:24px 0}
.jg-frames-ab{grid-template-columns:repeat(2,minmax(0,1fr))}
.jg-frames-c{grid-template-columns:minmax(0,1fr);max-width:480px}
@media (max-width:900px){.jg-frames-ab{grid-template-columns:minmax(0,1fr)}}
/* "other ships" line on the same left edge as every heading (the row itself starts 24px in) */
.jg4 .more{padding-left:32px}
@media (max-width:900px){.jg4 .more{padding-left:20px}}
/* the old fixed strip height must not clip the finale (phones showed no form) */
.jg-surface.join{height:auto}

/* Jigsaw AIOS round 5: everything in a centred frame, a contents menu on the left (owner, 16 Nov 2026).
   Premium values measured in a browser: The Explora Journal (text frame 1248px with 96px margins at 1440, warm paper #F4F2EF,
   weight-400 headings, about 940px between sections, pictures inside the frame) · Tengile Malamala (light display type, tight
   tracking, small tracked labels) · Cerebrium (reveals 800ms, 19px). Loaded after jigsaw-draft.css and jigsaw-v4.css. */
.jg5{--toc:224px;--paper:#F4F2EF;--paper2:#ECE7E0;--hair:#D9D2C8}
html:not([data-theme=dark]) .jg5{--bg:var(--paper);--bg2:var(--paper2);--line:var(--hair);--ink:#22201F;--ink2:#58524C;background:var(--paper);color:var(--ink)}
[data-theme=dark] .jg5{background:var(--navy)}
html:has(.jg5){scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html:has(.jg5){scroll-behavior:auto}}
.jg5-frame{max-width:1296px;margin:0 auto;padding:0 24px}

/* ---------- first screen: text on the left, the ship on the right, both inside the frame ---------- */
.jg5-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:56px;align-items:center;padding:calc(var(--hh) + 48px) 0 56px}
.jg5 .jg-crumb{color:var(--ink2)}
.jg5 .jg-crumb a{color:var(--ink)}
.jg5-eyebrow,.jg5 .dl{display:block;font:500 12.5px var(--mono);letter-spacing:.14em;color:var(--link)}
.jg5-eyebrow{margin:6px 0 14px}
.jg5-hero h1{font-weight:400;color:var(--ink)}
.jg5 .jg-nm{font:500 clamp(48px,5vw,78px)/1 var(--en);letter-spacing:-.045em}
.jg5 .jg-hook{margin-top:14px;font-size:clamp(26px,2.3vw,34px);font-weight:400;line-height:1.35}
.jg5 .jg-def{max-width:560px;margin-top:18px;color:var(--ink2);font-size:18px;line-height:1.75}
.jg5 .jg-st{margin-top:14px;color:var(--ink2)}
.jg5 .jg-st span{color:var(--ink)}
.jg5 .trk i{background:var(--line)}
.jg5 .trk i.d{background:var(--ink)}
.jg5 .trk i.c{background:var(--red)}
.jg5 .jg-day{background:transparent;border-left-color:var(--line);color:var(--ink2)}
.jg5 .jg-day b{color:var(--ink)}
.jg5 .jg-day:last-child{border-left-color:var(--red);color:var(--ink)}
.jg5-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin-top:28px}
.jg5-down{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;color:var(--ink);box-shadow:inset 0 -1px 0 currentColor}
.jg5-hero-pic{position:relative;margin:0;aspect-ratio:1/1;overflow:hidden;background:var(--navy)}
.jg5-hero-pic .hx-pic{position:absolute;inset:0}
.jg5-hero-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:66% calc(var(--hz) * 100%)}
.jg5-line{position:absolute;left:0;right:0;top:calc(var(--hz) * 100%);height:2px;background:var(--red)}
[data-theme=dark] .jg5-hero-pic img{object-position:66% calc(var(--hzd) * 100%)}
[data-theme=dark] .jg5-line{top:calc(var(--hzd) * 100%)}
.jg5 .jg-draft{margin:0 0 56px;padding:12px 16px}

/* ---------- contents menu (left) + the story (right) ---------- */
.jg5-body{display:grid;grid-template-columns:var(--toc) minmax(0,1fr);gap:64px;align-items:start}
.jg5-toc{position:sticky;top:calc(var(--hh) + 28px);max-height:calc(100vh - var(--hh) - 56px);overflow:auto}
.jg5-toc-h{margin-bottom:14px;font:500 12.5px var(--mono);letter-spacing:.14em;color:var(--ink2)}
.jg5-toc ol{border-left:2px solid var(--line)}
.jg5-toc a{display:flex;align-items:center;min-height:44px;margin-left:-2px;padding:10px 0 10px 14px;border-left:2px solid transparent;color:var(--ink2);font-size:15.5px;line-height:1.4;transition:color .3s,border-color .3s}
.jg5-toc a:hover{color:var(--ink)}
.jg5-toc a[aria-current=true]{border-left-color:var(--red);color:var(--ink);font-weight:600}
.jg5-d{font:500 12px var(--mono);color:var(--ink2)}
.jg5-toc a[aria-current=true] .jg5-d{color:var(--link)}
.jg5-col{min-width:0}
.jg5-col>section{padding:0;margin:0 0 clamp(96px,11vw,168px);scroll-margin-top:calc(var(--hh) + 24px);background:transparent}
.jg5 .jg-head h2,.jg5 .jg-now h2,.jg5 .jg-origin h2,.jg5 .jg-faq h2{font-weight:400;letter-spacing:normal}
.jg5 .jg-head h2{font-size:clamp(30px,3vw,46px);line-height:1.3}
.jg5 .jg-head .dl,.jg5 .split .dl,.jg5 .now .dl{margin-bottom:14px}
.jg5 .jg-ans{max-width:680px;color:var(--ink2);font-size:19px;line-height:1.7}

/* −10 m: two by two, then the dark water the dive starts in */
.jg5 .jg-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 48px}
.jg5-col>.jg-probs{margin-bottom:0}
.jg5 .jg-sink{margin:56px 0 0;padding:40px;background:var(--deep);color:#fff}
.jg5 .jg-sink::before{display:none}

/* −40 m: the dive is a dark box in the column; it stays while you scroll two screens, it never fills the screen */
.jg5-col>.jg-deep{margin-top:0}
.jg5 .jg-deep-in{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:24px 32px;padding:40px;background:var(--deep)}
.jg5 .jg-deep.pin{height:250vh}
.jg5 .jg-deep.pin .jg-deep-in{top:calc(var(--hh) + 16px);height:calc(100vh - var(--hh) - 32px);padding:28px 32px 20px}
.jg5 .jg-deep.pin .jg-stage{max-height:calc(100vh - var(--hh) - 90px)}
.jg5 .jg-deep .jg-head h2,.jg5 .jg-h2b{font-size:clamp(26px,2.3vw,36px);font-weight:400}
.jg5 .jg-deep .jg-ans{color:var(--mist);font-size:17px}
.jg5 .jg-deep .jg-steps p{font-size:16px}

/* −30 m: a dark box in the column */
.jg5-col>.jg-help{padding:56px 48px}
.jg5 .jg-help .jg-pair{grid-template-columns:240px minmax(0,1fr) minmax(0,1fr)}

/* −20 m and down: light, the frame keeps everything inside */
.jg5-col>.jg-grow{min-height:0;padding:0}
html:not([data-theme=dark]) .jg5 .jg-grow::before{display:none}
.jg5 .jg-grow-in{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px}
.jg5 .jg-grow-fig{max-width:none;justify-self:stretch}
.jg5 .now{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:32px 48px}
html:not([data-theme=dark]) .jg5 .jg-now,html:not([data-theme=dark]) .jg5 .jg-origin,html:not([data-theme=dark]) .jg5 .jg-faq,html:not([data-theme=dark]) .jg5 .jg-roles,html:not([data-theme=dark]) .jg5 .jg-grow{background:transparent}
html:not([data-theme=dark]) .jg5 .jg-now .jg-trust{background:var(--paper2)}
[data-theme=dark] .jg5-col>.jg-grow,[data-theme=dark] .jg5-col>.jg-roles,[data-theme=dark] .jg5-col>.jg-now,[data-theme=dark] .jg5-col>.jg-origin,[data-theme=dark] .jg5-col>.jg-faq{padding:48px 40px}
.jg5 .split{grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:24px 48px}
.jg5 .jg-origin .jg-say{font-size:clamp(26px,2.6vw,40px);font-weight:400}

/* 0 m: the ship inside the frame, the follow form under it */
.jg5 .jg-surface.join{min-height:0;background:transparent;overflow:visible}
.jg5 .jg-surf-pic{position:relative;inset:auto;aspect-ratio:16/8;overflow:hidden}
.jg5 .jg-surf-panel{position:static;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);padding:32px 36px}
.jg5 .more{margin:0 0 24px;padding:0}
.jg5 .mosaic-3{margin-bottom:72px}

@media (max-width:1100px){
  .jg5 .jg-help .jg-pair{grid-template-columns:minmax(0,1fr);grid-template-areas:"fig" "q" "before" "after" "state"}
  .jg5 .jg-help .jg-pair .jg-fig{max-width:320px}
}
/* phones and tablets: one column, the contents become a bar that stays under the header */
@media (max-width:1100px){
  .jg5-body{grid-template-columns:minmax(0,1fr);gap:0}
  .jg5-toc{z-index:15;top:var(--hh);max-height:none;overflow:visible;margin:0 -24px 36px;padding:8px 24px;background:var(--bg);border-bottom:1px solid var(--line)}
  .jg5-toc-h{display:none}
  .jg5-toc ol{display:flex;gap:6px;overflow-x:auto;border:0;scrollbar-width:none}
  .jg5-toc ol::-webkit-scrollbar{display:none}
  .jg5-toc li{flex:none}
  .jg5-toc a{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:6px 12px;border:1px solid var(--line);font-size:14px;white-space:nowrap}
  .jg5-toc a[aria-current=true]{border-color:var(--red)}
  .jg5-hero{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:calc(var(--hh) + 20px)}
  .jg5-hero-pic{aspect-ratio:4/3}
  .jg5 .jg-cols{grid-template-columns:minmax(0,1fr)}
  .jg5 .jg-grow-in,.jg5 .now,.jg5 .split,.jg5 .jg-surf-panel{grid-template-columns:minmax(0,1fr)}
  .jg5-col>.jg-help{padding:36px 24px}
  .jg5 .jg-deep-in{padding:28px 20px}
  .jg5 .jg-sink{padding:28px 20px}
}
/* the −30 m box keeps its dark water inside the column */
.jg5-col>.jg-help{background:#1C1C33}
/* follow panel: words first, the form under them at full width (the narrow column broke "อีเมลของคุณ" into three lines) */
.jg5 .jg-surf-panel{grid-template-columns:minmax(0,1fr);gap:24px}
.jg5 .jg-st .dt{color:var(--ink2)}

/* phones: sections stop below the header and the contents bar */
@media (max-width:1100px){.jg5-col>section{scroll-margin-top:calc(var(--hh) + 72px)}}
/* eyebrows inside the dark boxes stay light red (dark red on dark water failed contrast) */
.jg5 .jg-deep .dl,.jg5 .jg-help .dl{color:#FF7A70}
/* the contents bar must not widen the page on phones (grid items default to min-width:auto) */
.jg5-toc,.jg5-body>*{min-width:0}
/* the finale picture keeps its 16:8 shape from the width, never from a fixed height (it made phones 614px wide) */
.jg5 .jg-surf-pic{height:auto;width:100%}

/* ===================== round 5.1 (premium check against the benchmarks) ===================== */
/* one quiet type system: weight 400 for headings and big lines, 500 for small heads, no 600-700 blocks */
.jg5 .jg5-col>section h2,.jg5 .jg-jh{font-size:clamp(32px,3vw,44px);line-height:1.3;font-weight:400}
.jg5 .jg-deep h2,.jg5 .jg-h2b{font-size:clamp(26px,2.3vw,36px)}
.jg5 :is(.jg-sink,.jg-gain p,.jg-jh,.jg-big,.jg-surf-panel .jg-jh){font-weight:400}
.jg5 .jg-big{font-size:clamp(40px,4vw,60px)}
.jg5 .jg-steps b{font-size:20px;font-weight:500}
.jg5 .jg-cols .jg-role{font-weight:500;border-bottom-width:1px}
.jg5 .jg-cols li li::before{background:var(--line)}
.jg5 .jg-after{font-weight:500}
/* Thai labels are never letter-spaced (only Latin capitals are, as on Tengile) */
.jg5-toc-h,.jg5-eyebrow,.jg5 .dl{font:500 13px/1.4 var(--th);letter-spacing:0}
/* contents: the section being read is red text, not only a red rule */
.jg5-toc a[aria-current=true]{color:var(--link)}
/* first screen: more air, quieter details, a smaller button */
.jg5-hero{gap:80px;padding-bottom:96px}
.jg5 .jg-day,.jg5 .jg-st{font-size:14px}
.jg5 .jg-day b{font-weight:500}
.jg5-cta .btn{min-height:52px;padding:0 28px;font-size:16px;font-weight:500}
html:not([data-theme=dark]) .jg5-hero-pic img{filter:sepia(.08) saturate(.95)}
/* −30 m: same deep water as the dive box; a real strike-through; a fainter chart grid */
.jg5-col>.jg-help,.jg5 .jg-help{--bg:var(--deep);background:var(--deep)}
.jg5 .jg-was{background:none;text-decoration:line-through 1.5px var(--red)}
.jg5 .jg-fig{background:
    linear-gradient(var(--c),var(--c)) 0 0/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 0 0/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 100% 0/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 0 100%/2px 16px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/16px 2px no-repeat,linear-gradient(var(--c),var(--c)) 100% 100%/2px 16px no-repeat,
    linear-gradient(color-mix(in srgb,var(--line) 20%,transparent) 1px,transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg,color-mix(in srgb,var(--line) 20%,transparent) 1px,transparent 1px) 0 0/24px 24px}
/* −40 m: a shorter stay (two screens tall), a box that never fills the screen, bigger piece labels */
.jg5 .jg-deep.pin{height:200vh}
.jg5 .jg-deep.pin .jg-deep-in{top:calc(var(--hh) + 56px);height:min(640px,calc(100vh - var(--hh) - 112px))}
.jg5 .jg-deep.pin .jg-stage{max-height:min(580px,calc(100vh - var(--hh) - 170px))}
.jg5 .jg-pc text,.jg5 .jg-new text{font-size:17px}
.jg5 .jg-lesson text{font-size:18px}
/* 0 m: a visible e-mail field */
.jg5 .jg-surf-panel .fld input{height:48px;border-bottom:1px solid rgba(255,255,255,.7)}
.jg5 .jg-surf-panel .fld input::placeholder{color:rgba(255,255,255,.55)}
/* smaller button text needs the darker site red to stay above 4.5:1 */
.jg5 .btn{background:#C81E17}
.jg5 .btn:hover{background:#B31C13}

/* ===================== round 5.2 (premium check round 2) ===================== */
/* labels on the navy follow panel stay light red (dark red there was 2.5:1) */
.jg5 .jg-surf-panel .dl{color:#FF7A70}
/* one button everywhere: 52px, 16px, weight 500 */
.jg5 .btn{min-height:52px;padding:0 28px;font-size:16px;font-weight:500}
/* "where it came from": the quote leads, the heading steps back */
.jg5 .jg5-col>.jg-origin h2{font-size:clamp(26px,2.2vw,32px)}
/* −30 m: quieter labels, softer status chips, captions that whisper */
.jg5 .jg-k{font:500 13px/1.4 var(--th)}
.jg5 .jg-help .tag{border-color:rgba(255,255,255,.35)}
.jg5 .jg-help .jg-state{font-size:14px;opacity:.85}
.jg5 .jg-fig figcaption{font:400 11px var(--th);opacity:.6}
/* roles (light theme): what you get is a red-ruled line, not a heavy navy bar */
html:not([data-theme=dark]) .jg5 .jg-gain{background:transparent;color:var(--ink);box-shadow:none;border-left:2px solid var(--red);padding:8px 0 8px 20px}
html:not([data-theme=dark]) .jg5 .jg-gain .jg-lb{color:var(--link)}
html:not([data-theme=dark]) .jg5 .jg-gain .tag{color:var(--ink);border-color:var(--ink2)}

/* ===================== round 5.3 (owner 16 Nov: "ใช้สีหมึก") =====================
   Buttons in ink, as on the luxury references; red is kept for the waterline only: the hero and finale lines and the dive's
   ring and lesson pieces. The contents menu keeps its red current item (the owner set that on 16 Nov). */
.jg5 .btn{background:#22201F;color:#F4F2EF}
.jg5 .btn:hover{background:#3A3632}
[data-theme=dark] .jg5 .btn,.jg5 .jg-surf-panel .btn{background:#F4F2EF;color:#22201F}
[data-theme=dark] .jg5 .btn:hover,.jg5 .jg-surf-panel .btn:hover{background:#fff}
.jg5 .btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
/* labels, rules and marks that were red step back to ink */
.jg5-eyebrow,.jg5 .dl{color:var(--ink2)}
.jg5 .jg-deep .dl,.jg5 .jg-help .dl,.jg5 .jg-surf-panel .dl{color:var(--mist)}
.jg5 .jg-day:last-child{border-left-color:var(--ink)}
.jg5 .trk i.c{background:var(--ink)}
.jg5 .jg-tab[aria-selected=true]{border-bottom-color:var(--ink)}
html:not([data-theme=dark]) .jg5 .jg-gain{border-left-color:var(--ink)}
html:not([data-theme=dark]) .jg5 .jg-gain .jg-lb{color:var(--ink2)}
.jg5 .jg-trust{border-left-color:var(--ink2)}
.jg5 .jg-trust b,.jg5 .jg-now li b{color:var(--ink2)}
.jg5 .jg-was{text-decoration-color:var(--ink2)}
.jg5 .jg-after .jg-k{color:var(--ink2)}
.jg5 .jg-loss{border-left-color:var(--mist)}
.jg5 .now .lad .c{border-top-color:var(--ink)}
.jg5 .jg-fig .hot{stroke:var(--ink)}
.jg5 .jg-fig .dot,.jg5 .jg-fig .hotx{fill:var(--ink)}
.jg5 .jg-st[data-i="3"] path{fill:var(--ink);stroke:var(--ink)}
.jg5 .jg-beat li:last-child::before{background:var(--ink);border-color:var(--ink)}
.jg5 .more a{color:var(--ink)}

/* Ship landing template, layer 4 (owner, 16 Nov 2026): the contents menu slides, product screens are simulated.
   Loaded after jigsaw-draft.css, jigsaw-v4.css and jigsaw-v5.css; replaces their phone "chip bar" contents.
   Menu: open on the left of every screen 600px and wider, with a fold button that shrinks it to a thin rail;
   under 600px a "สารบัญ" button slides it out from the left over the page (300ms, Cerebrium-measured ease). */
.jg5{--ui-win:#FFFFFF;--ui-top:#ECE7E0;--ui-side:#F7F5F2;--ui-row:#F4F2EF;--ui-on:#E6E0D7;--ui-line:#D9D2C8;--ui-t1:#22201F;--ui-t2:#3A3632;--ui-t3:#6A635C;--ui-acc:#22201F;--ui-acc-t:#F4F2EF;--ui-shadow:rgba(34,32,31,.14)}
[data-theme=dark] .jg5,.jg5 .jg-help{--ui-win:#23233F;--ui-top:#2D2D52;--ui-side:#1F1F38;--ui-row:#2A2A4A;--ui-on:#383862;--ui-line:#46466E;--ui-t1:#FFFFFF;--ui-t2:#E1E4EE;--ui-t3:#B5BAD0;--ui-acc:#F4F2EF;--ui-acc-t:#22201F;--ui-shadow:rgba(0,0,0,.45)}

/* ---------- contents menu: shared ---------- */
.jg5-menu-btn,.jg5-toc-close{display:none}
.jg5-toc-fold{display:inline-flex}
.jg5-toc-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}
.jg5-toc-top .jg5-toc-h{margin:0}
.jg5-toc-fold,.jg5-toc-close{align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:22px;line-height:1;cursor:pointer;transition:background-color .3s,border-color .3s}
.jg5-toc-fold:hover,.jg5-toc-close:hover{border-color:var(--ink2);background:var(--bg2)}
.jg5-toc-fold span{display:inline-block;transition:transform .3s cubic-bezier(.645,.045,.355,1)}
.jg5-toc button:focus-visible,.jg5-menu-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.jg5-body{transition:grid-template-columns .3s cubic-bezier(.645,.045,.355,1)}

/* folded: a thin rail with the open button; the story takes the width */
.jg5.jg5-folded .jg5-body{grid-template-columns:44px minmax(0,1fr)}
.jg5.jg5-folded .jg5-toc-h,.jg5.jg5-folded .jg5-toc ol{display:none}
.jg5.jg5-folded .jg5-toc-fold span{transform:rotate(180deg)}

/* 600–1100: the menu stays a column on the left (the old top chip bar is gone) */
@media (max-width:1100px){
  .jg5{--toc:184px}
  .jg5-body{grid-template-columns:var(--toc) minmax(0,1fr);gap:28px}
  .jg5-toc{position:sticky;z-index:auto;top:calc(var(--hh) + 20px);max-height:calc(100vh - var(--hh) - 40px);overflow:auto;margin:0;padding:0;background:transparent;border:0}
  .jg5-toc-h{display:block}
  .jg5-toc ol{display:block;overflow:visible;border-left:2px solid var(--line)}
  .jg5-toc li{flex:initial}
  .jg5-toc a{display:flex;min-height:44px;margin-left:-2px;padding:9px 0 9px 12px;border:0;border-left:2px solid transparent;font-size:14.5px;white-space:normal}
  .jg5-toc a[aria-current=true]{border-left-color:var(--red)}
  .jg5-col>section{scroll-margin-top:calc(var(--hh) + 24px)}
}

/* under 600: a button under the header opens the menu as a drawer from the left */
@media (max-width:599px){
  .jg5-body,.jg5.jg5-folded .jg5-body{grid-template-columns:minmax(0,1fr);gap:0}
  .jg5-toc-fold{display:none}
  .jg5-toc-close{display:inline-flex}
  .jg5-menu-btn{position:sticky;top:calc(var(--hh) + 8px);z-index:30;display:inline-flex;align-items:center;gap:8px;justify-self:start;min-height:44px;margin:0 0 28px;padding:0 16px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:500 15px var(--th);box-shadow:0 6px 18px var(--ui-shadow);cursor:pointer}
  .jg5-toc,.jg5.jg5-folded .jg5-toc{position:fixed;z-index:70;top:0;left:0;bottom:0;width:min(84vw,320px);max-height:none;margin:0;padding:20px 20px 32px;overflow:auto;background:var(--bg);box-shadow:0 0 0 1px var(--line),12px 0 40px var(--ui-shadow);
    transform:translateX(-105%);visibility:hidden;transition:transform .3s cubic-bezier(.645,.045,.355,1),visibility 0s .3s}
  .jg5.jg5-open .jg5-toc{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.645,.045,.355,1)}
  .jg5.jg5-folded .jg5-toc-h,.jg5.jg5-folded .jg5-toc ol{display:block}
  .jg5-toc a{font-size:16px;padding:11px 0 11px 14px}
  .jg5-scrim{position:fixed;inset:0;z-index:65;background:rgba(17,17,31,.5);opacity:0;transition:opacity .3s}
  .jg5.jg5-open .jg5-scrim{opacity:1}
  .jg5-col>section{scroll-margin-top:calc(var(--hh) + 72px)}
}
@media (prefers-reduced-motion:reduce){
  .jg5-body,.jg5-toc,.jg5-toc-fold span,.jg5-scrim{transition:none !important}
}

/* ---------- simulated product screens: an app window, no corner frames, no chart grid ---------- */
.jg5 .jg-uifig{display:block;aspect-ratio:auto;margin:0;padding:0;background:none}
.jg5 .jg-uifig svg.jg-ui{display:block;width:100%;height:auto;fill:none;stroke:none}
.jg5 .ui-crop{overflow:hidden;box-shadow:0 18px 32px -10px var(--ui-shadow)}
.jg-ui .ui-win{fill:var(--ui-win);stroke:var(--ui-line);stroke-width:1}
.jg-ui .ui-top{fill:var(--ui-top)}
.jg-ui .ui-dot{fill:var(--ui-line)}
.jg-ui .ui-side{fill:var(--ui-side)}
.jg-ui .ui-ico{fill:none;stroke:var(--ui-t3);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.jg-ui .ui-ico.on{stroke:var(--ui-acc);stroke-width:2}
.jg5 .jg-ui text{stroke:none}
.jg5 .jg-ui .ui-t1{fill:var(--ui-t1);font:500 18px var(--th)}
.jg5 .jg-ui .ui-t2{fill:var(--ui-t2);font:400 16px var(--th)}
.jg5 .jg-ui .ui-t3{fill:var(--ui-t3);font:400 14px var(--th)}
.jg-ui .ui-row{fill:var(--ui-row);stroke:none;rx:4}
.jg-ui .ui-row.on{fill:var(--ui-on);stroke:var(--ui-acc);stroke-width:1}
.jg-ui .ui-row.dash{fill:none;stroke:var(--ui-line);stroke-width:1;stroke-dasharray:5 4}
.jg-ui .ui-chip{fill:var(--ui-win);stroke:var(--ui-t3);stroke-width:1;rx:11}
.jg-ui .ui-chip.dash{stroke-dasharray:4 3}
.jg5 .jg-ui .ui-chip-t{fill:var(--ui-t2);font:500 13.5px var(--th)}
.jg-ui .ui-btn{fill:var(--ui-acc);rx:3}
.jg5 .jg-ui .ui-btn-t{fill:var(--ui-acc-t);font:500 14.5px var(--th)}
.jg-ui .ui-radio{fill:var(--ui-win);stroke:var(--ui-t3);stroke-width:1.2}
.jg-ui .ui-radio.on{fill:var(--ui-acc);stroke:var(--ui-acc)}
.jg-ui .ui-bar{fill:var(--ui-t3);rx:2}
.jg-ui .ui-bar.soft{fill:var(--ui-on)}
.jg-ui .ui-bar.on{fill:var(--ui-acc)}
.jg-ui .ui-bar.low{fill:none;stroke:var(--ui-t3);stroke-dasharray:4 3}
.jg-ui .ui-box{fill:var(--ui-win);stroke:var(--ui-t3);stroke-width:1;rx:3}
.jg-ui .ui-box.on{fill:var(--ui-acc);stroke:var(--ui-acc)}
.jg-ui .ui-pc{fill:var(--ui-row);stroke:var(--ui-t3);stroke-width:1.2}
.jg-ui .ui-pc.on{fill:var(--ui-acc);stroke:var(--ui-acc)}
.jg5 .jg-sim{margin-top:16px;border-color:var(--ink2);color:var(--ink2);font:500 13px/1.4 var(--th);letter-spacing:0}

/* −30 m: each question reads left → right: the words, then the screen */
.jg5 .jg-help .jg-pair{grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-rows:auto auto auto 1fr;grid-template-areas:"q fig" "before fig" "after fig" "state fig";gap:8px 44px;padding:40px 0}
.jg5 .jg-help .jg-pair .jg-fig{grid-area:fig;max-width:none;align-self:center}
.jg5 .jg-help .jg-qs>li.jg-pair:first-child{border-top:0;padding-top:16px}
/* roles: the screen on the left, the moments on the right */
.jg5 .jg-panel-row{grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:36px}
@media (max-width:900px){
  .jg5 .jg-help .jg-pair{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"q" "before" "after" "state" "fig";gap:8px}
  .jg5 .jg-help .jg-pair .jg-fig{max-width:none;margin-top:16px}
  .jg5 .jg-panel-row{grid-template-columns:minmax(0,1fr)}
}

/* −20 m: the status chip sits apart from the answer above it */
.jg5 .jg-grow .jg-state{margin-top:16px}

/* ink decision (owner 16 Nov): red only on the waterline, the dive's loop and the menu's current item.
   Older status-box rules carried higher specificity, so these restate it. */
html:not([data-theme=dark]) .jg5 .jg-now .dl,html:not([data-theme=dark]) .jg5 .jg-now li b,html:not([data-theme=dark]) .jg5 .jg-now .jg-trust b{color:var(--ink2)}
html:not([data-theme=dark]) .jg5 .jg-now .lad .c{border-top-color:var(--ink)}
[data-theme=dark] .jg5 .jg-gain .jg-lb{color:var(--mist)}
[data-theme=dark] .jg5 .jg-gain{box-shadow:inset 2px 0 0 var(--mist)}
/* −20 m: the older fade-in padding (72px + 18vh) made an empty band above the heading */
html:not([data-theme=dark]) .jg5 .jg-grow{padding-top:0}

/* first screen parallax: the picture is 10% larger and moves up to 4% of its height against the scroll (site.js data-plx);
   the red line sits inside the moving layer, at the water line of the enlarged picture */
.jg5-hero-pic .hx-pic{--zoom:1.1}
.jg5-hero-pic .jg5-line{top:calc(50% + (var(--hz) - .5) * 110%);transform:translate3d(0,var(--py,0px),0);will-change:transform}
[data-theme=dark] .jg5-hero-pic .jg5-line{top:calc(50% + (var(--hzd) - .5) * 110%)}
@media (prefers-reduced-motion:reduce){.jg5-hero-pic .hx-pic{--zoom:1}.jg5-hero-pic .jg5-line{top:calc(var(--hz) * 100%);transform:none}[data-theme=dark] .jg5-hero-pic .jg5-line{top:calc(var(--hzd) * 100%)}}

/* ===================== round 6 (design critic r6 + Grok UX review) ===================== */
/* each simulated screen carries its own label under it */
.jg5 .jg-fig.jg-uifig figcaption{position:static;margin-top:12px;font:400 13px/1.4 var(--th);color:var(--ink2);opacity:1;text-align:left;letter-spacing:0}
/* up to 900px the side rail of each screen is cropped away so the words stay readable (about 11px on a 375px phone) */
@media (max-width:900px){
  .jg5 .ui-crop svg.jg-ui{width:117.65%;margin-left:-17.65%}
}
/* the header stays solid on these pages once you scroll (content showed through it) */
html[data-scrolled]:has(.jg5) .top::before{opacity:1}
/* first screen: a 4:3 picture shows the whole ship, stern included */
.jg5-hero-pic{aspect-ratio:4/3}
.jg5-hero-pic img,[data-theme=dark] .jg5-hero-pic img{object-position:var(--hx,88%) calc(var(--hz) * 100%)}
[data-theme=dark] .jg5-hero-pic img{object-position:var(--hx,88%) calc(var(--hzd) * 100%)}
/* the draft badge is ink, not red */
.jg5 .jg-draft b{background:#F4F2EF;color:#22201F}
/* depth labels are part of the story: bigger, with a short lead line */
.jg5-eyebrow,.jg5 .dl{font-size:14px}
.jg5 .dl::before,.jg5-eyebrow::before{content:"";display:inline-block;width:24px;height:1px;margin-right:10px;vertical-align:middle;background:currentColor}
/* status ladder: the first label no longer touches the edge */
.jg5 .now .lad span{padding-left:2px}
/* the dive: pieces read as deep navy material, with a fine light edge */
.jg5 .jg-pc path{stroke:rgba(255,255,255,.28)}
/* the third still (after the loop) shows the whole ring with the red lessons locked in, and is bigger */
.jg5 .jg-frames-c{max-width:640px}
.jg5 .jg-frame svg.st-c .jg-arc,.jg5 .jg-frame svg.st-c .jg-hot,.jg5 .jg-frame svg.st-c .jg-lab{display:inline}
.jg5 .jg-frame svg.st-c .jg-lab{font-size:24px}
/* 600–900: a slightly narrower menu column */
@media (min-width:600px) and (max-width:900px){.jg5{--toc:176px}}
/* phones: the three days stay (the first two as short labels) and the finale picture is taller */
@media (max-width:900px){
  .jg5 .jg-day:not(:last-child){display:inline-flex}
}
@media (max-width:599px){
  .jg5 .jg-days{gap:6px}
  .jg5 .jg-day{padding:5px 10px;font-size:13.5px}
  .jg5 .jg-day:not(:last-child) .jg-day-t{display:none}
  .jg5 .jg-surf-pic{aspect-ratio:4/3}
}
/* paragraphs avoid a lonely last word; headings balance their lines */
.jg5 :is(.jg-ans,.jg-why,.jg-after,.jg-before,.jg-faqs p,.jg-jp,.jg-def){text-wrap:pretty}
.jg5 :is(h2,h3,.jg-jh,.jg-sink){text-wrap:balance}
/* pictures inside the frame never sit under the header, so the site's white top fade (made for full-width photos) goes */
.jg5 .ph::after{display:none}
/* the dive: pieces that sink leave through the bottom of the box, never over the page below it */
.jg5 .jg-deep.pin .jg-pic{overflow:hidden}

/* ===================== round 6.2 (design critic r6, round 2) ===================== */
/* red stays on the ring and the lesson pieces only: ring labels and the step rule are white, the active one bold */
.jg5 .jg-deep[data-step] .jg-lab{fill:var(--mist);font-weight:500}
.jg5 .jg-deep[data-step="0"] .jg-lab[data-i="0"],.jg5 .jg-deep[data-step="1"] .jg-lab[data-i="1"],.jg5 .jg-deep[data-step="2"] .jg-lab[data-i="2"],.jg5 .jg-deep[data-step="3"] .jg-lab[data-i="3"],.jg5 .jg-deep[data-step="4"] .jg-lab{fill:#fff;font-weight:700}
.jg5 .jg-deep[data-step="0"] li[data-i="0"],.jg5 .jg-deep[data-step="1"] li[data-i="1"],.jg5 .jg-deep[data-step="2"] li[data-i="2"],.jg5 .jg-deep[data-step="3"] li[data-i="3"],.jg5 .jg-deep[data-step="4"] .jg-steps li{border-left-color:#fff}
/* lesson pieces: a quiet light edge instead of a white outline (the notches looked punched through) */
.jg5 .jg-lesson path,.jg5 .jg-new path{stroke:rgba(255,255,255,.25);stroke-width:1.5}
/* a bigger picture: the stage takes 7 of 12 columns and the box is a little taller */
.jg5 .jg-deep.pin .jg-deep-in{grid-template-columns:minmax(0,5fr) minmax(0,7fr);height:min(700px,calc(100vh - var(--hh) - 96px));top:calc(var(--hh) + 48px)}
.jg5 .jg-deep.pin .jg-stage{max-height:min(660px,calc(100vh - var(--hh) - 130px))}
.jg5 .jg-cap{font-size:18px}
.jg5 .jg-pc text,.jg5 .jg-new text{font-size:18px}
.jg5 .jg-lesson text{font-size:19px}
/* phones: the third still keeps its words readable (about 12px) */
@media (max-width:599px){
  .jg5 .jg-frame svg.st-c .jg-new text,.jg5 .jg-frame svg.st-c .jg-lesson text{font-size:25px}
  .jg5 .jg-frame svg.st-c .jg-lesson .jg-small{display:none}
  .jg5 .jg-frame svg.st-c .jg-cap{font-size:24px}
  .jg5 .jg-frame svg.st-c .jg-lab{font-size:25px}
}
/* laptop screens up to 960px tall: the dive's words are set tighter so every line stays inside the box */
@media (max-height:960px){
  .jg5 .jg-deep.pin .jg-deep-in{padding:20px 28px 16px}
  .jg5 .jg-deep.pin .jg-h2b,.jg5 .jg-deep.pin .jg-head h2{font-size:26px}
  .jg5 .jg-deep.pin .jg-ans{font-size:15.5px;line-height:1.55}
  .jg5 .jg-deep.pin .jg-steps{margin-top:10px}
  .jg5 .jg-deep.pin .jg-steps li{padding:7px 0 7px 14px}
  .jg5 .jg-deep.pin .jg-steps b{font-size:18px}
  .jg5 .jg-deep.pin .jg-steps p{font-size:14.5px;line-height:1.45}
  .jg5 .jg-deep.pin .jg-credit{margin-top:8px;font-size:12.5px}
  .jg5 .jg-deep.pin .jg-end{margin-top:6px;font-size:17px}
}

/* simulated screens: segmented choice, a goal line and its target */
.jg-ui .ui-seg{fill:var(--ui-row);stroke:var(--ui-line);stroke-width:1}
.jg-ui .ui-seg.on{fill:var(--ui-acc);stroke:var(--ui-acc)}
.jg-ui .ui-target{fill:none;stroke:var(--ui-t3);stroke-width:1.5;stroke-dasharray:6 5}
.jg-ui .ui-line{fill:none;stroke:var(--ui-acc);stroke-width:2.5;stroke-linejoin:round}
.jg-ui .ui-dot-on{fill:var(--ui-acc)}

/* the pinned text column never grows past its share of the box (a long unbreakable line pushed it over the drawing) */
.jg5 .jg-deep.pin .jg-txt,.jg5 .jg-deep.pin .jg-txt>*{min-width:0}

/* round 6.3 (critic CQC r1, template-wide) */
/* the credit line under the dive's steps is Thai: no monospace letter gaps */
.jg5 .jg-credit{font:500 13.5px/1.6 var(--th);letter-spacing:0}
/* the finale picture keeps the ship in view on narrow screens */
.jg5 .jg-surf-pic .hx-pic img{object-position:var(--hx,50%) calc(var(--hz) * 100%)}
[data-theme=dark] .jg5 .jg-surf-pic .hx-pic img{object-position:var(--hx,50%) calc(var(--hzd) * 100%)}
@media (max-width:599px){.jg5 .now .lad span{font-size:12.5px}}
/* very narrow phones: the five status steps stand in a column, so no step name runs into the next (critic CQC r2) */
@media (max-width:399px){
  .jg5 .now .lad{grid-template-columns:minmax(0,1fr);gap:4px}
  .jg5 .now .lad span{border-top:0 !important;border-left:3px solid var(--line);padding:3px 0 3px 12px;font-size:14px}
  html:not([data-theme=dark]) .jg5 .now .lad span.d,html:not([data-theme=dark]) .jg5 .now .lad span.c{border-left-color:var(--ink)}
  [data-theme=dark] .jg5 .now .lad span{border-left-color:rgba(255,255,255,.3)}
  [data-theme=dark] .jg5 .now .lad span.d,[data-theme=dark] .jg5 .now .lad span.c{border-left-color:#fff}
}
.jg5 .now .lad>span{white-space:nowrap}

/* optional education-only warning (ships that set EDU, e.g. GodsEye): one quiet line in the first screen and beside the follow form;
   ink on paper, white-ish on the navy panel; never red (red is for the waterline, the wow key and the current menu item) */
.jg5 .jg-edu{margin-top:10px;max-width:560px;font-size:14px;line-height:1.55;color:var(--ink2);padding-left:10px;border-left:2px solid var(--line)}
.jg5 .jg-surf-panel .jg-edu-s{margin-top:10px;color:var(--ink2);border-left-color:rgba(255,255,255,.35)}
