/* Scenlit's front page, in the look of its own launch video: blue-black ink and white sections in turn, big type
   with real pieces of the product set in it, and bright colour fields (coral, cobalt, mint, pink, sky) behind the
   pictures, and in the hero, ringed around the words that say how. The line that matters is lit by a band of yellow
   (a command, a line of code).
   Type: Funnel Display for what is said, Funnel Sans for reading, Fragment Mono for code. Yellow is light and action,
   nothing else. */
@font-face { font-family: "Funnel Display"; src: url(/fonts/funnel-display.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url(/fonts/funnel-sans.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url(/fonts/fragment-mono.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --ink-bg: #0d1117; --deep: #0a0d12; --paper: #ecebe6; --soft: #8b93a3; --dim: #5d6472; --rule: #1c2230; --lit: #ffd23f;
  --coral: #ff5b3a; --cobalt: #2f5bff; --mint: #2ed39a; --pink: #ff6fb5; --sky: #39c2ff; --on-white: #0d1117; --muted-white: #5d6472;
  --display: "Funnel Display", system-ui, sans-serif; --sans: "Funnel Sans", system-ui, -apple-system, sans-serif; --mono: "Fragment Mono", ui-monospace, monospace;
  --band: linear-gradient(90deg, rgb(255 210 63 / .17), rgb(255 210 63 / .07) 55%, rgb(255 210 63 / 0));
  --band-strong: linear-gradient(90deg, rgb(255 210 63 / .24), rgb(255 210 63 / .06));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ink-bg); color: var(--paper); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }

/* the top */
/* the logo, the links and the words on the right all sit on one baseline */
.top { display: flex; align-items: baseline; gap: 28px; min-height: 68px; padding-block: 19px; }
.logo { display: inline-block; font: 800 24px/1 var(--display); }
.wm { letter-spacing: -.035em; white-space: nowrap; }
.wm .i { position: relative; display: inline-block; }
.wm .i b { position: absolute; left: 50%; top: .24em; width: .23em; height: .23em; border-radius: 50%; background: var(--lit); transform: translateX(-50%); box-shadow: 0 0 .35em rgb(255 210 63 / .55); }
.top nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--soft); }
.top nav a:hover, .ghost:hover { color: var(--paper); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: baseline; }
/* the header's action: a light pill, the same shape as the chosen tab and filter */
.btn { display: inline-flex; align-items: center; background: var(--paper); color: var(--on-white); font-weight: 600; font-size: 15px; padding: 8px 18px; border-radius: 999px; }
.btn:hover { background: #fff; }
.ghost { font-weight: 500; font-size: 15px; color: var(--soft); padding: 8px 10px; }
/* signed in: the way back to your products, quiet (yellow is for actions) */
.back { font-weight: 500; font-size: 15px; color: var(--paper); padding: 7px 17px; border-radius: 999px; box-shadow: inset 0 0 0 1px #2a3140; }
.back:hover { box-shadow: inset 0 0 0 1px var(--soft); }

/* a command is a lit line: the band behind it, the copy button at its end */
.cmd { position: relative; display: flex; align-items: center; gap: 18px; max-width: 100%; padding: 12px 10px 12px 18px; font: 400 17px var(--mono); color: var(--paper); isolation: isolate; }
.cmd::before { content: ""; position: absolute; inset: 0 -100vw 0 0; background: var(--band); box-shadow: inset 4px 0 0 var(--lit); z-index: -1; }
.cmd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd button { flex: none; border: 1px solid rgb(236 235 230 / .25); background: none; color: var(--paper); border-radius: 6px; padding: 5px 11px; font: 500 13px var(--sans); }
.cmd button:hover { border-color: var(--paper); }

/* A: the hero, still. The headline on one line (it is about 16.4em wide, so 5.3vw keeps it inside .wrap); under it what
   happens, with the two words that say how ringed in colour fields; then the command in a plain box */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.hero h1 { font: 800 min(5.3vw, 64px)/1.02 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.lede { margin-top: clamp(28px, 3.4vw, 44px); font-size: clamp(18px, 1.6vw, 21px); color: var(--soft); max-width: 34em; text-wrap: pretty; }
.hero .lede { margin-top: clamp(20px, 2.4vw, 30px); max-width: 40em; font: 500 clamp(19px, 1.9vw, 24px)/1.6 var(--display); letter-spacing: -.012em; color: #a9afba; }
.o { position: relative; white-space: nowrap; color: var(--paper); font-weight: 600; }
.o svg { position: absolute; left: -.42em; top: -.22em; width: calc(100% + .84em); height: calc(100% + .46em); overflow: visible; pointer-events: none; }
.o path { fill: none; stroke: var(--c); stroke-width: 2.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.acts { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; margin-top: 30px; scroll-margin-top: 120px; }
.hero .acts { margin-top: clamp(32px, 4vw, 48px); }
.hero .cmd { gap: 18px; padding: 8px 8px 8px 18px; border-radius: 10px; background: var(--deep); box-shadow: inset 0 0 0 1px #262d3b; isolation: auto; }
.hero .cmd::before { content: none; }
.hero .cmd span::before { content: "$"; margin-right: .75em; color: var(--dim); }
.hero .cmd button { border: 0; border-radius: 7px; padding: 6px 12px; background: rgb(236 235 230 / .06); color: var(--soft); font-weight: 600; }
.hero .cmd button:hover { color: var(--paper); }
.hero .ghost { padding: 0; font-weight: 600; color: var(--paper); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; text-decoration-color: rgb(236 235 230 / .35); }
.hero .ghost:hover { text-decoration-color: var(--paper); }

/* the playground: a scene file with a Run button; the video it makes plays beside it, the running line lit */
.run-view { max-width: 1340px; margin: 0 auto; padding-left: max(16px, 3vw); padding-right: max(16px, 3vw); }
.editor { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--deep); box-shadow: 0 50px 110px -40px rgb(0 0 0 / .9); }
.ebar { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--rule); background: #0b0f15; font: 400 13px var(--mono); }
.ebar .dots { display: flex; gap: 6px; } .ebar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #262c38; }
.tabs { display: flex; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: none; margin-left: 6px; }
.tab { flex: none; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--soft); font: inherit; padding: 0 14px; cursor: pointer; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--lit); }
.tab:focus-visible { outline: 2px solid var(--lit); outline-offset: -2px; }
.run { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--lit); color: #0c0c0c; border-radius: 8px; padding: 8px 15px 8px 12px; font: 700 14px var(--sans); }
.run svg { width: 14px; height: 14px; fill: currentColor; }
.run.playing { background: none; color: var(--paper); box-shadow: inset 0 0 0 1px #3a4254; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
/* the editor is as tall as the video; a longer scene scrolls, following the running line */
.files { position: relative; min-height: 0; border-right: 1px solid var(--rule); }
.file { position: absolute; inset: 0; overflow-y: auto; padding: 16px 0; font: 400 13.5px/1.8 var(--mono); color: var(--paper); overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2b3242 transparent; }
.row { display: flex; padding-right: 16px; transition: background .25s, opacity .25s; }
.row .n { flex: none; width: 46px; padding-right: 16px; text-align: right; color: var(--dim); user-select: none; }
.row .c { white-space: pre; }
.row.go { cursor: pointer; } .row.go:hover { background: rgb(255 255 255 / .03); }
.sw { display: inline-block; width: .8em; height: .8em; margin: 0 .35em 0 .1em; border-radius: 2px; box-shadow: inset 0 0 0 1px #ffffff40; vertical-align: -.05em; }
.row.now { background: var(--band); box-shadow: inset 4px 0 0 var(--lit); } .row.now .n { color: var(--lit); }
.running .row:not(.now) { opacity: .45; }
.k { color: var(--soft); } .s { color: #b6e08c; }
.stage { position: relative; background: #000; display: grid; place-items: center; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.stage .wait { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .3); font-size: 15px; transition: opacity .3s; pointer-events: none; }
.stage .wait span { background: rgb(10 13 18 / .88); color: var(--soft); padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.stage .wait b { color: var(--lit); }
.started .stage .wait { opacity: 0; }

/* how it works: three bands, each step in its own colour and shape. Their colour is a layer behind (::before), so a
   band's tail or tab can reach into its neighbour; all of them sit in this section's stacking context */
.bands { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-bg); }
.band { position: relative; }
.band::before { content: ""; position: absolute; inset: 0; background: var(--c); z-index: -1; }
.band > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px 40px; }
.say { font: 800 clamp(44px, 6.2vw, 84px)/.95 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.ask { --c: var(--coral); color: #fff; }
.ask > .wrap { min-height: 260px; padding-block: 48px; }
.ask > .wrap::after { content: ""; position: absolute; left: calc(max(16px, 4vw) + 60px); top: 100%; width: 70px; height: 42px; background: var(--coral); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble { justify-self: end; display: flex; align-items: center; gap: 14px; max-width: 100%; padding: 24px 32px; border-radius: 999px; background: #fff; color: var(--on-white); font: 400 clamp(15px, 1.5vw, 21px) var(--mono); transform-origin: 0 50%; }
.bubble > span:first-child { color: var(--coral); }
.bubble .q { flex: none; display: inline-block; width: 32ch; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.write { --c: var(--ink-bg); color: var(--paper); }
.write > .wrap { min-height: 300px; padding-block: 56px; }
.ftab { position: absolute; left: calc(50% + 20px); bottom: 100%; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 12px 12px 0 0; background: var(--ink-bg); font: 400 14px var(--mono); color: var(--soft); }
.ftab b, .reel .src b { color: var(--lit); font-weight: 700; }
.lines { font: 400 clamp(15px, 1.6vw, 23px)/1.95 var(--mono); }
.lines > div { position: relative; padding-left: 24px; white-space: pre; }
.lines > div:not(.now) { opacity: .38; --o: .38; }
.lines .n { display: inline-block; width: 2.2ch; margin-right: 1ch; color: var(--dim); }
.lines .now .n, .lines .f { color: var(--lit); }
.glow { position: absolute; inset: 0 -100vw 0 0; background: var(--band-strong); box-shadow: inset 5px 0 0 var(--lit); z-index: -1; }
.show { --c: var(--mint); color: var(--on-white); }
.show::after { content: ""; position: absolute; left: 0; right: 0; top: 12px; bottom: 13px; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(255 255 255 / .55) 26px, transparent 26px) 0 0 / 50px 13px repeat-x, linear-gradient(90deg, rgb(255 255 255 / .55) 26px, transparent 26px) 0 100% / 50px 13px repeat-x; }
.show > .wrap { min-height: 340px; padding-block: 64px; }
.again { margin-top: 22px; font-size: 18px; color: rgb(13 17 23 / .75); }
/* the drawn clip; its insides are sized by its width */
.clip { position: relative; justify-self: end; width: min(380px, 100%); aspect-ratio: 16 / 9; container-type: inline-size; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0f3a66 0%, #0a2647 55%, #071a33 100%); box-shadow: 0 24px 44px -22px rgb(0 70 40 / .7); }
.clip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip > svg path { fill: none; stroke: #8fd0ff; stroke-width: 1.4; opacity: .4; vector-effect: non-scaling-stroke; }
.clip span { position: absolute; }
.clip .where { left: 7cqw; top: 5.2cqw; font: 700 4.8cqw var(--display); color: #a9c6e2; }
.clip .m { left: 7cqw; top: 16.5cqw; font: 800 16.5cqw/1 var(--display); letter-spacing: -.04em; color: #eaf6ff; }
.clip svg.ring { inset: auto; left: 3.5cqw; top: 13cqw; width: 54cqw; height: 23.5cqw; overflow: visible; transform: rotate(-5deg); }
.clip .ring ellipse { fill: none; stroke: var(--lit); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; } /* in the ring's own units: 1.3cqw of its 54cqw */
.clip .bar { left: 0; right: 0; bottom: 0; height: 13cqw; display: flex; align-items: center; gap: 3.5cqw; padding: 0 5cqw; background: linear-gradient(transparent, rgb(4 14 28 / .92)); }
.clip .bar svg { position: static; width: 4.3cqw; height: 4.3cqw; fill: #ecebe6; }
.clip .bar i { flex: 1; height: 2px; background: rgb(236 235 230 / .3); } .clip .bar b { display: block; width: 52%; height: 2px; background: var(--lit); }

/* the bands' motion: home.js puts .on on a band once it is well on screen. Nothing comes in from nothing: everything
   is there from the first paint, and then the question types, the running line lights, the ring draws round the
   swell and the film rolls */
@keyframes type { from { width: 0; } }
@keyframes light { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes roll { to { background-position: -50px 0, -50px 100%; } }
@media (prefers-reduced-motion: no-preference) {
  .ask.on .bubble .q { animation: type 1.1s steps(32, end) .3s both; }
  .write.on .glow { animation: light .6s ease .5s both; }
  .show.on .clip .ring ellipse { animation: draw .9s cubic-bezier(.45, 0, .2, 1) .5s both; }
  .show.on::after { animation: roll 1.4s linear 4; }
}

/* Scenlit's own launch video, made with Scenlit, hanging over a cobalt field; the other scenes in tabs under it */
.reel { background: linear-gradient(var(--ink-bg) 0 46%, var(--cobalt) 46%); padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.reel h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; font: 800 clamp(32px, 4.2vw, 56px)/1.05 var(--display); letter-spacing: -.045em; }
.reel .src { display: inline-flex; align-items: center; gap: 12px; height: 2.9em; padding: 0 1.2em 0 1em; border-radius: 8px; background: var(--band-strong), var(--deep); box-shadow: inset 5px 0 0 var(--lit), 0 0 0 1px var(--rule); font: 400 clamp(15px, 1.5vw, 20px) var(--mono); letter-spacing: 0; }
.reel .src b { font-size: .72em; }
.reel a:hover .src { box-shadow: inset 5px 0 0 var(--lit), 0 0 0 1px var(--soft); }
.reel .screen { max-width: 1040px; margin: clamp(28px, 4vw, 48px) auto 0; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 60px 120px -40px rgb(0 10 70 / .85); }
.reel iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.reel .under { max-width: 1040px; margin: 28px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; }
.reel .films { display: flex; flex-wrap: wrap; gap: 8px; }
.reel .films button { border: 0; border-radius: 999px; padding: 9px 18px; background: none; color: #fff; font: 600 15px var(--sans); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
.reel .films button[aria-pressed="true"] { background: #fff; color: var(--on-white); box-shadow: none; }
.reel .under > a { margin-left: auto; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.reel :focus-visible { outline-color: #fff; }

/* what one scene makes, on ink: a sentence with small pictures in it, then the cards, each picture on a colour field */
section h2 { font: 800 clamp(32px, 4vw, 52px)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.make, .shared, .faq { padding-block: clamp(80px, 10vw, 128px); }
.make h2 { font: 800 clamp(34px, 4.4vw, 64px)/1.25 var(--display); letter-spacing: -.045em; text-wrap: pretty; }
.chip { position: relative; display: inline-block; height: 1.1em; vertical-align: -.2em; border-radius: .16em; overflow: hidden; }
.chip i { position: absolute; font-style: normal; }
.cv { width: 1.9em; background: var(--cobalt); }
.cv i { inset: 14%; border-radius: .09em; background: linear-gradient(160deg, #0f3a66, #071a33); display: flex; align-items: center; padding-left: .2em; font: 800 .34em/1 var(--display); color: #eaf6ff; letter-spacing: -.04em; }
.cg { width: 1.5em; background: var(--coral); }
.cg i { inset: 13% 11%; border-radius: .07em; background: #fff; transform: rotate(-3deg); display: grid; align-content: center; padding: 0 .9em; font: 600 .1em/1.6 var(--sans); color: var(--on-white); letter-spacing: 0; }
.cg b { display: block; white-space: nowrap; overflow: hidden; font-weight: 600; } .cg b:last-child { color: var(--soft); }
.cs { width: 1.75em; background: var(--pink); }
.cs i { width: 55%; height: 58%; border-radius: .07em; }
.cs i:first-child { left: 9%; top: 24%; background: #f3ede2; transform: rotate(-6deg); }
.cs i:last-child { left: 36%; top: 16%; background: linear-gradient(160deg, #0f3a66, #071a33); transform: rotate(4deg); }
.cp { width: 1.1em; background: var(--mint); }
.cp i { inset: 14%; border-radius: .07em; background: var(--ink-bg); transform: rotate(4deg); padding: .1em; font: 800 .14em/.95 var(--display); color: var(--lit); letter-spacing: -.03em; }
.make .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 44px); }
.make .filters button { border: 1.5px solid #2a3140; background: none; border-radius: 999px; padding: 7px 16px; font: 600 15px var(--sans); color: var(--paper); }
.make .filters button[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--on-white); }
.make .grid { margin-top: 36px; }
.shared .grid, .faq h2 + div { margin-top: 30px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; }
.t { display: grid; gap: 10px; align-content: start; min-width: 0; }
.t .pic { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--f, var(--deep)); display: flex; align-items: center; justify-content: center; padding: 8%; }
.t .pic img { display: block; max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 24px 40px -20px rgb(0 0 0 / .55); transition: transform .25s ease; }
.t .pic.sq img { height: 100%; width: auto; }
.t:hover .pic img { transform: translateY(-4px); }
.t h3 { margin-top: 6px; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.t p { color: var(--soft); font-size: 15px; }

/* white sections: what makers shared, and the end */
.light { background: #fff; color: var(--on-white); color-scheme: light; }
.light .t p { color: var(--muted-white); }
.light :focus-visible { outline-color: var(--on-white); }

.faq > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; }
.faq h2 + div { margin-top: 0; }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font: 600 18px var(--sans); display: flex; gap: 12px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; border-left: 7px solid var(--lit); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .15s; transform: translateY(-2px); }
details[open] summary::before { transform: translateY(-2px) rotate(90deg); }
details p { margin: 0 0 20px 19px; color: var(--soft); max-width: 36em; }

.end { padding-block: clamp(72px, 9vw, 112px); }
.end > .wrap { position: relative; }
.end h2 { font: 800 clamp(52px, 9vw, 128px)/.86 var(--display); letter-spacing: -.058em; max-width: 7em; }
.tiles { position: absolute; right: max(16px, 4vw); top: -12px; width: 380px; height: 250px; }
.tiles i { position: absolute; width: 150px; height: 150px; border-radius: 18px; }
.tiles i:nth-child(1) { left: 0; top: 30px; background: var(--coral); transform: rotate(-8deg); }
.tiles i:nth-child(2) { left: 118px; top: 0; background: var(--cobalt); transform: rotate(5deg); }
.tiles i:nth-child(3) { left: 230px; top: 70px; background: var(--mint); transform: rotate(-3deg); }
.tiles b { position: absolute; left: 150px; top: 96px; width: 120px; height: 120px; border-radius: 50%; background: var(--ink-bg); display: grid; place-items: center; box-shadow: 0 20px 40px -14px rgb(13 17 23 / .6); }
.tiles svg { width: 40px; height: 40px; fill: var(--lit); }
.run-it { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(36px, 5vw, 64px); }
.run-it .w { font: 800 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -.035em; }
.end .cmd { border-radius: 8px; overflow: hidden; background: var(--ink-bg); min-width: min(320px, 100%); }
.end .cmd::before { inset: 0; background: var(--band-strong); box-shadow: inset 6px 0 0 var(--lit); }
.free { margin-top: 22px; font-size: 16px; font-weight: 500; color: var(--muted-white); }

.foot { background: var(--ink-bg); }
.foot > .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 26px 40px; color: var(--soft); font-size: 14px; }
.foot a:hover { color: var(--paper); }

/* the playground's own page */
.playpage { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.playpage h1 { font: 800 clamp(40px, 6vw, 80px)/1 var(--display); letter-spacing: -.045em; }
.playpage .lede { margin: 16px 0 36px; }

@media (max-width: 1000px) { .tiles { display: none; } }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) {
  .top nav, .top .ghost { display: none; }
  .hero h1 { font-size: clamp(38px, 10vw, 60px); white-space: normal; text-wrap: balance; }
  .split { grid-template-columns: minmax(0, 1fr); } .stage { order: -1; } .files { border-right: 0; border-top: 1px solid var(--rule); } .file { position: static; }
  .tab .ext, .ebar .dots { display: none; } .tab { padding: 0 10px; } .tabs { margin-left: -6px; } .stage .wait span { font-size: 13px; padding: 8px 14px; }
  .faq > .wrap { grid-template-columns: 1fr; }
  .band > .wrap { grid-template-columns: minmax(0, 1fr); }
  .ask > .wrap, .write > .wrap, .show > .wrap { min-height: 0; }
  .bubble, .clip { justify-self: start; }
  .bubble { padding: 18px 24px; }
  .ftab { display: none; }
  .reel .under > a { margin-left: 0; }
}
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .cmd { font-size: 15px; } .bubble { font-size: 14px; padding: 16px 20px; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } summary::before, .t .pic img, .row { transition: none; } }

/* an example, opened from a card (home.js): the scene beside what it made, in a dialog over the page */
html:has(dialog.exd[open]) { overflow: hidden; }
dialog.exd { padding: 0; border: 0; background: transparent; color: var(--paper); width: min(1320px, calc(100vw - 32px)); height: min(812px, calc(100dvh - 32px)); max-width: none; max-height: none; overflow: visible; }
dialog.exd:focus, dialog.exd:focus-visible { outline: none; }
dialog.exd::backdrop { background: rgb(5 7 11 / .78); }
.ex-wait { height: 100%; display: grid; place-items: center; border-radius: 18px; background: var(--deep); color: var(--soft); box-shadow: 0 0 0 1px var(--rule); }
.ex { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 18px; overflow: hidden; background: var(--deep); box-shadow: 0 0 0 1px var(--rule), 0 60px 120px -30px #000; }
.ex-top { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--rule); }
.ex-top h2 { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.ex-top span { color: var(--soft); font-size: 15px; }
.ex-x { margin-left: auto; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px #2a3140; display: grid; place-items: center; }
.ex-x:hover { box-shadow: inset 0 0 0 1px var(--soft); }
.ex-x svg { width: 14px; height: 14px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; }
.ex-body { display: grid; grid-template-columns: 440px minmax(0, 1fr); min-height: 0; }
.noscene .ex-body { grid-template-columns: minmax(0, 1fr); }
.ex-scene { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; border-right: 1px solid var(--rule); }
.ex-file { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-bottom: 1px solid var(--rule); font: 400 13px var(--mono); color: var(--soft); }
.ex-file b { color: var(--lit); font-weight: 700; }
.ex-code { overflow: auto; padding: 14px 0; font: 400 13px/1.95 var(--mono); color: var(--paper); scrollbar-width: thin; scrollbar-color: #2b3242 transparent; }
.ex-code .row .c .c { color: var(--dim); }
.ex-code .f { color: var(--paper); }
.ex-code .row.now .f { color: var(--lit); }
.ex-code.running .row:not(.now) { opacity: .45; }
.ex-out { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; }
.ex-tabs button { border: 1.5px solid #2a3140; background: none; border-radius: 999px; padding: 6px 16px; font: 600 14px var(--sans); color: var(--paper); }
.ex-tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--paper); color: var(--on-white); }
.ex-out > .ex-pane:first-child { padding-top: 24px; }
.ex-pane { min-height: 0; overflow: auto; padding: 0 24px 24px; }
.ex-screen { border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--rule); }
.ex-screen iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ex-doc { background: #fff; color: var(--on-white); border-radius: 12px; padding: 28px 32px; color-scheme: light; }
.ex-doc h3 { font: 800 28px/1.15 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.ex-doc h2 { font: 700 20px/1.3 var(--display); margin: 22px 0 8px; }
.ex-doc p, .ex-doc li { font-size: 16px; line-height: 1.6; color: #3a4050; }
.ex-doc p { margin: 0 0 10px; }
.ex-doc ol { padding-left: 1.3em; margin: 0 0 10px; }
.ex-doc img { display: block; max-width: 100%; border-radius: 8px; box-shadow: 0 0 0 1px #e3e3df; margin: 12px 0 18px; }
.ex-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.ex-pics figure { margin: 0; display: grid; gap: 8px; }
.ex-pics img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px #2a3140; }
.ex-pics figcaption { font: 400 13px var(--mono); color: var(--soft); overflow-wrap: anywhere; }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 24px; border-top: 1px solid var(--rule); }
.ex-foot .cmd { min-width: 0; }
.ex-foot .cmd::before { inset: 0; }
.ex-own { color: var(--soft); font-size: 15px; }
.ex-foot > a { margin-left: auto; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 800px) {
  dialog.exd { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .ex-body { display: flex; flex-direction: column; overflow: auto; }
  .ex-out { order: -1; display: block; flex: none; } .ex-pane { overflow: visible; }
  .ex-scene { flex: none; border-right: 0; border-top: 1px solid var(--rule); } .ex-code { max-height: 55vh; }
  .ex-own { display: none; } .ex-foot > a { margin-left: 0; }
}

/* the panel's motion: the page behind dims as it grows out of its card (home.js), then the scene's lines come in one
   after another and the output rises; on the way back the page brightens as it shrinks into the card */
@keyframes ex-fade { from { opacity: 0; } }
@keyframes ex-row { from { opacity: 0; transform: translateX(-14px); } }
@keyframes ex-up { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  dialog.exd::backdrop { animation: ex-fade .4s ease both; transition: opacity .38s ease; }
  dialog.exd.closing::backdrop { opacity: 0; }
  .ex.enter .ex-code .row { animation: ex-row .45s var(--ease) both; animation-delay: calc(140ms + var(--i, 0) * 22ms); }
  .ex.enter .ex-out { animation: ex-up .6s var(--ease) .1s both; }
  .ex.enter .ex-top h2, .ex.enter .ex-top span, .ex.enter .ex-foot { animation: ex-fade .5s ease .2s both; }
}
