/* Engelbart, "A job, called cue by cue" (lane one-offs, 1 Dec). Replaces the old sliced-text section.
   A prompt book of six cues on the left; on the right a pinned stage: the cue's photo wiped in like a traveller
   curtain, a cue light, and the cue word sliced in two that closes as the cue is called. Page-only file. */
body #main#main#main#main#main .ebq { --mint: #34f5c6; --sky: #1dcdfe; --red: #ff5b4f; --amber: #ffb547; --edge: var(--g-edge, clamp(20px, 2.6vw, 42px)); --lamp: var(--g-paper-raised, #f4f4f2); position: relative; z-index: 2; padding: var(--g-sec, clamp(96px, 11vw, 160px)) var(--edge) var(--g-sec, clamp(72px, 8vw, 120px)) !important; margin: 0 !important; background: #070707 !important; color: var(--g-paper-raised, #f4f4f2); font: 400 clamp(16px, 1.25vw, 19px)/1.45 GoldstineSynonym, sans-serif; }
body #main#main#main#main#main .ebq :where(h2, h3, p, ol, li, a, span, b, i, figure, nav) { margin: 0 !important; padding: 0; color: inherit !important; letter-spacing: normal; text-transform: none !important; list-style: none; }
body #main#main#main#main#main .ebq a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

/* head */
body #main#main#main#main#main .ebq-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 60px; margin-bottom: clamp(48px, 6vw, 96px) !important; }
body #main#main#main#main#main .ebq-head h2 { font: 400 clamp(46px, 7.4vw, 132px)/.96 GoldstineChillax, sans-serif !important; letter-spacing: -.04em !important; text-wrap: balance; }
body #main#main#main#main#main .ebq-head h2 span { display: block; color: #8d8d88 !important; }
body #main#main#main#main#main .ebq-head p { max-width: 34ch; color: #c9c9c4 !important; }

/* body: the book and the stage */
body #main#main#main#main#main .ebq-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
body #main#main#main#main#main .ebq-book { counter-reset: q; border-top: 1px solid #262624; }
body #main#main#main#main#main .ebq-cue { position: relative; display: grid; align-content: center; gap: 18px; min-height: 74vh; padding: 48px 0 !important; border-bottom: 1px solid #262624; scroll-margin-top: 90px; }
body #main#main#main#main#main .ebq-q { display: flex; align-items: center; gap: 12px; font: 600 13px/1 GoldstineSynonym, sans-serif; letter-spacing: var(--g-track-label, .14em) !important; text-transform: uppercase !important; color: #8d8d88 !important; }
body #main#main#main#main#main .ebq-q::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2c2c2a; box-shadow: inset 0 0 0 1px #3a3a37; transition: background .3s, box-shadow .3s; }
body #main#main#main#main#main .ebq-cue.is-on .ebq-q { color: var(--g-paper-raised, #f4f4f2) !important; }
body #main#main#main#main#main .ebq-cue.is-on .ebq-q::before { background: var(--lamp); box-shadow: 0 0 0 4px rgb(255 255 255 / .06), 0 0 18px var(--lamp); }
body #main#main#main#main#main .ebq-cue h3 { font: 400 clamp(54px, 7vw, 124px)/.9 GoldstineChillax, sans-serif !important; letter-spacing: -.045em !important; transition: transform .5s var(--g-ease, cubic-bezier(.2, .7, .2, 1)), color .3s; color: var(--g-paper-raised, #f4f4f2) !important; }
/* once the script runs, the cue being called is lit and the others step back (large type, 3:1 or better) */
body #main#main#main#main#main .ebq.is-live .ebq-cue:not(.is-on) h3 { transform: translateX(-14px); color: #6e6e69 !important; }
body #main#main#main#main#main .ebq-voices { display: flex; flex-wrap: wrap; gap: 8px; }
body #main#main#main#main#main .ebq-voice { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px !important; border-radius: var(--g-r-pill, 99px); background: #151514; box-shadow: inset 0 0 0 1px #2a2a28; font: 500 15px/1.2 GoldstineSynonym, sans-serif !important; color: #e8e8e4 !important; }
body #main#main#main#main#main .ebq-voice::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--mint); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 9V7.6a5.5 5.5 0 0 1 11 0V9' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Crect x='1.5' y='8' width='3' height='5' rx='1.3'/%3E%3Crect x='11.5' y='8' width='3' height='5' rx='1.3'/%3E%3Cpath d='M13 12.6c0 1.4-1.6 2.2-4 2.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 9V7.6a5.5 5.5 0 0 1 11 0V9' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Crect x='1.5' y='8' width='3' height='5' rx='1.3'/%3E%3Crect x='11.5' y='8' width='3' height='5' rx='1.3'/%3E%3Cpath d='M13 12.6c0 1.4-1.6 2.2-4 2.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
body #main#main#main#main#main .ebq-cue > p { max-width: 34ch; color: #c9c9c4 !important; }
body #main#main#main#main#main .ebq-shot { display: none; }

/* the stage */
body #main#main#main#main#main .ebq-stage { justify-self: end; width: 100%; max-width: 600px; position: sticky; top: 96px; height: calc(100vh - 128px); height: calc(100svh - 128px); min-height: 520px; border-radius: clamp(22px, 2.4vw, 34px); overflow: hidden; isolation: isolate; background: #111; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9), inset 0 0 0 1px rgb(255 255 255 / .06); }
body #main#main#main#main#main .ebq-photos img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 30%; clip-path: inset(0 0 0 100%); transform: scale(1.08); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1), transform 1.4s var(--g-ease, cubic-bezier(.2, .7, .2, 1)); }
body #main#main#main#main#main .ebq-photos img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; }
body #main#main#main#main#main .ebq-photos img.is-off { clip-path: inset(0 100% 0 0); }
body #main#main#main#main#main .ebq-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgb(7 7 7 / .55), rgb(7 7 7 / 0) 26%, rgb(7 7 7 / 0) 40%, rgb(7 7 7 / .88) 70%, rgb(7 7 7 / .94)); pointer-events: none; } /* the word and rail always sit on 88% shade or more */

/* the cue light: red standby, green go */
body #main#main#main#main#main .ebq-light { position: absolute; z-index: 3; left: 20px; top: 20px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: var(--g-r-pill, 99px); background: rgb(12 12 12 / .55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font: 600 13px/1 GoldstineSynonym, sans-serif; letter-spacing: var(--g-track-label, .12em); text-transform: uppercase; color: var(--g-paper-raised, #f4f4f2); }
body #main#main#main#main#main .ebq-light i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--lamp) 40%, color-mix(in srgb, var(--lamp) 40%, #000) 100%); box-shadow: 0 0 0 3px rgb(0 0 0 / .4), 0 0 22px var(--lamp); transition: background .3s, box-shadow .3s; }
body #main#main#main#main#main .ebq[data-cue="standby"] { --lamp: var(--red); }
body #main#main#main#main#main .ebq[data-cue="go"] { --lamp: var(--mint); }
body #main#main#main#main#main .ebq[data-cue="hold"] { --lamp: var(--amber); }
body #main#main#main#main#main .ebq[data-cue="check"] { --lamp: var(--sky); }
body #main#main#main#main#main .ebq[data-cue="go"] .ebq-light i { animation: ebq-go .9s ease-out 2; }
@keyframes ebq-go { 50% { box-shadow: 0 0 0 3px rgb(0 0 0 / .4), 0 0 46px 10px var(--lamp); } }

/* the cue word, sliced along its middle; the halves part and close when the cue is called */
body #main#main#main#main#main .ebq-word { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 74px; font: 400 min(7vw, 124px)/.9 GoldstineChillax, sans-serif; letter-spacing: -.05em; color: transparent !important; white-space: nowrap; overflow: visible; }
body #main#main#main#main#main .ebq-word::before, body #main#main#main#main#main .ebq-word::after { content: attr(data-word); position: absolute; left: 0; top: 0; color: var(--g-paper-raised, #f4f4f2); transition: transform .6s var(--g-ease, cubic-bezier(.2, .8, .2, 1)); }
body #main#main#main#main#main .ebq-word::before { clip-path: inset(0 0 52% 0); }
body #main#main#main#main#main .ebq-word::after { clip-path: inset(48% 0 0 0); color: var(--lamp); transition: transform .6s var(--g-ease, cubic-bezier(.2, .8, .2, 1)), color .3s; }
body #main#main#main#main#main .ebq-word.is-cut::before { transform: translateX(-.14em); transition: none; }
body #main#main#main#main#main .ebq-word.is-cut::after { transform: translateX(.14em); transition: none; }

/* the rail: every cue, reachable */
body #main#main#main#main#main .ebq-rail { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
body #main#main#main#main#main .ebq-rail a { flex: 1 0 auto; padding: 9px 12px !important; border-radius: var(--g-r-pill, 99px); background: rgb(12 12 12 / .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font: 600 13px/1 GoldstineSynonym, sans-serif !important; text-align: center; text-decoration: none !important; color: #e8e8e4 !important; transition: background .25s, color .25s; }
body #main#main#main#main#main .ebq-rail a[aria-current="true"] { background: var(--g-paper-raised, #f4f4f2); color: #070707 !important; }
body #main#main#main#main#main .ebq-rail a:hover { background: rgb(255 255 255 / .16); }

@media (max-width: 1100px) {
  body #main#main#main#main#main .ebq-rail a { padding: 9px 9px !important; font-size: 12px !important; }
  body #main#main#main#main#main .ebq-word { bottom: 112px; } /* the rail may take two rows here */
}
/* phones and narrow tablets: no pinned stage; each cue carries its own photo with its sliced word */
@media (max-width: 899px) {
  body #main#main#main#main#main .ebq-head { grid-template-columns: 1fr; }
  body #main#main#main#main#main .ebq-head h2 { font-size: var(--g-t-h1, clamp(40px, 11.6vw, 76px)) !important; }
  body #main#main#main#main#main .ebq-body { grid-template-columns: minmax(0, 1fr); }
  body #main#main#main#main#main .ebq-stage { display: none; }
  body #main#main#main#main#main .ebq-cue { min-height: 0; padding: 32px 0 40px !important; gap: 16px; }
  body #main#main#main#main#main .ebq .ebq-cue h3, body #main#main#main#main#main .ebq.is-live .ebq-cue:not(.is-on) h3 { font-size: clamp(48px, 15vw, 84px) !important; transform: none !important; color: var(--g-paper-raised, #f4f4f2) !important; }
  body #main#main#main#main#main .ebq-shot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--g-r-card, 22px); overflow: hidden; background: #111; }
  body #main#main#main#main#main .ebq-shot img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 30%; transform: scale(calc(1.06 - var(--in, 0) * .06)); transition: transform 1s var(--g-ease, cubic-bezier(.2, .7, .2, 1)); }
  body #main#main#main#main#main .ebq-shot i { position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--lamp, #f4f4f2); box-shadow: 0 0 0 3px rgb(0 0 0 / .45), 0 0 18px var(--lamp, #f4f4f2); }
  body #main#main#main#main#main .ebq-cue.is-on .ebq-shot img { --in: 1; }
  body #main#main#main#main#main .ebq-cue[data-cue="standby"] { --lamp: var(--red); }
  body #main#main#main#main#main .ebq-cue[data-cue="go"] { --lamp: var(--mint); }
  body #main#main#main#main#main .ebq-cue[data-cue="hold"] { --lamp: var(--amber); }
  body #main#main#main#main#main .ebq-cue[data-cue="check"] { --lamp: var(--sky); }
  body #main#main#main#main#main .ebq-cue[data-cue="places"], body #main#main#main#main#main .ebq-cue[data-cue="curtain"] { --lamp: var(--g-paper-raised, #f4f4f2); }
}
@media (prefers-reduced-motion: reduce) {
  body #main#main#main#main#main .ebq :is(h3, img) { transition: none !important; transform: none !important; }
  body #main#main#main#main#main .ebq-word::before, body #main#main#main#main#main .ebq-word::after { transition: none !important; transform: none !important; }
  body #main#main#main#main#main .ebq .ebq-light i { animation: none !important; }
}
