/* Carbon Labs landing, v2 (2026-10-19). Google Labs' page, section for section, on the CarbonWeb layer:
   a splash, a full-screen featured stage, "Be the first to experiment" as a fanned rail of 370 x 560 cards
   built from the Experiments board, "About" as one big statement, "Life beyond the lab" as tall cards,
   "Stay connected", the wordmark. Google's flat colour blobs become Liquid Glass shapes; its white cards
   become glass; its one accent colour becomes the Carbon gradient. Built on lab.css, never forking it. */

/* ── splash (Google's intro: shapes, then the brand) */
.splash { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); overflow: hidden; animation: splash-out .6s var(--ease) 1.5s forwards; }
.splash__brand { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; animation: splash-in .7s var(--ease-out) .15s both; }
.splash__brand svg { width: 64px; height: 64px; filter: drop-shadow(0 16px 40px rgba(0,176,194,.45)); }
.splash__brand b { font: 800 clamp(26px, 3vw, 34px)/1 var(--display); letter-spacing: -.03em; color: var(--fg); }
.splash__brand span { font-size: 15px; color: var(--fg-2); }
.splash .shape { animation: shape-in 1.1s var(--ease-out) both; }
.splash .shape:nth-child(2) { animation-delay: .1s; } .splash .shape:nth-child(3) { animation-delay: .2s; } .splash .shape:nth-child(4) { animation-delay: .3s; }
@keyframes splash-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@keyframes shape-in { from { opacity: 0; transform: translateY(60px) scale(.8); } }

/* ── Liquid Glass shapes. Google uses flat colour blobs; ours borrow three vocabularies: monday's title-slide
   geometry (a parallelogram hanging from the top edge, a circle, a rotated bar, a semicircle rising from the
   bottom, the Night deck's thin orbit ring), Claude's starburst mark and Clawd, the stout pixel crab of Claude
   Code (stacked squares, two eyes), and Grok Bot's icon system (one rounded mass, two rounded-square eyes).
   Every one is glass: a tint, a lensing rim, a specular top edge, a glow. */
.shape { position: absolute; pointer-events: none; background: var(--shape-fill, rgba(0,176,194,.22)); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1.5px 1px rgba(190,255,255,.5), inset 0 -1px 1px rgba(190,255,255,.18), 0 30px 80px rgba(0,0,0,.35), 0 0 120px var(--shape-glow, rgba(0,176,194,.25)); }
html[data-theme="light"] .shape { border-color: rgba(255,255,255,.9); box-shadow: inset 0 1.5px 1px #fff, 0 24px 60px rgba(31,41,90,.14), 0 0 100px var(--shape-glow, rgba(0,176,194,.22)); }
/* clipped shapes cannot show a border or an outer shadow, so they carry the rim as an inner gradient instead */
.shape--clip { border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, color-mix(in srgb, var(--shape-fill, rgba(0,176,194,.3)) 100%, #fff 18%), var(--shape-fill, rgba(0,176,194,.3)) 45%, rgba(255,255,255,.04)); filter: drop-shadow(0 0 60px var(--shape-glow, rgba(0,176,194,.25))); }
/* monday */
.shape--round { border-radius: 50%; }
.shape--square { border-radius: 24%; }
.shape--para { clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.shape--semi { border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.shape--bar { border-radius: 999px; }
.shape--ring { border-radius: 50%; background: transparent; border: 2px solid var(--shape-fill, rgba(0,176,194,.4)); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 0 60px var(--shape-glow, rgba(0,176,194,.25)), inset 0 0 40px var(--shape-glow, rgba(0,176,194,.2)); }
/* a monday cluster: the title slide's group, used as one shape */
.mcluster { position: absolute; pointer-events: none; }
.mcluster .shape { position: absolute; }
.mcluster .m-para { left: 0; top: 0; width: 44%; height: 58%; }
.mcluster .m-dot { left: 34%; top: 16%; width: 36%; height: 36%; }
.mcluster .m-bar { left: 10%; top: 46%; width: 84%; height: 15%; }
.mcluster .m-semi { left: 48%; bottom: 0; width: 52%; height: 26%; }
/* Claude */
.shape--star { clip-path: polygon(50.0% 8.0%, 59.3% 21.5%, 77.0% 12.8%, 74.3% 32.4%, 95.7% 35.2%, 80.0% 50.0%, 97.6% 65.5%, 74.3% 67.6%, 79.4% 90.5%, 59.3% 78.5%, 50.0% 94.0%, 40.7% 78.5%, 20.6% 90.5%, 25.7% 67.6%, 10.1% 63.0%, 20.0% 50.0%, 8.2% 36.4%, 25.7% 32.4%, 20.6% 9.5%, 40.7% 21.5%); }
.shape--crab { clip-path: polygon(20% 0, 80% 0, 80% 16.7%, 90% 16.7%, 90% 33.3%, 100% 33.3%, 100% 66.7%, 90% 66.7%, 90% 83.3%, 90% 100%, 80% 100%, 80% 83.3%, 70% 83.3%, 70% 100%, 60% 100%, 60% 83.3%, 40% 83.3%, 40% 100%, 30% 100%, 30% 83.3%, 20% 83.3%, 20% 100%, 10% 100%, 10% 83.3%, 10% 66.7%, 0 66.7%, 0 33.3%, 10% 33.3%, 10% 16.7%, 20% 16.7%); }
.shape--crab::before, .shape--crab::after { content: ""; position: absolute; top: 22%; width: 9%; height: 15%; background: rgba(0,0,0,.62); }
.shape--crab::before { left: 29%; } .shape--crab::after { left: 62%; }
html[data-theme="light"] .shape--crab::before, html[data-theme="light"] .shape--crab::after { background: rgba(20,24,40,.7); }
/* Grok Bot, far out: nine different creatures drawn as SVG glass by bots.js (ghost, cloud, gumdrop, totem, horns,
   puddle, antenna, sparkle, scallop). What keeps them one family is Grok Bot's rule: one soft mass, two rounded-square
   eyes, and eyes that change with state (rest, wait, work, happy). */
.shape--svg { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  --bot-hi: color-mix(in srgb, var(--shape-fill, rgba(0,176,194,.3)), #fff 32%);
  filter: drop-shadow(0 0 46px var(--shape-glow, rgba(0,176,194,.3))) drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
html[data-theme="light"] .shape--svg { filter: drop-shadow(0 0 40px var(--shape-glow, rgba(0,176,194,.25))) drop-shadow(0 18px 30px rgba(31,41,90,.14)); }
.shape--svg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bot-base { stroke: none; }
.eye-r { fill: rgba(255,255,255,.88); transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease); }
.eye-h { fill: none; stroke: rgba(255,255,255,.88); stroke-width: 6; stroke-linecap: round; display: none; }
html[data-theme="light"] .eye-r { fill: #1d1d1f; } html[data-theme="light"] .eye-h { stroke: #1d1d1f; }
.shape--svg[data-eyes="happy"] .eye-r { display: none; } .shape--svg[data-eyes="happy"] .eye-h { display: inline; }
.shape--svg[data-eyes="wait"] .eye-r { transform: scaleY(.22); }
.shape--svg[data-eyes="work"] .eye-r.l { transform: scaleY(1.25); } .shape--svg[data-eyes="work"] .eye-r.r { transform: scaleY(.55); }
.bot-eyes { transition: transform .18s linear; }

/* ── alive: hover a shape and it wakes up. Bots bounce and blink, monday pieces rock, the star spins, the crab
   scuttles sideways; all of them wander a little (bots.js moves the CSS translate property, so GSAP's drift
   on transform keeps running underneath). */
.shape { transition: translate 1.2s cubic-bezier(.34,1.35,.5,1); }
.shape--crab { transition-duration: .8s; transition-timing-function: cubic-bezier(.45,0,.55,1); }
.is-alive .bot-all { transform-box: fill-box; transform-origin: 50% 100%; animation: bot-wiggle .42s ease-in-out infinite alternate; }
@keyframes bot-wiggle { from { transform: rotate(-4deg) scale(1.02, .98); } to { transform: rotate(4deg) scale(.98, 1.02); } }
.is-alive .eye-r { animation: bot-blink 2.4s infinite; }
@keyframes bot-squash { 0%, 100% { transform: translateY(0) scale(1, 1); } 28% { transform: translateY(0) scale(1.09, .9); } 56% { transform: translateY(-14%) scale(.93, 1.09); } 82% { transform: translateY(0) scale(1.05, .95); } }
@keyframes bot-blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
.shape.is-alive.shape--star { animation: alive-spin 5s linear infinite; }
.shape.is-alive.shape--para, .shape.is-alive.shape--bar { animation: alive-rock 1.3s ease-in-out infinite; }
.shape.is-alive.shape--semi { animation: alive-bob 1.1s ease-in-out infinite; transform-origin: 50% 100%; }
.shape.is-alive.shape--crab { animation: crab-step .3s steps(1) infinite; }
@keyframes alive-spin { to { rotate: 360deg; } }
@keyframes alive-rock { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
@keyframes alive-bob { 0%, 100% { scale: 1 1; } 50% { scale: 1.08 .9; } }
@keyframes crab-step {
  0% { clip-path: polygon(20% 0, 80% 0, 80% 16.7%, 90% 16.7%, 90% 33.3%, 100% 33.3%, 100% 66.7%, 90% 66.7%, 90% 83.3%, 90% 100%, 80% 100%, 80% 83.3%, 70% 83.3%, 70% 100%, 60% 100%, 60% 83.3%, 40% 83.3%, 40% 100%, 30% 100%, 30% 83.3%, 20% 83.3%, 20% 100%, 10% 100%, 10% 83.3%, 10% 66.7%, 0 66.7%, 0 33.3%, 10% 33.3%, 10% 16.7%, 20% 16.7%); }
  50% { clip-path: polygon(20% 0, 80% 0, 80% 16.7%, 90% 16.7%, 90% 33.3%, 100% 33.3%, 100% 66.7%, 90% 66.7%, 90% 83.3%, 90% 91.7%, 80% 91.7%, 80% 83.3%, 70% 83.3%, 70% 100%, 60% 100%, 60% 83.3%, 40% 83.3%, 40% 91.7%, 30% 91.7%, 30% 83.3%, 20% 83.3%, 20% 100%, 10% 100%, 10% 83.3%, 10% 66.7%, 0 66.7%, 0 33.3%, 10% 33.3%, 10% 16.7%, 20% 16.7%); }
}
@media (prefers-reduced-motion: reduce) { .shape { transition: none; } .is-alive .bot-all, .is-alive .eye-r, .shape.is-alive { animation: none !important; } }
/* tints */
.shape--teal { --shape-fill: rgba(0,176,194,.30); --shape-glow: rgba(0,176,194,.35); }
.shape--green { --shape-fill: rgba(105,215,87,.26); --shape-glow: rgba(105,215,87,.3); }
.shape--iris { --shape-fill: rgba(97,97,255,.28); --shape-glow: rgba(97,97,255,.32); }
.shape--sun { --shape-fill: rgba(255,203,0,.22); --shape-glow: rgba(255,203,0,.25); }
.shape--clay { --shape-fill: rgba(217,119,87,.36); --shape-glow: rgba(217,119,87,.34); }
html[data-theme="light"] .shape--teal { --shape-fill: rgba(0,176,194,.42); } html[data-theme="light"] .shape--green { --shape-fill: rgba(105,215,87,.42); }
html[data-theme="light"] .shape--iris { --shape-fill: rgba(97,97,255,.36); } html[data-theme="light"] .shape--sun { --shape-fill: rgba(255,203,0,.4); } html[data-theme="light"] .shape--clay { --shape-fill: rgba(217,119,87,.4); }

/* ── nav over the stage (Google: brand left, three links centred, actions right) */
.nav--over { position: fixed; left: 0; right: 0; width: 100%; max-width: none; z-index: 60; }
.nav--over .nav__bar { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; }
.nav--over .nav__links { margin: 0; justify-content: center; }
.nav--over .nav__btns { justify-content: flex-end; }

/* ── the stage: Google's full-screen featured carousel, but nothing behind the words. Pieces of the real app float in
   Liquid Glass round the headline (each lab's own), fly in when its slide comes up, float, and lean toward the pointer. */
.fs { position: relative; min-height: 100vh; min-height: 100svh; overflow: clip; background: var(--bg); color: var(--fg); display: grid; }
.fs__slides { position: absolute; inset: 0; }
/* one slide leaves, then the next arrives: a cross-fade would show two windows and two sets of floating pieces at half
   opacity on top of each other for the length of the fade */
.fslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.fslide.is-on { opacity: 1; visibility: visible; transition: opacity .55s ease .22s; }
.fslide__glow { position: absolute; inset: 0; opacity: .6; background: radial-gradient(46% 50% at 14% 30%, var(--ga), transparent 70%), radial-gradient(44% 50% at 86% 70%, var(--gb), transparent 70%); }
html[data-theme="light"] .fslide__glow { opacity: .38; }
.win { position: absolute; z-index: 1; right: -5vw; bottom: -9vh; width: min(62vw, 1080px); border-radius: 18px; overflow: hidden; background: var(--screen); box-shadow: var(--frame-shadow), 0 0 0 1px var(--glass-line);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.win__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; background: color-mix(in srgb, var(--bg-2) 82%, #fff 6%); border-bottom: 1px solid var(--line); }
html[data-theme="light"] .win__bar { background: #eef1f6; }
.win__dots { display: flex; gap: 7px; flex: none; } .win__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .win__dots i:nth-child(2) { background: #febc2e; } .win__dots i:nth-child(3) { background: #28c840; }
.win__url { flex: 1; max-width: 380px; margin-inline: auto; height: 26px; border-radius: 8px; background: rgba(128,128,128,.14); font: 500 12.5px/26px var(--body); color: var(--fg-3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__title { font: 600 13px/1 var(--body); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win__tabs { display: flex; gap: 2px; margin-left: 8px; } .win__tabs span { padding: 7px 11px; border-radius: 7px; font: 600 12.5px/1 var(--body); color: var(--fg-3); white-space: nowrap; }
.win__tabs span.on { background: rgba(0,115,234,.2); color: #69a8ff; } html[data-theme="light"] .win__tabs span.on { background: #cce5ff; color: #0060b9; }
.win__screen img { display: block; width: 100%; height: auto; }
.fslide.is-on .win { animation: win-in 1.2s cubic-bezier(.16,1,.3,1) .05s both; }
@keyframes win-in { from { opacity: 0; translate: 90px 130px; } }
.ui { position: absolute; z-index: 2; width: min(var(--w, 300px), var(--wv, 22vw)); margin: 0; padding: 6px; border-radius: 18px; background: var(--frame); box-shadow: var(--frame-shadow);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.ui__in { border-radius: 13px; overflow: hidden; animation: ui-float var(--fl, 7s) ease-in-out infinite alternate; }
.ui img { display: block; width: 100%; height: auto; }
.fslide.is-on .ui { animation: ui-in 1s cubic-bezier(.16,1,.3,1) calc(var(--d, 0s) + .35s) both; }
@keyframes ui-in { from { opacity: 0; translate: var(--fx, 0px) var(--fy, 50px); scale: .9; } }
@keyframes ui-float { from { translate: 0 -5px; } to { translate: 0 7px; } }
.fs__copy { position: relative; z-index: 3; align-self: start; justify-self: start; text-align: left; padding: clamp(104px, 16vh, 160px) 0 0 max(var(--gutter), 6vw); width: min(560px, 46vw); pointer-events: none; }
.fs__copy a, .fs__copy button { pointer-events: auto; }
/* every slide's copy sits in the same grid cell, so the hero is as tall as the tallest copy and never changes height
   (and never shoves the sections below) when the slide changes; the others are hidden, not removed */
.fs__copy { display: grid; }
.fcopy { display: block; grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .2s; }   /* the old headline is gone before the new one starts: two headlines in one cell would overlap */
.fcopy.is-on { visibility: visible; opacity: 1; transition: opacity .35s ease .2s; }
.fcopy h2 { color: var(--fg); font-size: clamp(50px, 6.2vw, 92px); line-height: .95; letter-spacing: -.045em; animation: rise .9s var(--ease-out) .05s both; }
.fcopy p { margin: 18px 0 0; max-width: 38ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--fg-2); animation: rise .9s var(--ease-out) .15s both; }
.fcopy__does { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; animation: rise .9s var(--ease-out) .2s both; }
.fcopy__does li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15.5px; color: var(--fg); }
.fcopy__does svg { width: 20px; height: 20px; color: var(--cyan); margin-top: 1px; }
.fcopy__cta { display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; margin-top: 28px; animation: rise .9s var(--ease-out) .25s both; }
.btn--white { color: #0b1113; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 #fff; }
.btn--white:hover { background: #e9f7f8; }
html[data-theme="light"] .btn--white { color: #fff; background: #1d1d1f; box-shadow: var(--btn-ink-shadow); }
html[data-theme="light"] .btn--white:hover { background: #000; }
/* the copy only slides; it never starts invisible, so a paused or throttled animation cannot hide a headline */
@keyframes rise { from { transform: translateY(22px); } }
.fs__ctl { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; justify-content: center; align-items: center; gap: 14px; padding-inline: var(--gutter); }
.skip { position: absolute; right: var(--gutter); bottom: calc(36px + env(safe-area-inset-bottom, 0px)); z-index: 3; font: 600 13.5px/1 var(--body); color: var(--fg-3); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.skip:hover { color: var(--fg); }
.skip svg { width: 14px; height: 14px; }
@media (max-width: 960px) { .ui { --wv: 30vw; } .fs__copy { width: min(520px, 54vw); } .win { width: 70vw; } }
@media (max-width: 760px) {
  .ui { display: none; }
  .fs__copy { width: auto; padding: 100px var(--gutter) 0; }
  .fcopy__does { display: none; }
  .fcopy__cta { flex-wrap: nowrap; margin-top: 22px; } .fcopy__cta .btn--lg { height: 44px; padding: 0 16px; font-size: 15px; }
  .win { width: 104vw; right: -16vw; bottom: 84px; transform: none; }
  .win__tabs span:not(.on) { display: none; }
}


/* ── Main Landing: the centered layout. Title and text centered on top, the app window straight below, tilted back,
   and floating UI rising up on its left and right. html[data-layout="center"]; the left-header page sets "left". */
html[data-layout="center"] .fs__copy { justify-self: center; text-align: center; width: min(780px, 92vw); padding: clamp(92px, 12vh, 124px) var(--gutter) 0; }
html[data-layout="center"] .fcopy h2 { font-size: clamp(48px, 5.8vw, 84px); }
html[data-layout="center"] .fcopy p { margin-inline: auto; max-width: 54ch; }
html[data-layout="center"] .fcopy__does { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 18px; }
html[data-layout="center"] .fcopy__does li { grid-template-columns: 20px auto; font-size: 14.5px; }
html[data-layout="center"] .fcopy__cta { justify-content: center; margin-top: 24px; }
html[data-layout="center"] .win { left: 50%; right: auto; top: 51%; bottom: auto; width: min(58vw, 980px);
  transform: translateX(-50%) translate3d(var(--px, 0px), var(--py, 0px), 0); }
html[data-layout="center"] .fslide.is-on .win { animation-name: win-rise; }
@keyframes win-rise { from { opacity: 0; translate: 0 160px; } }
html[data-layout="center"] .fslide.is-on .ui { animation-name: ui-rise; }
@keyframes ui-rise { from { opacity: 0; translate: var(--fx, 0px) 120px; scale: .92; } }
.layout-link { color: var(--fg-2); margin-left: 8px; }
@media (max-width: 960px) { html[data-layout="center"] .win { width: 76vw; } }
@media (max-width: 760px) {
  html[data-layout="center"] .fs__copy { padding: 96px var(--gutter) 0; }
  html[data-layout="center"] .win { top: auto; bottom: 84px; width: 100vw; transform: translateX(-50%); }
}

/* stage controls (shared with the rails) */
.arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--fg); background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s var(--ease), transform .2s var(--ease); }
.arrow:hover { background: rgba(255,255,255,.18); }
.arrow:active { transform: scale(.95); }
html[data-theme="light"] .arrow { background: var(--glass); border-color: var(--line-2); } html[data-theme="light"] .arrow:hover { background: #fff; }
.arrow svg { width: 18px; height: 18px; }
.sdots { display: flex; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-theme="light"] .sdots { background: var(--glass); border-color: var(--line-2); }
.sdot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(128,128,128,.4); cursor: pointer; overflow: hidden; transition: width .4s var(--ease), background .4s var(--ease); }
.sdot[aria-current="true"] { width: 56px; background: rgba(128,128,128,.28); }
.sdot i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--grad); }
.sdot[aria-current="true"] i { width: 100%; transition: width var(--dwell, 7s) linear; }
.sdot.is-still i { transition: none; }
.rail-ctl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; }
.rail-ctl .count { font: 700 13px/1 var(--num); letter-spacing: .08em; color: var(--fg-3); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }

/* ── section frame (Google: big centred heading, a highlighted word) */
.gsec { position: relative; overflow: clip; padding-block: clamp(90px, 11vw, 150px); text-align: center; }
.gsec + .gsec { border-top: 1px solid var(--line); }
.gsec h1, .gsec h2.big { font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.035em; max-width: 18ch; margin-inline: auto; }
.gsec .sub { margin: 18px auto 0; max-width: 60ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--fg-2); }
.gsec .wrap { position: relative; z-index: 1; }

/* filters (the improvement over Google: the whole board, by kind) */
.filters--g { justify-content: center; margin-top: 28px; gap: 6px; }
.filters--g button { font: 600 13.5px/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; color: var(--fg-2); transition: background .2s, color .2s, border-color .2s; display: inline-flex; align-items: center; gap: 8px; }
.filters--g button b { font: 700 11px/1 var(--num); color: var(--fg-3); }
.filters--g button:hover { color: var(--fg); }
.filters--g button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters--g button[aria-pressed="true"] b { color: var(--bg); opacity: .7; }

/* ── the card rail: Google's fanned carousel, 370 x 560 cards, 26px corners, the centred one upright */
.rail-wrap { position: relative; margin-top: 40px; }
.rail-wrap .shape { z-index: 0; }
.crail { position: relative; z-index: 1; display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 56px max(var(--gutter), calc((100vw - 370px) / 2)) 64px; scrollbar-width: none; }
.crail::-webkit-scrollbar { display: none; }
.xcard { flex: 0 0 370px; max-width: 86vw; height: 560px; scroll-snap-align: center; position: relative; display: grid; grid-template-rows: 300px minmax(0, 1fr); border-radius: 26px; overflow: hidden; text-decoration: none; color: inherit; text-align: left;
  background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1.5px 1px rgba(190,255,255,.35), inset 0 -1px 1px rgba(190,255,255,.1), 0 40px 90px rgba(0,0,0,.45);
  transform: translateY(var(--ty, 0px)); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease); will-change: transform; }
html[data-theme="light"] .xcard { background: rgba(255,255,255,.86); box-shadow: inset 0 1.5px 1px #fff, 0 30px 70px rgba(31,41,90,.18); }
.xcard:hover { border-color: var(--core-line); box-shadow: inset 0 1.5px 1px rgba(190,255,255,.5), 0 50px 110px rgba(0,0,0,.5), 0 0 90px rgba(0,176,194,.16); }
.xcard__shot { position: relative; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; background: var(--screen); }
.xcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.xcard__shot .pill { position: absolute; top: 12px; left: 12px; background: rgba(10,18,20,.62); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cover { position: absolute; inset: 0; display: grid; align-content: end; padding: 20px; color: #fff; background: var(--cv, linear-gradient(160deg, #00b0c2, #003b42)); }
.cover::before { content: ""; position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(255,255,255,.14); }
.cover::after { content: ""; position: absolute; right: 30px; top: 10px; width: 120px; height: 120px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(255,255,255,.14); }
.cover b { position: relative; font: 800 96px/1 var(--display); letter-spacing: -.06em; opacity: .95; }
.cover small { position: relative; font: 700 11.5px/1 var(--num); letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: 10px; }
.cv-app { --cv: linear-gradient(160deg, #0fb9cb, #013f47); } .cv-web { --cv: linear-gradient(160deg, #6f6fff, #1b1b5e); } .cv-agent { --cv: linear-gradient(160deg, #69d757, #0f4a1d); }
.cv-plugin { --cv: linear-gradient(160deg, #ffcb00, #6b4a00); } .cv-kit { --cv: linear-gradient(160deg, #8aa0a3, #1f2a2c); } .cv-site { --cv: linear-gradient(160deg, #ff7a9c, #5c1230); } .cv-ext { --cv: linear-gradient(160deg, #55e7f6, #0b4f58); }
.xcard__body { padding: 20px 22px 22px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; min-width: 0; }
.xcard h3 { font-size: 22px; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.xcard h3 img, .xcard h3 svg { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.xcard p { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.xcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--fg-3); }
.xcard__foot b { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--display); color: var(--fg); white-space: nowrap; }
.xcard__foot svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.xcard:hover .xcard__foot svg { transform: translateX(4px); }
.xcard--more { place-items: center; grid-template-rows: 1fr; text-align: center; background: var(--core); border-color: var(--core-line); }
.xcard--more div { display: grid; gap: 10px; padding: 30px; justify-items: center; }
.xcard--more .bigcount { font: 800 clamp(64px, 7vw, 96px)/1 var(--num); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xcard--more p { -webkit-line-clamp: unset; display: block; }
.xcard[hidden] { display: none; }

/* ── about: Google's single big statement, with one big shape straddling the section edge behind it */
.about { overflow-x: clip; overflow-y: visible; border-top: 0; padding-block: clamp(60px, 8vw, 110px) clamp(110px, 13vw, 170px); }
.about .shape--bridge2 { left: -60px; bottom: -150px; width: 290px; height: 260px; z-index: -1; }
.about .shape--bridge { right: 40px; top: -250px; width: 440px; height: 385px; z-index: -1; --shape-fill: rgba(217,119,87,.42); filter: drop-shadow(0 0 90px rgba(217,119,87,.4)); }
.about .eyebrow { margin-bottom: 26px; }
.about .statement { padding: 0; }
.about .statement p { margin-inline: auto; max-width: 30ch; font-size: clamp(30px, 4.2vw, 56px); text-align: center; }
/* ── stay connected */
.connect .pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.connect .social { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.connect .social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: var(--glass); border: 1px solid var(--line-2); transition: background .2s var(--ease), transform .2s var(--ease); }
.connect .social a:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
.connect .social svg { width: 18px; height: 18px; }
.connect .shape--b { right: 80px; top: 70px; width: 290px; height: 290px; }
.connect .shape--c { left: -40px; bottom: 30px; width: 200px; height: 200px; }
.connect { padding-bottom: clamp(140px, 16vw, 220px); }

/* ── footer: the shapes row, other areas, the wordmark */
.gfoot { position: relative; overflow: clip; border-top: 1px solid var(--line); }
.gfoot__shapes { position: relative; height: 360px; }
.gfoot__shapes .shape { position: absolute; }
.gfoot__shapes .shape--teal { --shape-fill: rgba(0,176,194,.55); } .gfoot__shapes .shape--green { --shape-fill: rgba(105,215,87,.5); }
.gfoot__shapes .shape--iris { --shape-fill: rgba(97,97,255,.52); } .gfoot__shapes .shape--sun { --shape-fill: rgba(255,203,0,.5); }
.gfoot__shapes .f-para { left: -20px; top: 0; width: 210px; height: 240px; }
.gfoot__shapes .f-pill { left: 170px; bottom: 0; width: 240px; height: 240px; z-index: 2; }
.gfoot__shapes .f-bar { left: 60px; bottom: 190px; width: 460px; height: 64px; z-index: 1; }
.gfoot__shapes .f-star { left: 440px; top: 20px; width: 240px; height: 240px; }
.gfoot__shapes .f-small { left: 520px; bottom: 0; width: 140px; height: 140px; z-index: 3; }
.gfoot__shapes .f-semi { right: -40px; bottom: 0; width: 220px; height: 110px; }
.gfoot__row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-3); }
.gfoot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.gfoot__links a { color: var(--fg-2); text-decoration: none; font-weight: 600; }
.gfoot__links a:hover { color: var(--fg); }
.mark__word { position: relative; display: flex; align-items: flex-end; gap: clamp(10px, 2vw, 28px); padding-top: clamp(28px, 4vw, 48px); line-height: .82; overflow: hidden; }
.mark__word svg { width: clamp(40px, 7.5vw, 112px); height: auto; flex: none; margin-bottom: .06em; filter: drop-shadow(0 18px 50px rgba(0,176,194,.35)); }
.mark__word span { display: block; font: 800 clamp(52px, 11.4vw, 166px)/.82 var(--display); letter-spacing: -.055em; color: var(--fg); white-space: nowrap; }
.mark__word .w { display: inline-block; }
.gfoot .foot { border-top: 0; padding-top: 18px; }

/* ── reveal (headings rise once as they arrive; everything readable without JS) */
.rv { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.pre { opacity: 0; transform: translateY(36px); }

@media (max-width: 960px) {
  .nav--over .nav__bar { grid-template-columns: auto 1fr; }
  .nav--over .nav__links { display: none; }
  .fs__copy { padding: 110px var(--gutter) 150px; }
  .gfoot__shapes { height: 250px; } .gfoot__shapes .f-para { width: 130px; height: 150px; } .gfoot__shapes .f-pill { left: 90px; width: 220px; height: 100px; } .gfoot__shapes .f-bar { width: 300px; height: 44px; bottom: 130px; } .gfoot__shapes .f-star { left: 300px; width: 160px; height: 160px; } .gfoot__shapes .f-small { left: 330px; width: 80px; height: 86px; } .gfoot__shapes .f-semi { width: 160px; height: 80px; }
  .about .shape--bridge { right: -160px; top: -200px; width: 420px; height: 360px; }
}
@media (max-width: 640px) {
  .nav .btn--glass { display: none; }
  .nav__bar { gap: 10px; padding: 0 8px 0 12px; }
  .brand small { display: none; }
  .skip { display: none; }
  .fcopy h2 { font-size: clamp(44px, 14vw, 64px); }
  .crail { padding-top: 24px; padding-bottom: 32px; }
  .xcard { height: 520px; }
  .xcard { grid-template-rows: 260px minmax(0, 1fr); }
  .gfoot__shapes { display: none; }
  .about .shape--bridge { right: -140px; top: -120px; width: 300px; height: 260px; }
  .mark__word { flex-direction: column; align-items: flex-start; gap: 18px; }
  .mark__word span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  .fslide { transition: none; }
  .fslide.is-on .ui, .fslide.is-on .win, .ui__in { animation: none; }
  .ui, .win { transition: none; }
  .fcopy { transition: none; }
  .fcopy h2, .fcopy p, .fcopy__cta { animation: none; }
  .sdot[aria-current="true"] i { transition: none; width: 100%; }
  .xcard { transform: none !important; transition: none; }
  .rv, .rv.pre { opacity: 1; transform: none; transition: none; }
}

/* ── Carbon Labs logo (v3): CarbonWeb's own mark and wordmark, then "Labs" with the L drawn as a glass beaker whose
   liquid sloshes back and forth while bubbles rise in the stem. The wordmark takes the text colour, so it works on
   both themes; the mark and the liquid keep the Carbon gradient. */
.cl-logo { display: block; height: 26px; width: auto; color: var(--fg); overflow: visible; }
.cl-logo--nav { height: 24px; }
.cl-logo--splash { height: 54px; }
.cl-logo--foot { height: clamp(48px, 10.5vw, 150px); filter: drop-shadow(0 18px 50px rgba(0,176,194,.25)); }
.cl-glass { fill: color-mix(in srgb, var(--cyan) 10%, transparent); stroke: currentColor; stroke-width: 6; stroke-linejoin: round; }
.cl-lip { stroke: currentColor; stroke-width: 6; stroke-linecap: round; }
.cl-abs { font: 700 80px var(--display); fill: currentColor; letter-spacing: -2px; }
.cl-wave { animation: cl-flow 1.8s linear infinite; }
.cl-slosh { transform-box: view-box; transform-origin: 568px 80px; animation: cl-slosh 2.8s ease-in-out infinite alternate; }
.cl-bub { fill: rgba(255,255,255,.9); opacity: 0; animation: cl-bub 2.6s ease-in infinite; }
.cl-bub.b2 { animation-delay: .9s; } .cl-bub.b3 { animation-delay: 1.7s; }
@keyframes cl-flow { to { transform: translateX(-20px); } }
@keyframes cl-slosh { from { transform: rotate(-10deg) translateX(-7px); } to { transform: rotate(10deg) translateX(7px); } }
@keyframes cl-bub { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: .9; } 100% { transform: translateY(-46px); opacity: 0; } }
.brand { gap: 0; }
.splash__brand { gap: 18px; }
.mark__word { padding-top: clamp(28px, 4vw, 48px); }

/* ── menu: three links in the middle, one button on the right */
.nav--over .nav__btns .btn { height: 38px; padding: 0 20px; }

/* ── the footer row carries the theme switch */
.foot__left { display: inline-flex; align-items: center; gap: 12px; }
.foot__left .theme { width: 34px; height: 34px; }

/* ── Idea: three ways a lab starts, and a bot at its chemistry set */
.idea .wrap { position: relative; z-index: 1; }
.icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; text-align: left; }
.icard { padding: 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.icard--core { background: var(--core); border-color: var(--core-line); }
.icard svg { width: 28px; height: 28px; color: var(--cyan); }
.icard h3 { margin-top: 14px; font-size: 20px; }
.icard p { margin-top: 8px; font-size: 15.5px; color: var(--fg-2); }
.idea .pills { display: flex; justify-content: center; margin-top: 34px; }
.idea__chem { right: 3%; top: 26px; width: 300px; height: 300px; }

/* ── arrows on the sides: the hero's beside the stage, the rail's beside the cards */
.fs__ctl { inset: 0; bottom: 0; display: block; pointer-events: none; }
.fs__ctl > * { pointer-events: auto; }
.fs__ctl .sdots { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
#fs-prev, #fs-next { position: absolute; top: 50%; margin-top: -22px; z-index: 4; }
#fs-prev { left: max(16px, 1.6vw, env(safe-area-inset-left, 0px)); } #fs-next { right: max(16px, 1.6vw, env(safe-area-inset-right, 0px)); }
.rail-wrap .rail-ctl .arrow { position: absolute; top: 314px; z-index: 5; }
#x-prev { left: max(16px, 1.6vw); } #x-next { right: max(16px, 1.6vw); }
.xcard.is-clone { }

@media (max-width: 960px) { .icards { grid-template-columns: minmax(0, 1fr); } .idea__chem { width: 200px; height: 200px; top: -40px; } }
@media (max-width: 760px) {
  #fs-prev, #fs-next { top: auto; margin-top: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  #fs-prev { left: calc(50% - 128px); } #fs-next { right: calc(50% - 128px); }
  .rail-wrap .rail-ctl .arrow { top: 270px; }
  .idea__chem { display: none; }
  .cl-logo--nav { height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .cl-wave, .cl-slosh, .cl-bub { animation: none; } .cl-bub { display: none; } }

/* ── the chemist's kit: still until it is hovered, then the flask sloshes and bubbles and the neck steams */
.goggle { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 4; stroke-linecap: round; }
html[data-theme="light"] .goggle { stroke: rgba(29,29,31,.45); }
.bot-arm { fill: var(--shape-fill, rgba(0,176,194,.3)); stroke: rgba(255,255,255,.4); stroke-width: 2; }
.flask-glass { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.85); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
html[data-theme="light"] .flask-glass { stroke: rgba(29,29,31,.55); fill: rgba(255,255,255,.5); }
.tube-liq { fill: #8f8fff; }
.flask-bub { fill: rgba(255,255,255,.9); opacity: 0; }
.vapor { fill: rgba(255,255,255,.55); opacity: 0; }
html[data-theme="light"] .vapor { fill: rgba(29,29,31,.18); }
.is-alive .flask-wave { animation: flask-slosh .6s ease-in-out infinite alternate; }
.is-alive .flask-bub { animation: flask-bub 1.1s ease-in infinite; } .is-alive .flask-bub.b2 { animation-delay: .35s; } .is-alive .flask-bub.b3 { animation-delay: .7s; }
.is-alive .vapor { animation: vapor 1.5s ease-out infinite; } .is-alive .vapor.v2 { animation-delay: .5s; } .is-alive .vapor.v3 { animation-delay: 1s; }
@keyframes flask-slosh { from { transform: translateX(-12px) translateY(2px); } to { transform: translateX(0) translateY(-3px); } }
@keyframes flask-bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes vapor { 0% { transform: translateY(8px) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-26px) scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .is-alive .flask-wave, .is-alive .flask-bub, .is-alive .vapor { animation: none; } }
.mark__word .cl-logo { width: auto; max-width: 100%; height: clamp(48px, 10.5vw, 150px); margin-bottom: 0; flex: none; }

/* ── v4: the flask-b. Two liquid layers drift in opposite directions under a moving sheen, the bowl sloshes, and
   bubbles rise: liquid that reads as flowing, not a flat fill. */
.cl-wave { animation: cl-flow 2s linear infinite; }
.cl-wave2 { animation: cl-flow2 3.1s linear infinite; }
.cl-sheen { stroke: rgba(255,255,255,.7); stroke-width: 1.6; animation: cl-flow 2s linear infinite; }
.cl-slosh { transform-origin: 716px 70px; animation: cl-slosh 3s ease-in-out infinite alternate; }
@keyframes cl-flow { to { transform: translateX(-24px); } }
@keyframes cl-flow2 { from { transform: translateX(-24px); } to { transform: translateX(0); } }
@keyframes cl-slosh { 0% { transform: rotate(-8deg) translate(-4px, 1px); } 50% { transform: rotate(3deg) translate(2px, -2px); } 100% { transform: rotate(8deg) translate(4px, 1px); } }
@keyframes cl-bub { 0% { transform: translateY(0); opacity: 0; } 18% { opacity: .9; } 100% { transform: translateY(-30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-wave2, .cl-sheen { animation: none; } }

/* ── the chemist on hover: stays put and wiggles, a tube draws from the flask over its head to the test tube, and
   liquid runs along it; the test tube fills while the flask's level drops */
.chem-tube-glass { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s cubic-bezier(.4,0,.2,1); }
html[data-theme="light"] .chem-tube-glass { stroke: rgba(29,29,31,.25); }
.chem-tube-liq { fill: none; stroke: #5af0ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 5 7; opacity: 0; transition: opacity .3s ease .7s; }
.is-alive .chem-tube-glass { stroke-dashoffset: 0; }
.is-alive .chem-tube-liq { opacity: 1; animation: tube-flow .7s linear infinite; }
@keyframes tube-flow { to { stroke-dashoffset: -12; } }
.tube-liq { transition: transform 2.2s ease .8s; transform-box: fill-box; }
.is-alive .tube-liq { transform: translateY(-20px); }
.flask-level { transition: transform 2.2s ease .8s; }
.is-alive .flask-level { transform: translateY(8px); }
.is-alive .flask-wave { animation: flask-slosh 1.2s ease-in-out infinite alternate; }
@keyframes flask-slosh { from { transform: translateX(-12px); } to { transform: translateX(0); } }

/* ── the coding bot: a laptop beside it, code typing across the screen, the screen glow flickering. The typing
   runs all the time (it is the screen, not the bot); the bot itself only wiggles when hovered. */
.lap-screen { fill: #0b1220; stroke: rgba(255,255,255,.7); stroke-width: 3; }
html[data-theme="light"] .lap-screen { stroke: rgba(29,29,31,.5); }
.lap-glow { fill: #5af0ff; opacity: .08; animation: lap-flicker 2.6s steps(1) infinite; }
.lap-base { fill: rgba(255,255,255,.75); }
html[data-theme="light"] .lap-base { fill: rgba(29,29,31,.4); }
.code-line { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: code-type 4.8s steps(8) infinite; }
.code-line.c2 { animation-delay: .5s; } .code-line.c3 { animation-delay: 1s; } .code-line.c4 { animation-delay: 1.5s; } .code-line.c5 { animation-delay: 2s; } .code-line.c6 { animation-delay: 2.5s; }
.code-cursor { fill: #e8fbff; animation: code-blink .9s steps(1) infinite; }
@keyframes code-type { 0% { transform: scaleX(0); } 12%, 82% { transform: scaleX(1); } 90%, 100% { transform: scaleX(0); } }
@keyframes code-blink { 50% { opacity: 0; } }
@keyframes lap-flicker { 0%, 100% { opacity: .08; } 40% { opacity: .18; } 44% { opacity: .05; } 70% { opacity: .14; } }
.connect .shape--c { left: 2%; right: auto; bottom: 30px; width: 300px; height: 300px; }
@media (prefers-reduced-motion: reduce) { .code-line { animation: none; transform: none; } .code-cursor, .lap-glow { animation: none; } }

/* ── the crab is About's guide: it walks in from the right along the gap above the section, then straight down the
   left margin as you read (bots.js drives it from the scroll position). It never crosses the text. */
.about .shape--bridge { left: 0; top: 0; right: auto; bottom: auto; width: 180px; height: 158px; z-index: 0; transition: none; }
.shape--crab.is-walking { animation: crab-step .26s steps(1) infinite; }
@media (max-width: 1100px) { .about .shape--bridge { display: none; } }

/* ── Idea: the heading holds two short lines so the chemist has the right side to itself */
.gsec h2.big.idea__title { max-width: 12ch; }
.idea .sub { max-width: 46ch; }

/* placements that keep every shape off the text (checked against the text's own line boxes at 1440) */
.connect .shape--b { right: 2%; top: 150px; width: 250px; height: 250px; }

.code-ghost { opacity: .22; }

/* ── the coder (redrawn): a visor face and an antenna light at rest; on hover three code screens pop out over its
   face, one after another, each flashing with code typing across it and a scan line sweeping down */
.visor { fill: #0b1220; stroke: rgba(255,255,255,.35); stroke-width: 2; }
html[data-theme="light"] .visor { fill: #1d2433; }
html[data-theme="light"] .shape--svg[data-bot="coder"] .eye-r { fill: #e8fbff; }
.antenna { stroke: rgba(255,255,255,.6); stroke-width: 4; stroke-linecap: round; }
html[data-theme="light"] .antenna { stroke: rgba(29,29,31,.45); }
.antenna-light { fill: #5af0ff; opacity: .55; }
.is-alive .antenna-light { animation: holo-blink .5s steps(1) infinite; }
.holo { opacity: 0; transform: translateY(14px) scale(.35); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .2s ease, transform .4s cubic-bezier(.3,1.5,.5,1); }
.holo.s1 { transform-origin: 100% 100%; } .holo.s3 { transform-origin: 0 100%; }
.is-alive .holo { opacity: 1; transform: none; }
.is-alive .holo.s1 { transition-delay: .05s; } .is-alive .holo.s2 { transition-delay: .18s; } .is-alive .holo.s3 { transition-delay: .31s; }
.holo-pane { fill: rgba(8,18,30,.92); stroke: #5af0ff; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(90,240,255,.6)); }
.holo-bar { stroke: rgba(90,240,255,.45); stroke-width: 1.2; }
.holo-dot { fill: #ff5f57; }
.hl { transform-box: fill-box; transform-origin: 0 50%; }
.is-alive .hl { animation: holo-type 1.5s steps(6) infinite; }
.is-alive .hl.h2 { animation-delay: .2s; } .is-alive .hl.h3 { animation-delay: .4s; } .is-alive .hl.h4 { animation-delay: .6s; } .is-alive .hl.h5 { animation-delay: .8s; } .is-alive .hl.h6 { animation-delay: 1s; }
.holo-scan { fill: rgba(90,240,255,.35); opacity: 0; }
.is-alive .holo-scan { animation: holo-scan 1.3s linear infinite; }
.holo-flash { fill: #e8fbff; opacity: 0; pointer-events: none; }
.is-alive .holo-flash { animation: holo-flash 1.6s steps(1) infinite; }
.is-alive .holo.s2 .holo-flash { animation-delay: .5s; } .is-alive .holo.s3 .holo-flash { animation-delay: 1s; }
@keyframes holo-type { 0% { transform: scaleX(.1); } 60%, 100% { transform: scaleX(1); } }
@keyframes holo-scan { 0% { transform: translateY(0); opacity: .9; } 100% { transform: translateY(44px); opacity: 0; } }
@keyframes holo-flash { 0%, 100% { opacity: 0; } 10% { opacity: .35; } 14% { opacity: 0; } 52% { opacity: .2; } 55% { opacity: 0; } }
@keyframes holo-blink { 50% { opacity: 1; fill: #69d757; } }
@media (prefers-reduced-motion: reduce) { .holo { transition: opacity .2s; transform: none; } .is-alive .hl, .is-alive .holo-scan, .is-alive .holo-flash, .is-alive .antenna-light { animation: none; } }
@media (max-width: 1360px) { .connect .shape--c { width: 230px; height: 230px; left: 1%; bottom: 20px; } }

/* ── v5 hero spacing (Main Landing): the title sits a little lower, the window and its pieces rise to show more screen */
html[data-layout="center"] .fs__copy { padding-top: clamp(112px, 15vh, 150px); }
html[data-layout="center"] .win { top: 47%; }

/* ── the footer toy box: every shape and bot on the page plus the monday logo, in a physics pile you can drag */
.gfoot__toy { position: relative; padding-top: 40px; }
.gfoot__hint { position: absolute; right: max(16px, var(--gutter)); top: 14px; font-size: 13.5px; color: var(--fg-3); }
.gfoot__shapes { position: relative; height: 340px; margin-inline: auto; max-width: 1600px; cursor: default; touch-action: pan-y; }
.gfoot__shapes > * { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.gfoot__shapes.is-over { cursor: grab; } .gfoot__shapes.is-grabbing { cursor: grabbing; }
.mpill { border-radius: 999px; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.35); }
html[data-theme="light"] .mpill { box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 10px 22px rgba(31,41,90,.16); }
@media (max-width: 960px) { .gfoot__shapes { height: 260px; } }
@media (max-width: 640px) { .gfoot__toy { display: block; } .gfoot__shapes { height: 220px; } .gfoot__hint { position: static; padding: 0 16px; } }

/* ── v6: monday's three pieces in the same Liquid Glass as the green pill (red and yellow pills, green dot). On the page
   they fill empty spots; hovering one drops it straight down off the screen (it is already in the footer pile). */
.shape--mred { --shape-fill: rgba(255,61,87,.38); --shape-glow: rgba(255,61,87,.34); }
.shape--myellow { --shape-fill: rgba(255,203,0,.34); --shape-glow: rgba(255,203,0,.3); }
.shape--mgreen { --shape-fill: rgba(0,202,114,.36); --shape-glow: rgba(0,202,114,.32); }
html[data-theme="light"] .shape--mred { --shape-fill: rgba(255,61,87,.5); } html[data-theme="light"] .shape--myellow { --shape-fill: rgba(255,203,0,.55); } html[data-theme="light"] .shape--mgreen { --shape-fill: rgba(0,202,114,.5); }
.gfoot__shapes .shape--mred { --shape-fill: rgba(255,61,87,.55); } .gfoot__shapes .shape--myellow { --shape-fill: rgba(255,203,0,.5); } .gfoot__shapes .shape--mgreen { --shape-fill: rgba(0,202,114,.52); }
.mdrop-fall { position: fixed !important; z-index: 80; margin: 0; pointer-events: none; transition: translate 1.15s cubic-bezier(.55,0,1,.45), rotate 1.15s cubic-bezier(.55,0,1,.45); }
@media (max-width: 960px) { .mdrop { display: none; } }

/* ── v7 logo: CARBON | LABS. LABS is drawn in the wordmark's own geometry (its A and B, an L and S on the same stroke,
   cap height and spacing), so the lockup reads as one mark. The liquid sits still in the B's two counters and
   sloshes side to side while the logo is hovered. */
.cl-rule { stroke: currentColor; stroke-width: 2.4; opacity: .35; }
.cl-liq { transform-box: view-box; transform-origin: 731.7px 57px; }
.cl-liq1, .cl-liq2 { opacity: .95; }
.cl-logo:hover .cl-liq { animation: cl-swirl 1s ease-in-out infinite alternate; }
.cl-logo:hover .cl-liq1 { animation: cl-flow 1.3s linear infinite; }
.cl-logo:hover .cl-liq2 { animation: cl-flow2 1.7s linear infinite; }
@keyframes cl-swirl { from { transform: translateX(-6px) rotate(-6deg); } to { transform: translateX(6px) rotate(6deg); } }
@keyframes cl-flow { to { transform: translateX(-16px); } }
@keyframes cl-flow2 { from { transform: translateX(-16px); } to { transform: translateX(0); } }
.cl-logo--nav { height: 22px; }
.cl-logo--splash { height: 48px; }
.mark__word .cl-logo { height: clamp(44px, 9.4vw, 136px); cursor: default; }
@media (prefers-reduced-motion: reduce) { .cl-logo:hover .cl-liq, .cl-logo:hover .cl-liq1, .cl-logo:hover .cl-liq2 { animation: none; } }

/* ── v9: the menu ends Experiments, then the theme switch */
.nav--over .nav__btns { gap: 8px; }
.nav--over .nav__btns .theme { flex: none; }

/* ── v9: one frame for every floating hero piece. The frame is the inner box (so the float moves frame and image
   together): the same 16px corners, a single 1px rim, the same shadow; the image is trimmed a hair inside it so no
   crop edge or leftover border from the source screen shows. */
.ui { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.ui__in { border-radius: 16px; overflow: hidden; background: var(--screen); box-shadow: 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255,255,255,.08), 0 22px 56px rgba(0,0,0,.45), 0 0 44px rgba(0,176,194,.08); }
html[data-theme="light"] .ui__in { box-shadow: 0 0 0 1px rgba(17,20,40,.1), 0 16px 40px rgba(31,41,90,.16); }
.ui img { transform: scale(1.045); transform-origin: 50% 50%; }

/* ── v10 (review): one glass for every character.
   The SVG bots now carry what the CSS pieces always had: a frosted backdrop, masked to the body's own outline,
   behind the drawing; a lit rim instead of one flat outline; a fresnel edge, a caustic base, a glint and the
   shared grain. The glow is tighter so the outline reads. The monday pills, dot and crab take the same grain
   and a top sheen, so every piece on the page is the same material. */
:root { --grain-d: none; --grain-l: none; --grain: var(--grain-d); --rim-a: .95; --rim-b: .22; --rim-c: .06; --rim-d: .38; --fresnel: .16; }
html[data-theme="light"] { --grain: var(--grain-l); --rim-a: 1; --rim-b: .6; --rim-c: .35; --rim-d: .7; --fresnel: .3; }
.shape--svg { filter: none !important; }
.shape--svg svg { filter: drop-shadow(0 0 26px var(--shape-glow, rgba(0,176,194,.3))) drop-shadow(0 18px 26px rgba(0,0,0,.38)); }
html[data-theme="light"] .shape--svg svg { filter: drop-shadow(0 0 24px var(--shape-glow, rgba(0,176,194,.22))) drop-shadow(0 14px 22px rgba(31,41,90,.16)); }
.shape--svg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--bot-mask) center bottom / contain no-repeat; mask: var(--bot-mask) center bottom / contain no-repeat;
  backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); transform-origin: 50% 94%; }
.is-alive.shape--svg::before { animation: bot-wiggle .42s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .is-alive.shape--svg::before { animation: none; } }
.bot-grain { mix-blend-mode: overlay; }
html[data-theme="light"] .bot-grain { mix-blend-mode: soft-light; }
.bot-arm { stroke: rgba(255,255,255,.3); stroke-width: 1.6; }
.shape:not(.shape--svg):not(.shape--clip):not(.shape--ring) {
  background: var(--grain), linear-gradient(170deg, rgba(255,255,255,.2), rgba(255,255,255,0) 46%), var(--shape-fill, rgba(0,176,194,.22));
  background-size: 48px 48px, 100% 100%; }
.shape--clip { background: var(--grain), linear-gradient(160deg, color-mix(in srgb, var(--shape-fill, rgba(0,176,194,.3)) 100%, #fff 18%), var(--shape-fill, rgba(0,176,194,.3)) 45%, rgba(255,255,255,.04));
  background-size: 48px 48px, 100% 100%; }

/* ── v10 (review): gradients stay in one tone, light to dark, and run across the whole phrase */
.statement .hlp { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.statement .hlp .w.hl.on { background: none; color: transparent; }
.g { -webkit-box-decoration-break: slice; box-decoration-break: slice; padding-bottom: .04em; }

/* ── v10 (review): landing tokens. One-tone gradient (light to dark teal) and brighter greys in dark mode.
   Set here, not in the shared template, so the Sales Tools lab page keeps its own look. */
:root, html[data-theme="dark"] { --fg: #f6f9f9; --fg-2: #c2cacb; --fg-3: #8f999a; --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.24);
  --grad: linear-gradient(100deg, #b4f7ff 0%, #5fe0ee 40%, #18bccd 100%); }
html[data-theme="light"] { --grad: linear-gradient(100deg, #2ab6c9 0%, #128c9b 55%, #0b6772 100%); }

/* ── v11: smooth scrolling. The rail cards drop the backdrop blur and the always-on layer (a blurred layer per card
   moved with every scroll frame); they sit on the page's own black, so a solid fill looks the same. The crab gets
   its own layer, so walking never repaints its wide glow. */
:root { --card-solid: #0a1315; } html[data-theme="light"] { --card-solid: #ffffff; }
.xcard { background: var(--card-solid); backdrop-filter: none; -webkit-backdrop-filter: none; will-change: auto; }
html[data-theme="light"] .xcard { background: var(--card-solid); }
.about .shape--bridge { will-change: translate; }

/* ── v12: the cards move only by their arrows, a swipe on touch screens, or the arrow keys. The row is no longer a
   scroll surface, so a trackpad gesture over the cards always scrolls the page. */
.crail { overflow-x: hidden; scroll-snap-type: none; touch-action: pan-y; }

/* ── v12: the footer. The links row on top, then one band: the logo in the middle with a small pile under it, and a
   large pile running in from each edge along the same floor. The band's height is set by toybox.js. */
.gfoot__band { position: relative; height: 240px; margin-top: clamp(12px, 2vw, 28px); }
.gfoot__band .mark__word { position: absolute; left: 50%; bottom: calc(var(--pile-h, 60px) + 30px); transform: translateX(-50%); padding: 0; display: block; overflow: visible; z-index: 0; }
.gfoot__band .mark__word .cl-logo { height: clamp(30px, 2.9vw, 56px); width: auto; display: block; }
.gfoot__band .gfoot__shapes { position: absolute; inset: 0; height: auto; max-width: none; margin: 0; z-index: 1; }
.cl-logo.is-hover .cl-liq { animation: cl-swirl 1s ease-in-out infinite alternate; }
.gfoot .foot { padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .gfoot__band { height: auto !important; padding-block: 28px; }
  .gfoot__band .mark__word { position: static; transform: none; display: flex; justify-content: center; }
}

/* ── v13: the triangle bot hops when it wakes, and changes into another bot at the top of each hop (bots.js) */
@keyframes bot-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 16% { transform: translateY(0) scale(1.1, .88); }
  45% { transform: translateY(-40px) scale(.95, 1.07); } 68% { transform: translateY(0) scale(1.06, .94); } 80% { transform: translateY(0) scale(1, 1); } }
@keyframes bot-hop-b { 0%, 100% { transform: translateY(0) scale(1, 1); } 16% { transform: translateY(0) scale(1.1, .88); }
  45% { transform: translateY(-20%) scale(.95, 1.07); } 68% { transform: translateY(0) scale(1.06, .94); } 80% { transform: translateY(0) scale(1, 1); } }
.is-alive.shape--svg[data-bot="gumdrop"] .bot-all { transform-box: view-box; transform-origin: 100px 188px; animation: bot-hop .9s cubic-bezier(.4,0,.3,1) infinite; }
.is-alive.shape--svg[data-bot="gumdrop"]::before { animation: bot-hop-b .9s cubic-bezier(.4,0,.3,1) infinite; }
@media (prefers-reduced-motion: reduce) { .is-alive.shape--svg[data-bot="gumdrop"]::before { animation: none; } }

/* ── v13: marker tags above the featured cards. Hand lettering in one bright monday colour each, with a soft glow;
   the card no longer clips its overflow so the tag can sit in the gap above it. */
.xcard { overflow: visible; }
.xcard.xcard--more { background: var(--core), var(--card-solid); }
.xtag { position: absolute; left: 16px; bottom: calc(100% + 10px); z-index: 2; pointer-events: none; white-space: nowrap;
  font: 400 24px/1 var(--body); letter-spacing: .01em; color: var(--tc);
  transform: rotate(-3deg); transform-origin: 0 100%; text-shadow: 0 0 18px var(--tg), 0 2px 0 rgba(0,0,0,.35); }
.xcard--more .xtag { left: 50%; transform: translateX(-50%) rotate(-3deg); transform-origin: 50% 100%; }
.xtag--y { --tc: #ffd23f; --tg: rgba(255,203,0,.55); } .xtag--r { --tc: #ff5a6e; --tg: rgba(255,61,87,.5); }
.xtag--g { --tc: #3ee08a; --tg: rgba(0,202,114,.5); } .xtag--i { --tc: #a3a3ff; --tg: rgba(97,97,255,.6); } .xtag--c { --tc: #6cf0fb; --tg: rgba(85,231,246,.5); }
html[data-theme="light"] .xtag { text-shadow: 0 0 14px var(--tg), 0 1px 0 rgba(255,255,255,.8); }
html[data-theme="light"] .xtag--y { --tc: #d19400; --tg: rgba(255,203,0,.35); } html[data-theme="light"] .xtag--r { --tc: #e2233d; --tg: rgba(255,61,87,.25); }
html[data-theme="light"] .xtag--g { --tc: #00a35c; --tg: rgba(0,202,114,.25); } html[data-theme="light"] .xtag--i { --tc: #4b4bdc; --tg: rgba(97,97,255,.25); } html[data-theme="light"] .xtag--c { --tc: #00879a; --tg: rgba(0,176,194,.25); }
@media (max-width: 640px) { .crail { padding-top: 56px; } .xtag { font-size: 21px; } }

/* ── v14: the marker tags sit above each hero title instead of on the cards */
.fcopy .xtag { position: static; display: inline-block; margin: 0 0 14px; font-size: clamp(24px, 2.4vw, 34px); transform: rotate(-3deg); transform-origin: 50% 100%; }
html[data-layout="left"] .fcopy .xtag { transform-origin: 0 100%; }
/* the tag adds a line above the title, so the centred copy starts higher and the window sits a touch lower */
html[data-layout="center"] .fs__copy { padding-top: clamp(76px, 11vh, 110px); }
html[data-layout="center"] .win { top: 48.5%; }

/* ── v15: Idea, left aligned. The heading, the lead and the button on the left; the three steps stacked in one
   glass box beside them; the totem on the right. Hovering the totem lights the heading's bulb (bots.js). */
.idea__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) 210px; gap: clamp(28px, 4vw, 56px); align-items: center; text-align: left; }
.idea__text { min-width: 0; }
.gsec h2.big.idea__title { max-width: none; margin-inline: 0; font-size: clamp(40px, 4.6vw, 66px); }
.idea .sub { margin: 18px 0 0; max-width: 38ch; }
.idea .pills { justify-content: flex-start; margin-top: 30px; }
.ibulb { display: inline-block; width: .6em; height: .8em; margin-left: .06em; vertical-align: -.04em; }
.ibulb svg, .bot-bulb svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bulb-glow { opacity: 0; transition: opacity .45s ease; }
.bulb-glass { fill: rgba(255,255,255,.04); stroke: var(--fg-3); stroke-width: 2.6; transition: stroke .45s ease; }
.bulb-fil { fill: none; stroke: var(--fg-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .45s ease; }
.bulb-neck, .bulb-base { fill: var(--fg-3); opacity: .7; }
.is-lit .bulb-glow, .bot-bulb.is-on .bulb-glow { opacity: 1; }
.is-lit .bulb-glass, .bot-bulb.is-on .bulb-glass { stroke: #ffcb00; }
.is-lit .bulb-fil, .bot-bulb.is-on .bulb-fil { stroke: #fff; }
.ibulb.is-lit svg { filter: drop-shadow(0 0 14px rgba(255,203,0,.75)) drop-shadow(0 0 40px rgba(255,203,0,.35)); }
.ibulb.is-pop svg { animation: bulb-pop .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes bulb-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.isteps { list-style: none; margin: 0; padding: 6px 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0;
  box-shadow: inset 0 1.5px 1px rgba(190,255,255,.22), 0 30px 70px rgba(0,0,0,.3); }
html[data-theme="light"] .isteps { background: rgba(255,255,255,.8); box-shadow: inset 0 1.5px 1px #fff, 0 24px 60px rgba(31,41,90,.12); }
.isteps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0; }
.isteps li + li { border-top: 1px solid var(--line); }
.isteps__n { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font: 800 20px/1 var(--num); color: #fff; background: var(--grad); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 22px rgba(0,176,194,.3); }
.isteps h3 { font-size: 20px; }
.isteps p { margin-top: 6px; font-size: 15.5px; color: var(--fg-2); }
.idea__bot { position: relative; height: 270px; }
.idea__bot .shape { left: 0; right: 0; bottom: 0; width: 210px; height: 250px; }
.bot-bulb { position: absolute; left: 50%; z-index: 3; pointer-events: none; opacity: 0; transform: translate(-50%, 14px) scale(.4); transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .35s cubic-bezier(.3,1.6,.5,1); }
.bot-bulb.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bot-bulb.is-on .bulb-glow { animation: bulb-flicker .6s steps(1) both; }
.bot-bulb.is-on svg { filter: drop-shadow(0 0 16px rgba(255,203,0,.7)); }
.bot-bulb.is-ball { opacity: 0; transform: translate(-50%, 0) scale(.3); transition: opacity .18s ease, transform .18s ease; }
@keyframes bulb-flicker { 0% { opacity: 0; } 20% { opacity: 1; } 32% { opacity: .15; } 46% { opacity: 1; } 58% { opacity: .4; } 70%, 100% { opacity: 1; } }
.idea-ball { position: absolute; left: 0; top: 0; z-index: 60; width: 30px; height: 30px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 36% 32%, #fff 0 14%, #fff4b8 32%, #ffcb00 70%, #ff9f00);
  box-shadow: 0 0 22px 6px rgba(255,203,0,.55), 0 0 60px rgba(255,203,0,.35); }
.is-butting .bot-all { animation: bot-butt .7s cubic-bezier(.3,0,.3,1) both !important; transform-box: view-box; transform-origin: 100px 188px; }
@keyframes bot-butt { 0% { transform: none; } 30% { transform: translateY(10px) scale(1.06, .9); } 52% { transform: translateY(-26px) scale(.95, 1.07); } 75% { transform: translateY(0) scale(1.03, .97); } 100% { transform: none; } }
@media (max-width: 1100px) { .idea__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .idea__bot { grid-column: 1 / -1; justify-self: end; width: 210px; height: 220px; } }
@media (max-width: 760px) { .idea__grid { grid-template-columns: minmax(0, 1fr); } .idea__bot { justify-self: center; } }

/* ── v15: the coder's three screens are liquid glass: a frosted pane, a lit rim and a top sheen, soft code colours,
   no neon outline or glow */
:root { --holo-a: rgba(225,250,255,.42); --holo-b: rgba(170,225,245,.18); }
html[data-theme="light"] { --holo-a: rgba(255,255,255,.78); --holo-b: rgba(225,240,250,.5); }
.holo-pane { stroke: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.28)); }
html[data-theme="light"] .holo-pane { filter: drop-shadow(0 5px 10px rgba(31,41,90,.16)); }
.holo-rim { fill: none; stroke-width: 1.2; }
.holo-bar { stroke: rgba(255,255,255,.4); }
html[data-theme="light"] .holo-bar { stroke: rgba(29,29,31,.18); }
.hl { opacity: .9; }
html[data-theme="light"] .hl { opacity: 1; filter: saturate(1.6) brightness(.8); }
.holo-scan { fill: rgba(255,255,255,.3); }
.holo-flash { fill: #fff; }
@keyframes holo-flash { 0%, 100% { opacity: 0; } 10% { opacity: .16; } 14% { opacity: 0; } 52% { opacity: .1; } 55% { opacity: 0; } }

/* ── v16: the steps are flat text to the left of the heading: a large flat numeral, a title and a line, no box */
.idea__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 210px; grid-template-areas: "steps text bot"; }
.isteps { grid-area: steps; } .idea__text { grid-area: text; } .idea__bot { grid-area: bot; }
.isteps, html[data-theme="light"] .isteps { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; display: grid; gap: 30px; }
.isteps li { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 0; }
.isteps li + li { border-top: 0; }
.isteps__n { width: auto; height: auto; display: block; border-radius: 0; background: none; box-shadow: none; font: 800 54px/.9 var(--num); letter-spacing: -.04em; color: var(--accent); }
.isteps h3 { font-size: 21px; margin-top: 4px; }
.isteps p { max-width: 40ch; }
@media (max-width: 1100px) { .idea__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "steps text" "bot bot"; } }
@media (max-width: 760px) { .idea__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "steps" "bot"; } }

/* ── v17: the lab agent. Goggles and a white lab coat (its sleeves are the arms); on hover it becomes a beaker,
   tips over and spills (bots.js spillAct). */
:root { --coat-a: rgba(255,255,255,.96); --coat-b: rgba(214,230,236,.92); --coat-line: rgba(20,40,52,.16); }
html[data-theme="light"] { --coat-a: #ffffff; --coat-b: #e3edf2; --coat-line: rgba(20,40,52,.2); }
.coat-line { fill: none; stroke: var(--coat-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coat-pen { fill: var(--accent); } .coat-btn { fill: rgba(20,40,52,.28); }
.chem-coat, .chem-goggles { transition: opacity .22s ease; }
.bk-only { opacity: 0; transition: opacity .25s ease; }
[data-form="beaker"] .chem-coat, [data-form="beaker"] .chem-goggles { opacity: 0; }
[data-form="beaker"] .bk-only { opacity: 1; transition-delay: .12s; }
.bk-liq { transform: translateY(76px); transition: transform .6s cubic-bezier(.3,1.3,.5,1) .15s; }
[data-form="beaker"] .bk-liq { transform: none; }
.is-poured .bk-liq { transform: translateY(90px) !important; transition: transform .9s ease-in; }
.bk-wave { animation: bk-wave 1.4s linear infinite; }
@keyframes bk-wave { to { transform: translateX(50px); } }
.bk-mark { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2.4; stroke-linecap: round; }
html[data-theme="light"] .bk-mark { stroke: rgba(20,40,52,.35); }
.bk-bub { fill: rgba(255,255,255,.35); stroke: rgba(255,255,255,.9); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
html[data-theme="light"] .bk-bub { fill: rgba(255,255,255,.7); stroke: rgba(0,135,154,.6); }
[data-form="beaker"]:not(.is-poured) .bk-bub { animation: bk-bub 1.5s ease-out infinite; }
[data-form="beaker"] .bk-bub.b2 { animation-delay: .3s; } [data-form="beaker"] .bk-bub.b3 { animation-delay: .6s; } [data-form="beaker"] .bk-bub.b4 { animation-delay: .9s; } [data-form="beaker"] .bk-bub.b5 { animation-delay: 1.15s; }
@keyframes bk-bub { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translateY(-140px) scale(1.1); } }
.is-acting::before { opacity: 0; }
.is-acting .bot-all { animation: none !important; transform-box: view-box; }
.is-hopping .bot-all { animation: bot-hop .6s cubic-bezier(.4,0,.3,1) both !important; transform-origin: 100px 188px; }
.is-tipping .bot-all { animation: bk-tip .5s cubic-bezier(.5,0,.75,.4) both !important; transform-origin: 146px 188px; }
.is-righting .bot-all { animation: bk-right .6s cubic-bezier(.3,1.4,.5,1) both !important; transform-origin: 146px 188px; }
@keyframes bk-tip { 0% { transform: translateY(-34px) rotate(0); } 65% { transform: translateY(0) rotate(97deg); } 82% { transform: rotate(86deg); } 100% { transform: rotate(90deg); } }
@keyframes bk-right { 0% { transform: rotate(90deg); } 55% { transform: translateY(-18px) rotate(-6deg); } 100% { transform: none; } }
.spill { position: absolute; z-index: 40; pointer-events: none; overflow: visible; transition: opacity .6s ease; }
.spill.is-gone { opacity: 0; }
.sp-stream { fill: none; stroke: url(#spg); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sp-stream .35s ease-in forwards, sp-thin .5s ease 1s forwards; }
@keyframes sp-stream { to { stroke-dashoffset: 0; } }
@keyframes sp-thin { to { stroke-width: 0; opacity: 0; } }
.sp-pool { fill: url(#spg); opacity: .92; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: sp-pool .55s cubic-bezier(.2,.8,.3,1) .3s forwards; }
@keyframes sp-pool { to { transform: scaleX(1); } }
.sp-drip { transform: translate(var(--dx), var(--dy)); }
.sp-drip > * { fill: url(#spg); opacity: 0; transform-box: fill-box; transform-origin: 50% 0; animation: sp-slide 1.9s cubic-bezier(.55,0,.8,.55) .75s forwards; }
.sp-drip .sp-drop { animation-delay: .95s; } .sp-drip .sp-drop.d2 { animation-delay: 1.1s; }
@keyframes sp-slide { 0% { opacity: 1; transform: translateY(0) scaleY(.6); } 30% { opacity: 1; transform: translateY(40px) scaleY(1.5); } 85% { opacity: .9; transform: translateY(300px) scaleY(1.2); } 100% { opacity: 0; transform: translateY(360px) scaleY(.8); } }
@media (prefers-reduced-motion: reduce) { .bk-wave, .bk-bub { animation: none !important; } }

/* ── v18: the lab agent stands centred above the main title; its spill runs around the title (bots.js pour) */
.xbot { position: relative; width: 190px; height: 180px; margin: 0 auto 4px; }
.xbot .shape { left: 0; bottom: 0; width: 190px; height: 190px; }
.sp-splash { fill: url(#spg); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: sp-splash .5s ease-out .3s forwards; }
@keyframes sp-splash { 0% { opacity: .9; transform: scale(.2, .6); } 100% { opacity: 0; transform: scale(1.6, 1); } }
.sp-flow { fill: none; stroke: url(#spg); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .92;
  animation: sp-flow 1.1s cubic-bezier(.4,0,.6,1) .32s forwards; }
.sp-sheen { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: translate(-1.5px, -2px);
  animation: sp-flow 1.1s cubic-bezier(.4,0,.6,1) .32s forwards; }
@keyframes sp-flow { to { stroke-dashoffset: 0; } }
.sp-drip > * { animation-delay: 1.35s; } .sp-drip .sp-drop { animation-delay: 1.5s; } .sp-drip .sp-drop.d2 { animation-delay: 1.65s; }

/* ── v19: less room above the lab agent; its liquid is liquid glass (spill and beaker) */
#experiments.gsec { padding-top: clamp(56px, 6.5vw, 96px); }
:root { --lg-body: rgba(170,240,250,.2); --lg-rim: rgba(255,255,255,.88); --lg-hi: rgba(255,255,255,.9); --lg-glow: rgba(85,231,246,.3); }
html[data-theme="light"] { --lg-body: rgba(0,176,194,.16); --lg-rim: rgba(0,128,141,.7); --lg-hi: rgba(255,255,255,.95); --lg-glow: rgba(0,176,194,.22); }
.sp-glow, .sp-body, .sp-rim, .sp-hi { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sp-glow { stroke: var(--lg-glow); filter: url(#spb); }
.sp-body { stroke: var(--lg-body); }
.sp-rim { stroke: var(--lg-rim); }
.sp-hi { stroke: var(--lg-hi); stroke-width: 2.2px; transform: translate(-2px, -2.6px); }
.sp-glow.s, .sp-body.s, .sp-rim.s, .sp-hi.s { animation: sp-flow .35s ease-in forwards, sp-fade .5s ease 1s forwards; }
.sp-glow.f, .sp-body.f, .sp-rim.f, .sp-hi.f { animation: sp-flow 1.1s cubic-bezier(.4,0,.6,1) .32s forwards; }
@keyframes sp-fade { to { opacity: 0; } }
.sp-splash { fill: var(--lg-body); stroke: var(--lg-rim); stroke-width: 1.4; }
.sp-gl { fill: var(--lg-body); stroke: var(--lg-rim); stroke-width: 1.4; }
.sp-glh { fill: var(--lg-hi); }
.sp-drip > * { fill: none; }
.bk-liq path { fill-opacity: .42; stroke: var(--lg-rim); stroke-width: 1.8; }

/* ── v20: the spill ends at the title. One glass bead swells at its bottom right corner and fades; nothing runs
   over the paragraph or the filters below. */
.sp-bead { transform: translate(var(--dx), var(--dy)); }
.sp-beadg { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; animation: sp-bead 1.2s cubic-bezier(.3,1.4,.5,1) 1.35s forwards; }
@keyframes sp-bead { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1); } 70% { opacity: 1; transform: translateY(5px) scale(.96, 1.08); } 100% { opacity: 0; transform: translateY(6px) scale(.9, 1.1); } }
@keyframes sp-bead { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(.96, 1.06); } 100% { opacity: 0; transform: scale(.9); } }

/* ── v21: the round-bottom flask. Its eyes sit in the bulb above the liquid; it rolls over around the bulb's centre,
   so it lies on its side with the neck pointing at the title. */
.eye-r { transition: translate .3s ease; }
[data-form="beaker"] .eye-r.l { translate: 8px 25px; } [data-form="beaker"] .eye-r.r { translate: -8px 25px; }
.is-tipping .bot-all, .is-righting .bot-all { transform-origin: 100px 138px !important; }

/* the spill: organic liquid glass that creeps slowly round the title and pools beside the full stop (bots.js pour) */
:root { --lg-tint: #c4f8ff; --lg-tint-a: .26; --lg-edge: #ffffff; }
html[data-theme="light"] { --lg-tint: #00b0c2; --lg-tint-a: .2; --lg-edge: #00808d; }
.spill { filter: drop-shadow(0 0 10px var(--lg-glow)); }
.spill.is-gone { opacity: 0; transition: opacity .8s ease; }
.lq-stream, .lq-trail { fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lq-stream { stroke-width: 12; animation: lq-draw .45s ease-in forwards, lq-thin 1s ease 1.6s forwards; }
.lq-trail { stroke-width: 11; animation: lq-draw 2.8s cubic-bezier(.42,0,.5,1) .45s forwards, lq-drain 1.8s ease 3.4s forwards; }
@keyframes lq-draw { to { stroke-dashoffset: 0; } }
@keyframes lq-thin { to { stroke-width: 0; } }
@keyframes lq-drain { to { stroke-width: 6; } }
.lq-splash { fill: #000; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); animation: lq-splash .7s cubic-bezier(.3,1.5,.5,1) .4s forwards; }
@keyframes lq-splash { 60% { transform: scale(1.5, .9); } 100% { transform: scale(1.1, .8); } }
.lq-head { fill: #000; r: 0; animation: lq-head-in .35s ease-out .45s forwards, lq-head-out .7s ease 3.2s forwards; }
@keyframes lq-head-in { to { r: 10.5px; } }
@keyframes lq-head-out { from { r: 10.5px; } to { r: 0; } }
.lq-pool { fill: #000; transform-box: fill-box; transform-origin: 0 60%; transform: scale(0, .3); animation: lq-pool 1.4s cubic-bezier(.2,.7,.3,1) 3.05s forwards; }
.lq-pool.lq-p2 { transform-origin: 50% 50%; animation-delay: 3.7s; }
@keyframes lq-pool { to { transform: scale(1, 1); } }

/* ── v22: the spill follows Liquid Swipe: one solid sheet of blue glass with smooth, swelling edges */
:root { --lg-tint: #3fd3e8; --lg-tint-a: .5; --lg-edge: #ffffff; }
html[data-theme="light"] { --lg-tint: #00a7bb; --lg-tint-a: .55; --lg-edge: #e9fdff; }
.lq-stream { stroke-width: 15; }
.lq-trail { stroke-width: 13; }
@keyframes lq-drain { to { stroke-width: 8; } }
.lq-splash { r: 13px; }
@keyframes lq-head-in { to { r: 17px; } }
@keyframes lq-head-out { from { r: 17px; } to { r: 0; } }
.lq-head.lq-h2 { animation: lq-head2-in .35s ease-out 1.05s forwards, lq-head2-out .7s ease 3.8s forwards; }
@keyframes lq-head2-in { to { r: 12px; } }
@keyframes lq-head2-out { from { r: 12px; } to { r: 0; } }

/* ── v23: the liquid drains completely into the puddle, and the puddle stays */
.lq-trail { animation: lq-draw 2.8s cubic-bezier(.42,0,.5,1) .45s forwards, lq-dry 1.4s ease-in 3.35s forwards; }
@keyframes lq-dry { to { stroke-width: 0; } }
.is-still .lq-stream, .is-still .lq-trail, .is-still .lq-head, .is-still .lq-splash { display: none; }
.is-still .lq-pool { animation: none; transform: none; }
.lq-splash { animation: lq-splash .7s cubic-bezier(.3,1.5,.5,1) .4s forwards, lq-splash-out .9s ease-in 2.6s forwards; }
@keyframes lq-splash-out { from { transform: scale(1.1, .8); } to { transform: scale(0); } }

/* ── v24: physics and one steady timeline.
   The flask rolls about its bulb's centre (100, 138); the liquid turns the other way about the same point, so its
   surface stays level. Lying down, the neck spans y 122 to 154, so the liquid pours until its surface falls below
   154 and a pool stays in the bulb. The spill then runs at one constant speed: the stream pours for as long as the
   level falls (0 to 1.3 s), the trail reaches the puddle at 3.25 s, and the puddle fills while the trail drains
   into it (3.25 to 4.75 s). Nothing grows after that. */
.bk-liq-rot { transform-box: view-box; transform-origin: 100px 138px; }
.is-tipping .bk-liq-rot { animation: bk-level .5s cubic-bezier(.5,0,.75,.4) both; }
@keyframes bk-level { 0% { transform: rotate(0); } 65% { transform: rotate(-97deg); } 82% { transform: rotate(-86deg); } 100% { transform: rotate(-90deg); } }
.is-poured .bk-liq { transform: translateY(13px) !important; transition: transform 1.3s linear; }
.lq-stream { animation: lq-draw .45s linear forwards, lq-thin .5s linear .85s forwards; }
.lq-trail { animation: lq-draw 2.8s linear .45s forwards, lq-dry 1.5s linear 3.25s forwards; }
.lq-splash { animation: lq-splash .5s linear .45s forwards, lq-splash-out .8s linear 1.3s forwards; }
.lq-head { animation: lq-head-in .3s linear .45s forwards, lq-head-out .5s linear 3.25s forwards; }
.lq-head.lq-h2 { animation: lq-head2-in .3s linear .7s forwards, lq-head2-out .5s linear 3.5s forwards; }
.lq-pool { animation: lq-pool 1.5s linear 3.25s forwards; }

/* ── v25: the ending. The trail's tail runs forward along the route into the puddle (no thinning everywhere at once),
   and the puddle is an uneven, lobed body with a shadow under it and a highlight on top, filling as the tail
   arrives, then settling with a small jelly wobble. */
.lq-trail { animation: lq-draw 2.8s linear .45s forwards, lq-retract 1.5s linear 3.25s forwards; }
@keyframes lq-retract { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
.lq-pool { fill: #000; transform-box: fill-box; transform-origin: 20% 70%; transform: scale(0, .35);
  animation: lq-pool 1.5s cubic-bezier(.25,.6,.4,1) 3.25s forwards, lq-settle .9s ease-out 4.75s forwards; }
@keyframes lq-pool { to { transform: scale(1, 1); } }
@keyframes lq-settle { 0% { transform: scale(1, 1); } 30% { transform: scale(1.035, .9); } 60% { transform: scale(.985, 1.06); } 82% { transform: scale(1.008, .98); } 100% { transform: scale(1, 1); } }
.lq-pool-shadow { fill: rgba(0,0,0,.55); filter: blur(6px); transform-box: fill-box; transform-origin: 20% 50%; transform: scaleX(0); animation: lq-pool 1.5s cubic-bezier(.25,.6,.4,1) 3.25s forwards; }
html[data-theme="light"] .lq-pool-shadow { fill: rgba(0,80,95,.22); }
.lq-pool-hi { fill: rgba(255,255,255,.75); opacity: 0; animation: lq-hi .6s ease 4.3s forwards; }
@keyframes lq-hi { to { opacity: 1; } }
.is-still .lq-pool, .is-still .lq-pool-shadow { animation: none; transform: none; }
.is-still .lq-pool-hi { animation: none; opacity: 1; }

/* ── v26: pop-out framing, reviewed piece by piece.
   Every crop is re-cut from a 2x capture around whole elements, and the frame adds natural margin in the crop's own
   surface colour (--ubg, sampled from its edges), so no UI runs into the rim. No zoom-trim (it cut edges and
   resampled the image) and no scale in the entrance (a scaled layer can stay rasterised soft). */
.ui__in { padding: 9px; background: var(--ubg, var(--screen)); }
.ui img { transform: none; border-radius: 4px; }
@keyframes ui-in { from { opacity: 0; translate: var(--fx, 0px) var(--fy, 50px); } }
@keyframes ui-rise { from { opacity: 0; translate: var(--fx, 0px) 120px; } }

/* the Dashboards widgets: live UI in monday's type, sized to the frame (1em is about 1/22 of its width) */
.ui__in--w { padding: 0; background: none; container-type: inline-size; }
.uw { font: 400 calc(100cqw / 22) / 1.32 var(--body); padding: 1.15em 1.25em; color: #fff; text-align: left; }
.uw b { display: block; font-weight: 700; }
.uw small { display: block; font-size: .78em; opacity: .75; }
.uw p { margin: .35em 0 0; font-size: .86em; }
.uw-dark { background: #262a47; color: #e9ecf8; }
.uw-light { background: #ffffff; color: #323338; }
.uw-soft { background: #f6f7fb; color: #323338; }
.uw-btn { display: inline-flex; align-items: center; gap: .35em; margin-top: .8em; padding: .35em .75em; border-radius: .35em; font-size: .78em; font-weight: 600; }
.uw-btn--glass { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); color: #fff; }
.uw-btn--line { display: flex; justify-content: center; border: 1px solid #c3c6d4; color: #323338; font-size: .92em; font-weight: 500; padding: .45em; }
.uw-blue { color: #0073ea; } .uw-orange { color: #fdab3d; }
/* Build with AI */
.uw-ai { background: linear-gradient(120deg, #4c8ffb, #6aa7ff); display: grid; grid-template-columns: 1fr 34%; gap: .6em; align-items: center; }
.uw-ai b { font-size: 1.12em; }
.uw-ai p { opacity: .92; }
.uw-ai__art { position: relative; height: 4.6em; }
.uw-ai__art i { position: absolute; border-radius: .4em; background: #fff; box-shadow: 0 .3em .8em rgba(10,40,120,.25); }
.uw-ai__art i:nth-child(1) { width: 52%; height: 46%; left: 0; top: 30%; transform: rotate(-8deg); opacity: .9; }
.uw-ai__art i:nth-child(2) { width: 62%; height: 40%; right: 0; top: 4%; transform: rotate(-8deg); }
.uw-ai__art i:nth-child(3) { width: 60%; height: 42%; right: 6%; top: 52%; transform: rotate(-8deg); opacity: .95; }
/* Target ring */
.uw-ring__panel { background: #f1f2f6; border-radius: .5em; padding: .7em .8em; }
.uw-ring__panel > small { opacity: .7; }
.uw-ring__row { display: grid; grid-template-columns: 1fr 4.6em; align-items: center; gap: .4em; margin-top: .3em; }
.uw-ring__row small { font-size: .62em; text-transform: uppercase; letter-spacing: .04em; margin-top: .3em; }
.uw-ring__row b { font-size: 1.05em; } .uw-ring__row b.uw-blue { font-size: 1.35em; }
.uw-ring svg { width: 4.6em; height: 4.6em; }
.uw-ring .trk { fill: none; stroke: #e2e4ec; stroke-width: 5; } .uw-ring .val { fill: none; stroke: #4c8ffb; stroke-width: 5; stroke-linecap: round; }
.uw-ring text { font: 700 9px var(--body); fill: #4c8ffb; text-anchor: middle; }
.uw-ring h4 { margin: .75em 0 0; font: 600 1.15em/1.2 var(--body); color: #323338; }
.uw-ring p { color: #676879; }
.uw-chips { display: flex; gap: .35em; margin-top: .6em; }
.uw-chips span { font-size: .78em; padding: .15em .5em; border-radius: .3em; background: #f1f2f6; color: #676879; border: 1px solid #e2e4ec; }
/* the prompt */
.uw-prompt { position: relative; padding-top: 2.4em; }
.uw-av { position: absolute; right: 1.1em; top: .7em; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-size: .78em; font-weight: 700; color: #fff; background: linear-gradient(135deg, #00c875, #579bfc); box-shadow: 0 0 0 .2em #fff, 0 0 0 .3em #e2e4ec; }
.uw-bubble { background: #eef0fb; border-radius: .7em; padding: .7em .85em; font-size: .98em; color: #323338; }
.uw-prompt small { text-align: right; margin-top: .45em; color: #676879; opacity: 1; }
/* the size picker */
.uw-sizes { text-align: center; }
.uw-seg { display: flex; gap: .2em; padding: .25em; border-radius: .6em; background: #fff; box-shadow: 0 .1em .4em rgba(31,41,90,.12); margin-bottom: .7em; }
.uw-seg span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .3em; padding: .35em 0; border-radius: .45em; font-weight: 600; color: #323338; font-size: .92em; }
.uw-seg span.on { background: #323338; color: #fff; }
.uw-seg i { display: inline-block; border: 1.5px solid currentColor; border-radius: .15em; height: .7em; }
.uw-seg i.s { width: .5em; border-radius: 50%; height: .5em; } .uw-seg i.m { width: .8em; height: .4em; } .uw-seg i.l { width: .75em; height: .75em; } .uw-seg i.xl { width: 1.2em; }
.uw-sizes b { font-size: 1.12em; }
.uw-sizes small { margin-top: .2em; color: #676879; opacity: 1; }
.uw-tog { display: inline-flex; align-items: center; gap: .5em; margin-top: .65em; font-size: .9em; color: #676879; }
.uw-tog i { width: 2.1em; height: 1.2em; border-radius: 1em; background: #0073ea; position: relative; }
.uw-tog i::after { content: ""; position: absolute; right: .15em; top: .15em; width: .9em; height: .9em; border-radius: 50%; background: #fff; }
/* NDR */
.uw-ndr { text-align: center; }
.uw-ndr > small { text-align: left; font-size: .86em; opacity: .85; }
.uw-ndr > b { font-size: 2.3em; line-height: 1.1; color: #fdab3d; margin: .1em 0 .15em; }
.uw-ndr__foot { display: flex; justify-content: center; align-items: center; gap: .6em; }
.uw-pill { font-size: .78em; font-weight: 700; padding: .2em .6em; border-radius: 1em; background: #e2445c; color: #fff; }
/* Active recurring and Renewals */
.uw-head { display: flex; align-items: center; gap: .4em; font-weight: 600; font-size: .95em; padding-bottom: .55em; border-bottom: 1px solid rgba(255,255,255,.1); }
.uw-head svg { width: 1em; height: 1em; opacity: .7; }
.uw-cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: .55em; }
.uw-cols--3 { grid-template-columns: 1fr 1fr 1fr; text-align: center; }
.uw-cols > div + div { border-left: 1px solid rgba(255,255,255,.1); padding-left: .8em; }
.uw-cols--3 > div + div { padding-left: 0; }
.uw-cols b { font-size: 1.6em; margin-top: .1em; }
.uw-cols em { display: inline-block; margin-top: .3em; font-style: normal; font-size: .66em; padding: .1em .5em; border-radius: 1em; background: rgba(255,255,255,.1); }
.uw-bar { display: flex; height: 1.15em; margin-top: .7em; border-radius: .3em; overflow: hidden; }
.uw-bar i { display: grid; place-items: center; font: normal 600 .62em/1 var(--body); color: #fff; }
.uw-bar i:nth-child(1) { background: #00c875; } .uw-bar i:nth-child(2) { background: #579bfc; } .uw-bar i:nth-child(3) { background: #9aadbd; }
.uw-leg { list-style: none; margin: .6em 0 0; padding: 0; display: grid; gap: .2em; font-size: .74em; opacity: .9; }
.uw-leg li { display: flex; align-items: center; gap: .4em; }
.uw-leg i { width: .65em; height: .65em; border-radius: .15em; } .uw-leg i.g { background: #00c875; } .uw-leg i.b { background: #579bfc; } .uw-leg i.c { background: #9aadbd; }
.uw-leg em { font-style: normal; opacity: .6; margin-left: auto; }
/* the stacker may shrink a crowded side a little (--fit, from landing.js) */
html[data-layout="center"] .ui { width: calc(min(var(--w, 300px), var(--wv, 22vw)) * var(--fit, 1)); }
.ui.ui--off { display: none; }
/* the centred copy keeps to the middle so the piece columns can stand beside it */
html[data-layout="center"] .fcopy p { max-width: min(580px, 42vw); margin-inline: auto; }

/* ── v27: the experiments row. No position counter; more room under the cards, so their soft shadow (the grey
   band) runs further down and fades before the row's edge; no divider at the top of About. */
.rail-ctl .count { display: none; }
.crail { padding-bottom: 128px; }
.rail-wrap .rail-ctl { margin-top: -40px; }
#about.gsec { border-top: 0; }

/* ── v28: quiet hero labels, one blue hue */
:root { --tag-blue: #6f9dff; --tag-blue-bg: rgba(66,124,255,.14); --tag-blue-line: rgba(111,157,255,.4); }
html[data-theme="light"] { --tag-blue: #1f5fd6; --tag-blue-bg: rgba(31,95,214,.08); --tag-blue-line: rgba(31,95,214,.28); }
.fcopy .xtag { display: inline-flex; align-items: center; gap: .45em; transform: none; margin: 0 0 16px; padding: .42em .9em; border-radius: 999px;
  font: 600 14px/1 var(--body); letter-spacing: .01em; color: var(--tag-blue); background: var(--tag-blue-bg); border: 1px solid var(--tag-blue-line); text-shadow: none; }
.fcopy .xtag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html[data-theme="light"] .fcopy .xtag { text-shadow: none; }

/* the Idea steps light one by one as you scroll */
.isteps li { opacity: .32; filter: grayscale(1); transition: opacity .7s var(--ease), filter .7s var(--ease); }
.isteps li.is-lit { opacity: 1; filter: none; }

/* ── v29: Apple-style award over each hero title: two lines of system type between two laurel branches, carbon blue */
:root { --award: #8ff0fb; --award-ink: #f2fbfc; }
html[data-theme="light"] { --award: #00808d; --award-ink: #1d1d1f; }
.fcopy .xtag { display: none; }
.award { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--award); }
.award svg { display: block; width: 22px; height: 40px; }
.award__r svg { transform: scaleX(-1); }
.award__t { display: grid; justify-items: center; line-height: 1.08; font-family: var(--display); color: var(--award-ink); }
.award__t b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.award__t small { font-size: 12.5px; font-weight: 500; letter-spacing: .01em; opacity: .78; }

/* one sentence of copy per lab, so the window and its pieces can sit higher */
html[data-layout="center"] .win { top: 43%; }

/* the experiments row: a View all button where the counter was */
.rail-ctl { display: flex; justify-content: center; }
.rail-ctl .xall { position: relative; z-index: 4; }

/* the filters as one Apple-style glass bar: the options in a frosted pill, the chosen one in a tinted pill */
.filters--g { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 5px; border-radius: 999px; margin-inline: auto;
  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); }
.filters--g button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 600 14px/1 var(--body); color: var(--fg-2); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.filters--g button:hover { color: var(--fg); }
.filters--g button[aria-pressed="true"] { background: rgba(85,231,246,.16); color: #bff7fc; box-shadow: inset 0 0 0 1px rgba(85,231,246,.28); }
.filters--g button b { display: none; }
html[data-theme="light"] .filters--g { background: rgba(255,255,255,.78); border-color: rgba(17,20,40,.08); box-shadow: 0 8px 26px rgba(31,41,90,.1); }
html[data-theme="light"] .filters--g button[aria-pressed="true"] { background: #e2f4f7; color: #00707c; box-shadow: none; }
#experiments .filters--g { display: flex; width: max-content; max-width: 100%; }

/* ── v29: the notification on the green agent: an iOS badge with a soft pulse and a glass hint, gone once hovered */
.notif { position: absolute; left: 50%; top: 2%; z-index: 4; display: flex; align-items: center; gap: 8px; transform: translate(18px, -50%); pointer-events: none; transition: opacity .4s ease, transform .4s cubic-bezier(.3,1.5,.5,1); }
.notif__dot { position: relative; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #ff3b30;
  color: #fff; font: 600 14px/1 var(--body); box-shadow: 0 4px 12px rgba(255,59,48,.45); }
.notif__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 16px; border: 2px solid rgba(255,59,48,.55); animation: notif-ring 2.2s ease-out infinite; }
@keyframes notif-ring { 0% { transform: scale(.85); opacity: .9; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.notif__tip { padding: 6px 11px; border-radius: 12px; white-space: nowrap; font: 500 13px/1 var(--body); color: var(--fg);
  background: rgba(255,255,255,.1); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
html[data-theme="light"] .notif__tip { background: rgba(255,255,255,.9); border-color: rgba(17,20,40,.08); box-shadow: 0 8px 22px rgba(31,41,90,.14); }
.notif.is-read { opacity: 0; transform: translate(18px, -50%) scale(.6); }
@media (prefers-reduced-motion: reduce) { .notif__dot::after { animation: none; } }

/* ── v29: a smoother pour. One easing for the trail and its swells, smaller swells, no splash, a gentle settle. */
.lq-trail { animation: lq-draw 2.8s cubic-bezier(.45,.05,.4,1) .45s forwards, lq-retract 1.5s cubic-bezier(.45,.05,.4,1) 3.25s forwards; }
.lq-stream { animation: lq-draw .5s cubic-bezier(.45,.05,.4,1) forwards, lq-thin .7s ease-in-out .9s forwards; }
@keyframes lq-head-in { to { r: 10px; } }
@keyframes lq-head-out { from { r: 10px; } to { r: 0; } }
@keyframes lq-head2-in { to { r: 8px; } }
@keyframes lq-head2-out { from { r: 8px; } to { r: 0; } }
.lq-head { animation: lq-head-in .5s ease-out .45s forwards, lq-head-out .8s ease-in-out 3.1s forwards; }
.lq-head.lq-h2 { animation: lq-head2-in .5s ease-out .7s forwards, lq-head2-out .8s ease-in-out 3.35s forwards; }
@keyframes lq-settle { 0% { transform: scale(1, 1); } 40% { transform: scale(1.015, .96); } 75% { transform: scale(.995, 1.02); } 100% { transform: scale(1, 1); } }
.award svg { width: 26px; height: 46px; } .award__t b { font-size: 17px; } .award__t small { font-size: 13.5px; }
html[data-layout="center"] .win { top: 45.5%; }

/* ── v30: the spill as one continuous pour, in the order it would really happen (seconds from the pour):
   0 to .35 the stream falls onto the title; 0 to 2.4 the flask's level drops while it pours; .3 to 2.3 the front runs
   round the title to the puddle spot; 2.3 to 4.3 the puddle grows from the moment the front arrives; 2.2 to 2.65 the
   stream's tail leaves the mouth and lands; 2.6 to 4.3 that tail runs down the same path into the puddle, so the
   puddle is full exactly when the last of the liquid reaches it; then it settles. */
.is-poured .bk-liq { transform: translateY(13px) !important; transition: transform 2.4s cubic-bezier(.3,0,.6,1); }
.lq-stream { stroke-width: 13; animation: lq-draw .35s cubic-bezier(.5,0,.9,.6) forwards, lq-retract .45s cubic-bezier(.4,0,.6,1) 2.2s forwards; }
.lq-trail { stroke-width: 13; animation: lq-draw 2s cubic-bezier(.4,0,.6,1) .3s forwards, lq-retract 1.7s cubic-bezier(.4,0,.6,1) 2.6s forwards; }
@keyframes lq-head-in { to { r: 9px; } }
@keyframes lq-head-out { from { r: 9px; } to { r: 0; } }
.lq-head { animation: lq-head-in .3s ease-out .3s forwards, lq-head-out .45s ease-in-out 2.3s forwards; }
.lq-pool { animation: lq-pool 2s cubic-bezier(.25,.55,.35,1) 2.3s forwards, lq-settle .9s ease-out 4.3s forwards; }
.lq-pool-shadow { animation: lq-pool 2s cubic-bezier(.25,.55,.35,1) 2.3s forwards; }
.lq-pool-hi { animation: lq-hi .6s ease 3.9s forwards; }

/* ── v30: View all experiments, right under the tab bar: a quiet Apple-style text link with a chevron */
.xall-row { display: flex; justify-content: center; margin-top: 14px; }
.xall { display: inline-flex; align-items: center; gap: 4px; font: 600 15px/1 var(--body); color: var(--accent); text-decoration: none; padding: 6px 4px; }
.xall svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.xall:hover svg { transform: translateX(3px); }
.cl-logo--m { height: 18px; width: auto; }

/* ── v93: the featured experiment cards as small scenes (landing.js): the app window peeks in from the top left at a
   size you can read, one real piece of its UI floats in front, on the light Carbon blue the four share. */
.xcard__shot:has(.xscene) { background: radial-gradient(120% 95% at 18% 0%, rgba(85,231,246,.42), transparent 62%), radial-gradient(90% 80% at 100% 100%, rgba(0,176,194,.3), transparent 70%), linear-gradient(160deg, #10313b, #0a171c); }
html[data-theme="light"] .xcard__shot:has(.xscene) { background: radial-gradient(120% 95% at 18% 0%, rgba(85,231,246,.5), transparent 62%), radial-gradient(90% 80% at 100% 100%, rgba(0,176,194,.22), transparent 70%), linear-gradient(160deg, #e6f9fc, #cdeff5); }
.xscene { position: absolute; inset: 0; }
.xscene__win { position: absolute; left: 22px; top: 24px; width: 600px; border-radius: 12px; overflow: hidden; background: var(--screen);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 24px 50px rgba(0,0,0,.45); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
html[data-theme="light"] .xscene__win { box-shadow: 0 0 0 1px rgba(17,20,40,.1), 0 18px 40px rgba(31,41,90,.18); }
.xscene__bar { display: flex; align-items: center; height: 22px; padding: 0 10px; background: color-mix(in srgb, var(--bg-2) 82%, #fff 6%); border-bottom: 1px solid var(--line); }
html[data-theme="light"] .xscene__bar { background: #eef1f6; }
.xscene__bar .win__dots { gap: 5px; } .xscene__bar .win__dots i { width: 7px; height: 7px; }
.xscene__win img { display: block; width: 100%; height: auto; }
.xscene__ui { position: absolute; right: 14px; bottom: 16px; width: var(--w); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.xscene__ui .ui__in { animation: none; padding: 7px; border-radius: 13px; }
.xscene__ui .ui__in--w { padding: 0; }
.xscene__ui .ui__in img { display: block; width: 100%; height: auto; border-radius: 7px; }
.xcard:hover .xscene__win { transform: translate(-6px, -4px); }
.xcard:hover .xscene__ui { transform: translate(-4px, -8px) scale(1.03); }
@media (max-width: 760px) { .xscene__win { width: 520px; } .xscene__ui { width: calc(var(--w) * .9); } }
@media (prefers-reduced-motion: reduce) { .xscene__win, .xscene__ui { transition: none; } }

/* ── v82: one hero glow for every slide (Jack): a clearly visible, lighter Carbon blue, brighter and bluer than the
   old faint teal. It ignores each slide's own --ga/--gb, so switching slides never changes the colour behind them;
   a soft bloom sits behind the app window too. The featured experiment cards wear the same blue. */
:root { --hero-ga: rgba(108,198,255,.62); --hero-gb: rgba(58,150,255,.5); --hero-gc: rgba(130,212,255,.28); }
html[data-theme="light"] { --hero-ga: rgba(108,190,255,.78); --hero-gb: rgba(72,150,255,.55); --hero-gc: rgba(150,215,255,.5); }
.fslide__glow, html[data-theme="light"] .fslide__glow { opacity: 1;
  background: radial-gradient(48% 52% at 14% 30%, var(--hero-ga), transparent 70%), radial-gradient(46% 52% at 86% 70%, var(--hero-gb), transparent 70%), radial-gradient(60% 45% at 50% 78%, var(--hero-gc), transparent 72%); }
.xcard__shot:has(.xscene) { background: radial-gradient(120% 95% at 18% 0%, var(--hero-ga), transparent 62%), radial-gradient(90% 80% at 100% 100%, var(--hero-gb), transparent 70%), linear-gradient(160deg, #0f2740, #0a1420); }
html[data-theme="light"] .xcard__shot:has(.xscene) { background: radial-gradient(120% 95% at 18% 0%, var(--hero-ga), transparent 62%), radial-gradient(90% 80% at 100% 100%, var(--hero-gb), transparent 70%), linear-gradient(160deg, #eaf5ff, #d4e9fb); }
