/*
	The home page's pictures of the app: its window in the hero (the demo), and the Workflows section. They're
	built from the app's own design (renderer/styles, dark theme): its colours, card states, sidebar, chat, rail and
	sheets, drawn here in HTML so they stay sharp at any size. demo.js runs the hero window.
*/
.home {
	--a-bg: #161412; --a-panel: #201d1a; --a-panel-2: #1b1917; --a-sunk: #131110;
	--a-stroke: rgba(255, 244, 230, .09); --a-stroke-2: rgba(255, 244, 230, .15);
	--a-glass: rgba(255, 244, 230, .035); --a-glass-2: rgba(255, 244, 230, .06);
	--a-text: #eeeae4; --a-body: #d4cec5; --a-2: #aea79d; --a-3: #7d766d;
	--a-accent: #ea8a42; --a-accent-text: #f2a568; --a-on-accent: #201206;
	--a-green: #40c98b; --a-amber: #edb347; --a-blue: #6ba8f5; --a-gray: #8f8a82; --a-red: #f07373; --a-violet: #a68ff2;
}

/* ---- The hero: the words, then the app's window under them ---- */
.home .hero { margin-top: 0; padding: 88px 0 0; text-align: center; }
.home .hero .copy { max-width: 50rem; margin: 0 auto; }
.home .hero .tag { justify-content: center; }
.home .hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 850; line-height: .96; letter-spacing: -0.05em; margin-bottom: 24px; }
.home .hero .lede { font-size: 1.22rem; color: var(--body); max-width: 34em; margin: 0 auto 34px; }
.home .hero .actions, .home .hero .ticks { justify-content: center; }
.home .hero #mac-note { margin-top: 14px; }

/* The window is drawn at one size (1180 x 700, or 660 wide on a phone) and scaled to fit (--k, from demo.js), tilted
   back a little until it's scrolled up into view (--tilt, 0 to 1). Inside it, .cam is the app itself: demo.js zooms
   and pans it like a camera. */
.stage { --k: 1; --tilt: 1; --w: 1180px; position: relative; height: calc(700px * var(--k) + 40px); margin: 64px auto 0; max-width: 1240px; perspective: 1800px; }
.stage.narrow { --w: 660px; }
.win { position: absolute; left: 50%; top: 0; width: var(--w); height: 700px; margin-left: calc(var(--w) / -2); transform-origin: 50% 0;
	transform: scale(var(--k)) rotateX(calc(var(--tilt) * 14deg)) translateY(calc(var(--tilt) * 26px));
	overflow: hidden; border-radius: 14px; background: var(--a-bg); color: var(--a-body);
	border: 1px solid rgba(255, 244, 230, .14);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 50px 140px rgba(0, 0, 0, .85), 0 0 90px rgba(255, 236, 214, .05), inset 0 1px 0 rgba(255, 244, 230, .08);
	font: 13px/1.45 var(--font); letter-spacing: 0; text-align: left; }
.cam { position: absolute; left: 0; top: 0; width: var(--w); height: 700px; transform-origin: 0 0; transition: transform var(--cam-t, .7s) cubic-bezier(.76, 0, .14, 1); will-change: transform; }
.win p { margin: 0; }
/* Windows' three buttons, over the top right corner (the app has no title strip of its own). */
.wc3 { position: absolute; right: 0; top: 0; z-index: 2; display: flex; height: 44px; }
.wc { position: relative; width: 44px; height: 44px; }
.wc::before, .wc.close::after { content: ""; position: absolute; left: 17px; top: 22px; width: 10px; height: 1px; background: var(--a-2); }
.wc.max::before { top: 17px; height: 10px; background: none; border: 1px solid var(--a-2); box-sizing: border-box; }
.wc.close::before { left: 16px; width: 12px; transform: rotate(45deg); }
.wc.close::after { left: 16px; width: 12px; transform: rotate(-45deg); }
.sp { flex: 1; }
.body { height: 100%; display: grid; grid-template-columns: 224px 1fr 312px; }

/* Icons (the sprite in index.html) and small bits used everywhere */
.i { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--a-gray)); flex: none; }
.dot.green { --c: var(--a-green); } .dot.amber { --c: var(--a-amber); } .dot.blue { --c: var(--a-blue); } .dot.red { --c: var(--a-red); }
.dot.live { animation: pulse 1.6s ease-in-out infinite; }
.mut { color: var(--a-3); }
.mono { font-family: var(--mono); font-size: 11.5px; }
.sq { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #a368f0, #6c4be0); flex: none; }
.sq.r { background: var(--a-accent); color: var(--a-on-accent); }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 12px; font-weight: 600; color: var(--a-2); background: var(--a-glass-2); flex: none; }
.av.round { border-radius: 50%; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--a-stroke-2); color: var(--a-2); font-size: 12.5px; }
.pill.ok .i { color: var(--a-green); width: 13px; height: 13px; stroke-width: 2.6; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.badge.accent { --c: var(--a-accent-text); } .badge.green { --c: var(--a-green); } .badge.red { --c: var(--a-red); } .badge.blue { --c: var(--a-blue); }
.spin { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255, 244, 230, .16); border-top-color: var(--a-blue); animation: spin .8s linear infinite; flex: none; }

/* The sidebar */
.side { display: flex; flex-direction: column; gap: 1px; padding: 0 10px 10px; background: var(--a-panel-2); border-right: 1px solid var(--a-stroke); min-height: 0; }
.proj { display: flex; align-items: center; gap: 9px; flex: none; height: 44px; padding: 0 6px; margin-bottom: 4px; color: var(--a-text); font-weight: 500; font-size: 13.5px; }
.proj .i { width: 13px; }
.proj .pn { margin-left: auto; width: 15px; }
.sec { margin: 10px 8px 4px; font-size: 11.5px; color: var(--a-3); }
.nav { display: flex; align-items: center; gap: 10px; height: 31px; padding: 0 9px; border-radius: 8px; color: var(--a-2); }
.nav .i { color: var(--a-3); }
.nav.on { color: var(--a-accent-text); background: rgba(234, 138, 66, .12); }
.nav.on .i { color: var(--a-accent-text); }
.count { margin-left: auto; min-width: 22px; height: 19px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: var(--a-accent-text); background: rgba(234, 138, 66, .16); transition: transform .3s; }
.count.bump { animation: bump .5s ease; }
.box { margin-top: 10px; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--a-stroke); background: var(--a-glass); display: grid; gap: 5px; font-size: 12px; }
.side .box.usage { margin-top: auto; }
.box .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.box b { font-weight: 500; color: var(--a-2); }
.meter { display: block; height: 4px; border-radius: 3px; background: var(--a-glass-2); overflow: hidden; margin-bottom: 3px; }
.meter > i { display: block; height: 100%; border-radius: 3px; background: var(--a-blue); }
.meter.amber > i { background: var(--a-amber); }
.lanegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.ln { height: 20px; border-radius: 5px; display: grid; place-items: center; font: 600 10.5px var(--font); font-style: normal; color: var(--a-3); border: 1px solid var(--a-stroke-2); transition: background .4s, color .4s, border-color .4s; }
.ln.holding { background: #1b8ea0; border-color: #1b8ea0; color: #e8fbff; }
.ln.working { background: #2f6fd0; border-color: #2f6fd0; color: #eef5ff; }
.ln.off { opacity: .55; border-style: dashed; }
.me { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 6px; color: var(--a-text); font-size: 12.5px; }
.me span { display: block; font-size: 11px; color: var(--a-3); }

/* The middle: tabs, the chat with Rocco, and the message box */
.main { display: flex; flex-direction: column; min-width: 0; padding: 0 16px 14px; }
.tabs { display: flex; align-items: center; gap: 14px; height: 44px; border-bottom: 1px solid var(--a-stroke); flex: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 100%; color: var(--a-2); font-size: 13.5px; }
.tab.on { color: var(--a-accent-text); box-shadow: inset 0 -2px 0 var(--a-accent); padding-right: 4px; }
.tab + .tab { padding-left: 14px; border-left: 1px solid var(--a-stroke); height: 20px; }
#rocco-dot { --c: var(--a-blue); }
#rocco-dot.busy { animation: pulse 1.2s ease-in-out infinite; }
.chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px 14px 14px; margin: 12px 0; border-radius: 12px; background: var(--a-panel); border: 1px solid var(--a-stroke); }
.msg { display: grid; gap: 7px; max-width: 86%; font-size: 13.5px; color: var(--a-body); animation: rise .45s ease both; }
.msg.me { justify-self: end; align-self: flex-end; justify-items: end; }
.msg.me p { padding: 8px 13px; border-radius: 12px; background: rgba(234, 138, 66, .13); color: var(--a-text); }
.msg .note { font-size: 11.5px; color: var(--a-3); }
.msg .who { font-size: 12px; color: var(--a-accent-text); }
.msg.thinking { display: flex; align-items: center; gap: 9px; color: var(--a-3); font-size: 12.5px; }
.msg.thinking .dots i { display: inline-block; width: 4px; height: 4px; margin-right: 3px; border-radius: 50%; background: var(--a-accent); animation: blink 1s infinite; }
.msg.thinking .dots i:nth-child(2) { animation-delay: .15s; } .msg.thinking .dots i:nth-child(3) { animation-delay: .3s; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { --c: var(--a-gray); display: inline-grid; gap: 1px; padding: 6px 12px 6px 10px; border-radius: 8px; border: 1px solid var(--a-stroke-2); border-left: 3px solid var(--c); background: var(--a-glass); max-width: 190px; font-size: 12.5px; transition: border-color .4s; }
.chip b { font-weight: 400; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip i { font: 10.5px var(--mono); font-style: normal; color: var(--a-3); }
.chip i::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.s-ready { --c: var(--a-green); } .s-stuck { --c: var(--a-amber); } .s-working { --c: var(--a-blue); } .s-queued { --c: var(--a-gray); }

.composer { flex: none; border-radius: 12px; border: 1px solid var(--a-stroke-2); background: var(--a-panel); padding: 12px 12px 10px; }
.composer .field { position: relative; min-height: 38px; padding: 0 2px; color: var(--a-text); font-size: 13.5px; }
.composer .ph { position: absolute; left: 2px; top: 0; color: var(--a-3); transition: opacity .2s; }
.composer .typed:not(:empty) ~ .caret, .composer.focus .caret { display: inline-block; }
/* The grey hint goes as soon as there's something typed (demo.js sets .has), so the two never sit on each other. */
.composer.has .ph { opacity: 0; }
.caret { display: none; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--a-accent); animation: blink 1s steps(1) infinite; }
.composer .row { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--a-stroke-2); color: var(--a-3); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--a-glass-2); }
.seg b { padding: 3px 10px; border-radius: 6px; font-weight: 400; font-size: 12.5px; color: var(--a-2); }
.seg b.on { background: var(--a-panel); color: var(--a-text); box-shadow: 0 0 0 1px var(--a-stroke-2); }
.model { font-size: 12px; margin-right: 6px; }
.send { padding: 6px 16px; border-radius: 8px; background: var(--a-accent); color: var(--a-on-accent); font-weight: 600; font-size: 13px; transition: transform .1s, filter .2s; }
.send.press { transform: scale(.94); filter: brightness(1.2); }

/* The rail: To test, Needs you, Working, Up next */
.rail { padding: 10px 12px; border-left: 1px solid var(--a-stroke); overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.win .rail { padding-top: 44px; }
.gh { display: flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--a-text); font-weight: 600; font-size: 13px; }
.gh .n { color: var(--a-3); font-weight: 400; }
.c-ready { --c: var(--a-green); } .c-stuck { --c: var(--a-amber); } .c-working { --c: var(--a-blue); } .c-queued { --c: var(--a-gray); }
.gh .dot { background: var(--c); }
.list { display: grid; gap: 6px; }
.list:empty { display: none; }
.card { position: relative; padding: 10px 40px 11px 13px; border-radius: 8px; overflow: hidden; background: var(--a-glass); border: 1px solid var(--a-stroke); box-shadow: inset 3px 0 0 var(--c); transition: box-shadow .4s, opacity .4s, transform .4s; }
.card .t { color: var(--a-text); font-size: 13px; line-height: 1.35; }
.card .m { margin-top: 4px; font-size: 11.5px; color: var(--a-3); }
.card .btn { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--a-stroke-2); font-size: 12px; color: var(--a-2); }
.card.fresh { animation: rise .45s ease both; }
.card.gone { opacity: 0; transform: translateX(14px); }
.chk { position: absolute; right: 12px; top: 50%; width: 19px; height: 19px; margin-top: -10px; border-radius: 6px; border: 1.5px solid rgba(255, 244, 230, .22); background: rgba(255, 244, 230, .02); transition: all .2s; }
.chk.on { background: var(--a-green); border-color: var(--a-green); box-shadow: 0 0 0 4px rgba(64, 201, 139, .18); }
.chk.on::after { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 4px; border-left: 2px solid #0f1f17; border-bottom: 2px solid #0f1f17; transform: rotate(-45deg); }
.qm { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--a-amber); background: rgba(237, 179, 71, .12); box-shadow: inset 0 0 0 1px rgba(237, 179, 71, .28); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(107, 168, 245, .14); }
.bar > i { display: block; height: 100%; width: 0; background: var(--a-blue); box-shadow: 0 0 8px rgba(107, 168, 245, .6); transition: width var(--t, .6s) linear; }

.try { padding: 10px 14px; border-radius: 10px; background: rgba(64, 201, 139, .06); border: 1px solid rgba(64, 201, 139, .25); }
.try p { color: var(--a-green); font-size: 12px; margin-bottom: 4px; }
.try ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--a-body); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 40% { transform: scale(1.25); } }

/* Your plan, your code, your keys: three promises under one heading. */
.home #data .wrap { display: block; }
.home #data .copy p { text-wrap: balance; }
.trust { list-style: none; margin: 48px auto 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.trust li { padding: 26px 24px 24px; border-radius: 16px; background: rgba(255, 244, 230, .025); border: 1px solid rgba(255, 244, 230, .1); }
.trust .ti { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; color: var(--ember-2); background: rgba(234, 138, 66, .12); box-shadow: inset 0 0 0 1px rgba(234, 138, 66, .3); }
.trust .ti svg { width: 22px; height: 22px; max-width: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 8px; }
.trust p { color: var(--body); font-size: .98rem; margin: 0; }
.trust-more { margin: 26px 0 0; text-align: center; }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; margin-top: 32px; } .trust-more { text-align: left; } }
/* The rest of the page, over the plain background now (there's no scene behind it). */
.home .view { min-height: 0; padding: 120px 0; }
.home .view .copy::before { display: none; }
.home .view.last { padding: 140px 0 160px; }
/* Below Workflows: about 100px between one section's last line and the next one's label, as around Workflows'
   heading. Each section opens with its orange label (.tag), centred like the headings under it. */
.home #data, .home #pricing, .home #faq { padding: 50px 0; }
.home #download { padding: 50px 0 140px; }
.home #data .tag, .home #pricing .tag, .home #faq .tag, .home #download .tag { justify-content: center; }
.home #pricing .tag, .home #faq .tag { margin-bottom: 24px; }
/* Pricing's and Questions' labels above their cards say it, so the cards' own headings are for screen readers only. */
.slab h2.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.price h2.quiet + .plans { margin-top: 0; }
.home .faq { padding-top: 18px; }
.faq h2.quiet + details { border-top: 0; }
.home .view.last .copy { position: relative; }
.home .view.last .copy::after { content: ""; position: absolute; left: 50%; top: 40%; width: 700px; height: 400px; margin: -200px 0 0 -350px; z-index: -1; background: radial-gradient(closest-side, rgba(255, 236, 214, .07), transparent); }

@media (max-width: 820px) {
	.home .hero { padding-top: 56px; text-align: left; }
	.home .hero .tag, .home .hero .actions, .home .hero .ticks { justify-content: flex-start; }
	.home .hero .lede { margin-left: 0; }
	.stage { margin-top: 44px; }
	.home .view { padding: 80px 0; }
	.home #data, .home #pricing, .home #faq { padding: 36px 0; }
	.home #download { padding: 36px 0 100px; }
	.home #data .tag, .home #pricing .tag, .home #faq .tag, .home #download .tag { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.dot.live, .spin, .caret { animation: none; }
	.msg, .card.fresh { animation: none; }
}
/* On a phone the window drops its sidebar and is drawn narrower (660 wide), so it's bigger once scaled to fit. */
.stage.narrow .side, .stage.narrow .model, .stage.narrow .tab + .tab, .stage.narrow .pill:not(.ok) { display: none; }
.stage.narrow .body { grid-template-columns: 1fr 260px; }
.stage.narrow .seg b:nth-child(n+3) { display: none; }

/* ---- The sky behind the page (sky.js draws the stars): a few faint stars above a dark horizon with a thin rim of
   light, and under it nothing but black. One warm white and a trace of ember, no other colour. ---- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.horizon { position: absolute; left: 50%; top: -330px; width: 3400px; height: 1900px; margin-left: -1700px; z-index: -1; overflow: hidden; pointer-events: none;
	-webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.horizon::before { content: ""; position: absolute; left: 0; top: 260px; width: 3400px; height: 3400px; border-radius: 50%; background: #000;
	box-shadow: 0 0 0 1px rgba(255, 238, 220, .3), 0 -2px 16px rgba(255, 238, 220, .34), 0 -26px 90px -12px rgba(255, 228, 204, .2), 0 -90px 220px -70px rgba(234, 138, 66, .16), inset 0 34px 70px -34px rgba(255, 238, 220, .12); }
.horizon::after { content: ""; position: absolute; left: 50%; top: 150px; width: 1200px; height: 220px; margin-left: -600px; background: radial-gradient(closest-side, rgba(255, 234, 212, .26), transparent); filter: blur(20px); }
.home .hero { position: relative; overflow-x: clip; }

/* ---- The trailer: the pointer, the caption and the six-part reel (demo.js) ---- */
.cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 20px; height: 24px; opacity: 0; pointer-events: none;
	transform: translate(var(--x, 600px), var(--y, 420px)); transition: transform .5s cubic-bezier(.3, .85, .25, 1), opacity .3s;
	filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .7));
	background: no-repeat 0 0 / 18px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cpath d='M1.5 1.5v16l4.2-4 3 6.8 3-1.3-3-6.6h6z' fill='%23fff' stroke='%23111' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cursor.show { opacity: 1; }
.cursor::after { content: ""; position: absolute; left: -11px; top: -11px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--a-accent); opacity: 0; }
.cursor.click::after { animation: ring .45s ease-out; }
.shot { position: absolute; left: 18px; bottom: 24px; z-index: 6; display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 15px 8px 9px; border-radius: 10px;
	background: rgba(8, 7, 6, .84); border: 1px solid rgba(255, 244, 230, .16); box-shadow: 0 12px 34px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: #f6f1ea; font: 600 15px var(--font); letter-spacing: -0.01em; }
.shot b { padding: 3px 6px; border-radius: 5px; font: 700 11px var(--mono); letter-spacing: .06em; color: var(--a-on-accent); background: var(--a-accent); }
.shot:not(.in) { opacity: 0; }
.shot.in { animation: shotin .45s cubic-bezier(.2, .8, .2, 1) both; }
.reel { position: absolute; left: 18px; right: 18px; bottom: 10px; z-index: 6; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.reel i { height: 2px; border-radius: 2px; background: rgba(255, 244, 230, .16); transition: background .3s; }
.reel i.done { background: rgba(255, 244, 230, .55); }
.reel i.on { background: var(--a-accent); box-shadow: 0 0 8px rgba(234, 138, 66, .7); }
.stage.narrow .shot { left: 12px; bottom: 26px; font-size: 22px; padding: 10px 18px 10px 11px; }
.stage.narrow .shot b { font-size: 15px; }
.stage.narrow .reel { left: 12px; right: 12px; }
.stage.narrow .reel i { height: 3px; }
@keyframes ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.7); } }
@keyframes shotin { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 820px) {
	.horizon { width: 1800px; margin-left: -900px; }
	.horizon::before { width: 1800px; height: 1800px; }
	.horizon::after { width: 600px; margin-left: -300px; }
}
@media (prefers-reduced-motion: reduce) {
	.shot, .reel, .cursor { display: none; }
	.cam { transition: none; }
}

/* ---- Before it plays: a grey veil over the window and a play button. It starts by itself once the whole window is
   in view, or when the button is pressed (which also scrolls it into view and turns the sound on). ---- */
.veil { position: absolute; inset: 0; z-index: 8; background: rgba(14, 13, 12, .62); -webkit-backdrop-filter: saturate(.4) blur(1.5px); backdrop-filter: saturate(.4) blur(1.5px); transition: opacity .5s; pointer-events: none; }
.play { position: absolute; left: 50%; top: calc(350px * var(--k)); z-index: 9; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding: 0; border-radius: 50%; cursor: pointer;
	border: 1px solid rgba(255, 244, 230, .3); background: rgba(246, 241, 234, .96); color: #14110e; box-shadow: 0 0 0 10px rgba(255, 244, 230, .08), 0 20px 60px rgba(0, 0, 0, .7); transition: transform .15s, opacity .4s, box-shadow .2s; }
.play:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 244, 230, .1), 0 20px 60px rgba(0, 0, 0, .7); }
.play svg { width: 38px; height: 38px; margin-left: 4px; fill: currentColor; vertical-align: middle; }
.playing .veil, .playing .play { opacity: 0; pointer-events: none; }
.playing .play { transform: scale(1.4); visibility: hidden; transition: transform .4s, opacity .4s, visibility 0s .4s; }
.stage:not(.playing) .reel, .stage:not(.playing) .sound { opacity: 0; pointer-events: none; }
.sound { position: absolute; z-index: 9; right: calc(50% - var(--w) * var(--k) / 2 + 14px); top: calc(700px * var(--k) - 54px); display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 8px; cursor: pointer;
	border: 1px solid rgba(255, 244, 230, .16); background: rgba(8, 7, 6, .84); color: #d3ccc2; font: 500 12.5px var(--font); transition: opacity .4s, color .2s, border-color .2s; }
.sound:hover { color: #f6f1ea; border-color: rgba(255, 244, 230, .32); }
.sound[aria-pressed="true"] { color: var(--a-accent-text); border-color: rgba(234, 138, 66, .45); }
.sound[aria-pressed="false"] .i { opacity: .55; }
.shot { font-size: 16px; }

/* ---- Roblox Studio: a small window per card, popping out beside the rail as each agent finishes (demo.js puts
   each in its place, --sx and --sy) and closing when the card is approved ---- */
.studios { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.studiowin { position: absolute; left: var(--sx, 40px); top: var(--sy, 80px); width: 340px; border-radius: 10px; overflow: hidden; background: #17181b; border: 1px solid rgba(255, 244, 230, .16);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 30px 80px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(26px) scale(.7); transition: opacity .2s, transform .22s ease-in; }
.studiowin.open { opacity: 1; transform: none; transition: opacity .2s, transform .45s cubic-bezier(.2, 1.35, .35, 1); }
.cam { transition: transform var(--cam-t, .7s) cubic-bezier(.76, 0, .14, 1), filter .4s; }
.sbar { display: flex; align-items: center; gap: 6px; height: 30px; margin: 0; padding: 0 12px; background: #101113; border-bottom: 1px solid rgba(255, 244, 230, .08); color: #d4cec5; font-size: 12.5px; }
.sbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 244, 230, .16); }
.sbar b { margin-left: 8px; font-weight: 600; }
.sbar span { margin-left: auto; color: #8d877e; }
.vp { position: relative; height: 180px; border-radius: 0; overflow: hidden; background: linear-gradient(#1d2026, #2a2c31 56%, #24262a 56%); box-shadow: inset 0 0 0 1px rgba(255, 244, 230, .08); transition: box-shadow .3s; }
.vp .ground { position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; transform: perspective(300px) rotateX(58deg); transform-origin: 50% 100%;
	background: radial-gradient(rgba(255, 244, 230, .13) 2.2px, transparent 2.6px) 0 0 / 22px 22px, #3a3a3c; }
/* A plain blocky figure: a head, a body and legs. */
.vp .guy { position: absolute; left: 50%; bottom: 58px; width: 22px; height: 24px; margin-left: -11px; border-radius: 3px; background: #6f8fb8; animation: walk 2.4s ease-in-out infinite; }
.vp .guy::before { content: ""; position: absolute; left: 3px; top: -17px; width: 16px; height: 16px; border-radius: 4px; background: #e2cfae; }
.vp .guy::after { content: ""; position: absolute; left: 1px; top: 24px; width: 20px; height: 20px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #3c4a63 9px, transparent 9px, transparent 11px, #3c4a63 11px); }
.vp p { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(10, 10, 11, .78); color: #d4cec5; font-size: 11.5px; }
.vp em { font-style: normal; color: var(--a-blue); }
.vp em::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
.vp.pass { box-shadow: inset 0 0 0 1.5px rgba(64, 201, 139, .7), 0 0 24px rgba(64, 201, 139, .18); }
.vp.pass em { color: var(--a-green); }
.vp.pass em::before { animation: none; }
.vp .hud { position: absolute; font: 700 13px var(--font); color: #f6f1ea; }
.v-timer .hud { left: 50%; top: 10px; transform: translateX(-50%); padding: 3px 12px; border-radius: 7px; background: rgba(10, 10, 11, .7); box-shadow: inset 0 0 0 1px rgba(255, 244, 230, .2); font-variant-numeric: tabular-nums; }
.v-shop .hud { right: 12px; top: 12px; padding: 5px 12px; border-radius: 7px; background: var(--a-accent); color: var(--a-on-accent); animation: tap 1.3s ease-in-out infinite; }
.v-coin .hud { left: 62%; bottom: 70px; width: 18px; height: 18px; border-radius: 50%; background: #f0c060; box-shadow: 0 0 0 2px #b98a2e inset; animation: sparkle 1.1s ease-in-out infinite; }
.v-sword .hud { left: calc(50% + 12px); bottom: 74px; width: 34px; height: 4px; border-radius: 2px; background: #d9dde3; transform-origin: 0 50%; animation: swing .9s ease-in-out infinite; }
.stage.narrow .studiowin { width: 186px; }
.stage.narrow .vp { height: 112px; }
.stage.narrow .sbar { height: 24px; font-size: 11px; }
.stage.narrow .vp p { font-size: 10px; padding: 4px 7px; }

/* ---- Built in: the workflows, and the same prompt three ways (a carousel, deck.js) ---- */
/* The gaps above and below the heading match (100px: the demo's window to the tag, the lead to the prompt). */
.craft { padding: 60px 0 50px; overflow-x: clip; }
/* The sections after the demo sit above the sky's dark horizon, which hangs down past the demo's window (it's
   inside the window's stage, which is drawn above plain page content). */
.home main > section:not(.hero) { position: relative; z-index: 1; }
.craft .intro { text-align: center; max-width: 52rem; margin: 0 auto 76px; }
.craft .intro .tag { justify-content: center; }
.craft .intro h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.045em; margin-bottom: 22px; }
.craft .intro .lede { font-size: 1.18rem; color: var(--body); max-width: 40em; margin: 0 auto; }
/* The prompt: a message box with a send button, like the app's own note box. deck.js types the words in as it
   rises up the screen and sends it (.done) at the middle. */
.craft .ask { width: 100%; max-width: 680px; margin: 0 auto 30px; }
.craft .ask .who { margin: 0 0 10px 4px; font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.craft .field { position: relative; display: flex; align-items: center; gap: 16px; min-height: 70px; padding: 14px 14px 14px 22px; border-radius: 18px; background: #0d0d0f; border: 1px solid rgba(255, 244, 230, .13); overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 244, 230, .04); transition: border-color .5s, box-shadow .5s; }
.craft .field p { flex: 1; margin: 0; color: var(--text); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; transition: transform .45s cubic-bezier(.5, 0, .2, 1), opacity .35s; }
.craft .field .sent { position: absolute; left: 22px; top: 50%; font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); opacity: 0; transform: translateY(30%); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.craft .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.18em; background: var(--ember-2); animation: blink 1.1s steps(1) infinite; }
.craft .send { position: relative; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ember); color: #1a0f07; }
.craft .send svg { width: 20px; height: 20px; max-width: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Sent: the words lift away, the button presses and rings, the box warms for a moment. */
.craft .ask.done .field { border-color: rgba(234, 138, 66, .35); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(234, 138, 66, .12); }
.craft .ask.done .field p:first-child { transform: translateY(-140%); opacity: 0; }
.craft .ask.done .field .sent { opacity: 1; transform: translateY(-50%); transition-delay: .22s; }
.craft .ask.done .send { animation: press .45s ease-out, ring .8s ease-out; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes press { 35% { transform: scale(.8); } 70% { transform: scale(1.08); } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(234, 138, 66, .7); } to { box-shadow: 0 0 0 20px rgba(234, 138, 66, 0); } }
/* The tabs: plain words on one line, numbered, the chosen one underlined. Rocco's always glows. */
.picker { display: flex; justify-content: center; gap: 44px; width: min(1080px, 100%); margin: 0 auto 18px; border-bottom: 1px solid rgba(255, 244, 230, .1); }
.picker button { position: relative; isolation: isolate; display: flex; align-items: baseline; gap: 9px; padding: 0 2px 14px; border: 0; background: none; color: var(--muted); font: 500 1.02rem var(--font); cursor: pointer; white-space: nowrap; transition: color .2s; }
.picker button small { font: 600 .7rem var(--mono); letter-spacing: .08em; color: var(--a-3); transition: color .2s; }
.picker button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); transform: scaleX(0); transition: transform .25s; }
.picker button:hover { color: var(--text); }
.picker button[aria-selected="true"] { color: var(--text); }
.picker button[aria-selected="true"]::after { transform: none; }
.picker button.best, .picker button.best[aria-selected="true"] { color: var(--ember-2); font-weight: 650; text-shadow: 0 0 16px rgba(234, 138, 66, .75); }
.picker button.best small { color: var(--ember); text-shadow: none; }
.picker button.best::before { content: ""; position: absolute; z-index: -1; inset: -10px -22px 2px; border-radius: 14px; background: radial-gradient(closest-side, rgba(234, 138, 66, .26), rgba(234, 138, 66, 0)); animation: glow 2.6s ease-in-out infinite; }
.picker button.best::after { background: var(--ember-2); box-shadow: 0 0 12px rgba(234, 138, 66, .9); }
@keyframes glow { 50% { opacity: .55; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .craft .caret, .picker button.best::before { animation: none; } }
/* Pinned (deck.js adds .on where the screen is tall enough): the block holds still under the top bar while
   scrolling moves through the three, then lets go. */
/* The held block is as tall as what's in it (--sh, measured by deck.js), not a whole screen: on a tall screen a
   screen-high block left a big empty gap under the button once it let go. */
.pin.on { height: calc(var(--sh, 100vh) + var(--run, 140vh)); }
.pin.on .stick { position: sticky; top: 66px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 24px; }
/* The way in, under the carousel (and held with it while it's pinned). */
.craft .go { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.craft .go .button { white-space: nowrap; box-shadow: 0 3px 0 var(--ember-edge), 0 0 30px rgba(234, 138, 66, .25); }
/* The deck: as wide as the screen, each slide centred in turn, the ones beside it dimmed (deck.js) and cut off. */
.deckwrap { position: relative; width: 100vw; margin-left: calc(50% - 50vw); --sw: min(1080px, 86vw); }
.deck { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 8px calc((100vw - var(--sw)) / 2) 26px; scrollbar-width: none; cursor: grab; }
.deck::-webkit-scrollbar { display: none; }
.deck.drag, .deck.linked { scroll-snap-type: none; }
.deck.drag { cursor: grabbing; user-select: none; }
.slide { flex: 0 0 var(--sw); scroll-snap-align: center; display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 14px; border-radius: 20px; background: var(--a-panel-2); border: 1px solid rgba(255, 244, 230, .1);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 244, 230, .05); font: 14px/1.5 var(--font); letter-spacing: 0; color: var(--a-body); opacity: .32; transform: scale(.96); }
.slide.on { opacity: 1; transform: none; }
.slide:not(.on) { cursor: pointer; }
.slide.ours { background: var(--a-panel); border-color: rgba(234, 138, 66, .4); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(234, 138, 66, .12), 0 0 70px rgba(234, 138, 66, .08); }
.slide p { margin: 0; }
.info { display: flex; flex-direction: column; padding: 4px 12px 4px 0; }
.info h3 { font-size: 1.75rem; letter-spacing: -0.03em; }
.slide.ours h3 { color: var(--ember-2); text-shadow: 0 0 22px rgba(234, 138, 66, .45); }
.info .sub { margin: 4px 0 18px !important; color: var(--muted); font-size: .95rem; }
/* The workflow: four short numbered steps joined by a thin line. */
.wf { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: wf; }
.wf li { position: relative; padding: 7px 0 7px 38px; counter-increment: wf; color: var(--a-text); font-size: 15px; font-weight: 500; }
.wf li::before { content: counter(wf); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; font: 600 12px var(--mono); color: var(--a-2); background: var(--a-glass-2); box-shadow: inset 0 0 0 1px var(--a-stroke-2); }
.wf li + li::after { content: ""; position: absolute; left: 12px; top: -6px; height: 10px; width: 1px; background: var(--a-stroke-2); }
.ours .wf li::before { color: var(--a-accent-text); background: rgba(234, 138, 66, .13); box-shadow: inset 0 0 0 1px rgba(234, 138, 66, .35); }
.verdict { position: relative; margin-top: 18px !important; padding: 14px 0 0 26px; border-top: 1px solid rgba(255, 244, 230, .08); font-size: .95rem; line-height: 1.4; }
.verdict::before { content: ""; position: absolute; left: 2px; }
.verdict.no { color: var(--muted); }
.verdict.no::before { top: calc(14px + .62em); width: 12px; height: 2.5px; border-radius: 2px; background: var(--a-3); }
.verdict.yes { color: var(--text); }
.verdict.yes::before { top: calc(14px + .38em); width: 12px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
/* The result: a 16:9 screen for the picture or recording. */
.screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: 12px; overflow: hidden; color: var(--a-3); font-size: 13px;
	background: linear-gradient(#1c1f26, #30333a 52%, #2a2c30 52%); box-shadow: inset 0 0 0 1px rgba(255, 244, 230, .1); }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .i { width: 44px; height: 44px; padding: 12px; border-radius: 50%; fill: var(--a-text); stroke: none; background: rgba(10, 10, 11, .55); box-shadow: inset 0 0 0 1px rgba(255, 244, 230, .2); }
/* Rocco's slide: a small Rocco window playing the prompt through (reel.js), drawn at 800 x 450 and scaled (--mk). */
.screen.film { display: block; background: var(--a-bg); }
.screen.film > .i, .screen.film > span { display: none; }
.mw { position: absolute; left: 0; top: 0; width: 800px; height: 450px; transform-origin: 0 0; transform: scale(var(--mk, 1)); display: grid; grid-template-columns: 1fr 268px; overflow: hidden;
	background: var(--a-bg); color: var(--a-body); font: 13px/1.45 var(--font); letter-spacing: 0; text-align: left; }
.mw p { margin: 0; }
.mw-chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px 14px 12px; }
.mw-log { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 14px; border-radius: 12px; background: var(--a-panel); border: 1px solid var(--a-stroke); }
.mw-log .msg { max-width: 92%; }
.mw-comp { position: relative; display: flex; align-items: center; min-height: 46px; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px solid var(--a-stroke-2); background: var(--a-panel); color: var(--a-text); font-size: 13px; }
.mw-ph { position: absolute; left: 14px; color: var(--a-3); transition: opacity .2s; }
.mw-comp.has .mw-ph { opacity: 0; }
.mw-typed { flex: 1; padding-right: 10px; }
.mw-send { margin-left: auto; padding: 6px 14px; border-radius: 8px; background: var(--a-accent); color: var(--a-on-accent); font-weight: 600; font-size: 12.5px; transition: transform .1s, filter .2s; }
.mw-send.pick { transform: scale(.92); filter: brightness(1.2); }
.mw-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; animation: rise .4s ease both; }
.mw-opt { padding: 4px 11px; border-radius: 8px; border: 1px solid var(--a-stroke-2); color: var(--a-2); font-size: 12px; transition: all .2s; }
.mw-opt.pick { border-color: rgba(234, 138, 66, .6); background: rgba(234, 138, 66, .14); color: var(--a-accent-text); }
.mw-rail { padding: 14px 12px; gap: 2px; }
.mw-group.empty .gh { opacity: .45; }
.mw-rail .card { padding-right: 34px; }
.mw-spin { position: absolute; right: 12px; top: 13px; }
.mw-rail .chk { margin-top: -10px; }
.mw-pops { position: absolute; left: 0; top: 0; width: 532px; height: 450px; pointer-events: none; }
.mw .mw-win { width: 490px; box-shadow: 0 24px 60px rgba(0, 0, 0, .75); }
.mw .mw-win .vp { height: 300px; background: #20242b; }
.mw .mw-win video, .mw .mw-win img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mw .mw-win .vp p { font-size: 11.5px; padding: 6px 10px; }
/* The concept, small, in Rocco's "is this the look you want?" */
.mw-concept { width: 220px; aspect-ratio: 16 / 9; margin: 2px 0 0; border-radius: 8px; background: center / cover no-repeat; border: 1px solid var(--a-stroke-2); animation: rise .45s ease both; }
/* The pieces in three styles, a strip per style, shown in Rocco's message as they land. */
.mw-parts { display: grid; gap: 8px; min-height: 200px; padding: 10px 10px 12px; background: #15171b; }
.mw-part { margin: 0; display: grid; gap: 3px; animation: rise .45s ease both; }
.mw-part figcaption { color: var(--a-text); font-size: 12.5px; font-weight: 600; }
.mw-part img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--a-stroke-2); }
.mw-ptr { z-index: 8; }
.mw-cap { position: absolute; right: 14px; bottom: 16px; z-index: 7; padding: 6px 12px; border-radius: 8px; background: rgba(8, 7, 6, .86); border: 1px solid rgba(234, 138, 66, .35); color: #f6f1ea; font: 600 13px var(--font); white-space: pre;
	opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.mw-cap.on { opacity: 1; transform: none; }
.mw-final { position: absolute; inset: 0; z-index: 9; overflow: hidden; background: #0b0b0c; opacity: 0; transform: scale(1.04); transition: opacity .8s, transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.mw-final-bg { position: absolute; inset: -30px; background: center / cover no-repeat; filter: blur(18px) brightness(.45); }
.mw-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mw-final.on { opacity: 1; transform: none; }
.mw-final .badge { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); height: 28px; padding: 0 12px; font-size: 13px; font-weight: 600; background: rgba(10, 20, 15, .82); }
/* The step that's playing, lit in the slide's list. */
.ours .wf li { transition: color .3s, background .2s; border-radius: 8px; cursor: pointer; outline: none; }
.ours .wf li:hover { color: var(--text); background: rgba(234, 138, 66, .07); }
.ours .wf li:focus-visible { box-shadow: 0 0 0 2px rgba(234, 138, 66, .6); }
.ours .wf li.now { color: var(--ember-2); }
.ours .wf li.now::before { color: var(--a-on-accent); background: var(--a-accent); box-shadow: 0 0 14px rgba(234, 138, 66, .6); }
/* The arrows over the edges, gone at either end (it doesn't go round). */
.nudge { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 244, 230, .16); background: rgba(20, 17, 14, .8); color: var(--text); cursor: pointer; backdrop-filter: blur(6px); transition: opacity .25s; }
.nudge .i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nudge.prev { left: calc((100vw - var(--sw)) / 2 - 23px); }
.nudge.next { right: calc((100vw - var(--sw)) / 2 - 23px); }
.nudge:disabled { opacity: 0; pointer-events: none; }

@keyframes walk { 0%, 100% { transform: translateX(-46px); } 25% { transform: translateX(-10px) translateY(-9px); } 50% { transform: translateX(40px); } 75% { transform: translateX(0) translateY(-9px); } }
@keyframes tap { 0%, 100% { box-shadow: 0 0 0 0 rgba(234, 138, 66, .6); transform: none; } 50% { box-shadow: 0 0 0 9px rgba(234, 138, 66, 0); transform: scale(.94); } }
@keyframes sparkle { 0%, 100% { box-shadow: 0 0 0 2px #b98a2e inset, 0 0 0 0 rgba(255, 226, 150, .9); } 50% { box-shadow: 0 0 0 2px #b98a2e inset, 0 0 18px 7px rgba(255, 226, 150, .55); } }
@keyframes swing { 0%, 100% { transform: rotate(-70deg); } 45% { transform: rotate(35deg); } }
@media (max-width: 820px) {
	.craft { padding: 82px 0 36px; }
	.craft .intro { text-align: left; }
	.craft .intro .tag { justify-content: flex-start; }
	.craft .intro .lede { margin: 0; }
	.craft .ask { margin-bottom: 20px; }
	.craft .go { flex-direction: column; gap: 8px; margin-top: 2px; font-size: .88rem; }
	.craft .field { min-height: 60px; padding: 12px 10px 12px 16px; border-radius: 16px; }
	.craft .field p { font-size: 1.05rem; }
	.craft .field .sent { left: 16px; }
	.craft .send { width: 34px; height: 34px; }
	.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
	.picker button { flex-direction: column; align-items: flex-start; gap: 3px; padding-bottom: 10px; font-size: .9rem; line-height: 1.25; white-space: normal; text-align: left; }
	.picker button.best::before { inset: -6px -10px 0; }
	.deckwrap { --sw: 86vw; }
	.deck { gap: 12px; padding-bottom: 18px; }
	.slide { grid-template-columns: 1fr; gap: 12px; padding: 10px; border-radius: 16px; }
	.info { padding: 0 6px 6px; }
	.info h3 { font-size: 1.3rem; }
	.info .sub { margin: 2px 0 10px !important; font-size: .88rem; }
	.wf { grid-template-columns: 1fr 1fr; gap: 0 10px; }
	.wf li { padding: 5px 0 5px 30px; font-size: 13px; }
	.wf li::before { top: 4px; width: 22px; height: 22px; font-size: 11px; }
	.wf li + li::after { display: none; }
	.verdict { margin-top: 10px !important; padding-top: 10px; font-size: .88rem; }
	.verdict.no::before { top: calc(10px + .62em); }
	.verdict.yes::before { top: calc(10px + .38em); }
	.nudge { display: none; }
	.play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
	.play svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.veil, .play, .sound, .studiowin { display: none; }
	.vp .guy, .vp .hud { animation: none; }
}
/* The lane views' floor: lighter and flatter, so the studs read as a baseplate. */
.vp { background: linear-gradient(#1c1f26, #30333a 52%, #2a2c30 52%); }
.vp .ground { height: 52%; transform: perspective(260px) rotateX(48deg); background: radial-gradient(rgba(255, 244, 230, .2) 2.4px, transparent 2.9px) 0 0 / 24px 24px, #4a4b50; }
.veil { background: rgba(14, 13, 12, .52); }

/* The six steps' bars, along the window's bottom edge: each is a button that jumps to its step. */
.stage .reel, .stage.narrow .reel { position: absolute; z-index: 9; left: calc(50% - var(--w) * var(--k) / 2 + 16px); right: auto; bottom: auto; top: calc(700px * var(--k) - 21px); width: calc(var(--w) * var(--k) - 32px);
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; transition: opacity .4s; }
.reel button { position: relative; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.reel button::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 3px; border-radius: 2px; background: rgba(255, 244, 230, .2); transition: background .3s, height .15s, top .15s; }
.reel button:hover::before { top: 6px; height: 6px; background: rgba(255, 244, 230, .5); }
.reel button.done::before { background: rgba(255, 244, 230, .6); }
.reel button.on::before { background: var(--a-accent); box-shadow: 0 0 8px rgba(234, 138, 66, .7); }
.stage .shot { bottom: 30px; }
/* Sound: one large speaker in the corner, crossed out while it's off. */
.stage .sound { width: 48px; height: 48px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; top: calc(700px * var(--k) - 84px); }
.sound .i { width: 25px; height: 25px; stroke-width: 1.7; }
.sound[aria-pressed="false"] .i { opacity: .8; }
.sound .off, .sound[aria-pressed="true"] .on { display: block; }
.sound .on, .sound[aria-pressed="true"] .off { display: none; }
.stage.narrow .sound { width: 40px; height: 40px; top: calc(700px * var(--k) - 70px); }
.stage.narrow .sound .i { width: 21px; height: 21px; }

