/* TandemFlow AI, What's Possible (v2.16).
   A narrative page: hero, a film built from code, practical AI guidance, six jobs, the idea engine, the library,
   the founder note, and a closing CTA. Loaded after site.css. Motion-only start states
   live under html.motion or under classes possible.js adds once a component is ready. */

/* ---------- Pattern palette ---------- */
.possibilities-page {
  --c-capture: #45e3df;
  --c-follow: #f6c980;
  --c-paper: #84b4ff;
  --c-answers: #7fe3a8;
  --c-see: #b7a4ff;
  --c-people: #ff9e8a;
}
[data-pattern="capture"] { --accent: var(--c-capture); --accent-rgb: 69, 227, 223; }
[data-pattern="follow"] { --accent: var(--c-follow); --accent-rgb: 246, 201, 128; }
[data-pattern="paper"] { --accent: var(--c-paper); --accent-rgb: 132, 180, 255; }
[data-pattern="answers"] { --accent: var(--c-answers); --accent-rgb: 127, 227, 168; }
[data-pattern="see"] { --accent: var(--c-see); --accent-rgb: 183, 164, 255; }
[data-pattern="people"] { --accent: var(--c-people); --accent-rgb: 255, 158, 138; }

.px-head { max-width: 920px; margin-bottom: clamp(34px, 5vw, 60px); }
.px-head h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); }
.px-sub { max-width: 41rem; margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }

/* The collection is a starting point, with room for custom work. */
.solution-signature { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem; margin: 0 0 1.15rem; color: var(--text); font-size: clamp(1.15rem, 1.65vw, 1.5rem); font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.solution-signature-small { font-size: 1rem; }
.solution-infinity { display: inline-block; padding: .07em .38em .11em; border: 1px solid rgba(69, 227, 223, .45); border-radius: .4em; background: rgba(69, 227, 223, .08); color: var(--cyan-bright); font-size: 1.1em; line-height: 1; letter-spacing: 0; vertical-align: .05em; white-space: nowrap; }
.engine-head h2 .solution-infinity { font-size: .7em; vertical-align: .12em; }

/* Chips: used by the idea engine and the library filters */
.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .2s ease;
}
.chip i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--cyan)); box-shadow: 0 0 10px rgba(var(--accent-rgb, 69, 227, 223), .7); }
.chip-n { color: var(--quiet); font-size: .75rem; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: rgba(var(--accent-rgb, 69, 227, 223), .55); color: var(--text); }
.chip[aria-pressed="true"] { border-color: rgba(var(--accent-rgb, 69, 227, 223), .7); background: rgba(var(--accent-rgb, 69, 227, 223), .12); color: var(--text); }
.chip:active { transform: scale(.96); }

/* Lane badges */
.lane-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.3;
  white-space: nowrap;
}
.lane-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lane-auto { border-color: rgba(69, 227, 223, .4); background: rgba(69, 227, 223, .08); color: var(--cyan); }
.lane-review { border-color: rgba(246, 201, 128, .45); background: rgba(246, 201, 128, .08); color: var(--amber); }
.lane-human { border-color: rgba(132, 180, 255, .45); background: rgba(132, 180, 255, .08); color: var(--blue-soft); }

/* ---------- Hero ---------- */
.px-hero { position: relative; padding: clamp(124px, 17vh, 176px) 0 clamp(40px, 6vw, 72px); }
.no-js .px-hero { padding-top: 32px; }
.px-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(126, 164, 185, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 164, 185, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 78%);
}
.px-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: clamp(28px, 5vw, 72px); }
.px-title { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: .98; letter-spacing: -.055em; }
.pt-line { display: block; overflow: hidden; margin-bottom: -.08em; padding-bottom: .08em; }
.pt-in { display: block; }
.motion .pt-line[data-reveal] { opacity: 1; transform: none; }
.motion .pt-line[data-reveal] > .pt-in { transform: translate3d(0, 108%, 0); transition: transform 1.15s var(--ease-out); transition-delay: var(--rd, 0ms); }
.motion .pt-line[data-reveal].is-in > .pt-in { transform: none; }

.rot { position: relative; display: inline-grid; vertical-align: top; overflow: hidden; padding-right: .06em; }
.rot-word {
  grid-area: 1 / 1;
  background: linear-gradient(100deg, var(--cyan-bright) 0%, var(--cyan) 40%, #5aa0ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.rot-word:not(:first-child) { visibility: hidden; }
.rot.is-live .rot-word { visibility: visible; opacity: 0; transform: translate3d(0, 100%, 0); transition: transform .75s var(--ease-out), opacity .45s ease; }
.rot.is-live .rot-word.is-on { opacity: 1; transform: none; }
.rot.is-live .rot-word.is-out { opacity: 0; transform: translate3d(0, -100%, 0); }

.px-hero-copy .px-lead { margin: 0 0 1.6rem; color: var(--muted); font-size: clamp(1.03rem, 1.25vw, 1.15rem); line-height: 1.7; }
.px-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.play-dot { position: relative; display: grid; flex: none; place-items: center; width: 30px; height: 30px; margin-right: -.85rem; border-radius: 50%; background: #052e31; }
.play-dot::before { content: ""; margin-left: 3px; border-left: 9px solid var(--cyan-bright); border-block: 6px solid transparent; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 1.1rem;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--quiet);
  cursor: pointer;
  font-size: .8125rem;
}
.motion-toggle::before { content: ""; width: 8px; height: 10px; border-inline: 3px solid currentColor; }
.motion-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; }
.motion-toggle:hover { color: var(--text); }

/* ---------- Film ---------- */
.px-film-section { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(90px, 11vw, 140px); }
.px-film-section .px-head { max-width: 760px; margin-inline: auto; text-align: center; }
.px-film-section .px-head .eyebrow { justify-content: center; }
.film { position: relative; max-width: 1080px; margin-inline: auto; }
.film-dialogue { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: start; gap: 14px; min-height: 82px; margin-top: 10px; padding: 15px 20px; border: 1px solid rgba(140, 170, 195, .2); border-radius: 16px; background: #0a121c; }
.film-dialogue[hidden] { display: none; }
.film:not(.has-started) .film-dialogue:has([data-film-line]:empty) { display: none; }
.film:has(.film-play[aria-label="Replay the story"]) .film-dialogue:has([data-film-line]:empty) { display: none; }
.film-dialogue-speaker { padding-top: .2em; color: var(--cyan-bright); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.film-dialogue[data-speaker="Emma"] .film-dialogue-speaker { color: #f6c980; }
.film-dialogue p { margin: 0; color: var(--text); font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1.5; }
.film-transcript-line { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 8px; }
.film-transcript-line + .film-transcript-line { margin-top: 7px; }
.film-transcript-line strong { color: var(--text); font-size: .85em; }
.film-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(80% 90% at 50% -10%, rgba(61, 130, 237, .2), transparent 65%),
    radial-gradient(70% 70% at 50% 110%, rgba(69, 227, 223, .12), transparent 70%),
    #050a10;
  box-shadow: 0 50px 110px -60px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.film-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(126, 164, 185, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 164, 185, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000, transparent 80%);
}
.film-bars { position: absolute; z-index: 6; top: 16px; right: 18px; left: 18px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; pointer-events: none; }
.film-bar { height: 3px; overflow: hidden; border-radius: 3px; background: rgba(238, 244, 247, .16); }
.film-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-bright), var(--cyan)); transform: scaleX(var(--p, 0)); transform-origin: left; }

.film-poster {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(4, 7, 11, .1), rgba(4, 7, 11, .65));
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.film.has-started .film-poster { opacity: 0; visibility: hidden; }
.poster-icons { display: flex; gap: 10px; margin-bottom: 8px; }
.poster-icons span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(140, 170, 195, .28); border-radius: 12px; background: linear-gradient(160deg, #142231, #0a121a); color: var(--cyan-bright); }
.poster-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.motion .poster-icons span { animation: poster-bob 3.2s ease-in-out infinite; }
.motion .poster-icons span:nth-child(2) { animation-delay: .25s; }
.motion .poster-icons span:nth-child(3) { animation-delay: .5s; }
.motion .poster-icons span:nth-child(4) { animation-delay: .75s; }
.motion .poster-icons span:nth-child(5) { animation-delay: 1s; }
@keyframes poster-bob { 50% { transform: translateY(-7px); } }
.poster-play {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cf0ea, var(--cyan) 45%, #2fc4d4);
  box-shadow: 0 0 0 10px rgba(69, 227, 223, .12), 0 20px 50px -10px rgba(69, 227, 223, .6);
}
.poster-play::before { content: ""; margin-left: 6px; border-left: 22px solid #032628; border-block: 14px solid transparent; }
.motion .poster-play { animation: poster-pulse 2.4s ease-in-out infinite; }
@keyframes poster-pulse { 50% { box-shadow: 0 0 0 18px rgba(69, 227, 223, .05), 0 20px 50px -10px rgba(69, 227, 223, .6); } }
.poster-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.8vw, 2.1rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.poster-meta { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.scene.is-on { opacity: 1; visibility: visible; transition: opacity .5s ease .14s; }
.film.is-paused .scene,
.film.is-paused .scene *,
.film.is-paused .scene *::before,
.film.is-paused .scene *::after { animation-play-state: paused !important; }
.scene-viz { position: absolute; top: 10%; left: 50%; width: 56%; aspect-ratio: 3 / 2; transform: translateX(-50%); container-type: size; }
.scene-cap { position: absolute; right: 6%; bottom: 6.5%; left: 6%; display: grid; justify-items: center; gap: .4rem; margin: 0; text-align: center; }
.scene-cap b { font-family: var(--font-display); font-size: clamp(1.25rem, 3.1vw, 2.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.scene-cap > span { max-width: 46ch; color: var(--muted); font-size: clamp(.82rem, 1.25vw, 1.05rem); line-height: 1.45; text-wrap: balance; }
.scene.is-on .scene-cap b { animation: cap-in .9s var(--ease-out) .15s both; }
.scene.is-on .scene-cap > span { animation: cap-in .9s var(--ease-out) .4s both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.1); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

/* Shared icon tile inside scenes */
.fm-ico {
  position: absolute;
  display: grid;
  place-items: center;
  width: 13cqmin;
  height: 13cqmin;
  border: 1px solid rgba(140, 170, 195, .3);
  border-radius: 3.4cqmin;
  background: linear-gradient(160deg, #142231, #0a121a);
  box-shadow: 0 2cqmin 5cqmin -1cqmin rgba(0, 0, 0, .6);
  color: var(--cyan-bright);
  translate: -50% -50%;
}
.fm-ico svg, .s5-tile svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Scene 1: the front door */
.s1 { --scene-dur: 8.03s; --junk-at: 5.078s; --license-at: 6.6s; --arrive-1: 2.7416s; --arrive-2: 3.1232s; --arrive-3: 3.632s; }
.s2 { --scene-dur: 6.03s; --sort-1: 0.5876s; --sort-2: 1.475s; --sort-3: 2.3624s; --time-at: 2.3624s; }
.s3 { --scene-dur: 8.48s; --type-1: 0.2961s; --type-2: 1.4958s; --type-3: 2.6955s; --repeat-at: 3.7955s; --again-at: 3.8952s; }
/* Scene-local contacts from audio-v216/cue-sheet.json; CSS animations share the player clock. */
.s4 { --scene-dur: 17.12s; --send-1: 0.3696s; --send-2: 0.97s; --send-3: 1.5704s; --send-4: 2.1708s; --send-5: 2.7712s; --rules-at: 6.098s; --draft-at: 9.5464s; --attention-at: 14.385s; }
.s5 { --scene-dur: 5.76s; --connect-at: 3.151s; --tool-1: 0.5148s; --tool-2: 1.2705s; --tool-3: 2.0262s; --connection-1: 3.151s; --connection-2: 3.9245s; --connection-3: 4.698s; }
.s6 { --scene-dur: 9.56s; --hub-at: 0.4655s; --route-1: 0.4655s; --route-2: 2.1342s; --route-3: 4.1637s; --approve-at: 4.1637s; }
.s7 { --scene-dur: 12.71s; --catalog-at: 1.742s; --count-at: 3.8102s; --endless-at: 6.2614s; --question-at: 8.21s; }
.s1-tray {
  position: absolute;
  top: 60%;
  right: 12%;
  left: 12%;
  height: 30%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4cqmin 3cqmin;
  border: 1px solid rgba(69, 227, 223, .4);
  border-radius: 4cqmin;
  background: linear-gradient(180deg, rgba(69, 227, 223, .1), rgba(69, 227, 223, .02));
  box-shadow: inset 0 1px 0 rgba(140, 255, 248, .12);
}
.s1-label { position: relative; min-width: 12ch; min-height: 1.2em; color: var(--cyan); font-family: var(--font-display); font-size: 3.3cqmin; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.s1-junk { position: absolute; inset: 0; white-space: nowrap; }
.s1-license { position: absolute; z-index: 2; top: 12%; right: 9%; padding: 1.7cqmin 2.5cqmin; border: 1.5px solid var(--amber); border-radius: 1.3cqmin; background: #241f15; color: #f6d99d; font-size: 3cqmin; font-weight: 700; letter-spacing: .04em; rotate: 8deg; }
.s1-license b { margin-left: 1.5cqmin; }
.scene.is-on .s1-inbox { animation: fade-out .25s ease var(--junk-at) both; }
.scene.is-on .s1-junk { animation: fade-in .25s ease var(--junk-at) both; }
.scene.is-on .s1-license { animation: stamp .45s var(--ease-out) var(--license-at) both; }
.s1-badge { padding: .8cqmin 2.4cqmin; border-radius: 99px; background: var(--amber); color: #2a1a02; font-size: 3.4cqmin; font-weight: 700; }
.scene.is-on .s1-badge { animation: pop .5s var(--ease-out) 2.9s both; }
.scene.is-on .s1-tray { animation: s1-glow var(--scene-dur) ease both; }
@keyframes s1-glow { 0%, 45% { box-shadow: inset 0 1px 0 rgba(140, 255, 248, .12); } 58% { box-shadow: inset 0 1px 0 rgba(140, 255, 248, .12), 0 0 6cqmin rgba(69, 227, 223, .28); } 100% { box-shadow: inset 0 1px 0 rgba(140, 255, 248, .12), 0 0 3cqmin rgba(69, 227, 223, .12); } }
.s1 .fm-ico { rotate: var(--r); }
.s1 .i1 { top: 50%; left: 22%; --r: -10deg; --fx: -55cqw; --fy: -40cqh; --dl: calc(var(--arrive-1) - 1.25s); }
.s1 .i2 { top: 42%; left: 35%; --r: 7deg; --fx: -20cqw; --fy: -70cqh; --dl: calc(var(--arrive-2) - 1.25s); }
.s1 .i3 { top: 51%; left: 49%; --r: -4deg; --fx: 4cqw; --fy: -75cqh; --dl: calc(var(--arrive-3) - 1.25s); }
.s1 .i4 { top: 43%; left: 63%; --r: 11deg; --fx: 40cqw; --fy: -65cqh; --dl: 2.6s; }
.s1 .i5 { top: 52%; left: 77%; --r: -7deg; --fx: 50cqw; --fy: -25cqh; --dl: 3s; }
.s1 .i6 { top: 67%; left: 29%; --r: 5deg; --fx: -60cqw; --fy: 15cqh; --dl: 3.35s; }
.s1 .i7 { top: 70%; left: 52%; --r: -12deg; --fx: 20cqw; --fy: 55cqh; --dl: 3.65s; }
.s1 .i8 { top: 67%; left: 71%; --r: 8deg; --fx: 60cqw; --fy: 20cqh; --dl: 3.9s; }
.scene.is-on.s1 .fm-ico { animation: s1-fly 1.25s var(--ease-out) var(--dl) both; }
@keyframes s1-fly { from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.6); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }

/* Scene 2: somebody has to sort it */
.s2-clock { position: absolute; top: 3%; left: 6%; width: 15cqmin; height: 15cqmin; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255, 255, 255, .02); }
.s2-clock::before, .s2-clock::after { content: ""; position: absolute; bottom: 50%; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); transform-origin: 50% 100%; }
.s2-clock::before { height: 26%; }
.s2-clock::after { height: 38%; background: var(--amber); }
.scene.is-on .s2-clock::after { animation: spin 1.3s linear infinite; }
.scene.is-on .s2-clock::before { animation: spin 15.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s2-time { position: absolute; top: 6.5%; left: 25%; font-family: var(--font-display); font-size: 4.6cqmin; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s2-time span { display: block; }
.s2-time span + span { position: absolute; inset: 0; color: var(--amber); opacity: 0; }
.scene.is-on .s2-time span:first-child { animation: fade-out .4s ease var(--time-at) both; }
.scene.is-on .s2-time span + span { animation: fade-in .4s ease var(--time-at) both; }
.s2-card { position: absolute; top: 44%; left: 8%; width: 32%; height: 22%; border: 1px solid rgba(140, 170, 195, .28); border-radius: 2.6cqmin; background: linear-gradient(160deg, #172534, #0c141d); box-shadow: 0 2cqmin 5cqmin -1cqmin rgba(0, 0, 0, .6); }
.s2-card::before, .s2-card::after { content: ""; position: absolute; left: 10%; height: 2.4cqmin; border-radius: 2cqmin; background: rgba(140, 170, 195, .35); }
.s2-card::before { top: 27%; width: 55%; background: rgba(140, 255, 248, .55); }
.s2-card::after { top: 60%; width: 75%; }
.s2-card > span { position: absolute; right: 8%; bottom: 12%; left: 10%; color: var(--text); font-size: 2.65cqmin; font-weight: 600; white-space: nowrap; }
.s2-card::after { top: 49%; width: 40%; }
.s2-card.c1 { rotate: -7deg; translate: -1cqw 2cqh; }
.s2-card.c2 { rotate: 4deg; translate: 1cqw 1cqh; }
.s2-card.c3 { rotate: -2deg; }
.s2-card.c4 { rotate: 6deg; translate: 0 -2cqh; }
.scene.is-on .s2-card.c4 { --drop-at: var(--sort-1); --drop-y: -36cqh; animation: s2-drop .78s var(--ease-in-out) calc(var(--drop-at) - .56s) both; }
.scene.is-on .s2-card.c3 { --drop-at: var(--sort-2); --drop-y: -5cqh; animation: s2-drop .78s var(--ease-in-out) calc(var(--drop-at) - .56s) both; }
.scene.is-on .s2-card.c2 { --drop-at: var(--sort-3); --drop-y: 26cqh; animation: s2-drop .78s var(--ease-in-out) calc(var(--drop-at) - .56s) both; }
@keyframes s2-drop { from { opacity: 1; transform: none; } 71.7949% { opacity: 1; transform: translate(54cqw, var(--drop-y)) scale(.55); } to { opacity: 0; transform: translate(54cqw, var(--drop-y)) scale(.3); } }
.s2-folder { position: absolute; left: 62%; width: 36%; height: 22%; display: flex; align-items: center; gap: 2cqmin; padding: 0 3cqmin; border: 1px solid rgba(140, 170, 195, .25); border-radius: 2.6cqmin; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 3.6cqmin; font-weight: 600; white-space: nowrap; }
.s2-folder::before { content: ""; flex: none; width: 5cqmin; height: 3.8cqmin; border: 1.5px solid currentColor; border-radius: .8cqmin; }
.s2-folder.f1 { top: 8%; --fd: calc(var(--sort-1) - .27s); }
.s2-folder.f2 { top: 39%; --fd: calc(var(--sort-2) - .27s); }
.s2-folder.f3 { top: 70%; --fd: calc(var(--sort-3) - .27s); font-size: 3cqmin; }
.scene.is-on .s2-folder { animation: s2-flash .9s ease var(--fd) both; }
@keyframes s2-flash { 0%, 100% { border-color: rgba(140, 170, 195, .25); background: rgba(255, 255, 255, .025); color: var(--muted); } 30% { border-color: var(--cyan); background: rgba(69, 227, 223, .14); color: var(--cyan-bright); } }
.s2-cursor { position: absolute; z-index: 3; top: 53%; left: 25%; width: 7cqmin; height: 7cqmin; color: #fff; filter: drop-shadow(0 1cqmin 2cqmin rgba(0, 0, 0, .7)); }
.s2-cursor svg { width: 100%; height: 100%; fill: currentColor; stroke: #04070b; stroke-width: 1.2; stroke-linejoin: round; }
.scene.is-on .s2-cursor { animation: s2-cursor var(--scene-dur) var(--ease-in-out) both; }
@keyframes s2-cursor {
  0% { transform: none; }
  0.6235% { transform: none; }
  9.7446%, 12.7297% { transform: translate(54cqw, -36cqh); }
  15.34% { transform: none; }
  24.461%, 27.4461% { transform: translate(54cqw, -5cqh); }
  30.0564% { transform: none; }
  39.1774%, 100% { transform: translate(54cqw, 26cqh); }
}

/* Scene 3: type it again */
.s3-win { position: absolute; width: 60%; height: 25%; overflow: hidden; border: 1px solid rgba(140, 170, 195, .28); border-radius: 2.8cqmin; background: linear-gradient(160deg, #142232, #0a1219); box-shadow: 0 3cqmin 7cqmin -2cqmin rgba(0, 0, 0, .7); }
.s3-win.w1 { top: 4%; left: 3%; --wd: max(0s, calc(var(--type-1) - .4s)); --td: var(--type-1); }
.s3-win.w2 { top: 37%; left: 20%; --wd: max(0s, calc(var(--type-2) - .4s)); --td: var(--type-2); }
.s3-win.w3 { top: 70%; left: 37%; --wd: max(0s, calc(var(--type-3) - .4s)); --td: var(--type-3); }
.s3-bar { display: flex; align-items: center; height: 34%; padding: 0 3cqmin; border-bottom: 1px solid rgba(140, 170, 195, .16); color: var(--quiet); font-size: 3cqmin; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.s3-bar::before { content: ""; flex: none; width: 1.6cqmin; height: 1.6cqmin; margin-right: 7cqmin; border-radius: 50%; background: #3a4b5b; box-shadow: 2.4cqmin 0 0 #3a4b5b, 4.8cqmin 0 0 #3a4b5b; }
.s3-field { display: flex; align-items: center; height: 66%; padding: 0 3cqmin; }
.s3-type { display: inline-block; width: 0; overflow: hidden; border-right: 2px solid transparent; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 4.2cqmin; line-height: 1.3; white-space: nowrap; }
.scene.is-on .s3-win { animation: s3-win .6s var(--ease-out) var(--wd) both; }
.scene.is-on .s3-type { animation: s3-type 1.1s steps(22, end) var(--td) both, s3-caret .7s step-end var(--td) 4; }
@keyframes s3-win { from { opacity: 0; transform: translateY(4cqh) scale(.96); } }
@keyframes s3-type { from { width: 0; } to { width: 22ch; } }
@keyframes s3-caret { 0% { border-right-color: var(--cyan); } 50% { border-right-color: transparent; } }
.s3-badge { position: absolute; top: 11%; right: 2%; padding: 1.4cqmin 3cqmin; border: 1px solid rgba(246, 201, 128, .6); border-radius: 99px; background: rgba(246, 201, 128, .12); color: var(--amber); font-size: 3.8cqmin; font-weight: 700; white-space: nowrap; }
.s3-badge { display: grid; gap: .5cqmin; }
.s3-badge > span { font-size: .68em; font-weight: 500; }
.s3-badge > b { font-size: 1em; }
.scene.is-on .s3-badge { animation: pop .45s var(--ease-out) var(--repeat-at) both; }
.s3-repeat-mark { position: absolute; top: 57%; left: 0; z-index: 3; display: flex; align-items: center; gap: 1.5cqmin; padding: 1.5cqmin 2.5cqmin; border: 1px solid rgba(246, 201, 128, .6); border-radius: 1.3cqmin; background: #292318; color: #f6d992; font-size: 3cqmin; font-weight: 700; rotate: -5deg; }
.s3-repeat-mark > span { font-size: 1.4em; line-height: 1; }
.scene.is-on .s3-repeat-mark { animation: cap-in .4s var(--ease-out) calc(var(--again-at) - .2s) both; }

/* Scene 4: friendly reminders follow agreed rules; people get the attention. */
.s4-heading { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; gap: 3cqmin; margin: 0; color: var(--text); font-size: 3.1cqmin; font-weight: 600; }
.s4-heading > span:last-child { color: var(--quiet); font-size: .85em; font-weight: 500; }
.s4-week { position: absolute; inset: 10% 0 52%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.8cqmin; }
.s4-day { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 2cqmin; min-width: 0; padding: 2.6cqmin 1.5cqmin; border: 1px solid rgba(140, 170, 195, .25); border-radius: 2.4cqmin; background: linear-gradient(160deg, #152433, #0b141d); }
.s4-day > b { color: var(--text); font-size: 3.5cqmin; font-weight: 600; letter-spacing: .02em; }
.s4-message { display: grid; align-content: center; gap: 1.5cqmin; width: 100%; padding-inline: .5cqmin; }
.s4-message i { height: 1.3cqmin; border-radius: 2px; background: #52697b; transform-origin: left; }
.s4-message i:nth-child(2) { width: 74%; }
.s4-message i:nth-child(3) { width: 88%; }
.s4-send { display: flex; align-items: center; justify-content: center; gap: 1cqmin; width: 100%; min-height: 6cqmin; border: 1px solid rgba(69, 227, 223, .35); border-radius: 1.3cqmin; background: #153b3d; color: #b6fff7; font-size: 3cqmin; font-weight: 600; white-space: nowrap; }
.s4-send i { font-style: normal; }
.s4-day:nth-child(1) { --day-at: var(--send-1); }
.s4-day:nth-child(2) { --day-at: var(--send-2); }
.s4-day:nth-child(3) { --day-at: var(--send-3); }
.s4-day:nth-child(4) { --day-at: var(--send-4); }
.s4-day:nth-child(5) { --day-at: var(--send-5); }
.scene.is-on .s4-day { animation: s4-today .5s ease calc(var(--day-at) - .15s) both; }
.scene.is-on .s4-message i { animation: s4-type .35s steps(5, end) calc(var(--day-at) - .35s) both; }
.scene.is-on .s4-send { animation: s4-send .42s ease calc(var(--day-at) - .147s) both; }
@keyframes s4-today { 0% { border-color: rgba(140, 170, 195, .25); } 30% { border-color: var(--cyan); box-shadow: 0 0 5cqmin rgba(69, 227, 223, .15); } 100% { border-color: rgba(69, 227, 223, .45); } }
@keyframes s4-type { from { transform: scaleX(0); } to { transform: none; } }
@keyframes s4-send { 0%, 100% { transform: none; } 35% { transform: scale(.86); background: #7ce8d9; color: #052d2b; } }
.s4-rules { position: absolute; inset: 54% 2% auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6cqmin 3cqmin; color: #b6fff7; font-size: 2.9cqmin; text-align: center; }
.s4-rules b { flex-basis: 100%; font-size: 1.15em; font-weight: 600; }
.s4-rules > span { padding: 1cqmin 2cqmin; border: 1px solid rgba(69, 227, 223, .32); border-radius: 99px; background: #0b292e; }
.scene.is-on .s4-rules { animation: cap-in .5s var(--ease-out) var(--rules-at) both; }
.scene.is-on .s4-draft { animation: s4-ready .5s ease var(--draft-at) both; }
@keyframes s4-ready { 50% { background: #1a5b5b; box-shadow: 0 0 3cqmin rgba(69, 227, 223, .22); } }
.s4-attention { position: absolute; inset: 77% 0 0; display: flex; align-items: center; gap: 3cqmin; padding: 2cqmin 3cqmin; border: 1px solid rgba(246, 201, 128, .5); border-radius: 3cqmin; background: linear-gradient(110deg, #30291e, #171b21); }
.s4-person { display: grid; flex: none; place-items: center; width: 12cqmin; height: 12cqmin; border-radius: 50%; background: rgba(246, 201, 128, .12); color: var(--amber); }
.s4-person svg { width: 8cqmin; height: 8cqmin; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s4-attention > div { min-width: 0; }
.s4-attention > div > span { display: block; margin-bottom: 1cqmin; color: var(--amber); font-size: 2.9cqmin; }
.s4-attention b { display: block; color: var(--text); font-size: 4.4cqmin; font-weight: 600; line-height: 1.2; }
.s4-reply { margin-left: auto; color: #b6fff7; font-size: 3.2cqmin; white-space: nowrap; }
.scene.is-on .s4-attention { animation: cap-in .55s var(--ease-out) var(--attention-at) both; }
.scene.is-on .s4-reply { animation: fade-in .4s ease calc(var(--attention-at) + .6s) both; }
@keyframes stamp { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }


/* Scene 5: the tools finally talk */
.s5-grid { position: absolute; inset: 20% 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 5cqmin; }
.s5-grid::before { content: ""; position: absolute; top: 50%; left: 16%; width: 68%; height: 2px; background: var(--cyan); box-shadow: 0 0 3cqmin rgba(69, 227, 223, .6); transform-origin: left; }
.scene.is-on .s5-grid::before { animation: s5-connect 1.2s ease var(--connect-at) both; }
@keyframes s5-connect { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
.s5-tile { position: relative; z-index: 1; display: grid; align-content: center; justify-items: center; gap: 3cqmin; min-width: 0; padding: 3cqmin 1.5cqmin; border: 1px solid rgba(140, 170, 195, .3); border-radius: 3cqmin; background: linear-gradient(160deg, #15283a, #0a1219); color: var(--cyan-bright); text-align: center; box-shadow: 0 3cqmin 6cqmin -3cqmin #000; }
.s5-tile svg { width: 10cqmin; height: 10cqmin; }
.s5-name { color: var(--text); font-family: var(--font-display); font-size: 3.4cqmin; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.s5-status { color: #afeed1; font-size: 2.7cqmin; line-height: 1.3; }
.s5-status b { display: block; margin-top: 1cqmin; font-size: 1.25em; }
.s5-tile:nth-child(1) { --t5: calc(var(--tool-1) - .33s); --connected-at: var(--connection-1); --connect-beat: calc(var(--connection-1) - .25s); }
.s5-tile:nth-child(2) { --t5: calc(var(--tool-2) - .33s); --connected-at: var(--connection-2); --connect-beat: calc(var(--connection-2) - .25s); }
.s5-tile:nth-child(3) { --t5: calc(var(--tool-3) - .33s); --connected-at: var(--connection-3); --connect-beat: calc(var(--connection-3) - .25s); }
.scene.is-on .s5-tile { animation: pop .55s var(--ease-out) var(--t5) both, s5-connected .5s ease var(--connect-beat) forwards; }
@keyframes s5-connected { 50% { border-color: var(--cyan); box-shadow: 0 0 5cqmin rgba(69, 227, 223, .3); } 100% { border-color: rgba(69, 227, 223, .6); } }
.scene.is-on .s5-status { animation: fade-in .3s ease calc(var(--connected-at) - .15s) both; }

/* Scene 6: TandemFlow puts it in flow */
.s6-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s6-lines path { fill: none; stroke: rgba(140, 170, 195, .35); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.scene.is-on .s6-lines path { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -10; } }
.s6-hub { position: absolute; z-index: 2; top: 50%; left: 34%; display: grid; place-items: center; width: 24cqmin; height: 24cqmin; border: 1px solid rgba(69, 227, 223, .5); border-radius: 6cqmin; background: radial-gradient(circle, rgba(69, 227, 223, .18), rgba(4, 7, 11, .92) 70%); box-shadow: 0 0 6cqmin rgba(69, 227, 223, .35); translate: -50% -50%; }
.s6-hub img { width: 70%; height: 70%; border-radius: 4cqmin; }
.s6-hub::before, .s6-hub::after { content: ""; position: absolute; inset: -3cqmin; border: 1px solid rgba(69, 227, 223, .35); border-radius: 8cqmin; opacity: 0; }
.scene.is-on .s6-hub { animation: pop .6s var(--ease-out) calc(var(--hub-at) - .36s) both; }
.scene.is-on .s6-hub::before { animation: ring 2.2s ease-out var(--hub-at) infinite; }
.scene.is-on .s6-hub::after { animation: ring 2.2s ease-out calc(var(--hub-at) + 1.1s) infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.5); } }
.s6 .fm-ico { top: 50%; left: 34%; width: 9cqmin; height: 9cqmin; border-radius: 2.4cqmin; opacity: 0; }
.s6 .k1 { --sy: -30cqh; --kd: .5s; }
.s6 .k2 { --sy: -10cqh; --kd: 1s; }
.s6 .k3 { --sy: 12cqh; --kd: 1.5s; }
.s6 .k4 { --sy: 32cqh; --kd: 2s; }
.s6 .k5 { --sy: -20cqh; --kd: 2.5s; }
.s6 .k6 { --sy: 22cqh; --kd: 3s; }
.scene.is-on.s6 .fm-ico { animation: s6-in 1s cubic-bezier(.5, 0, .75, 0) var(--kd) both; }
@keyframes s6-in { from { opacity: 0; transform: translate(-34cqw, var(--sy)); } 20%, 85% { opacity: 1; } to { opacity: 0; transform: scale(.4); } }
.s6-lane { position: absolute; left: 62%; width: 36%; height: 21%; display: grid; align-content: center; gap: .8cqmin; padding: 0 3cqmin; border: 1px solid rgba(var(--lr), .4); border-left: 3px solid rgb(var(--lr)); border-radius: 2.4cqmin; background: rgba(var(--lr), .06); }
.s6-lane b { color: rgb(var(--lr)); font-family: var(--font-display); font-size: 3.3cqmin; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.s6-lane span { color: var(--text); font-size: 3.1cqmin; line-height: 1.25; opacity: 0; }
.s6-lane.l1 { top: 9%; --lr: 69, 227, 223; --sd: var(--route-1); }
.s6-lane.l2 { top: 39.5%; --lr: 246, 201, 128; --sd: var(--route-2); }
.s6-lane.l3 { top: 70%; --lr: 132, 180, 255; --sd: var(--route-3); }
.scene.is-on .s6-lane span { animation: fade-in .5s ease calc(var(--sd) - .25s) both; }
.scene.is-on .s6-lane.l3 { animation: s6-approval .75s ease calc(var(--approve-at) - .375s) both; }
@keyframes s6-approval { 50% { border-color: #b9d5ff; background: rgba(132, 180, 255, .22); box-shadow: 0 0 5cqmin rgba(132, 180, 255, .22); } }
.s6-dot { position: absolute; top: 50%; left: 44%; width: 2.8cqmin; height: 2.8cqmin; margin: -1.4cqmin 0 0 -1.4cqmin; border-radius: 50%; background: rgb(var(--lr)); box-shadow: 0 0 2.4cqmin rgb(var(--lr)); opacity: 0; }
.s6-dot.d1 { --lr: 69, 227, 223; --tx: 18cqw; --ty: -30.5cqh; --od: calc(var(--route-1) - .8s); }
.s6-dot.d2 { --lr: 246, 201, 128; --tx: 18cqw; --ty: 0cqh; --od: calc(var(--route-2) - .8s); }
.s6-dot.d3 { --lr: 69, 227, 223; --tx: 18cqw; --ty: -30.5cqh; --od: var(--route-1); }
.s6-dot.d4 { --lr: 132, 180, 255; --tx: 18cqw; --ty: 30.5cqh; --od: calc(var(--route-3) - .8s); }
.s6-dot.d5 { --lr: 69, 227, 223; --tx: 18cqw; --ty: -30.5cqh; --od: calc(var(--route-1) + .9s); }
.s6-dot.d6 { --lr: 246, 201, 128; --tx: 18cqw; --ty: 0cqh; --od: calc(var(--route-2) + .9s); }
.scene.is-on .s6-dot { animation: s6-out .8s var(--ease-in-out) var(--od) both; }
@keyframes s6-out { from { opacity: 0; transform: none; } 15%, 85% { opacity: 1; } to { opacity: 0; transform: translate(var(--tx), var(--ty)); } }

/* Scene 7: the collection opens into custom work and a new question. */
.s7-offer { position: absolute; inset: 0 0 16%; display: grid; align-content: center; justify-items: center; gap: 2.5cqmin; text-align: center; }
.s7-count { display: flex; align-items: center; justify-content: center; gap: 5cqmin; margin: 0; font-family: var(--font-display); font-size: 29cqmin; font-weight: 600; line-height: .95; letter-spacing: -.055em; }
.s7-count > b { font-weight: inherit; }
.s7-infinity { color: var(--cyan-bright); font-size: .7em; letter-spacing: -.035em; white-space: nowrap; text-shadow: 0 0 8cqmin rgba(69, 227, 223, .25); }
.s7-offer-copy { margin: 0; color: var(--text); font-size: 5.2cqmin; font-weight: 500; line-height: 1.15; letter-spacing: -.015em; }
.s7-endless { margin: 1cqmin 0 0; color: #b6fff7; font-size: 4.6cqmin; font-weight: 500; line-height: 1.25; }
.s7-question { position: absolute; right: 4%; bottom: 0; left: 4%; padding: 2.8cqmin 2cqmin; border: 1px solid rgba(246, 201, 128, .4); border-radius: 99px; background: #28251f; color: #f6d8a5; font-size: 4.1cqmin; text-align: center; }
.scene.is-on .s7-offer { animation: cap-in .65s var(--ease-out) var(--catalog-at) both; }
.scene.is-on .s7-count > b { animation: pop .5s var(--ease-out) var(--count-at) both; }
.scene.is-on .s7-infinity { animation: pop .65s var(--ease-out) var(--endless-at) both; }
.scene.is-on .s7-endless { animation: cap-in .65s var(--ease-out) var(--endless-at) both; }
.scene.is-on .s7-question { animation: cap-in .5s var(--ease-out) var(--question-at) both; }

.s8 { --scene-dur: 15.6s; --teach-at: 1.785s; --prompt-at: 3.021s; --answer-at: 4.566s; --warning-at: 8.4s; --check-at: 12.0355s; --human-at: 14.2993s; }

/* Scene 8: a practical learning session, including checking what AI produces. */
.s8-workshop { position: absolute; inset: 0 5% 15%; padding: 4cqmin; border: 1px solid rgba(132, 180, 255, .45); border-radius: 4cqmin; background: linear-gradient(160deg, #142538, #09121d); box-shadow: 0 3cqmin 8cqmin -3cqmin #000; }
.s8-title { display: flex; justify-content: space-between; gap: 2cqmin; margin: 0 0 3cqmin; color: var(--text); font-size: 3.6cqmin; font-weight: 600; }
.s8-title b { color: var(--cyan-bright); font-size: .8em; font-weight: 500; }
.s8-prompt { padding: 2.6cqmin 3cqmin; border-radius: 2cqmin; background: #203c4d; }
.s8-prompt > span, .s8-answer > span { color: #a3c6d7; font-size: 2.7cqmin; }
.s8-prompt p { margin: 1cqmin 0 0; color: var(--text); font-size: 4.3cqmin; line-height: 1.35; }
.s8-answer { position: relative; margin: 3cqmin 0 0; padding: 0 2cqmin; }
.s8-answer i { display: block; width: 82%; height: 1.2cqmin; margin-top: 1.4cqmin; border-radius: 1cqmin; background: #5d7d91; }
.s8-answer i:nth-of-type(2) { width: 92%; }
.s8-answer i:nth-of-type(3) { width: 66%; }
.s8-answer b { position: absolute; right: 2cqmin; bottom: -.4cqmin; padding: .8cqmin 1.7cqmin; border: 1px solid rgba(246, 201, 128, .6); border-radius: 1cqmin; background: #302819; color: #f6d8a5; font-size: 2.7cqmin; font-weight: 500; }
.s8-check { display: flex; align-items: center; gap: 2.5cqmin; margin-top: 4cqmin; color: #b6fff7; }
.s8-check > span { font-size: 6cqmin; }
.s8-check b { display: block; margin-bottom: .7cqmin; font-size: 3.6cqmin; font-weight: 600; }
.s8-check div > span { display: block; color: #a6c5cb; font-size: 2.8cqmin; }
.s8-human { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; color: var(--cyan-bright); font-family: var(--font-display); font-size: 4.8cqmin; font-weight: 600; text-align: center; }
.scene.is-on .s8-workshop { animation: cap-in .6s var(--ease-out) var(--teach-at) both; }
.scene.is-on .s8-prompt { animation: cap-in .45s var(--ease-out) var(--prompt-at) both; }
.scene.is-on .s8-answer { animation: cap-in .45s var(--ease-out) var(--answer-at) both; }
.scene.is-on .s8-answer b { animation: pop .35s var(--ease-out) var(--warning-at) both; }
.scene.is-on .s8-check { animation: cap-in .5s var(--ease-out) var(--check-at) both; }
.scene.is-on .s8-human { animation: cap-in .5s var(--ease-out) var(--human-at) both; }

.s9 { --scene-dur: 17.47s; --inbox-at: 2.4774s; --customers-at: 5.088s; --ideas-at: 6.215s; --life-at: 7.587s; --dinner-at: 9.28s; --tagline-at: 13.86s; }

/* Scene 9: attention for the business and a life beyond the inbox. */
.s9-heading { margin: 2cqmin 0 0; color: var(--text); font-family: var(--font-display); font-size: 5.3cqmin; font-weight: 600; line-height: 1.15; text-align: center; }
.s9-inbox { position: absolute; top: 13%; right: 0; left: 0; color: #a3c6c5; font-size: 2.7cqmin; text-align: center; }
.s9-priorities { position: absolute; inset: 20% 0 28%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5cqmin; }
.s9-priority { display: grid; align-content: center; justify-items: center; gap: 2cqmin; min-width: 0; padding: 3cqmin 1.5cqmin; border: 1px solid rgba(132, 180, 255, .4); border-radius: 3cqmin; background: linear-gradient(155deg, #172d42, #0a151f); text-align: center; }
.s9-priority svg { width: 11cqmin; height: 11cqmin; margin-bottom: 1cqmin; color: var(--blue-soft); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s9-priority b { color: var(--text); font-size: 3.7cqmin; font-weight: 600; line-height: 1.2; }
.s9-priority > span { color: var(--muted); font-size: 2.8cqmin; }
.s9-life { border-color: rgba(246, 201, 128, .45); background: linear-gradient(155deg, #332e22, #151715); }
.s9-life svg { color: var(--amber); }
.s9-brand { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 3cqmin; }
.s9-brand img { width: 16cqmin; height: 16cqmin; border-radius: 4cqmin; }
.s9-brand p { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 5.4cqmin; font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
.s9-brand p > span { color: var(--cyan-bright); }
.scene.is-on .s9-heading { animation: cap-in .5s var(--ease-out) .15s both; }
.scene.is-on .s9-inbox { animation: cap-in .4s var(--ease-out) var(--inbox-at) both; }
.scene.is-on .s9-priority:nth-child(1) { animation: pop .55s var(--ease-out) var(--customers-at) both; }
.scene.is-on .s9-priority:nth-child(2) { animation: pop .55s var(--ease-out) var(--ideas-at) both; }
.scene.is-on .s9-life { animation: pop .55s var(--ease-out) var(--life-at) both, s9-dinner .7s ease var(--dinner-at) forwards; }
.scene.is-on .s9-brand { animation: cap-in .6s var(--ease-out) var(--tagline-at) both; }
@keyframes s9-dinner { 50% { border-color: #f6c980; box-shadow: 0 0 5cqmin rgba(246, 201, 128, .22); } 100% { border-color: rgba(246, 201, 128, .75); } }

/* These mobile compositions reserve a real row for wrapped scene captions. */
@media (max-width: 640px) {
  .scene:is(.s4, .s7, .s8, .s9) { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 30px 7% 20px; }
  .scene:is(.s4, .s7, .s8, .s9) > .scene-viz { position: relative; top: auto; left: auto; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; transform: none; }
  .scene:is(.s4, .s7, .s8, .s9) > .scene-cap { position: static; margin: 0; }
}


/* Controls under the stage */
.film-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.film-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .25s ease, background-color .25s ease, transform .2s ease;
}
.film-btn:hover { border-color: rgba(69, 227, 223, .6); background: rgba(69, 227, 223, .07); }
.film-btn:active { transform: scale(.96); }
.film-play { border-color: rgba(140, 255, 248, .55); background: rgba(69, 227, 223, .12); }
.film-play-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.film.is-paused .film-play-icon { width: 0; height: 0; border-inline: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.film-now { flex: 1; min-width: 0; margin: 0; color: var(--muted); font-size: .9rem; }
.film-now b { color: var(--cyan); font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.film-script { margin-top: 14px; border-top: 1px solid var(--line); }
.film-script summary { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--quiet); cursor: pointer; font-size: .875rem; list-style: none; }
.film-script summary::-webkit-details-marker { display: none; }
.film-script summary::after { content: "+"; color: var(--cyan); font-size: 1.15rem; transition: transform .3s var(--ease-out); }
.film-script[open] summary::after { transform: rotate(45deg); }
.film-script ol { display: grid; gap: 10px; margin: 0 0 8px; padding-left: 1.4rem; color: var(--muted); }
.film-script li b { color: var(--text); font-weight: 600; }
.film-script li.is-current b { color: var(--cyan-bright); }
.film-note { margin: 10px 0 0; color: var(--quiet); font-size: .8125rem; }
.film-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: clamp(30px, 4vw, 44px); }
.film-explore { justify-content: flex-start; padding-top: 24px; border-top: 1px solid var(--line); }
.film-explore .button { max-width: 100%; white-space: normal; text-align: left; }
.film-explore .button > span:first-child { min-width: 0; line-height: 1.3; }
.film-explore p { max-width: 27rem; margin: 0; color: var(--muted); font-size: .95rem; }
.film-explore p .text-link { display: inline; }

/* ---------- Standalone guidance and team training ---------- */
.learning-hero-link { margin-top: 1.1rem; font-size: .92rem; }
.learning-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 7vw, 100px); }
.learning-intro h2 { max-width: 14ch; font-size: clamp(2.2rem, 4.5vw, 3.7rem); }
.learning-intro .px-sub { max-width: 39rem; }
.learning-scope { max-width: 36rem; margin: 1.25rem 0 1.5rem; color: var(--quiet); font-size: .9rem; line-height: 1.6; }
.learning-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.learning-steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.learning-steps li:last-child { border-bottom: 1px solid var(--line-strong); }
.learning-number { padding-top: .2em; color: var(--cyan-bright); font-family: var(--font-display); font-size: .9rem; font-variant-numeric: tabular-nums; }
.learning-steps h3 { margin: 0 0 .65rem; font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.learning-steps p { max-width: 33rem; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
@media (max-width: 900px) {
  .learning-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .learning-intro h2 { max-width: 18ch; }
}
@media (max-width: 640px) {
  .learning-intro .button { width: 100%; white-space: normal; }
  .learning-steps li { grid-template-columns: 2rem minmax(0, 1fr); gap: 14px; padding: 24px 0; }
}


/* ---------- Six jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.job {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  /* The accent line is a background layer, so ::before and ::after stay free for the spotlight. */
  background:
    linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .85), transparent) top / 100% 2px no-repeat,
    linear-gradient(160deg, #101b27, #080d13);
}
.job-viz { position: relative; height: 132px; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(100% 120% at 0% 0%, rgba(var(--accent-rgb), .1), transparent 60%), rgba(4, 7, 11, .6); }
.job-num { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--accent); font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.job-num span { color: var(--quiet); }
.job h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
.job p:not(.job-num) { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.job-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.job-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Mini scene: capture */
.jv-capture i { position: absolute; top: 18px; left: 10%; width: 26%; height: 12px; border-radius: 6px; background: #2a3d4d; }
.jv-capture i:nth-child(2) { left: 39%; }
.jv-capture i:nth-child(3) { left: 66%; width: 22%; }
.jv-tray { position: absolute; right: 18px; bottom: 16px; left: 18px; height: 32px; border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 10px; background: rgba(var(--accent-rgb), .08); }
.motion .jv-capture i { animation: jv-drop 3.6s var(--ease-in-out) infinite both; }
.motion .jv-capture i:nth-child(2) { animation-delay: .7s; }
.motion .jv-capture i:nth-child(3) { animation-delay: 1.4s; }
@keyframes jv-drop {
  0% { opacity: 0; transform: translateY(-24px); }
  15% { opacity: 1; transform: none; }
  50% { opacity: 1; transform: translateY(70px) scale(.85); background: var(--accent); }
  62%, 100% { opacity: 0; transform: translateY(74px) scale(.7); background: var(--accent); }
}
/* Mini scene: follow-up */
.jv-line { position: absolute; top: 64px; right: 28px; left: 28px; height: 2px; border-radius: 2px; background: rgba(140, 170, 195, .22); }
.jv-follow i { position: absolute; top: 59px; width: 12px; height: 12px; margin-left: -6px; border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 50%; background: #1d2c38; }
.jv-follow i:nth-of-type(1) { left: 14%; }
.jv-follow i:nth-of-type(2) { left: 36%; }
.jv-follow i:nth-of-type(3) { left: 58%; }
.jv-follow i:nth-of-type(4) { left: 80%; }
.jv-check { position: absolute; top: 52px; right: 16px; width: 26px; height: 26px; border: 1px solid rgba(127, 227, 168, .6); border-radius: 50%; background: rgba(127, 227, 168, .12); }
.jv-check::after { content: ""; position: absolute; top: 7px; left: 8px; width: 9px; height: 5px; border-bottom: 2px solid #7fe3a8; border-left: 2px solid #7fe3a8; transform: rotate(-45deg); }
.jv-pulse { position: absolute; top: 60px; left: 28px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px rgba(var(--accent-rgb), .6); opacity: 0; }
.motion .jv-pulse { animation: jv-run 3.6s linear infinite; }
.motion .jv-follow i { animation: jv-node 3.6s ease-out infinite both; }
.motion .jv-follow i:nth-of-type(2) { animation-delay: .55s; }
.motion .jv-follow i:nth-of-type(3) { animation-delay: 1.1s; }
.motion .jv-follow i:nth-of-type(4) { animation-delay: 1.65s; }
.motion .jv-check { animation: jv-check 3.6s ease infinite both; }
@keyframes jv-run { 0% { left: 28px; opacity: 0; } 6%, 70% { opacity: 1; } 78%, 100% { left: calc(100% - 44px); opacity: 0; } }
@keyframes jv-node { 0%, 6% { background: #1d2c38; } 12% { background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); } 40%, 100% { background: rgba(var(--accent-rgb), .35); box-shadow: none; } }
@keyframes jv-check { 0%, 70% { opacity: .25; transform: scale(.8); } 78%, 100% { opacity: 1; transform: none; } }
/* Mini scene: paperwork */
.jv-doc { position: absolute; top: 18px; bottom: 18px; left: 50%; width: 92px; margin-left: -46px; border: 1px solid rgba(140, 170, 195, .3); border-radius: 10px; background: linear-gradient(160deg, #162433, #0b131c); }
.jv-doc i { position: absolute; left: 14px; height: 7px; border-radius: 4px; background: rgba(var(--accent-rgb), .7); transform-origin: left; }
.jv-doc i:nth-child(1) { top: 16px; width: 48px; }
.jv-doc i:nth-child(2) { top: 36px; width: 62px; background: rgba(140, 170, 195, .4); }
.jv-doc i:nth-child(3) { top: 54px; width: 56px; background: rgba(140, 170, 195, .4); }
.jv-doc i:nth-child(4) { top: 72px; width: 40px; background: rgba(140, 170, 195, .4); }
.jv-stamp { position: absolute; top: 50%; left: calc(50% + 34px); width: 40px; height: 40px; margin-top: -20px; border: 2px solid #7fe3a8; border-radius: 50%; background: rgba(4, 7, 11, .7); }
.jv-stamp::after { content: ""; position: absolute; top: 11px; left: 11px; width: 14px; height: 7px; border-bottom: 2px solid #7fe3a8; border-left: 2px solid #7fe3a8; transform: rotate(-45deg); }
.motion .jv-doc i { animation: jv-line 3.6s var(--ease-out) infinite both; }
.motion .jv-doc i:nth-child(2) { animation-delay: .3s; }
.motion .jv-doc i:nth-child(3) { animation-delay: .6s; }
.motion .jv-doc i:nth-child(4) { animation-delay: .9s; }
.motion .jv-stamp { animation: jv-stamp 3.6s cubic-bezier(.2, 1.6, .4, 1) infinite both; }
@keyframes jv-line { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes jv-stamp { 0%, 45% { opacity: 0; transform: scale(1.8) rotate(-15deg); } 55%, 88% { opacity: 1; transform: rotate(-15deg); } 100% { opacity: 0; transform: rotate(-15deg); } }
/* Mini scene: answers */
.jv-search { position: absolute; top: 16px; right: 18px; left: 18px; height: 36px; display: flex; align-items: center; padding: 0 14px 0 34px; border: 1px solid rgba(140, 170, 195, .3); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.jv-search::before { content: ""; position: absolute; top: 11px; left: 13px; width: 10px; height: 10px; border: 2px solid var(--quiet); border-radius: 50%; }
.jv-q { display: inline-block; width: 0; overflow: hidden; border-right: 2px solid var(--accent); color: var(--text); font-size: .82rem; white-space: nowrap; }
.jv-answer { position: absolute; right: 18px; bottom: 14px; left: 18px; height: 54px; padding: 10px 12px; border: 1px solid rgba(var(--accent-rgb), .45); border-radius: 12px; background: rgba(var(--accent-rgb), .07); }
.jv-answer i { display: block; height: 7px; margin-bottom: 9px; border-radius: 4px; background: rgba(140, 170, 195, .35); }
.jv-answer i:first-child { width: 78%; }
.jv-answer i.jv-hl { width: 56%; background: var(--accent); }
.jv-answer em { position: absolute; top: 9px; right: 10px; color: var(--accent); font-size: .68rem; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.jv-q { width: 13ch; }
.motion .jv-q { animation: jv-type 4s steps(13, end) infinite both; }
.motion .jv-answer { animation: jv-answer 4s var(--ease-out) infinite both; }
@keyframes jv-type { 0% { width: 0; } 30%, 100% { width: 13ch; } }
@keyframes jv-answer { 0%, 32% { opacity: 0; transform: translateY(10px); } 42%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* Mini scene: visibility */
.jv-see { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 18px 24px; }
.jv-see i { width: 12%; max-width: 30px; height: var(--h); border-radius: 6px 6px 2px 2px; background: rgba(var(--accent-rgb), .35); transform-origin: bottom; }
.jv-see i:nth-child(1) { --h: 38%; }
.jv-see i:nth-child(2) { --h: 62%; }
.jv-see i:nth-child(3) { --h: 48%; }
.jv-see i:nth-child(4) { --h: 86%; background: var(--accent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .5); }
.jv-see i:nth-child(5) { --h: 56%; }
.jv-see i:nth-child(6) { --h: 72%; }
.motion .jv-see i { animation: jv-bar 3.6s var(--ease-out) infinite both; }
.motion .jv-see i:nth-child(2) { animation-delay: .12s; }
.motion .jv-see i:nth-child(3) { animation-delay: .24s; }
.motion .jv-see i:nth-child(4) { animation-delay: .36s; }
.motion .jv-see i:nth-child(5) { animation-delay: .48s; }
.motion .jv-see i:nth-child(6) { animation-delay: .6s; }
@keyframes jv-bar { 0% { transform: scaleY(.08); } 30%, 85% { transform: none; } 100% { transform: scaleY(.08); } }
/* Mini scene: relationships */
.jv-av { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 50%; background: rgba(var(--accent-rgb), .1); color: var(--text); font-size: .7rem; font-weight: 700; }
.jv-av.a1 { left: 20px; }
.jv-av.a2 { right: 20px; }
.jv-bub { position: absolute; height: 18px; border-radius: 9px; background: rgba(140, 170, 195, .3); }
.jv-bub.b1 { top: 26px; left: 72px; width: 38%; border-bottom-left-radius: 3px; }
.jv-bub.b2 { top: 56px; right: 72px; width: 32%; border-bottom-right-radius: 3px; background: rgba(var(--accent-rgb), .7); }
.jv-bub.b3 { top: 86px; left: 72px; width: 26%; border-bottom-left-radius: 3px; }
.motion .jv-bub { animation: jv-bub 4.2s var(--ease-out) infinite both; }
.motion .jv-bub.b2 { animation-delay: .9s; }
.motion .jv-bub.b3 { animation-delay: 1.8s; }
@keyframes jv-bub { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 12%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Idea engine ---------- */
.px-engine { position: relative; height: 320vh; height: 320svh; }
.engine-pin { position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; overflow: hidden; }
.engine-grid {
  display: grid;
  grid-template-areas: "head drum" "card drum";
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 26px clamp(28px, 5vw, 72px);
}
.engine-head { grid-area: head; align-self: end; }
.engine-head .eyebrow { margin-bottom: 1rem; }
.engine-head h2 { margin-bottom: 22px; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.engine-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drum { position: relative; grid-area: drum; align-self: center; height: min(72vh, 640px); }
.drum-wheel {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.drum-item {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  margin-top: -23px;
  padding: 0 24px;
  color: rgba(238, 244, 247, .78);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  visibility: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.drum-item-num { flex: none; width: 3.2ch; color: var(--quiet); font-size: .66em; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.drum-item-title { overflow: hidden; text-overflow: ellipsis; }
.drum-item.is-front { color: var(--text); }
.drum-item.is-front .drum-item-num { color: var(--accent); }
.drum-lens {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 56px;
  margin-top: -28px;
  border: 1px solid rgba(var(--accent-rgb, 69, 227, 223), .5);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb, 69, 227, 223), .13), rgba(var(--accent-rgb, 69, 227, 223), .03));
  box-shadow: 0 0 40px -10px rgba(var(--accent-rgb, 69, 227, 223), .5);
  pointer-events: none;
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease;
}
.drum-card {
  position: relative;
  grid-area: card;
  align-self: start;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 26, 38, .95), rgba(7, 12, 18, .92));
  box-shadow: 0 40px 90px -50px #000;
}
.drum-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent, var(--cyan)), transparent); }
.drum-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; color: var(--quiet); font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.drum-num { font-variant-numeric: tabular-nums; }
.drum-pattern { color: var(--accent, var(--cyan)); }
.drum-title { margin: 0 0 10px; font-size: clamp(1.4rem, 2.3vw, 1.95rem); }
.drum-line { min-height: 3.1em; margin: 0 0 16px; color: var(--muted); }
.drum-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; color: var(--quiet); font-size: .8rem; }
.drum-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.drum-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font-size: 1rem; transition: border-color .25s ease, background-color .25s ease, transform .2s ease; }
.drum-btn:hover { border-color: rgba(69, 227, 223, .6); }
.drum-btn:active { transform: scale(.94); }
.drum-start { margin-left: auto; }
.drum-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.drum-card.swap-a :is(.drum-meta, .drum-title, .drum-line, .drum-tags) { animation: card-swap-a .42s var(--ease-out) both; }
.drum-card.swap-b :is(.drum-meta, .drum-title, .drum-line, .drum-tags) { animation: card-swap-b .42s var(--ease-out) both; }
.drum-card.swap-a .drum-title, .drum-card.swap-b .drum-title { animation-delay: .03s; }
.drum-card.swap-a .drum-line, .drum-card.swap-b .drum-line { animation-delay: .06s; }
.drum-card.swap-a .drum-tags, .drum-card.swap-b .drum-tags { animation-delay: .09s; }
@keyframes card-swap-a { from { opacity: .15; transform: translateY(8px); } }
@keyframes card-swap-b { from { opacity: .15; transform: translateY(8px); } }
.drum-hint { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--quiet); font-size: .8125rem; }
.drum-hint i { position: relative; flex: none; width: 18px; height: 28px; border: 1.5px solid var(--quiet); border-radius: 10px; }
.drum-hint i::after { content: ""; position: absolute; top: 5px; left: 50%; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); }
.motion .drum-hint i::after { animation: wheel-hint 1.8s ease-in-out infinite; }
@keyframes wheel-hint { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* ---------- Library ---------- */
.lib-custom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(18px, 3vw, 38px); margin-top: clamp(28px, 4vw, 48px); padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(69, 227, 223, .35); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(69, 227, 223, .09), rgba(90, 160, 255, .035)); }
.lib-custom-symbol { color: var(--cyan-bright); font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; white-space: nowrap; }
.lib-custom .eyebrow { margin-bottom: .8rem; }
.lib-custom h3 { max-width: 26ch; margin-bottom: .85rem; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.lib-custom p:not(.eyebrow) { max-width: 46rem; margin: 0 0 1.4rem; color: var(--muted); }
.lib-custom .button { max-width: 100%; white-space: normal; text-align: left; }
.lane-key { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.lane-key .lane-badge { min-height: 30px; padding: 4px 12px; font-size: .78rem; }
.lane-key .lane-badge span { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.lib-tools { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 14px 24px; margin-bottom: 26px; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--control);
  border-radius: 999px;
  background: rgba(3, 6, 10, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e9dac' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") 16px center / 18px no-repeat;
  color: var(--text);
  font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lib-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(69, 227, 223, .2); }
.lib-search input::placeholder { color: #7f8f9e; }
.lib-count { grid-column: 1 / -1; margin: 0; color: var(--quiet); font-size: .85rem; }
.lib-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.idea-group {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 26, 38, .8), rgba(7, 12, 18, .7));
}
.idea-group::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.idea-group-title { margin: 0 0 6px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); scroll-margin-top: 100px; }
.group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.group-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .7); }
.group-name { flex: 1; min-width: 0; }
.group-count { flex: none; min-width: 2.2em; padding: 3px 9px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 999px; color: var(--accent); font-family: var(--font-body); font-size: .75rem; font-weight: 600; text-align: center; }
.group-chev { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .4s var(--ease-out), background-color .3s ease; }
.group-chev::before, .group-chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; border-radius: 2px; background: var(--accent); }
.group-chev::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.idea-group.is-open .group-chev::after { transform: rotate(0deg); }
.idea-list { margin: 0; padding: 0; list-style: none; }
.idea { position: relative; padding: 15px 0 15px 3rem; border-top: 1px solid var(--line); }
.idea[data-n]::before { content: attr(data-n); position: absolute; top: 18px; left: 0; color: var(--quiet); font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.idea:not([data-n]) { padding-left: 0; }
.idea-title { margin: 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.32; letter-spacing: -.015em; }
.idea-line { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 9px 0 0; color: var(--quiet); font-size: .75rem; }
.idea.is-match .idea-title { color: var(--cyan-bright); }
.idea.is-flash { animation: idea-flash 1.6s ease both; }
@keyframes idea-flash { 0%, 40% { background: rgba(var(--accent-rgb), .12); } 100% { background: transparent; } }
.group-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: .9rem; font-weight: 600; }
.group-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.js-lib .idea-group:not(.is-open):not(.is-searching) .idea:nth-child(n+5) { display: none; }
.js-lib .idea.is-filtered-out { display: none; }
.js-lib .idea-group.is-open .group-more, .js-lib .idea-group.is-searching .group-more { display: none; }
.lib-empty { padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; }
.lib-empty h3 { margin-bottom: 8px; }
.lib-empty p { color: var(--muted); }

/* ---------- Founder ---------- */
.px-founder-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.px-founder .portrait { max-width: 440px; }
.founder-lines { margin-bottom: 1.6rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
.fl { display: block; overflow: hidden; margin-bottom: -.08em; padding-bottom: .08em; }
.fl-in { display: block; }
.fl:last-child .fl-in { background: linear-gradient(100deg, var(--cyan-bright), var(--cyan) 45%, #5aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.motion .fl[data-reveal] { opacity: 1; transform: none; }
.motion .fl[data-reveal] > .fl-in { transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.motion .fl[data-reveal].is-in > .fl-in { transform: none; }
.px-founder .text-link { display: inline-flex; gap: .4rem; margin-top: 1.4rem; }

/* ---------- Closing CTA ---------- */
.px-cta { position: relative; overflow: hidden; padding: clamp(100px, 13vw, 170px) 0; border-top: 1px solid var(--line); text-align: center; }
.px-cta-inner { position: relative; display: grid; justify-items: center; }
.px-cta .eyebrow { justify-content: center; }
.px-cta h2 { max-width: 15ch; font-size: clamp(2.5rem, 6vw, 5rem); }
.px-cta .px-sub { margin-inline: auto; }
.px-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .px-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .px-hero-copy { max-width: 620px; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .lib-groups { grid-template-columns: 1fr; }
  .lib-tools { grid-template-columns: 1fr; }
  .px-founder-grid { grid-template-columns: 1fr; }
  .px-founder .portrait { max-width: 360px; }
}

@media (max-width: 760px) {
  .px-hero { padding-top: 104px; }
  .px-title { font-size: clamp(2.35rem, 10.2vw, 3.4rem); }
  .px-hero-actions { flex-direction: column; align-items: stretch; }
  .px-hero-actions .button { width: 100%; }
  .px-film-section .px-head { text-align: left; }
  .px-film-section .px-head .eyebrow { justify-content: flex-start; }
  .film-controls { gap: 8px; }
  .film-now { order: -1; flex-basis: 100%; }

  .jobs { grid-template-columns: 1fr; gap: 14px; }
  .job { padding: 20px; }
  .job-viz { height: 116px; margin-bottom: 18px; }

  .px-engine { height: 300svh; }
  .engine-pin { align-items: stretch; }
  /* The drum takes whatever height is left, so the card and its buttons always fit on screen. */
  .engine-grid { grid-template-areas: "head" "drum" "card"; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; align-content: stretch; height: 100%; padding-block: 72px 12px; }
  .engine-head .eyebrow { margin-bottom: .5rem; }
  .engine-head h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 6.6vw, 1.95rem); }
  .engine-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter, 15px)); padding: 6px var(--gutter, 15px) 8px; scrollbar-width: none; }
  .engine-chips::-webkit-scrollbar { display: none; }
  .engine-chips .chip { min-height: 38px; padding: 0 13px; font-size: .82rem; }
  .drum { height: auto; min-height: 0; align-self: stretch; overflow: hidden; }
  .drum-item { gap: 10px; height: 34px; margin-top: -17px; padding: 0 14px; font-size: 1rem; }
  .drum-lens { height: 42px; margin-top: -21px; border-radius: 12px; }
  .drum-card { padding: 18px; border-radius: 20px; }
  .drum-meta { margin-bottom: 8px; font-size: .66rem; }
  .drum-title { margin-bottom: 6px; font-size: 1.25rem; }
  .drum-line { min-height: 0; margin-bottom: 10px; font-size: .9rem; line-height: 1.5; }
  .drum-tags { margin-bottom: 12px; font-size: .74rem; }
  .drum-btn { width: 44px; height: 44px; }
  .drum-hint { display: none; }

  .lib-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter, 15px)); padding: 6px var(--gutter, 15px) 10px; scrollbar-width: none; }
  .lib-filters::-webkit-scrollbar { display: none; }
  .lib-custom { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lib-custom .button { width: 100%; }
  .idea-group { padding: 6px 18px; border-radius: 20px; }
  .idea-group-title { margin: 0; font-size: 1.12rem; }
  .group-toggle { min-height: 64px; }
  .js-lib .idea-group:not(.is-open):not(.is-searching) .idea-list { display: none; }
  .js-lib .idea-group .group-more { display: none; }
  .idea { padding-left: 2.6rem; }
  .idea-group .idea-list { padding-bottom: 10px; }

  .px-founder .portrait { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; max-width: none; padding: 12px; border-radius: 18px; }
  .px-founder .portrait img { width: 88px; height: 104px; aspect-ratio: auto; border-radius: 11px; object-position: 50% 25%; }
  .px-founder .portrait figcaption { position: static; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .px-founder-grid { gap: 26px; }
  .px-cta { text-align: left; }
  .px-cta-inner { justify-items: start; }
  .px-cta .eyebrow { justify-content: flex-start; }
  .px-cta-actions { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .px-cta-actions .button { width: 100%; }
}

/* Short phones (and phones with the browser bars showing): a tighter idea engine. */
@media (max-width: 760px) and (max-height: 720px) {
  .engine-grid { gap: 8px; padding-top: 62px; }
  .engine-head .eyebrow { display: none; }
  .engine-head h2 { font-size: 1.35rem; }
  .drum-card { padding: 14px 16px; }
  .drum-meta { margin-bottom: 4px; }
  .drum-title { font-size: 1.12rem; }
  .drum-line { margin-bottom: 8px; font-size: .84rem; }
  .drum-tags { margin-bottom: 8px; }
  .drum-tags [data-drum-fits] { display: none; }
}

@media (max-width: 640px) {
  .film-stage { aspect-ratio: 4 / 5; border-radius: 24px; }
  .film-bars { top: 12px; right: 14px; left: 14px; gap: 4px; }
  .scene-viz { top: 6%; width: 84%; aspect-ratio: 1 / 1; }
  .scene-cap { right: 7%; bottom: 5%; left: 7%; }
  .scene-cap b { font-size: clamp(1.3rem, 6.6vw, 1.75rem); }
  .scene-cap > span { font-size: .88rem; }
  .poster-icons span { width: 36px; height: 36px; }
  .film-dialogue { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 10px; min-height: 96px; padding: 13px 14px; }
  .film-dialogue-speaker { font-size: .72rem; }
  .film-dialogue p { font-size: .9rem; line-height: 1.45; }
  .s5-grid { inset: 3% 8%; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4cqmin; }
  .s5-grid::before { top: 16%; left: 50%; width: 2px; height: 68%; transform-origin: top; }
  .scene.is-on .s5-grid::before { animation-name: s5-connect-vertical; }
  .s5-tile { grid-template-columns: 13cqmin minmax(0, 1fr); align-content: center; justify-items: start; gap: 1cqmin 4cqmin; padding: 2cqmin 4cqmin; text-align: left; }
  .s5-tile svg { grid-row: span 2; width: 11cqmin; height: 11cqmin; }
  .s5-name { font-size: 4.9cqmin; }
  .s5-status { font-size: 3.7cqmin; }
  .s5-status b { display: inline; margin-left: 1cqmin; }
  .s4-week { gap: 1.5cqmin; }
  .s4-heading { font-size: 3.4cqmin; }
  .s4-rules { font-size: 3.2cqmin; }
  .s4-attention b { font-size: 4.8cqmin; }
  .s6-lane { left: 60%; width: 40%; padding-inline: 2cqmin; }
  .s6-lane span { font-size: 3.25cqmin; }
  .film-transcript-line { grid-template-columns: 3.3rem minmax(0, 1fr); gap: 5px; }
}

@keyframes s5-connect-vertical { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }

/* "Pause motion" stops every loop on the page (html.is-paused, not the film's own state). */
html.is-paused .job-viz *,
html.is-paused .job-viz *::before,
html.is-paused .job-viz *::after,
html.is-paused .poster-icons span,
html.is-paused .poster-play,
html.is-paused .drum-hint i::after { animation-play-state: paused !important; }

/* Reduced motion: scenes jump straight to their composed end states. */
@media (prefers-reduced-motion: reduce) {
  .rot.is-live .rot-word { transition: none; }
  .film.is-paused .film-dialogue:has([data-film-line]:empty) { display: none; }
  .film .scene,
  .film .scene *,
  .film .scene *::before,
  .film .scene *::after { animation-play-state: running !important; animation-delay: 0s !important; }
  .film .s1-inbox { display: none; }
  .film .s1-junk, .film .s1-license, .film .s3-badge, .film .s3-repeat-mark,
  .film .s4-day, .film .s4-message i, .film .s4-send, .film .s4-rules,
  .film .s4-attention, .film .s4-reply, .film .s5-status, .film .s5-grid::before,
  .film .s6-lane span, .film .s7-offer, .film .s7-infinity, .film .s7-endless,
  .film .scene-cap b, .film .scene-cap > span { animation: none !important; opacity: 1; transform: none; filter: none; }
  .film .s3-type { width: 22ch; border-right-color: transparent; animation: none !important; }
  .film .s4-draft, .film .s7-count > b, .film .s7-question, .film .s8-workshop, .film .s8-prompt, .film .s8-answer, .film .s8-answer b, .film .s8-check, .film .s8-human, .film .s9-heading, .film .s9-inbox, .film .s9-priority, .film .s9-brand { animation: none !important; opacity: 1; transform: none; filter: none; }
}

@media (forced-colors: active) {
  .chip, .film-btn, .drum-btn, .idea-group, .job, .drum-card, .film-stage { border: 1px solid CanvasText; }
  .rot-word, .fl:last-child .fl-in, .s7-infinity { background: none; color: CanvasText; }
}

@media print {
  .film, .px-engine, .lib-tools, .motion-toggle, .job-viz { display: none !important; }
  .js-lib .idea, .js-lib .idea-list { display: block !important; }
  .idea-group, .job { background: #fff; break-inside: avoid; }
}

/* Optional narrated soundtrack. All controls remain comfortably touchable. */
.film-sound { margin-left:auto; font-size:.82rem; }
.film-sound[aria-pressed="true"] { border-color:rgba(69,227,223,.5); color:var(--cyan-bright); }
.film-timeline { display:flex; align-items:center; gap:14px; width:100%; }
.film-timeline input { flex:1; min-width:0; height:44px; margin:0; accent-color:var(--cyan); cursor:pointer; }
.film-timeline output { flex:0 0 auto; color:var(--muted); font-size:.8rem; font-variant-numeric:tabular-nums; }
.film-audio-status { min-height:0; margin:0; color:var(--muted); font-size:.84rem; }
.film-audio-status:not(:empty) { margin-top:10px; }
.film-audio-fallback { margin-top:18px; padding:18px; border:1px solid var(--line); border-radius:12px; }
.film-audio-fallback p { margin:0 0 10px; color:var(--muted); font-size:.9rem; }
.film-audio-fallback audio { display:block; width:100%; max-width:480px; margin-bottom:10px; }
.film-audio-fallback a { color:var(--cyan-bright); }
.film-narration-script { margin-top:4px; }
@media (max-width:760px) {
  .film-sound { margin-left:0; flex:1; }
  .film-timeline { gap:10px; }
}
@media (max-width:430px) {
  .film-sound { flex-basis:100%; }
  .film-timeline output { font-size:.75rem; }
}
