/* ── Stay connected: "The lab run" (from the Stay Connected CTA artifact, Proposal A). One contained panel: the copy on the left and, behind it, a pipe that enters at the top-left corner, runs past the S of the heading and fills the lab shelves beside the text, stage by stage. White with soft glows in light mode; dark grey with neon glows and neon liquids in dark mode. */
/* ── A: the lab window ─────────────────────────────────── */
.pa__panel { position: relative; text-align: left; border-radius: 28px; background: var(--p-panel); border: 1px solid var(--p-panel-line);
  padding: clamp(28px, 4.5vw, 64px); min-height: 440px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,176,194,.5), inset 0 1px 0 rgba(255,255,255,.08); isolation: isolate; }
.pa__panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(60% 90% at 100% 0%, var(--hero-ga), transparent 60%), radial-gradient(50% 70% at 0% 100%, var(--hero-gb), transparent 70%); opacity: .55; }
.pa__copy { position: relative; z-index: 1; min-width: 0; max-width: 56%; }
.pa__panel h2.big { margin: 0 !important; max-width: 14ch; text-align: left; }
.pa__panel .sub { margin: 18px 0 0 !important; max-width: 46ch; text-align: left; }
.pa__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pa__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font: 600 14px/1 var(--body); }
.pa__links a { color: var(--fg-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.pa__links a:hover { color: var(--accent); }
.pa__links svg { width: 16px; height: 16px; }
.pa__ping { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pa__ping::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #69D757; box-shadow: 0 0 0 0 rgba(105,215,87,.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(105,215,87,0); } }

/* A: the lab run behind the copy. Liquid comes in through a pipe from the top-left corner, fills the Idea tube, then
   pours through glass pipes into each stage in turn, each in its own colour from the About bench (teal, sun, clay,
   green), with the same grain, shine and blinking pets. The art fades toward the top left so the copy reads over it. */
.pa__bench { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(150deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.22) 32%, rgba(0,0,0,.7) 58%, #000 78%);
  mask-image: linear-gradient(150deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.22) 32%, rgba(0,0,0,.7) 58%, #000 78%); }
/* wide: the art fills the panel, the vessels on two shelves beside the copy; narrow: the single row under it */
.pa-art--wide { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate(-44px, 32px); }   /* the bottles sit 32px closer to the copy */
.pa-art--narrow { display: none; }
.pa-bench-line { fill: var(--p-chip-line); }
.pa-glass { fill: rgba(255,255,255,.05); stroke: rgba(201,250,255,.6); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pa-glass--open { fill: none; }
.pa-lip { fill: rgba(201,250,255,.25); stroke: rgba(201,250,255,.6); stroke-width: 1.5; }
.pa-stopper { fill: #c9a27e; stroke: rgba(0,0,0,.25); stroke-width: 1; }
.pa-spec { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 2.5; stroke-linecap: round; }
.pa-tick { stroke: rgba(201,250,255,.5); stroke-width: 2; stroke-linecap: round; }
.pa-pipe { fill: none; stroke: rgba(201,250,255,.2); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.pa-pipe-in { fill: none; stroke: rgba(201,250,255,.85); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.pa-flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 9; opacity: 0;
  animation-duration: .7s, 10s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; }
.pa-flow--1 { stroke: #5fe0ee; animation-name: pa-dash, pa-f1; } .pa-flow--2 { stroke: #ffcf3d; animation-name: pa-dash, pa-f2; } .pa-flow--3 { stroke: #ef9a7a; animation-name: pa-dash, pa-f3; }
.pa-inlet { fill: none; stroke: #5fe0ee; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 9; animation: pa-dash .7s linear infinite, pa-fin 10s ease-in-out infinite; }
.pa-liquid { filter: drop-shadow(0 0 8px var(--glow, rgba(0,176,194,.45))); }
.pa-v1 { --glow: rgba(0,176,194,.5); } .pa-v2 { --glow: rgba(255,184,0,.45); } .pa-v3 { --glow: rgba(217,119,87,.45); } .pa-v4 { --glow: rgba(63,191,85,.45); }
.pa-wave { animation: pa-slosh 2.4s linear infinite; }
.pa-grain { opacity: .55; mix-blend-mode: soft-light; }
.pa-shine { fill: url(#paShine); }
.pa-bub { fill: rgba(255,255,255,.8); opacity: 0; animation: pa-bub 1.8s ease-in infinite; }
.pa-lvl { animation-duration: 10s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.pa-lvl--1 { animation-name: pa-l1; } .pa-lvl--2 { animation-name: pa-l2; } .pa-lvl--3 { animation-name: pa-l3; } .pa-lvl--4 { animation-name: pa-l4; }
.pa-eye { fill: #0d1a1c; transform-box: fill-box; transform-origin: center; animation: pa-blink 4.2s infinite; }
.pa-eye.r2 { animation-delay: 1.6s; }
.pa-lbl { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; fill: var(--fg-3); text-anchor: middle; }
html[data-theme="light"] .pa-glass { fill: rgba(255,255,255,.6); stroke: rgba(0,130,143,.45); }
html[data-theme="light"] .pa-lip { fill: rgba(0,176,194,.1); stroke: rgba(0,130,143,.45); }
html[data-theme="light"] .pa-tick { stroke: rgba(0,130,143,.4); }
html[data-theme="light"] .pa-pipe { stroke: rgba(0,176,194,.16); }
html[data-theme="light"] .pa-pipe-in { stroke: #fff; opacity: .7; }
html[data-theme="light"] .pa-eye { fill: #25232f; }
html[data-theme="light"] .pa-flow--1, html[data-theme="light"] .pa-inlet { stroke: #00a3b4; }
html[data-theme="light"] .pa-flow--2 { stroke: #f0a800; } html[data-theme="light"] .pa-flow--3 { stroke: #d97757; }
@keyframes pa-dash { to { stroke-dashoffset: -14; } }
@keyframes pa-slosh { to { transform: translateX(24px); } }
@keyframes pa-bub { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: .85; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes pa-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes pa-fin { 0%, 2% { opacity: 0; } 4%, 10% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes pa-f1 { 0%, 7% { opacity: 0; } 10%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes pa-f2 { 0%, 33% { opacity: 0; } 36%, 56% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes pa-f3 { 0%, 59% { opacity: 0; } 62%, 82% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes pa-l1 { 0% { transform: translateY(70px); } 8% { transform: translateY(0); } 34% { transform: translateY(18px); } 60% { transform: translateY(34px); } 86%, 90% { transform: translateY(48px); } 100% { transform: translateY(70px); } }
@keyframes pa-l2 { 0%, 10% { transform: translateY(56px); } 32%, 90% { transform: translateY(0); } 100% { transform: translateY(56px); } }
@keyframes pa-l3 { 0%, 36% { transform: translateY(60px); } 58%, 90% { transform: translateY(0); } 100% { transform: translateY(60px); } }
@keyframes pa-l4 { 0%, 62% { transform: translateY(62px); } 84%, 90% { transform: translateY(0); } 100% { transform: translateY(62px); } }
@media (max-width: 860px) {
  .pa__panel { padding-bottom: 46vw; min-height: 0; }
  .pa__copy { max-width: none; }
  .pa-art--wide { display: none; }
  .pa-art--narrow { display: block; position: absolute; left: 4%; right: 4%; bottom: 18px; width: 92%; height: auto; overflow: visible; }
  .pa__bench { -webkit-mask-image: linear-gradient(170deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.2) 45%, #000 75%); mask-image: linear-gradient(170deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.2) 45%, #000 75%); }
}
@media (max-width: 560px) { .pa-lbl { font-size: 20px; } }


/* Light surfaces in either theme: A's panel in a light grey-blue, B's banner in white with a keyline. The Base light
   tokens apply inside them, so copy, chips, eyebrow and the lab art read as on the light page. */
.surface-light { --fg: #333333; --fg-2: #686A86; --fg-3: #6C6F87; --line: #E1E7F0; --line-2: #DCDFEC; --accent: #00828F;
  --grad: linear-gradient(90deg, #00B0C2 0%, #69D757 100%); --p-chip: rgba(0,176,194,.06); --p-chip-line: rgba(0,176,194,.25);
  --hero-ga: rgba(90,240,255,.5); --hero-gb: rgba(0,176,194,.22); color: var(--fg); }
.surface-light .eyebrow { color: #00828F; }
.pa__panel.surface-light { background: #FFFFFF; border-color: rgba(0,176,194,.25);
  box-shadow: 0 40px 90px -50px rgba(31,41,90,.3), inset 0 1px 0 #fff; }
.pa__panel.surface-light::before { opacity: .55; }   /* the cyan and teal glows in the corners, on white */
.surface-light .pa-glass { fill: rgba(255,255,255,.6); stroke: rgba(0,130,143,.45); }
.surface-light .pa-lip { fill: rgba(0,176,194,.1); stroke: rgba(0,130,143,.45); }
.surface-light .pa-tick { stroke: rgba(0,130,143,.4); }
.surface-light .pa-pipe { stroke: rgba(0,176,194,.16); }
.surface-light .pa-pipe-in { stroke: #fff; opacity: .7; }
.surface-light .pa-eye { fill: #25232f; }
.surface-light .pa-flow--1, .surface-light .pa-inlet { stroke: #00a3b4; }
.surface-light .pa-flow--2 { stroke: #f0a800; } .surface-light .pa-flow--3 { stroke: #d97757; }
/* A in dark mode: a light grey panel with near-neon glows, and the lab run in saturated neon colours */
html:not([data-theme="light"]) .pa__panel.surface-light { background: linear-gradient(160deg, #24282D 0%, #16191C 100%); border-color: rgba(0,240,255,.45);
  --fg: #E3E1E1; --fg-2: #B9BDBD; --fg-3: #8E9496; --accent: #55E7F6; --p-chip-line: rgba(255,255,255,.16); --grad: linear-gradient(100deg, #C9FAFF 0%, #5AF0FF 42%, #00B0C2 100%);
  box-shadow: 0 0 0 1px rgba(0,240,255,.18), 0 40px 100px -40px rgba(0,240,255,.55); --hero-ga: rgba(0,240,255,.95); --hero-gb: rgba(0,255,163,.7); }
html:not([data-theme="light"]) .pa__panel.surface-light::before { opacity: .75; }
html:not([data-theme="light"]) .pa__panel .pa-glass { stroke: rgba(160,250,255,.55) !important; }
html:not([data-theme="light"]) .pa__panel .pa-lip { fill: rgba(160,250,255,.15); stroke: rgba(160,250,255,.55); }
html:not([data-theme="light"]) .pa__panel .pa-tick { stroke: rgba(160,250,255,.45); }
html:not([data-theme="light"]) .pa__panel .pa-pipe-in { stroke: rgba(255,255,255,.5); opacity: .45; }
html:not([data-theme="light"]) .pa__panel .pa-eye { fill: #0d1a1c; }
html:not([data-theme="light"]) #pwTeal stop:first-child, html:not([data-theme="light"]) #pnTeal stop:first-child { stop-color: #6ffcff; } html:not([data-theme="light"]) #pwTeal stop:last-child, html:not([data-theme="light"]) #pnTeal stop:last-child { stop-color: #00d9f0; }
html:not([data-theme="light"]) #pwSun stop:first-child, html:not([data-theme="light"]) #pnSun stop:first-child { stop-color: #fff04d; } html:not([data-theme="light"]) #pwSun stop:last-child, html:not([data-theme="light"]) #pnSun stop:last-child { stop-color: #ffb800; }
html:not([data-theme="light"]) #pwClay stop:first-child, html:not([data-theme="light"]) #pnClay stop:first-child { stop-color: #ff9a6b; } html:not([data-theme="light"]) #pwClay stop:last-child, html:not([data-theme="light"]) #pnClay stop:last-child { stop-color: #ff4d2e; }
html:not([data-theme="light"]) #pwGreen stop:first-child, html:not([data-theme="light"]) #pnGreen stop:first-child { stop-color: #8dff6e; } html:not([data-theme="light"]) #pwGreen stop:last-child, html:not([data-theme="light"]) #pnGreen stop:last-child { stop-color: #12e05a; }
html:not([data-theme="light"]) .pa__panel .pa-liquid { filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow)); }
html:not([data-theme="light"]) .pa__panel .pa-v1 { --glow: rgba(0,240,255,.85); } html:not([data-theme="light"]) .pa__panel .pa-v2 { --glow: rgba(255,214,0,.8); } html:not([data-theme="light"]) .pa__panel .pa-v3 { --glow: rgba(255,90,50,.75); } html:not([data-theme="light"]) .pa__panel .pa-v4 { --glow: rgba(40,240,100,.8); }
html:not([data-theme="light"]) .pa__panel .pa-flow--1, html:not([data-theme="light"]) .pa__panel .pa-inlet { stroke: #00f0ff; filter: drop-shadow(0 0 4px #00f0ff); }
html:not([data-theme="light"]) .pa__panel .pa-flow--2 { stroke: #ffd400; filter: drop-shadow(0 0 4px #ffd400); } html:not([data-theme="light"]) .pa__panel .pa-flow--3 { stroke: #ff5a32; filter: drop-shadow(0 0 4px #ff5a32); }
html:not([data-theme="light"]) .pa__panel .pa-pipe { stroke: rgba(0,200,220,.32); }
html:not([data-theme="light"]) .pa__panel .pa-glass { stroke: rgba(0,170,190,.7); fill: rgba(255,255,255,.12); }
html:not([data-theme="light"]) .pa__panel .pa-grain { opacity: .3; }

#connect .pa__panel { margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { .pa-flow, .pa-wave, .pa-bub, .pa-lvl, .pa-eye, .pa-inlet { animation: none !important; } .pa-flow { opacity: 0; } .pa__ping::before { animation: none !important; } }
/* eyes stay dark ink in dark mode: the experiments chemist and the lab bench's bottle pets */
html:not([data-theme="light"]) #experiments .xbot .bot-eyes image, html:not([data-theme="light"]) #labbench image.lb-eye { filter: brightness(.16) saturate(0); }
html:not([data-theme="light"]) #experiments .xbot .eye-r, html:not([data-theme="light"]) #labbench rect.lb-eye { fill: #1d1f24; }
/* the Stay connected subtext reads in white on the dark grey panel */
html:not([data-theme="light"]) #connect .pa__panel .sub { color: #FFFFFF; }
/* Stay connected card: no keyline, a darker grey in dark mode, and a tighter, subtler glow that hugs the card */
#connect .pa__panel.surface-light { border: 0; box-shadow: 0 14px 36px -18px rgba(31,41,90,.28), inset 0 1px 0 rgba(255,255,255,.9); }
html:not([data-theme="light"]) #connect .pa__panel.surface-light { background: linear-gradient(160deg, #1A1D21 0%, #0F1114 100%);
  box-shadow: 0 0 22px -6px rgba(0,240,255,.32), 0 14px 32px -18px rgba(0,240,255,.35); }
html:not([data-theme="light"]) #connect .pa__links a { color: #FFFFFF; }
html:not([data-theme="light"]) #connect .pa__links a:hover { color: #55E7F6; }
/* hero: the app window sits on the same centre line as the heading, subtext and button above it */
html[data-layout="center"] .fslide .win { margin-left: 0 !important; }
/* the footer pile's characters keep dark ink eyes in dark mode too */
html:not([data-theme="light"]) #toybox [data-bot="chemist"] .bot-eyes image { filter: brightness(.16) saturate(0); }
html:not([data-theme="light"]) #toybox [data-bot="chemist"] .eye-r { fill: #1d1f24; }
/* Stay connected: the card sits 24px higher, on a dark teal in dark mode, and its bottles sit 32px lower and 12px further left */
#connect .pa__panel { margin-top: -24px; }
html:not([data-theme="light"]) #connect .pa__panel.surface-light { background: linear-gradient(160deg, #031D20 0%, #021417 55%, #010D0F 100%); }
/* Idea section on tablets and phones: the totem stands small at the right end of the "Add your idea to the board" row,
   sharing the text column's last line with the button instead of taking a row of its own */
@media (max-width: 1100px) {
  .idea__grid { grid-template-areas: "steps text"; grid-template-rows: auto; }
  .idea__text { position: relative; z-index: 1; align-self: end; }   /* text and totem share the bottom edge, so the totem lands beside the button */
  .idea__text .pills { justify-content: flex-start; }
  .idea__text .pills .btn { flex: none; white-space: nowrap; }
  .idea__bot { grid-area: text; justify-self: end; align-self: end; width: 100px; height: 108px; margin: 0 -14px -8px 0; z-index: 2; pointer-events: none; }
  .idea__bot .shape { width: 100px; height: 120px; }
}
@media (max-width: 760px) {
  .idea__grid { grid-template-areas: "text" "steps"; }
  .idea__text .pills .btn { font-size: 15px; padding: 0 18px; }
  .idea__bot { width: 88px; height: 96px; margin-bottom: -6px; }
  .idea__bot .shape { width: 88px; height: 106px; }
  /* 16px more room on each side of the Idea copy and steps on phones (Lars, 2026-10-23): 32px from the screen edge */
  html #idea .idea__text, html #idea .isteps { padding-left: 16px; padding-right: 16px; }
}
/* Stay connected: the pipe behind "the lab builds next." stays faint under the words and only comes up to full strength past "next" */
@media (min-width: 861px) {
  #connect .pa__bench { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.14) 46%, rgba(0,0,0,.45) 56%, #000 66%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.14) 46%, rgba(0,0,0,.45) 56%, #000 66%); }
}
/* Stay connected, dark mode: the bottom-left glow in the brand green #69D757, softer and tucked into the corner */
html:not([data-theme="light"]) #connect .pa__panel.surface-light::before {
  background: radial-gradient(60% 90% at 100% 0%, var(--hero-ga), transparent 60%), radial-gradient(30% 48% at 0% 100%, rgba(105,215,87,.42), rgba(105,215,87,.12) 55%, transparent 80%); }
/* 48px more room between the Stay connected banner and the footer links, in both themes */
html #connect.gsec, html[data-theme="light"] #connect.gsec { padding-bottom: calc(clamp(48px, 4.45vw, 64px) + 48px); }
/* phones: the labs logo in the footer band sits in the middle */
@media (max-width: 760px) { .gfoot__band .mark__word { align-items: center; justify-content: center; text-align: center; } .gfoot__band .mark__word .cl-logo { margin-inline: auto; } }
/* small screens: the bottles row sits close under the links, about 24px below the GitHub link instead of a big empty band */
@media (max-width: 860px) { #connect .pa__panel { padding-bottom: calc(18.4vw + 40px); } }
/* small screens: the "Board is live" label leaves the corner and sits on the right, on its own line above the heading (Lars, 2026-10-23) */
@media (max-width: 860px) { #connect .pa__ping { position: relative; top: auto; right: auto; z-index: 1; justify-self: end; margin: 0 0 18px; } }
/* tablets: the "You have an idea" column sits on the vertical centre of the steps beside it, with the totem still at the end of its button row */
@media (min-width: 761px) and (max-width: 1100px) {
  .idea__grid { grid-template-areas: "steps ." "steps text" "steps ."; grid-template-rows: 1fr auto 1fr; row-gap: 0; }
  .idea__text { align-self: center; }
}
/* the main buttons in dark mode: the solid brand-teal pill of the Stay connected CTA (white label, teal glow, glass light) */
html:not([data-theme="light"]) .btn:not(.btn--glass) { color: #fff !important; background: #00B0C2 !important; }
html:not([data-theme="light"]) .btn:not(.btn--glass):hover { background: #00828F !important; }
html:not([data-theme="light"]) .btn:not(.btn--glass) svg { color: #fff; }

/* hero on tablets and phones (Lars, 2026-10-23): no floating UI (the main screen peeks in on the right, set further down). The
   hero shrinks to fit the copy, and the arrows move down beside the dots so they never sit on the text. */
@media (max-width: 960px) {
  html #stage .fslide .win, html #stage .fslide .ui { display: none !important; }
  html #stage.fs { min-height: clamp(560px, 72svh, 720px); }   /* a fixed floor: the hero no longer shrinks to each slide's copy, so nothing below it moves */
  @media (min-width: 761px) { html #stage.fs { min-height: clamp(540px, 52svh, 600px); } }   /* tablets: copy is short, keep the floor modest */
  html #experiments.gsec { padding-top: calc(clamp(56px, 6.5vw, 96px) - 12px); }   /* 12px less from the hero to "Be the first to experiment." (Lars, 2026-10-23) */
  html[data-layout] #stage .fs__copy { padding-bottom: 144px; padding-top: calc(clamp(76px, 11vh, 110px) + 12px); }   /* +12px on top so the copy starts clear of the nav (Lars, 2026-10-23) */   /* 32px more room above the dots and arrows (Lars, 2026-10-23: +20, then +12) */
  html #stage #fs-prev, html #stage #fs-next { top: auto; margin-top: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  html #stage #fs-prev { left: max(16px, env(safe-area-inset-left, 0px)); } html #stage #fs-next { right: max(16px, env(safe-area-inset-right, 0px)); }
  html[data-layout] #stage .fcopy p { max-width: min(520px, 100%); }   /* the line no longer has to clear the window, so it uses the width */
}

/* hero on tablets and phones, (Lars, 2026-10-23): the copy sits on the left, and each lab's main screen
   sits on the right, about 70% of it showing and the rest cut off by the screen's right edge; no floating UI pieces */
@media (max-width: 960px) {
  html #stage .fslide .win { display: block !important; position: absolute; left: auto; right: 0; top: 116px !important; bottom: auto; margin: 0 !important;
    width: 230px; transform: translate(30%, 0) rotate(-3deg); border-radius: 12px; z-index: 1; animation-name: win-peek !important; }   /* top beats the inline top the landing script sets */
  @keyframes win-peek { from { opacity: 0; translate: 40px 0; } }
  html[data-layout] #stage .fs__copy { justify-self: start; text-align: left; width: calc(100% - 178px); max-width: 560px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: 0; }
  html[data-layout] #stage .fcopy h2 { font-size: clamp(28px, 7.6vw, 44px); line-height: 1.05; }
  html[data-layout] #stage .fcopy p { margin-inline: 0; max-width: none; font-size: 14.5px; line-height: 1.55; }
  html[data-layout] #stage .fcopy__cta { justify-content: flex-start; }
  html[data-layout] #stage .fcopy__cta .btn--lg { flex: none; height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  html[data-layout] #stage .fcopy__does { justify-content: flex-start; }
  /* the window's title bar in scale with the small screen (Lars, 2026-10-23): a thinner bar, smaller dots, title and tab */
  html #stage .win__bar { gap: 6px; height: 22px; padding: 0 8px; }
  html #stage .win__dots { gap: 4px; } html #stage .win__dots i { width: 6px; height: 6px; }
  html #stage .win__url { height: 14px; border-radius: 4px; font-size: 8px; line-height: 14px; }
  html #stage .win__title { font-size: 8.5px; }
  html #stage .win__tabs { margin-left: 4px; } html #stage .win__tabs span { padding: 3px 5px; border-radius: 4px; font-size: 8px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  html #stage .fslide .win { top: 122px !important; width: 320px; transform: translate(30%, 0) rotate(-3deg); }
  html[data-layout] #stage .fs__copy { width: calc(100% - 260px); }
  html[data-layout] #stage .fcopy h2 { font-size: clamp(40px, 5.6vw, 52px); }
  html[data-layout] #stage .fcopy p { font-size: 16px; }
  html #stage .win__bar { gap: 8px; height: 28px; padding: 0 10px; }
  html #stage .win__dots i { width: 8px; height: 8px; }
  html #stage .win__url { height: 18px; font-size: 10px; line-height: 18px; }
  html #stage .win__title { font-size: 11px; }
  html #stage .win__tabs span { padding: 4px 7px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html #stage .fslide .win { animation: none !important; } }

/* Experiments filter on tablets and phones (Lars, 2026-10-23): the chips collapse into one glass pill that names the
   chosen kind; tapping it drops a frosted list of the kinds, the chosen one ticked. Desktop keeps the chip bar. */
.xfilt, .xfilt__in { position: relative; }
.xfilt__btn, .xmore, .xempty { display: none; }
@media (max-width: 760px) {
  .xfilt { height: 44px; margin-top: 28px; z-index: 20; }
  .xfilt__in { display: flex; justify-content: center; }
  /* while the list scrolls by, the pill stays pinned under the nav (the script after landing.js sets is-stuck) */
  .xfilt.is-stuck .xfilt__in { position: fixed; left: 0; right: 0; top: var(--xf-top, 80px); z-index: 55; padding-inline: 16px; animation: xf-in .2s ease both; }
  @keyframes xf-in { from { opacity: 0; transform: translateY(-6px); } }
  html:not([data-theme="light"]) .xfilt.is-stuck .xfilt__btn { background: rgba(12,18,20,.92); }   /* pinned over the rows: solid enough to read */
  html[data-theme="light"] .xfilt.is-stuck .xfilt__btn { background: rgba(255,255,255,.96); }
  #experiments > .wrap:has(.xfilt.is-open), #experiments > .wrap:has(.xfilt.is-stuck) { position: relative; z-index: 30; }   /* the pill and its list sit over the cards */
  .xfilt__btn em { font: 700 12px/1 var(--num); font-style: normal; color: var(--accent); background: rgba(0,176,194,.14); padding: 4px 7px; border-radius: 999px; }
  .xfilt__btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 20px; border-radius: 999px; cursor: pointer;
    font: 600 15px/1 var(--body); color: var(--fg); background: rgba(255,255,255,.06); border: 1px solid var(--glass-line);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 32px rgba(0,0,0,.28); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
  html[data-theme="light"] .xfilt__btn { background: rgba(255,255,255,.78); border-color: rgba(17,20,40,.08); box-shadow: 0 8px 26px rgba(31,41,90,.1); }
  .xfilt__btn small { font: 600 13px/1 var(--body); color: var(--fg-3); }
  .xfilt__btn svg { width: 16px; height: 16px; color: var(--accent); transition: transform .25s ease; }
  .xfilt.is-open .xfilt__btn svg { transform: rotate(180deg); }
  .xfilt__btn:focus-visible { outline: 2px solid #00B0C2; outline-offset: 3px; }
  html #experiments .xfilt .filters--g { position: absolute; top: calc(100% + 8px); left: 50%; width: min(300px, calc(100vw - 32px)); max-width: none; margin: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 6px; border-radius: 20px; opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  html[data-theme="light"] #experiments .xfilt .filters--g { background: rgba(255,255,255,.97); }
  html:not([data-theme="light"]) #experiments .xfilt .filters--g { background: rgba(12,18,20,.96); }
  html #experiments .xfilt.is-open .filters--g { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .2s ease; }
  html #experiments .xfilt .filters--g button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 15px; text-align: left; }
  html #experiments .xfilt .filters--g button[aria-pressed="true"]::after { content: ""; width: 14px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { html #experiments .xfilt .filters--g, .xfilt__btn svg { transition: none; } .xfilt.is-stuck .xfilt__in { animation: none; } }

/* Experiments on phones (Lars, 2026-10-23, option 2): the sideways rail becomes a vertical list of compact rows, a
   small thumbnail on the left and the name, a two-line summary and the owner beside it. Four rows show per kind;
   "Show all N" opens the rest. Desktop and tablets keep the rail. */
@media (max-width: 760px) {
  html #experiments .rail-wrap { margin-top: 0; }
  html #experiments .crail { display: flex; flex-direction: column; gap: 12px; overflow: visible; padding: 24px 32px 0; touch-action: auto; }   /* 16px more each side than the page margin (Lars, 2026-10-23), in line with the Idea section */
  html #experiments .xcard.is-clone, html #experiments .xcard.is-folded, html #experiments .rail-ctl { display: none; }
  html #experiments .xcard { flex: none; width: 100%; max-width: none; height: auto; min-height: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto;
    align-items: center; gap: 14px; padding: 10px; border-radius: 18px; overflow: hidden; transform: none !important; }
  html #experiments .xcard__shot { width: 96px; height: 96px; margin: 0; border-radius: 12px; align-self: start; }
  html #experiments .xcard__shot .xscene { width: calc(100% / .22); height: calc(100% / .22); transform: scale(.22); transform-origin: 0 0; }
  html #experiments .xcard:hover .xscene__win, html #experiments .xcard:hover .xscene__ui { transform: none; }
  html #experiments .cover { padding: 10px; place-content: center; text-align: center; }
  html #experiments .cover b { font-size: 32px; }
  html #experiments .cover small, html #experiments .cover::after { display: none; }
  html #experiments .cover::before { width: 90px; height: 90px; right: -24px; top: -28px; }
  html #experiments .xcard__body { padding: 0 4px 0 0; gap: 4px; grid-template-rows: auto auto auto; }
  html #experiments .xcard h3 { font-size: 17px; line-height: 1.25; }
  html #experiments .xcard p { font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 2; }
  html #experiments .xcard__foot { font-size: 12.5px; margin-top: 2px; }
  html #experiments .xcard__face { width: 22px; height: 22px; }
  html #experiments .xcard__foot b { font-size: 0; gap: 0; color: var(--accent); }
  html #experiments .xcard__foot b svg { width: 16px; height: 16px; }
  html #experiments .xmore { display: flex; margin: 16px auto 0; }
  html #experiments .xmore[hidden], html #experiments .xempty[hidden] { display: none; }
  html #experiments .xempty { display: block; margin: 0 32px; padding: 28px 20px; border-radius: 18px; text-align: center; color: var(--fg-2); font-size: 15px; line-height: 1.5;
    border: 1px dashed var(--line-2); }
  html #experiments .xempty a { color: var(--accent); font-weight: 700; text-decoration: none; }
  html #experiments.gsec { padding-bottom: 56px; }
}
