/* Subot — subot.cloud
   Layout idea: the Subot identity sheet. Warm off-white, deep indigo ink, lavender highlight;
   the four mascots carry the only other colors, one per role, shown as a team lineup. */
:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #1d1740;
  --muted: #5f5980;
  --line: #e1dcee;
  --field: #3a2a8c;
  --field-ink: #ffffff;
  --stitch: #6a4fd6;
  --hi: #cdbbfa;
  --ok: #147a5e;
  --warn: #9a6200;
  --logo-light: block;
  --logo-dark: none;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151233; --surface: #1f1b47; --ink: #f4f1ff; --muted: #a9a3c9; --line: #322d63;
    --field: #b7a2ff; --field-ink: #17123a; --stitch: #cdbbfa; --hi: #cdbbfa;
    --ok: #5fd0a8; --warn: #f0b84a; --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151233; --surface: #1f1b47; --ink: #f4f1ff; --muted: #a9a3c9; --line: #322d63;
    --field: #b7a2ff; --field-ink: #17123a; --stitch: #cdbbfa; --hi: #cdbbfa;
    --ok: #5fd0a8; --warn: #f0b84a; --logo-light: none; --logo-dark: block; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.logo img { height: 30px; width: auto; }
.logo .lg-light { display: var(--logo-light); }
.logo .lg-dark { display: var(--logo-dark); }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 700 0.78rem var(--font-body); padding: 7px 11px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 34px; height: 34px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; font-size: 15px; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; margin: 0 0 10px; gap: 16px; } .tools { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font: 700 0.97rem var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn.primary { background: var(--field); border-color: var(--field); color: var(--field-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--field); }
.btn.small { padding: 7px 13px; font-size: 0.84rem; }
.btn.ghost { border-color: var(--line); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Sections */
section { padding: 72px 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 720px; }
.eyebrow { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--stitch); }
.stitch { height: 10px; border: 0; margin: 0; background:
  repeating-linear-gradient(115deg, var(--stitch) 0 2px, transparent 2px 12px) top / 100% 5px no-repeat,
  repeating-linear-gradient(65deg, var(--stitch) 0 2px, transparent 2px 12px) bottom / 100% 5px no-repeat; opacity: 0.75; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 20px; }
.hero h1 em { font-style: normal; color: var(--field); box-shadow: inset 0 -0.28em 0 color-mix(in srgb, var(--hi) 55%, transparent); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot.off { background: var(--warn); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Chat */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head strong { font-family: var(--font-display); }
.chat-mode { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.chat-log { padding: 16px; display: flex; flex-direction: column; gap: 10px; height: 320px; overflow-y: auto; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 0.94rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--field); color: var(--field-ink); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.staff { align-self: flex-start; background: color-mix(in srgb, var(--hi) 22%, var(--surface)); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.msg .src { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--muted); }
.msg .src b { color: var(--field); }
.msg .flag { display: inline-block; margin-top: 6px; font-size: 0.76rem; font-weight: 700; color: var(--warn); }
.typing { font-size: 0.85rem; color: var(--muted); align-self: flex-start; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 0.82rem var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--field); color: var(--field); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; }
.chat-note { padding: 0 16px 12px; font-size: 0.76rem; color: var(--muted); }
input, textarea, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; min-height: 90px; }
label { font-weight: 600; font-size: 0.86rem; display: grid; gap: 6px; }

/* Hero mascot standing on the chat card */
.chat-wrap { position: relative; padding-top: 118px; }
.chat-wrap .mascot { position: absolute; top: 0; right: 18px; width: 132px; height: 132px; object-fit: contain; z-index: 1; pointer-events: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--hi); object-fit: cover; object-position: 50% 28%; }

/* Story */
.story figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.story img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; }
.story figcaption { display: grid; gap: 4px; }
.story .n { font: 800 0.8rem var(--font-display); color: var(--stitch); letter-spacing: 0.06em; }
.story p { color: var(--muted); font-size: 0.92rem; }
.quartet { width: 100%; height: auto; max-width: 520px; justify-self: center; }
.panel-head > * { grid-column: 1; }
.panel-head .p-mascot { grid-column: 2; grid-row: 1 / span 4; width: 72px; height: 72px; object-fit: contain; }

/* Brand strip */
.brands { padding: 28px 0; border-block: 1px solid var(--line); background: var(--surface); }
.brands .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.brand b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.brand span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 760px) { .brands .wrap { grid-template-columns: repeat(2, 1fr); } }

/* Grids and cards */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .g4, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 0.95rem; }
.plain { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--ink); padding-top: 16px; }
.plain p { color: var(--muted); font-size: 0.95rem; }

/* Lineup (roles) */
.lineup .card { position: relative; padding-top: 26px; }
.role-img { width: 100%; height: auto; max-width: 190px; aspect-ratio: 1; object-fit: contain; justify-self: center; }
.lineup .card { --role: var(--stitch); border-top: 4px solid var(--role); }
.lineup .card .pos { color: var(--role); }
.lineup .r-s { --role: #6a35e0; } .lineup .r-g { --role: #159a7a; } .lineup .r-c { --role: #e0661f; } .lineup .r-o { --role: #2a6be0; }
.patch { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--field-ink); font: 800 1.5rem var(--font-display); outline: 2px dashed var(--stitch); outline-offset: 3px; margin-bottom: 8px; }
.pos { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stitch); }
.card ul, .tier ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; display: grid; gap: 4px; }

/* Steps */
.steps { counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); font: 800 2.6rem var(--font-display); color: var(--field); line-height: 1; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Industries table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.94rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; font-family: var(--font-display); white-space: nowrap; }

/* Pricing */
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.tier.featured { border: 2px solid var(--field); }
.tier .quota { font: 800 2.2rem var(--font-display); font-variant-numeric: tabular-nums; line-height: 1; }
.tier .quota small { display: block; font: 600 0.84rem var(--font-body); color: var(--muted); margin-top: 6px; }
.tier .price { font-weight: 700; color: var(--field); }

/* Status */
.status-col h3 { display: flex; align-items: center; gap: 8px; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: var(--warn); border-color: var(--warn); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form.card { gap: 14px; }
.result { border: 1px dashed var(--field); border-radius: 12px; padding: 14px; display: grid; gap: 10px; font-size: 0.92rem; }
.result pre { margin: 0; white-space: pre-wrap; font: 0.86rem/1.5 ui-monospace, monospace; color: var(--muted); }
[hidden] { display: none !important; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 0.88rem; color: var(--muted); }
.site-foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-foot a { text-decoration: none; font-weight: 600; }

/* Demo workspace */
.ws-head { padding: 32px 0 8px; display: grid; gap: 12px; }
.ws-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.notice { border-left: 4px solid var(--hi); background: var(--surface); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: var(--muted); max-width: 80ch; }
.ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px 0 64px; align-items: start; }
@media (max-width: 1000px) { .ws { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-width: 0; }
.panel-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; row-gap: 4px; }
.panel-head .pos { display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 16px 18px; display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--bg); }
.item h4 { margin: 0; font: 700 0.98rem var(--font-display); overflow-wrap: anywhere; }
.item p { font-size: 0.88rem; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.item .row { gap: 6px; }
.empty { font-size: 0.9rem; color: var(--muted); padding: 8px 0; }
.panel .chat { border: 0; border-radius: 0 0 18px 18px; box-shadow: none; }
.panel .chat-log { height: 360px; }
.panel-head { grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }

/* ---------- AI facility zones: always dark, with grid, glow and circuit traces ---------- */
.facility, .site-head {
  --bg: #100e2b; --surface: #1b1842; --ink: #f4f1ff; --muted: #aaa4cc; --line: #2f2a5e;
  --field: #b7a2ff; --field-ink: #17123a; --stitch: #cdbbfa; --hi: #cdbbfa; --ok: #5fd0a8; --warn: #f0b84a;
  --logo-light: none; --logo-dark: block; color: var(--ink); color-scheme: dark;
}
.facility {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(120, 90, 255, 0.22), transparent 70%),
    linear-gradient(rgba(190, 172, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(190, 172, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
.facility + .facility { border-top: 1px solid var(--line); }
.fxz { position: relative; isolation: isolate; overflow: hidden; }
.facility > canvas.fx, .fxz > canvas.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: var(--stitch); }
.facility .card, .facility .chat { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(6px); }

/* Lineup: droids hover above their cards, over the facility floor */
.lineup::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -2;
  background: url(img/floor.webp) center bottom / cover no-repeat; opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%); mask-image: linear-gradient(to bottom, transparent, #000 55%); }
.lineup .grid { row-gap: 110px; margin-top: 120px; }
.lineup .card { padding-top: 0; }
.droid { display: grid; justify-items: center; margin-top: -104px; }
.droid img, .mascot, .p-mascot { animation: droid-float var(--dur, 5.2s) ease-in-out var(--delay, 0s) infinite; transform-origin: 50% 88%; will-change: transform; }
.droid img { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--role) 55%, transparent)); cursor: pointer; }
.droid::after { content: ""; width: 54%; height: 12px; margin-top: -4px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--role) 85%, transparent), transparent);
  animation: droid-shadow var(--dur, 5.2s) ease-in-out var(--delay, 0s) infinite; }
.r-s { --dur: 5.2s; } .r-g { --dur: 6.1s; --delay: -1.4s; } .r-c { --dur: 4.7s; --delay: -2.3s; } .r-o { --dur: 5.6s; --delay: -0.7s; }
.droid:hover img { animation: droid-hop 0.7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes droid-float {
  0%, 100% { transform: translateY(0) rotate(-2.2deg); }
  22% { transform: translateY(-7px) rotate(0.6deg) scale(1.01, 0.99); }
  50% { transform: translateY(-15px) rotate(2.4deg); }
  78% { transform: translateY(-6px) rotate(-0.4deg) scale(0.995, 1.01); }
}
@keyframes droid-shadow { 0%, 100% { transform: scaleX(1); opacity: 0.95; } 50% { transform: scaleX(0.66); opacity: 0.45; } }
@keyframes droid-hop {
  0% { transform: translateY(0) scale(1.06, 0.92); } 35% { transform: translateY(-34px) rotate(-6deg) scale(0.96, 1.06); }
  60% { transform: translateY(-30px) rotate(6deg); } 100% { transform: translateY(0) rotate(-2.2deg); }
}

/* Hero droid: waves hello, bobs faster while Subot is writing */
.chat-wrap { padding-top: 150px; }
.chat-wrap .mascot { width: 170px; height: 170px; right: 10px; animation-name: droid-wave; animation-duration: 4.4s; filter: drop-shadow(0 0 26px rgba(150, 110, 255, 0.55)); }
.chat-wrap.busy .mascot { animation-name: droid-think; animation-duration: 0.7s; }
@keyframes droid-wave {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  12% { transform: translateY(-6px) rotate(5deg); } 20% { transform: translateY(-8px) rotate(-4deg); }
  28% { transform: translateY(-8px) rotate(5deg); } 36% { transform: translateY(-9px) rotate(-2deg); }
  60% { transform: translateY(-14px) rotate(2deg); } 82% { transform: translateY(-5px) rotate(-1deg); }
}
@keyframes droid-think { 0%, 100% { transform: translateY(0) rotate(-2deg) scale(1.02, 0.98); } 50% { transform: translateY(-10px) rotate(2deg) scale(0.99, 1.02); } }
.p-mascot { --dur: 4.8s; }


/* Pipeline diagram */
.pipe { display: flex; align-items: stretch; margin-top: 44px; }
.pipe-node { flex: 0 1 220px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; align-content: center; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.pipe-node b { font-family: var(--font-display); }
.pipe-node span { font-size: 0.84rem; color: var(--muted); }
.pipe-node.core { border-color: var(--hi); box-shadow: 0 0 28px rgba(150, 110, 255, 0.35); }
.pipe-link { flex: 1 1 24px; min-width: 20px; height: 2px; align-self: center; background: repeating-linear-gradient(90deg, var(--hi) 0 6px, transparent 6px 14px); animation: flow 0.9s linear infinite; }
@keyframes flow { to { background-position: 14px 0; } }
@media (max-width: 900px) {
  .pipe { flex-direction: column; align-items: stretch; }
  .pipe-node { flex: none; }
  .pipe-link { flex: none; width: 2px; height: 22px; min-width: 0; background: repeating-linear-gradient(180deg, var(--hi) 0 6px, transparent 6px 14px); animation-name: flow-y; }
}
@keyframes flow-y { to { background-position: 0 14px; } }

/* Industries */
.ind-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ind-chips span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 0.88rem; font-weight: 600; }
.ind-chips .more { background: var(--field); color: var(--field-ink); border-color: var(--field); }
tr.any td { background: color-mix(in srgb, var(--hi) 22%, transparent); }

/* Pause control and reduced motion */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-play-state: paused !important; }


/* Laughing party: each droid is a wrapper (floor shadow stays put) with an image that tumbles */
.party { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1672 / 941; justify-self: center; }
.qd { position: absolute; isolation: isolate; }
.qd img { display: block; width: 100%; height: auto; transform-origin: 50% 55%; will-change: transform; }
.qd::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -5%; height: 16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), transparent); }
.q-guide { left: 10.05%; top: 3.93%; width: 23.74%; }
.q-care { left: 34.93%; top: 4.36%; width: 27.69%; }
.q-ops { left: 63.58%; top: 9.56%; width: 28.47%; }
.q-support { left: 31.7%; top: 52.07%; width: 34.93%; }
.q-guide img { animation: rofl-back 6.4s cubic-bezier(.45, .05, .35, 1) -1s infinite; }
.q-care img { animation: rofl-flip 5.2s cubic-bezier(.45, .05, .35, 1) infinite; }
.q-care::after { animation: rofl-shadow 5.2s cubic-bezier(.45, .05, .35, 1) infinite; }
.q-ops img { animation: rofl-roll 7s ease-in-out -2.5s infinite; }
.q-ops::after { animation: rofl-roll-shadow 7s ease-in-out -2.5s infinite; }
.q-support img { animation: rofl-spin 4.6s ease-in-out -0.8s infinite; transform-origin: 50% 50%; }
/* Guide: giggles, tips over backwards onto its head, kicks, rolls the rest of the way round */
@keyframes rofl-back {
  0% { transform: rotate(0deg); } 6% { transform: rotate(5deg) translateY(-2%); } 12% { transform: rotate(-6deg); } 18% { transform: rotate(4deg) translateY(-2%); }
  34% { transform: rotate(-180deg) translateY(-6%); } 39% { transform: rotate(-170deg) translateY(-4%); } 44% { transform: rotate(-190deg) translateY(-6%); } 49% { transform: rotate(-174deg) translateY(-4%); }
  64% { transform: rotate(-360deg) scale(1.06, 0.93); } 70% { transform: rotate(-360deg); }
  78% { transform: rotate(-355deg) translateY(-2%); } 86% { transform: rotate(-365deg); } 94% { transform: rotate(-357deg) translateY(-2%); } 100% { transform: rotate(-360deg); }
}
/* Care: belly laugh, crouch, full somersault in the air, squashy landing */
@keyframes rofl-flip {
  0% { transform: rotate(0deg); } 6% { transform: rotate(-5deg) translateY(-4%); } 12% { transform: rotate(5deg); } 18% { transform: rotate(-4deg) translateY(-4%); }
  26% { transform: translateY(3%) scale(1.1, 0.88); } 42% { transform: translateY(-46%) rotate(180deg) scale(0.96, 1.05); }
  56% { transform: translateY(2%) rotate(360deg) scale(1.1, 0.88); } 62% { transform: rotate(360deg); }
  72% { transform: rotate(355deg) translateY(-4%); } 82% { transform: rotate(365deg); } 92% { transform: rotate(356deg) translateY(-3%); } 100% { transform: rotate(360deg); }
}
@keyframes rofl-shadow { 0%, 26%, 56%, 100% { transform: scale(1); opacity: 1; } 42% { transform: scale(0.55); opacity: 0.45; } }
/* Ops: rolls sideways across the floor like a barrel, wobbles, rolls back */
@keyframes rofl-roll {
  0% { transform: translateX(0) rotate(0deg); } 6% { transform: translateX(0) rotate(-8deg); }
  36% { transform: translateX(46%) rotate(360deg); } 42% { transform: translateX(46%) rotate(350deg) translateY(-3%); } 48% { transform: translateX(46%) rotate(368deg); } 54% { transform: translateX(46%) rotate(356deg) translateY(-3%); }
  88% { transform: translateX(0) rotate(0deg); } 94% { transform: translateX(0) rotate(6deg) translateY(-2%); } 100% { transform: translateX(0) rotate(0deg); }
}
@keyframes rofl-roll-shadow { 0%, 6%, 88%, 100% { transform: translateX(0); } 36%, 54% { transform: translateX(46%); } }
/* Support: kicks on its back, then spins a full turn like a breakdancer */
@keyframes rofl-spin {
  0% { transform: rotate(-10deg); } 8% { transform: rotate(12deg) translateY(-3%); } 16% { transform: rotate(-14deg); } 24% { transform: rotate(10deg) translateY(-3%); }
  58% { transform: rotate(372deg); } 66% { transform: rotate(344deg) translateY(-3%); } 76% { transform: rotate(362deg); } 88% { transform: rotate(346deg) translateY(-2%); } 100% { transform: rotate(350deg); }
}

/* Contact: the data-centre scene sits inside a framed screen in the purple zone */
.stage { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1672 / 941; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(205, 187, 250, 0.16), 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 70px rgba(120, 90, 255, 0.28); }
.stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -1; }
.stage .party { position: absolute; left: 17%; bottom: 5%; width: 66%; max-width: none; }

/* Brain mark */
.brain { width: 30px; height: 28px; fill: none; stroke: var(--hi); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; animation: brain-pulse 2.4s ease-in-out infinite; }
@keyframes brain-pulse { 0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 0 transparent); } 50% { opacity: 1; filter: drop-shadow(0 0 6px var(--hi)); } }

/* Motion in the industries and status area */
.ind-chips span { animation: chip-wave 3.6s ease-in-out infinite; }
.ind-chips span:nth-child(3n+1) { animation-delay: -0.4s; } .ind-chips span:nth-child(3n+2) { animation-delay: -1.5s; } .ind-chips span:nth-child(3n) { animation-delay: -2.6s; }
.ind-chips span:nth-child(even) { animation-duration: 4.3s; }
.ind-chips .more { animation: chip-wave 3.6s ease-in-out infinite, chip-glow 2.2s ease-in-out infinite; }
@keyframes chip-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes chip-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--field) 55%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }
td.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--ok); animation: live-dot 1.8s ease-out infinite; }
tr:nth-child(2) td.live::before { animation-delay: -0.45s; } tr:nth-child(3) td.live::before { animation-delay: -0.9s; } tr:nth-child(4) td.live::before { animation-delay: -1.35s; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
tbody tr { transition: background 0.2s; } tbody tr:hover { background: color-mix(in srgb, var(--hi) 14%, transparent); }
tr.any td { background: none; }
tr.any { background: linear-gradient(100deg, transparent 35%, color-mix(in srgb, var(--surface) 70%, transparent) 50%, transparent 65%) 0 0 / 250% 100% no-repeat, color-mix(in srgb, var(--hi) 22%, transparent); animation: row-sweep 3.2s linear infinite; }
@keyframes row-sweep { 0% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.status-col { transition: transform 0.25s, box-shadow 0.25s; }
.status-col:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--ink) 50%, transparent); }
.tag.ok { animation: tag-pulse 1.8s ease-out infinite; } .tag.warn { animation: tag-pulse 2.8s ease-out infinite; }
@keyframes tag-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.status-col li { animation: li-blink 4s ease-in-out infinite; } .status-col li:nth-child(2) { animation-delay: -1.3s; } .status-col li:nth-child(3) { animation-delay: -2.6s; }
@keyframes li-blink { 0%, 100% { color: var(--muted); } 50% { color: var(--ink); } }

/* Long-form pages */
.prose { max-width: 760px; padding-top: 48px; padding-bottom: 72px; display: grid; gap: 14px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--field); font-weight: 600; }
