/* written by landing_page.py for gianna-solo from landing-s5.css */
/* Ship 5 page: the wow "every line runs through you, then one line is left" (loaded after landing.css, only on this page).
   Beats on the drawing (data-beat, three after Grok P1): 1 four AI cards, every handoff line runs down through "คุณ", what it costs you is
   written on each line, "รอคุณ" piles up · 2 those lines fade, the work board "on my computer" fades in: one AI does, another checks ·
   3 one line is left, "รอคุณตัดสิน", with the only red: a solid dot inside a thin ring. Fades only, nothing slides (red team on the GodsEye page).
   Red is only that dot (owner rule). */
.s5-stage{display:block;width:100%;height:auto;overflow:visible;font-family:var(--th)}
.s5-stage text{stroke:none}
/* critic r1: the AI cards are outlines; "คุณ" is the only solid card, so the eye ends there */
.s5-ai .s5-card{fill:none;stroke:rgba(242,240,235,.45);stroke-width:1.2}
.s5-card-t{fill:#fff;font:500 17px var(--th);text-anchor:middle}
.s5-you .s5-card{fill:#fff;filter:drop-shadow(0 10px 18px rgba(0,0,0,.45))}
.s5-you-t{fill:#22201F;font:600 22px var(--th);text-anchor:middle}
.s5-hand{fill:none;stroke:rgba(255,255,255,.7);stroke-width:1.6}
.s5-lab rect{fill:var(--deep,#141428);stroke:rgba(255,255,255,.35);stroke-width:1}
.s5-lab text{fill:#fff;font:500 15px var(--th);text-anchor:middle}
.s5-wait rect{fill:#F4F2EF}
.s5-wait text{fill:#22201F;font:500 15px var(--th);text-anchor:middle}
.s5-up{fill:none;stroke:rgba(255,255,255,.55);stroke-width:1.4;stroke-dasharray:4 4}
/* the board is a quiet frame, its phrase written once */
.s5-frame{fill:rgba(242,240,235,.06);stroke:rgba(242,240,235,.45);stroke-width:1.2}
.s5-board-t{fill:#fff;font:600 16px var(--th)}
.s5-board-s{fill:#C9D0DE;font:400 15px var(--th)}
.s5-pass{fill:none;stroke:#fff;stroke-width:2}
.s5-pass-t{fill:#fff;font:500 15px var(--th);text-anchor:middle}
.s5-one{fill:none;stroke:#fff;stroke-width:2.4}
.s5-dot{fill:var(--red)}
.s5-last-t{fill:#fff;font:600 18px var(--th)}

/* fades only; three beats (Grok P1) */
.s5-hands,.s5-links,.s5-board,.s5-wait,.s5-last,.s5-ai,.s5-you{transition:opacity .7s var(--jg-ease)}
.s5-wait{transition-delay:calc(var(--i) * 160ms)}
.s5-links,.s5-board,.s5-last{opacity:0}
.s5-ring{fill:none;stroke:rgba(255,255,255,.85);stroke-width:1.5}
/* 1: every handoff runs through you; what it costs you is written on each line; "รอคุณ" piles up */
/* 2: those lines and chips fade; the work board fades in: one AI does, another checks */
[data-beat="2"] .s5-hands,[data-beat="3"] .s5-hands,[data-beat="2"] .s5-wait,[data-beat="3"] .s5-wait{opacity:0}
[data-beat="2"] .s5-links,[data-beat="2"] .s5-board,[data-beat="3"] .s5-links,[data-beat="3"] .s5-board{opacity:1}
/* 3: one line is left, with the red dot */
[data-beat="3"] .s5-last{opacity:1}
/* the peak line: everything steps back except the last line, the dot and "คุณ" */
.s5-stage.peak :is(.s5-ai,.s5-links,.s5-board){opacity:.35}

/* the key under the drawing: each line appears with its own mark while pinned */
.s5-legend{display:flex;flex-wrap:wrap;gap:8px 24px;margin:16px 0 0;padding:0;list-style:none}
.s5-legend li{display:inline-flex;align-items:center;gap:10px;font:500 15px/1.4 var(--th);color:#fff;transition:opacity .6s var(--jg-ease)}
.s5-legend .s5-sim{color:var(--mist);font-weight:400}
.s5-key{display:inline-block;flex:none}
.s5-key-line{width:22px;height:2px;background:rgba(255,255,255,.75)}
.s5-key-dot{width:12px;height:12px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px var(--deep,#141428),0 0 0 4.5px rgba(255,255,255,.85);margin:0 3px}
.s5-deep.pin:not([data-step="4"]) .s5-lg-dot{opacity:0}
.s5-deep.pin:is([data-step="1"]) .s5-lg-line{opacity:1}

/* keyboard: a link to skip the scene appears on focus, top right of the box */
.s5-skip{position:absolute;right:16px;top:8px;z-index:3;padding:10px 14px;background:#F4F2EF;color:#22201F;font:500 16px var(--th);opacity:0;pointer-events:none}
.s5-skip:focus-visible{opacity:1;pointer-events:auto}

/* pinned: the drawing takes two thirds of the box; the peak is one big line */
.jg5 .s5-deep.pin .jg-deep-in{grid-template-columns:minmax(0,4fr) minmax(0,8fr)}
.jg5 .s5-deep.pin .s5-stage{max-height:min(600px,calc(100vh - var(--hh) - 190px))}
.jg5 .s5-deep.pin .jg-bridge{font-size:30px}
.s5-peak-t{font:400 clamp(26px,2.3vw,34px)/1.35 var(--th);color:#fff}
.s5-pl{display:block}
@media (min-width:600px){.s5-pl{white-space:nowrap}}
.s5-deep:not(.pin) .s5-peak{margin-top:28px}
.jg5 .s5-deep .jg-h2b{font-size:clamp(28px,2.6vw,38px)}

/* stills (phones, touch screens, reduced motion): three frozen beats with words */
.s5-frames{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:620px;margin:24px 0}
.s5-frame-f{margin:0;padding:12px 12px 14px;background:rgba(255,255,255,.05)}
.s5-frame-f svg{display:block;width:100%;height:auto}
.s5-frame-f figcaption{margin-top:10px;font:400 16px/1.5 var(--th);color:#fff}
.s5-still *{transition:none !important}
svg.s5-still{overflow:hidden}
.s5-deep:not(.pin) .jg-a h2{font-size:clamp(32px,3vw,44px)}
.s5-deep:not(.pin) .jg-bridge{font-size:24px;font-weight:400}
.jg5 .s5-deep:not(.pin) .jg-h2b{font-size:clamp(26px,2.4vw,32px)}
.s5-deep:not(.pin) .jg-deep-in::before{display:none}
@media (max-width:599px){.s5-pl{white-space:normal}}
@media (prefers-reduced-motion:reduce){.s5-stage *{transition:none !important}}
/* phones: the three days keep their words */
@media (max-width:599px){.jg5 .jg-day:not(:last-child) .jg-day-t{display:inline}}
/* the origin lines stay within two lines each */
/* critic r1: one sentence per paragraph, smaller, balanced */
.jg5 .jg-origin .jg-say{font-size:clamp(20px,1.95vw,28px);line-height:1.45}
.jg5 .jg-origin .jg-ln{margin-bottom:.6em;text-wrap:balance}

/* phone stills are their own small drawings (critic r1): everything visible at once, words never smaller than ~14px */
.s5-still .s5-hands,.s5-still .s5-board,.s5-still .s5-last,.s5-still .s5-wait{opacity:1}
.s5-frame-f .s5-still{max-width:420px}

/* critic r2: the leg back up to the next AI is fainter, so the handoff reads down-then-up */
.s5-hand-up{opacity:.45}
/* after the Gianna Solo rename the pinned heading is two lines ("Gianna Solo" / "ทำเรื่องนี้ยังไง"); on short laptops the gaps
   around the answer and the credit line are tightened so the last line stays inside the box (1280×720 ran 2px out) */
@media (max-height:800px){.jg5 .s5-deep.pin .jg-ans{margin-top:8px}.jg5 .s5-deep.pin .jg-credit{margin-top:4px}}
