/* Gateway Communications — Black & Lime, second cut.
   One idea runs the page: things arrive from every direction and are
   organised at one point (the mark). Lime has three jobs: the mark, the one
   primary action, and "alive" states. The hairline is the only structure;
   the vignette frame is the only bordered box. */

:root {
  --bg: #000000;
  --bg-lift: #0A0A0A;
  --panel: #101010;
  --panel-lift: #181818;
  --structure: #2B2B2B;
  --hairline: rgba(255, 255, 255, .08);
  --edge: rgba(255, 255, 255, .16);
  --ink: #F5F5F5;
  --ink-soft: #D6D6D6;
  --ink-mute: #8C8C8C;
  --lime: #BBD64A;
  --lime-soft: rgba(187, 214, 74, .12);
  --orange: #FAA33B;
  /* the recreated-product surfaces: one step lighter than the page, so a
     demo reads as an application window sitting on the site */
  --app-ground: #08080A;
  --app-panel: #0E0E10;
  --app-lift: #16161A;
  --app-line: rgba(255, 255, 255, .075);
  --app-line-hi: rgba(255, 255, 255, .14);
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", monospace;
  --ease-gate: cubic-bezier(.16, .84, .24, 1);
  --t-arrive: 600ms;
  --mark-img: url("assets/mark.svg");
  /* the sharp-tipped chevron from the mark, pointing right — the site's one glyph */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M0 32.6 11.8 4.2 88.2 35.9 76.4 64.3ZM88.2 35.7 100 64.1 23.6 95.8 11.8 67.4Z'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: #000; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--structure); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the chevron glyph as an inline element: <i class="chev"></i> */
.chev {
  display: inline-block; width: .62em; height: .62em; vertical-align: -.02em;
  background: currentColor;
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; display: block; fill: var(--lime); flex: none; }
.brand-word { display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; line-height: 1.02; letter-spacing: -0.02em; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nav nav a:not(.btn) { color: var(--ink-soft); font-size: .95rem; text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav .wrap { gap: 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3;
    min-width: 44px; height: 44px; margin-right: -6px; padding: 0 6px; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  }
  .nav-toggle span:first-child::before { content: "Menu"; }
  .nav.open .nav-toggle span:first-child::before { content: "Close"; }
  .nav-toggle span:last-child { display: none; }
  .nav nav { position: static; margin-left: auto; }
  .nav nav a:not(.btn) {
    display: none; position: absolute; left: 0; right: 0; height: 57px; align-items: center;
    padding: 0 20px; font-size: 1.05rem; border-top: 1px solid var(--hairline);
    background: rgba(0, 0, 0, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav.open nav a:not(.btn) { display: flex; }
  .nav.open nav a:nth-child(1) { top: 68px; }
  .nav.open nav a:nth-child(2) { top: 125px; }
  .nav.open nav a:nth-child(3) { top: 182px; }
  .nav.open nav a:nth-child(4) { top: 239px; }
  .nav.open nav a:nth-child(5) { top: 296px; }
  .nav.open { background: rgba(0, 0, 0, .92); }
}
@media (max-width: 420px) { .brand-word { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: 11px 22px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--lime); color: #000; }
.btn-primary:hover { background: #CDE566; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--structure); }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn .chev { width: .55em; height: .55em; transition: transform .2s var(--ease-gate); }
.btn:hover .chev { transform: translateX(3px); }
.nav .btn { padding: 10px 16px; font-size: .9rem; }

/* ---------- hero: the gate ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center; padding: 68px 0 250px;
  background: #000;
}
/* the gate opens at the centre and the copy takes its place there */
.hero .wrap { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero-copy { display: inline-block; max-width: 780px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600; letter-spacing: -0.032em; line-height: 1.04;
  color: var(--ink); max-width: 20ch; margin: 0 auto; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #bbd64a 0%, #faa33b 38%, #ec6337 70%, #d5448f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 18px auto 0; max-width: 46ch; font-size: 1.06rem; color: var(--ink-soft); }
.hero .cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero .btn-ghost { background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* media stack: canvas -> mesh -> scrim, all full-bleed */
.hero-media { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-media > * { position: absolute; inset: 0; }
.hero-mesh, .hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-field { inset: 0; }
.hero-media canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
/* the mesh grid is off over the dither field (double pattern); delete `display: none` to bring it back */
.hero-mesh {
  display: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 50%, #000 30%, transparent 100%);
}
/* legibility: darken the copy side and fade to the page ground at the bottom */
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 22%, transparent 62%, #000 100%);
}

/* The sequence. --gate is the mark's on-screen size; the white overlay and
   the mask share it so the footage lands exactly inside the blades.
   gate-in      black; white blades arrive along their own axes, two waves
   gate-flicker the white flickers and drops out; the masked footage is beneath
   gate-hold    footage through the blades, still
   gate-open    the mask scales out from the centre with a slight turn; the
                copy rises onto the full-bleed footage
   gate-done    finished state (also the no-JS / reduced-motion / repeat state) */
.hero { --gate: 38vmin; --focus-x: 50%; --focus-y: 50%; }
/* The loading moment: no scrolling and no menu until the gate starts to open. */
html.gate-lock { overflow: hidden; }
html.gate-lock .nav { opacity: 0; pointer-events: none; }
html.gate-reveal .nav { opacity: 1; transition: opacity 1s ease 1.2s; }
/* the wall rises into the bottom of the hero, so it would sit under the gate
   while the blades are still arriving. It waits with the nav. */
html.gate-lock .wall { opacity: 0; pointer-events: none; }
html.gate-reveal .wall { opacity: 1; transition: opacity 1s ease 1.2s; }
.hero-blades {
  position: absolute; z-index: 1; left: var(--focus-x); top: var(--focus-y); width: var(--gate); height: var(--gate);
  transform: translate(-50%, -50%); pointer-events: none; display: none;
}
.hero-blades svg { display: block; width: 100%; height: 100%; overflow: visible; fill: #fff; }
.hero-blades path { transform-box: view-box; }
.hero.gate-in .hero-blades, .hero.gate-flicker .hero-blades { display: block; }
.hero.gate-in .hero-blades path {
  opacity: 0;
  animation: blade-in 1.1s var(--ease-gate) both;
  animation-delay: calc(140ms + var(--d));
}
@keyframes blade-in {
  from { transform: translate(var(--ox), var(--oy)); opacity: 0; }
  40% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
.hero.gate-flicker .hero-blades { animation: flicker 1.5s ease-in-out forwards; }
@keyframes flicker {
  0% { opacity: 1; } 18% { opacity: .72; } 30% { opacity: .96; } 46% { opacity: .55; }
  58% { opacity: .88; } 72% { opacity: .42; } 84% { opacity: .62; } 100% { opacity: 0; }
}

.hero.gate-in .hero-media { opacity: 0; }
.hero.gate-flicker .hero-media { opacity: 1; transition: opacity .35s ease; }

/* The cover: black everywhere except through the blades of the mark. It is
   oversized so it still hides everything while it turns, and it carries the
   whole reveal: the blade windows zoom outward and spin, then the cover fades. */
.hero-cover {
  position: absolute; inset: -60%; z-index: 1; background: #000; display: none;
  -webkit-mask-image: url("assets/mark.svg"), linear-gradient(#000 0 0);
  mask-image: url("assets/mark.svg"), linear-gradient(#000 0 0);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center, 0 0; mask-position: center, 0 0;
  -webkit-mask-size: var(--gate) var(--gate), 100% 100%; mask-size: var(--gate) var(--gate), 100% 100%;
  -webkit-mask-composite: xor; mask-composite: exclude;
  transform: rotate(0deg) scale(1); transform-origin: 50% 50%;
}
.hero.gate-in .hero-cover, .hero.gate-flicker .hero-cover, .hero.gate-hold .hero-cover, .hero.gate-open .hero-cover { display: block; }
.hero.gate-open .hero-cover {
  transform: rotate(120deg) scale(9);
  opacity: 0;
  transition: transform 3.4s cubic-bezier(.45, 0, .2, 1), opacity 1.4s ease 1.4s;
}
.hero.gate-in .hero-scrim, .hero.gate-flicker .hero-scrim, .hero.gate-hold .hero-scrim,
.hero.gate-in .hero-mesh, .hero.gate-flicker .hero-mesh, .hero.gate-hold .hero-mesh { opacity: 0; }
.hero.gate-open .hero-scrim, .hero.gate-open .hero-mesh { opacity: 1; transition: opacity 1.4s ease .9s; }
.hero.gate-in .hero-copy, .hero.gate-flicker .hero-copy, .hero.gate-hold .hero-copy { opacity: 0; }
.hero.gate-open .hero-copy { opacity: 1; transition: opacity 1s ease 1.1s; }
.hero.gate-open .hero-copy > * { animation: rise 1.1s var(--ease-gate) both; animation-delay: calc(1.1s + var(--i, 0) * 90ms); }
.hero.gate-open .hero-copy > :nth-child(2) { --i: 1; }
.hero.gate-open .hero-copy > :nth-child(3) { --i: 2; }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: 100svh; padding: 68px 0 150px; }
  .hero h1 { max-width: 13ch; font-size: clamp(2.25rem, 8.6vw, 3.2rem); }
  .hero h1 .grad {
  background: linear-gradient(92deg, #bbd64a 0%, #faa33b 38%, #ec6337 70%, #d5448f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { max-width: none; font-size: 1.02rem; margin-top: 18px; }
  .hero .cta-row { margin-top: 28px; }
  .hero .cta-row .btn { padding: 12px 18px; }
  .hero { --gate: 54vmin; }
  .hero-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 20%, transparent 55%, #000 100%); }
}

/* ---------- section scaffolding ---------- */
section { border-top: 1px solid var(--hairline); padding: 104px 0; scroll-margin-top: 72px; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.kicker { font-size: 13.5px; font-weight: 500; color: var(--ink-mute); display: flex; align-items: center; gap: 9px; }
.kicker .chev { color: var(--lime); width: 9px; height: 9px; }
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.12;
  color: var(--ink); text-wrap: balance; margin-top: 12px;
}
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.lead { margin-top: 18px; max-width: 58ch; font-size: 1.06rem; }
.lead + .lead { margin-top: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* lists with the chevron as bullet */
.chev-list { list-style: none; }
.chev-list li { position: relative; padding-left: 20px; }
.chev-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); opacity: .9;
}

/* ---------- built and running ---------- */
.built { padding: 52px 0 56px; }
.ledger { list-style: none; margin-top: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; }
.ledger li { border-top: 1px solid var(--hairline); padding: 16px 0 6px; font-size: .92rem; line-height: 1.5; }
.ledger b, .ledger a { display: block; color: var(--ink); font-weight: 500; text-decoration: none; }
.ledger a:hover { color: var(--lime); }
.ledger a .chev { width: .5em; height: .5em; margin-left: 4px; opacity: .7; }
.ledger span { display: block; color: var(--ink-mute); margin-top: 3px; font-size: .88rem; }
@media (max-width: 900px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .ledger { grid-template-columns: 1fr; gap: 0; } .ledger li { padding: 13px 0; } }

/* ---------- section layout: a head band, a demo, then the points ----------
   Every content section is built the same way and each part is sized for the
   viewport it is on: a two-column head band (title left, lead right) that
   stacks on small screens, the demo at full measure below it, and the
   supporting points as a row of short columns under that. Nothing tall ever
   runs down the side of something short. */
.sec-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 64px; align-items: end; }
.sec-head > .kicker { grid-column: 1 / -1; }
.sec-head h2 { margin-top: 14px; max-width: 14ch; }
.sec-head .lead { margin-top: 0; padding-bottom: 5px; max-width: 50ch; }
.sec-note { grid-column: 1; margin-top: 16px; font-size: .95rem; color: var(--ink-mute); max-width: 46ch; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head h2 { max-width: 17ch; }
  .sec-head .lead { margin-top: 18px; padding-bottom: 0; }
  .sec-note { margin-top: 14px; max-width: none; }
}

.demo { margin-top: 44px; }
.demo figcaption { margin-top: 15px; font-size: .92rem; color: var(--ink-mute); max-width: 70ch; line-height: 1.55; }
.demo figcaption b { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 700px) { .demo { margin-top: 32px; } .demo figcaption { font-size: .88rem; margin-top: 13px; } }

.points { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
.points li { border-top: 1px solid var(--hairline); padding: 18px 0 0; }
.points h3 { font-size: 1rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.points p { margin-top: 6px; font-size: .92rem; line-height: 1.55; color: var(--ink-mute); }
@media (max-width: 980px) { .points { grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 40px; } }
@media (max-width: 600px) {
  .points { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .points li { padding: 15px 0 16px; }
  .points p { margin-top: 3px; }
}
.section-cta { margin-top: 36px; }

.plast { background: radial-gradient(120% 76% at 50% 0%, rgba(255, 255, 255, .022), transparent 62%); }

/* ---------- Plasticity: what AI makes possible ----------
   The one brand moment on the page outside the hero, and the only place the
   site draws anything: four growth rings with a lime arc travelling each one.
   The outer ring is the round being run now; the inner ones are the rounds
   already laid down. No box, no chrome, just the hairline and the lime. */
.plast-body {
  margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px 56px; align-items: center;
}
.plast-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: var(--lime); border: 1px solid rgba(187, 214, 74, .35); border-radius: 999px; padding: 3px 11px;
}
.plast-name h3 {
  margin-top: 16px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.02; color: var(--ink);
}
.plast-def { margin-top: 13px; font-size: 1.08rem; line-height: 1.45; color: var(--ink); max-width: 30ch; }
.plast-say { margin-top: 18px; font-size: 1rem; line-height: 1.62; color: var(--ink-soft); max-width: 58ch; }

/* the emblem */
.rings { position: relative; justify-self: center; width: 100%; max-width: 300px; }
.rings::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, rgba(187, 214, 74, .085), transparent 62%);
}
.rings svg { position: relative; display: block; width: 100%; overflow: visible; }
.ring-track circle { stroke: rgba(255, 255, 255, .1); }
.ring-track circle:last-child { stroke: rgba(255, 255, 255, .18); }
.ring-live circle { stroke: var(--lime); }
/* each arc starts at its own angle, so the still state is a composed
   scatter rather than four arcs stacked on the same spoke */
.ring-live .r1 { stroke-dasharray: 135 406; stroke-dashoffset: 0; opacity: 1; }
.ring-live .r2 { stroke-dasharray: 104 311; stroke-dashoffset: -140; opacity: .5; }
.ring-live .r3 { stroke-dasharray: 72 217; stroke-dashoffset: -190; opacity: .3; }
.ring-live .r4 { stroke-dasharray: 41 123; stroke-dashoffset: -60; opacity: .18; }
.ring-core { fill: var(--lime); }
.rings figcaption { position: relative; margin-top: 16px; text-align: center; font-size: .86rem; color: var(--ink-mute); }
/* each ring runs at its own pace: the outer one is this round, the inner ones
   have settled. Only once the section has been reached. */
@media (prefers-reduced-motion: no-preference) {
  .in .ring-live .r1 { animation: ring1 9s linear infinite; }
  .in .ring-live .r2 { animation: ring2 13s linear infinite; }
  .in .ring-live .r3 { animation: ring3 17s linear infinite; }
  .in .ring-live .r4 { animation: ring4 23s linear infinite; }
  /* each ends exactly one circumference on from where it started, so the
     loop closes without a jump */
  @keyframes ring1 { to { stroke-dashoffset: -540; } }
  @keyframes ring2 { to { stroke-dashoffset: -555; } }
  @keyframes ring3 { to { stroke-dashoffset: -479; } }
  @keyframes ring4 { to { stroke-dashoffset: -223; } }
}

.cycle { margin-top: 52px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
.cycle li { position: relative; border-top: 1px solid var(--hairline); padding: 15px 0 0; }
.cycle .fill { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--lime); }
.cycle .n { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.cycle b { display: block; margin-top: 8px; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.cycle span:last-child { display: block; margin-top: 5px; font-size: .88rem; line-height: 1.5; color: var(--ink-mute); }
/* the line runs the four steps in turn, then the round starts again */
@media (prefers-reduced-motion: no-preference) {
  .in .cycle .fill { animation: cycle-run 9s linear infinite; animation-delay: calc(var(--i) * 2.25s); }
  @keyframes cycle-run {
    0% { width: 0; opacity: 1; }
    25%, 88% { width: 100%; opacity: 1; }
    97%, 100% { width: 100%; opacity: 0; }
  }
}
.cycle-note { margin-top: 26px; font-size: .92rem; color: var(--ink-mute); max-width: 56ch; }
.cycle-note a { color: var(--ink); text-decoration: none; }
.cycle-note a:hover { color: var(--lime); }

@media (max-width: 900px) {
  .plast-body { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .plast-def, .plast-say { max-width: none; }
  .rings { max-width: 232px; }
  .cycle { margin-top: 42px; }
}
@media (max-width: 620px) {
  .cycle { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .cycle li { padding-bottom: 4px; }
  .cycle li:nth-child(n+3) { margin-top: 22px; }
  .cycle-note { margin-top: 22px; }
}

/* ---------- the demo frame: a recreated product UI ----------
   One frame does every demo: a chrome bar, an icon rail, a toolbar and a
   canvas. The chrome is what makes a recreation read as software rather than
   as a diagram. The brand rules still hold inside it: lime for live and done,
   orange for "needs a person", grey for everything else. */
.app {
  position: relative;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0D0D0F, #08080A 55%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 2px 6px rgba(0, 0, 0, .5), 0 44px 90px -50px #000;
}

/* chrome bar */
.app-top {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  border-bottom: 1px solid var(--app-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0));
}
.app-logo {
  width: 21px; height: 21px; border-radius: 6px; flex: none; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 600; color: #0A0A0A; background: linear-gradient(160deg, #D2E484, var(--lime));
}
.app-name { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.app-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; min-width: 0; }
.app-crumb .chev { width: 7px; height: 7px; color: var(--structure); flex: none; }
.app-crumb span { overflow: hidden; text-overflow: ellipsis; }
.app-tag {
  margin-left: auto; flex: none; font-size: 11px; color: var(--ink-mute);
  border: 1px solid var(--app-line); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}

/* rail + main */
.app-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); }
.app-rail {
  border-right: 1px solid var(--app-line); background: rgba(255, 255, 255, .012);
  padding: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.rail { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-mute); flex: none; }
.rail svg { width: 15px; height: 15px; display: block; fill: currentColor; }
.rail.on { background: var(--lime-soft); color: var(--lime); }
.rail-gap { flex: 1; }
.app-main { display: flex; flex-direction: column; min-width: 0; }

/* toolbar */
.app-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--app-line); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .035); flex: none; }
.seg span { font-size: 11.5px; font-weight: 500; color: var(--ink-mute); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.seg span.on { background: #1A1B1F; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
.app-meta { margin-left: auto; font-size: 11.5px; color: var(--ink-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-meta b { font-family: var(--mono); font-weight: 400; color: var(--ink-soft); }

/* faces */
.face {
  width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 9px; font-weight: 600; letter-spacing: .01em; color: var(--ink-soft);
  background: #1E1F24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.face.bot { background: var(--lime-soft); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(187, 214, 74, .28); }

/* labels */
.lbl {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 10.5px; font-weight: 500; color: var(--ink-mute);
  border: 1px solid var(--app-line); border-radius: 999px; padding: 2px 8px 2px 6px; white-space: nowrap;
  transition: color .4s ease, border-color .4s ease;
}
.lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); flex: none; transition: background .4s ease; }
.lbl.live { color: var(--lime); border-color: rgba(187, 214, 74, .3); }
.lbl.live i { background: var(--lime); }
.lbl.person { color: var(--orange); border-color: rgba(250, 163, 59, .35); }
.lbl.person i { background: var(--orange); }

/* the canvas and its columns */
.app-canvas { position: relative; flex: 1; min-width: 0; }
.fb-canvas { min-height: 528px; }
.pane { min-height: 302px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 100%; }
.col { padding: 12px 12px 16px; min-width: 0; }
.col + .col { border-left: 1px solid var(--app-line); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 11px; }
.col-head .k { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-mute); flex: none; }
.col-head .k.live { border-color: var(--lime); }
.col-head .k.done { border-color: var(--lime); background: var(--lime); }
.col-head .nm { font-size: 12px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-head .ct { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.col-list { display: flex; flex-direction: column; gap: 7px; }
.col-more { margin-top: 11px; padding-left: 2px; font-size: 11px; color: var(--ink-mute); }

/* a card */
.tick {
  border: 1px solid var(--app-line); border-radius: 9px; background: var(--app-panel); padding: 9px 10px 10px;
  transition: opacity .5s ease, transform .5s var(--ease-gate), border-color .35s ease, background .35s ease;
}
.tick.enter { opacity: 0; transform: translateY(9px); }
.tick.hot { border-color: rgba(187, 214, 74, .28); background: rgba(187, 214, 74, .045); }
.tick-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tick .id { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); letter-spacing: .02em; }
.tick .n { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.tick .n.flash { color: var(--lime); }
.tick .face { margin-left: auto; width: 18px; height: 18px; font-size: 8px; }
.tick .t { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.tick .q { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.42; color: var(--ink-soft); }
.tick .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.tick.hot .t { color: var(--lime); }
.meter { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .07); margin-top: 9px; overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--ink-mute); border-radius: 2px; transition: width .6s var(--ease-gate), background .4s ease; }
.tick.hot .meter i { background: var(--lime); }

/* a checklist of what the system did */
.steps { list-style: none; margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.steps li { font-size: 11.5px; line-height: 1.4; color: var(--ink-mute); display: flex; align-items: flex-start; gap: 8px; transition: color .3s ease; }
.steps li::before {
  content: ""; width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--structure); flex: none;
  transition: background .3s ease, border-color .3s ease;
}
.steps li.done { color: var(--ink-soft); }
.steps li.done::before { background: var(--lime); border-color: var(--lime); box-shadow: inset 0 0 0 3px var(--app-panel); }
.col-empty { font-size: 11.5px; color: var(--ink-mute); border: 1px dashed var(--structure); border-radius: 9px; padding: 14px 12px; text-align: center; line-height: 1.45; }

/* the floating source panel: a conversation over the board */
.app-over {
  position: absolute; left: 14px; bottom: 14px; width: clamp(238px, 30%, 300px); z-index: 3;
  border: 1px solid var(--app-line-hi); border-radius: 12px; overflow: hidden;
  background: rgba(13, 13, 15, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, .95);
}
.over-top { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--app-line); }
.over-top .face { width: 18px; height: 18px; font-size: 8px; }
.over-top b { font-size: 12px; font-weight: 600; color: var(--ink); }
.over-top .ch { font-size: 11.5px; color: var(--ink-mute); }
.over-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 10px; min-height: 116px; justify-content: flex-end; }
.over-msg { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; transition: opacity var(--t-arrive) var(--ease-gate), transform var(--t-arrive) var(--ease-gate); }
.over-msg.enter { opacity: 0; transform: translateY(8px); }
.over-msg .face { width: 20px; height: 20px; font-size: 8px; }
.over-msg .who { font-size: 10.5px; color: var(--ink-mute); }
.over-msg .who b { color: var(--ink-soft); font-weight: 500; }
.over-msg .say { font-size: 12px; line-height: 1.42; color: var(--ink-soft); margin-top: 1px; }
.over-foot {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-top: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .022); font-size: 11.5px; color: var(--ink-mute);
}
.mention { font-size: 11px; font-weight: 500; color: var(--lime); background: var(--lime-soft); border-radius: 5px; padding: 2px 6px; }

/* a list with a detail panel: the workflow queue and the lead pipeline */
.pane { display: grid; grid-template-columns: minmax(0, 1fr) 304px; height: 100%; }
.pane > .side { border-left: 1px solid var(--app-line); display: flex; flex-direction: column; min-width: 0; }
.rows { display: flex; flex-direction: column; min-width: 0; }
.row-h, .qrow { display: grid; align-items: center; gap: 14px; padding: 0 14px; min-width: 0; }
.row-h { height: 32px; font-size: 10.5px; font-weight: 500; color: var(--ink-mute); border-bottom: 1px solid var(--app-line); }
.qrow {
  padding-top: 11px; padding-bottom: 11px; font-size: 12.5px; border-bottom: 1px solid var(--app-line);
  transition: opacity var(--t-arrive) var(--ease-gate), transform var(--t-arrive) var(--ease-gate), background .35s ease;
}
.qrow.enter { opacity: 0; transform: translateY(8px); }
.qrow.on { background: rgba(255, 255, 255, .032); box-shadow: inset 2px 0 0 var(--lime); }
.qrow .id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); }
.qrow .t { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .sub { color: var(--ink-mute); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .lbl, .qrow .face { justify-self: start; }
.wf-grid { grid-template-columns: 62px minmax(0, 1fr) 116px 112px; }
.lf-grid { grid-template-columns: 24px minmax(0, 1fr) 132px 92px; }

/* the detail panel */
.side-head { padding: 13px 14px 12px; border-bottom: 1px solid var(--app-line); }
.side-head .id { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); }
.side-head .t { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.side-head .foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.side-body { padding: 13px 14px; flex: 1; min-height: 0; }
.side-body .lb { font-size: 10.5px; font-weight: 500; color: var(--ink-mute); margin-bottom: 9px; }
.side-foot { padding: 11px 14px; border-top: 1px solid var(--app-line); display: flex; align-items: center; gap: 9px; min-height: 54px; }
.tap {
  font-family: inherit; font-size: 11.5px; font-weight: 500; border: 0; border-radius: 7px; padding: 6px 12px;
  background: var(--lime); color: #0A0A0A; transition: transform .18s var(--ease-gate), box-shadow .18s ease, opacity .3s ease;
}
.tap.ghost { background: transparent; color: var(--ink-mute); box-shadow: inset 0 0 0 1px var(--app-line); }
.tap.tapped { transform: scale(.94); box-shadow: 0 0 0 4px rgba(187, 214, 74, .18); }
.side-note { font-size: 11.5px; color: var(--lime); display: flex; align-items: center; gap: 7px; }
.side-note .chev { width: 8px; height: 8px; }

/* a stat header and a thread, for the pipeline panel */
.stat { display: flex; align-items: flex-end; gap: 16px; padding: 13px 14px; border-bottom: 1px solid var(--app-line); }
.stat .num { font-family: var(--mono); font-size: 1.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .3s ease; display: block; }
.stat .num.flash { color: var(--lime); }
.stat .lb2 { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-mute); }
.spark { display: flex; gap: 4px; align-items: flex-end; height: 40px; flex: 1; max-width: 118px; margin-left: auto; }
.spark i { flex: 1; background: var(--structure); border-radius: 2px 2px 0 0; height: calc(var(--h) * 100%); transition: height .6s var(--ease-gate); }
.spark i:last-child { background: var(--lime); }
.side-lb { padding: 13px 14px 0; font-size: 10.5px; font-weight: 500; color: var(--ink-mute); }
.thread { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; flex: 1; min-height: 128px; overflow: hidden; }
.msg { max-width: 90%; font-size: 12px; line-height: 1.45; padding: 8px 11px; border-radius: 11px; transition: opacity var(--t-arrive) var(--ease-gate), transform var(--t-arrive) var(--ease-gate); }
.msg.in { background: var(--app-lift); color: var(--ink-soft); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg.out { background: var(--lime-soft); color: var(--ink-soft); border-bottom-right-radius: 3px; align-self: flex-end; }
.msg.in.enter { opacity: 0; transform: translateX(-14px); }
.msg.out.enter { opacity: 0; transform: translateX(14px); }

/* ---------- the demo frame on small screens ----------
   The rail goes, the columns become a snap carousel the demo drives itself,
   and the detail panel drops under the list instead of beside it. */
@media (max-width: 900px) {
  .app-body { grid-template-columns: 1fr; }
  .app-rail { display: none; }
  .pane { grid-template-columns: minmax(0, 1fr) 262px; }
  .wf-grid { grid-template-columns: 58px minmax(0, 1fr) 104px 108px; }
  .lf-grid { grid-template-columns: 24px minmax(0, 1fr) 112px 88px; }
}
@media (max-width: 700px) {
  .app { border-radius: 12px; }
  .app-top { height: 42px; padding: 0 12px; }
  .app-crumb { display: none; }
  /* the toolbar keeps everything on a phone: the segmented control scrolls
     inside itself rather than pushing the count off the edge */
  .app-bar { padding: 0 12px; gap: 10px; }
  .seg { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg span { flex: none; }
  .app-meta { flex: none; }
  .app-canvas { display: flex; flex-direction: column; }
  .app-canvas::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34px; pointer-events: none; z-index: 2;
    background: linear-gradient(90deg, rgba(8, 8, 10, 0), #08080A);
  }
  .cols {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
  }
  .cols::-webkit-scrollbar { display: none; }
  .col { flex: 0 0 86%; scroll-snap-align: center; }
  .pane { display: flex; flex-direction: column; }
  .pane > .side { border-left: 0; border-top: 1px solid var(--app-line); }
  .app-over {
    position: static; order: -1; width: auto; border: 0; border-bottom: 1px solid var(--app-line);
    border-radius: 0; box-shadow: none; background: rgba(255, 255, 255, .02);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .over-body { min-height: 0; }
  .row-h { display: none; }
  /* the board no longer has to make room for a floating panel */
  .fb-canvas { min-height: 0; }
  .col { padding-bottom: 14px; }
  /* a phone gets a two-line list row instead of four squeezed columns */
  .qrow.wf-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; }
  .qrow.wf-grid .id { display: none; }
  .qrow.wf-grid .t { grid-column: 1; grid-row: 1; }
  .qrow.wf-grid .sub { grid-column: 1; grid-row: 2; }
  .qrow.wf-grid .lbl { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .qrow.lf-grid { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 11px; }
  .qrow.lf-grid .face { grid-row: 1 / 3; align-self: center; }
  .qrow.lf-grid .t { grid-column: 2; grid-row: 1; }
  .qrow.lf-grid .sub { grid-column: 2; grid-row: 2; }
  .qrow.lf-grid .lbl { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* ---------- how we work: four steps, one at a time ----------
   Tabs across the top carry the numbers and the names; one description and
   one stage are on screen at a time. On a phone the tabs become a snap row
   and the stage takes a swipe. */
.pr { margin-top: 38px; }
.pr-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pr-tab {
  position: relative; text-align: left; border: 0; border-top: 1px solid var(--hairline);
  background: none; color: inherit; font: inherit; cursor: pointer;
  padding: 16px 24px 17px 0; display: flex; align-items: baseline; gap: 10px;
}
.pr-tab .n { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); transition: color .3s ease; }
.pr-tab .t { font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-mute); transition: color .3s ease; white-space: nowrap; }
.pr-tab .prog { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--lime); }
.pr-tab:hover .t { color: var(--ink-soft); }
.pr.manual .pr-tab .prog { animation: none !important; }
.pr.manual .pr-tab.on .prog { width: 100%; }
.pr-tab.on .n { color: var(--lime); }
.pr-tab.on .t { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .pr-tab.on .prog { animation: prog var(--pr-dur, 6s) linear forwards; }
  @keyframes prog { to { width: 100%; } }
}
@media (prefers-reduced-motion: reduce) { .pr-tab.on .prog { width: 100%; } }
.pr-ds { position: relative; min-height: 4.4em; }
.pr-d[hidden] { display: none; }
.pr-say { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.pr-d { max-width: 62ch; font-size: 1.02rem; color: var(--ink-soft); transition: opacity .3s ease; }
.pr-d.out { opacity: 0; }
.pr-nav { display: flex; gap: 8px; }
.pr-nav button {
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--structure); color: var(--ink-mute);
  transition: border-color .2s ease, color .2s ease;
}
.pr-nav button:hover { border-color: var(--ink-mute); color: var(--ink); }
.pr-nav .chev { width: 10px; height: 10px; }
.pr-nav .prev .chev { transform: rotate(180deg); }
.pr-stage { margin-top: 26px; position: relative; min-height: 332px; touch-action: pan-y; }
.pr-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.pr-scene.on { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 900px) {
  .pr-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; margin: 0 -32px; padding: 0 32px; }
  .pr-tabs::-webkit-scrollbar { display: none; }
  .pr-tab { flex: none; scroll-snap-align: start; padding: 14px 26px 15px 0; }
  .pr-say { grid-template-columns: 1fr; gap: 18px; }
  .pr-stage { min-height: 380px; }
}
@media (max-width: 600px) { .pr-tabs { margin: 0 -20px; padding: 0 20px; } .pr-tab .t { font-size: .98rem; } }

/* the four scenes inside the frame */
.talk { padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.talk .b { max-width: 78%; font-size: 12.5px; line-height: 1.45; padding: 9px 12px; border-radius: 12px; background: var(--app-lift); color: var(--ink-soft); align-self: flex-start; border-bottom-left-radius: 3px; transition: opacity var(--t-arrive) var(--ease-gate), transform var(--t-arrive) var(--ease-gate); }
.talk .b.us { align-self: flex-end; background: var(--lime-soft); border-bottom-left-radius: 12px; border-bottom-right-radius: 3px; }
.talk .b.enter { opacity: 0; transform: translateX(-12px); }
.talk .b.us.enter { transform: translateX(12px); }
.talk .note { margin-top: 8px; border-top: 1px solid var(--app-line); padding-top: 13px; font-size: 12px; color: var(--ink-mute); }
.talk .note li { padding: 3px 0 3px 18px; transition: opacity .4s ease; }
.talk .note li.enter { opacity: 0; }
.wire { padding: 18px; display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.wire .col2 { display: flex; flex-direction: column; gap: 12px; }
.wire .box { border: 1px dashed var(--structure); border-radius: 8px; min-height: 44px; position: relative; transition: opacity .4s ease, background .3s ease, border-color .3s ease; }
.wire .box.tall { flex: 1; min-height: 150px; }
.wire .box::after { content: attr(data-l); position: absolute; left: 10px; top: 8px; font-size: 11.5px; color: var(--ink-mute); }
.wire .box.enter { opacity: 0; }
.wire .box.hit { background: rgba(255, 255, 255, .04); border-style: solid; border-color: var(--ink-mute); }
.wire .box.hit::after { color: var(--ink-soft); }
.ship { padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.ship .mini { border: 1px solid var(--app-line); border-radius: 10px; overflow: hidden; background: var(--app-panel); }
.ship .live { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--app-line); font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.ship .row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 74px; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--app-line); font-size: 12.5px; align-items: center; transition: opacity .4s ease; }
.ship .row:first-of-type { border-top: none; color: var(--ink-mute); font-size: 11px; }
.ship .row .m { color: var(--ink-mute); font-size: 12px; }
.ship .row.enter { opacity: 0; }
.ship .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; margin-right: 6px; }
.stay { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.stay-top { display: flex; align-items: center; gap: 10px; }
.stay .ver { font-family: var(--mono); font-size: 12.5px; color: var(--lime); }
.stay ul { list-style: none; margin-top: 10px; }
.stay li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--app-line); font-size: 12.5px; align-items: baseline; transition: opacity .4s ease, transform .4s var(--ease-gate); }
.stay li.enter { opacity: 0; transform: translateY(6px); }
.stay li .d { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.stay li .w { color: var(--ink-soft); }
.stay li .src { font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.stay-next {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 12px;
  border: 1px dashed var(--structure); border-radius: 9px; font-size: 11.5px; line-height: 1.45; color: var(--ink-mute);
  transition: opacity .4s ease;
}
.stay-next.enter { opacity: 0; }
@media (max-width: 560px) {
  .stay li { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; }
  .stay li .src { grid-column: 2; white-space: normal; }
  .stay-next { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (max-width: 520px) { .wire { grid-template-columns: 1fr; } .wire .box.tall { min-height: 84px; } .talk .b { max-width: 88%; } }

/* the wall editor's own small label */
.vlabel { font-size: 11px; font-weight: 500; color: var(--ink-mute); margin-bottom: 10px; }
.chip { font-size: 11.5px; font-weight: 500; border: 1px solid var(--structure); border-radius: 999px; padding: 3px 10px; color: var(--ink-mute); white-space: nowrap; transition: background .4s, color .4s, border-color .4s; }
.chip.ok { background: var(--lime-soft); border-color: transparent; color: var(--lime); }
.chip.urgent { border-color: rgba(250, 163, 59, .55); color: var(--orange); }

/* ---------- supporting services ---------- */
.supports { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.support { border-top: 1px solid var(--hairline); padding-top: 22px; }
.support h3 { font-size: 1.15rem; }
.support .d { margin-top: 8px; }
.support ul { margin-top: 16px; }
.support li { padding: 6px 0 6px 20px; font-size: .95rem; color: var(--ink-mute); }
@media (max-width: 700px) { .supports { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- since 1999 ---------- */
.timeline { list-style: none; position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding-top: 22px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--structure); transform-origin: left; }
.timeline li { position: relative; font-size: .95rem; line-height: 1.45; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: -27px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-mute);
}
.timeline b { display: block; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.timeline span { display: block; color: var(--ink-mute); font-size: .9rem; margin-top: 2px; }
.timeline li.now b { color: var(--lime); }
.timeline li.now::before { background: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .timeline.draw::before { transform: scaleX(0); transition: transform 1.4s var(--ease-gate); }
  .timeline.draw li { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i) * 300ms); }
  .timeline.draw.in::before { transform: scaleX(1); }
  .timeline.draw.in li { opacity: 1; }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; padding: 0 0 0 24px; margin-top: 40px; }
  .timeline::before { left: 0; right: auto; top: 4px; bottom: 4px; width: 1px; height: auto; transform-origin: top; }
  .timeline.draw::before { transform: scaleY(0); }
  .timeline.draw.in::before { transform: scaleY(1); }
  .timeline li::before { left: -28px; top: .5em; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.direct { margin-top: 34px; }
.direct h3 { font-size: 1rem; margin-bottom: 10px; }
.direct p { font-size: .98rem; line-height: 2; }
.direct .wa { margin-top: 16px; }
.quote { margin-top: 40px; border-top: 1px solid var(--hairline); padding-top: 26px; }
.quote blockquote { font-size: 1.08rem; line-height: 1.55; color: var(--ink); max-width: 40ch; text-wrap: balance; letter-spacing: -0.005em; }
.quote figcaption { margin-top: 12px; color: var(--ink-mute); font-size: .92rem; }

.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pick {
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--structure); border-radius: 999px;
  padding: 8px 16px; min-height: 44px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pick:hover { border-color: var(--ink-mute); color: var(--ink); }
.pick[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #000; }

form .field { margin-bottom: 18px; }
form label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
form input, form textarea {
  width: 100%; background: var(--bg-lift); border: 1px solid var(--structure); border-top-color: var(--edge);
  border-radius: 8px; padding: 12px 14px; color: var(--ink);
  font-family: var(--sans); font-size: .98rem;
}
form input::placeholder, form textarea::placeholder { color: var(--ink-mute); }
form input:focus, form textarea:focus { outline: none; border-color: var(--lime); }
form textarea { min-height: 128px; resize: vertical; }
form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  border: 1px solid var(--structure); border-top-color: var(--edge);
  border-radius: 10px; background: var(--bg-lift); padding: 26px 28px; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
}
.form-done p + p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }
.form-note { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 56px 0 52px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px 40px; align-items: end; }
.foot-brand { display: flex; align-items: center; gap: 18px; color: var(--ink-mute); }
/* the mark is a set of filled compound paths, so it can only be drawn
   filled: stroking it with fill:none outlines both subpaths of every blade
   and reads as a tangle, which is what the footer mark used to do. */
.foot-brand svg { width: 60px; height: 60px; flex: none; fill: var(--ink); stroke: none; }
.foot-brand .brand-word { font-size: 1.15rem; color: var(--ink-soft); }
footer p, footer a { font-size: .9rem; color: var(--ink-mute); }
footer .tag { margin-top: 18px; max-width: 46ch; }
footer .links { text-align: right; }
footer a { text-decoration-color: var(--structure); }
footer a:hover { color: var(--ink-soft); }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } footer .links { text-align: left; } }

/* ---------- reveal on scroll (JS adds .reveal, then .in): opacity only ---------- */
.reveal { opacity: 0; transition: opacity .6s ease; }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transition: none; } }

/* ---------- the wall ---------- */
/* the drifting signatures and the overlay the pulse and hairline are drawn on */
.wall-stage { position: relative; }
.wall-marks { position: absolute; inset: 0; }
.wall-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wall-mark {
  position: absolute; left: 0; top: 0; will-change: transform;
  display: block; padding: 2px; border: 0; background: transparent;
  cursor: pointer; opacity: .55;
  transition: opacity .4s ease, filter .5s ease;
}
.wall-mark canvas { display: block; image-rendering: pixelated; }
.wall-mark:hover { opacity: .85; }
/* the live mark is lit, not boxed */
.wall-mark[aria-pressed="true"] {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .95)) drop-shadow(0 0 24px rgba(255, 255, 255, .6));
}
@media (prefers-reduced-motion: reduce) { .wall-mark { transition: none; } }
.wall-open { display: none; }
html.has-wall .wall-open { display: inline-flex; }
/* the section rises into the bottom of the hero and comes into focus as you scroll */
.wall { border-top: none; padding: 0 0 72px; margin-top: -250px; position: relative; z-index: 3; }
.wall-board {
  position: relative; height: 400px; overflow: hidden;   /* wall.js sets the real height from how many marks there are */
  border: 1px solid var(--structure); border-top-color: var(--edge); border-radius: 12px;
  background: rgba(14, 14, 14, .58);
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 14px 14px;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .45);
}
@supports (animation-timeline: view()) {
  .wall-stage {
    animation: wall-focus linear both;
    animation-timeline: view();
    animation-range: entry 30% entry 100%;
  }
  @keyframes wall-focus {
    from { opacity: .8; transform: translateY(36px) scale(.965); }
    to { opacity: 1; transform: none; }
  }
}
@supports not (animation-timeline: view()) {
  .reveal .wall-stage { opacity: .8; transform: translateY(36px) scale(.965); transition: opacity .8s ease, transform .9s var(--ease-gate); }
  .reveal.in .wall-stage { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-stage { animation: none; opacity: 1; transform: none; filter: none; }
  .reveal .wall-stage { opacity: 1; transform: none; filter: none; }
}
.wall-empty {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 24px;
  font-size: .95rem; color: var(--ink-mute); text-align: center;
}
.wall-controls { grid-column: 3; justify-self: start; position: relative; display: flex; align-items: center; gap: 10px; }
.wall-controls .btn { padding: 10px 18px; }
.wall-info {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-family: var(--mono); font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  background: rgba(0, 0, 0, .55); border: 1px solid var(--structure);
  transition: color .15s, border-color .15s;
}
.wall-info:hover, .wall-info[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-mute); }
.wall-hint {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: max-content; max-width: min(300px, calc(100vw - 72px));
  font-size: 12.5px; line-height: 1.45; color: var(--ink-soft);
  background: #000; border: 1px solid var(--structure); border-top-color: var(--edge); border-radius: 8px; padding: 9px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s var(--ease-gate), visibility 0s linear .2s;
}
.wall-info:hover + .wall-hint, .wall-info:focus-visible + .wall-hint, .wall-info[aria-expanded="true"] + .wall-hint {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
@media (max-width: 760px) {
  .wall { margin-top: -150px; padding-bottom: 56px; }
  .wall-board { height: 320px; }
  .wall-controls .btn { padding: 10px 14px; font-size: .9rem; }
}
/* The side tracks hold a floor so the board stays clear either side of the
   panel: that clearance is what lets a mark reach the bottom two corners. On
   a narrow desktop the panel gives up width rather than the corners. */
.wall-under {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, auto) minmax(150px, 1fr);
  align-items: center; gap: 16px;
  margin-top: -66px; position: relative; z-index: 2; padding: 0 24px;
}
.wall-quote {
  grid-column: 2; position: relative; margin: 0;
  width: 640px; max-width: 100%; min-height: 132px; overflow: hidden;
  padding: 20px 24px; padding-right: 120px;
  background: rgba(17, 17, 16, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--structure); border-top-color: var(--edge); border-radius: 10px;
}
/* which signature is up, and a way to stop it moving on its own */
.wall-dots { position: absolute; right: 20px; top: 20px; display: flex; align-items: center; gap: 10px; }
.wall-pips { display: flex; align-items: center; gap: 6px; }
.wall-pip {
  width: 8px; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: var(--structure); cursor: pointer; transition: width .4s var(--ease-gate), background .4s ease;
}
.wall-pip[aria-pressed="true"] { width: 22px; background: var(--lime); }
.wall-pause {
  width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-mute); cursor: pointer;
  transition: color .15s ease;
}
.wall-pause:hover { color: var(--ink); }
.wall-pause svg { width: 9px; height: 9px; fill: currentColor; display: block; }
.wall-quote-body { transition: opacity .22s ease, transform .22s var(--ease-gate); }
.wall-quote.swap .wall-quote-body { opacity: 0; transform: translateY(-5px); }
.wall-quote blockquote { font-size: 1rem; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.wall-quote blockquote:empty { display: none; }
.wall-quote figcaption {
  margin-top: 10px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-mute);
}
.wall-quote figcaption b { color: var(--ink-soft); font-weight: 500; }
/* the mark itself, small, so the line is plainly that signature's */
.wall-quote-mark { display: block; flex: none; image-rendering: pixelated; }
.wall-quote figcaption time { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .wall-quote-body, .wall-pip { transition: none; } }
/* Phones: one column, a shallower overlap, the sign button under the panel.
   Must come after the rules above: same specificity, so source order wins. */
@media (max-width: 760px) {
  .wall-under { grid-template-columns: 1fr; gap: 12px; margin-top: -28px; padding: 0; }
  .wall-quote { grid-column: 1; width: auto; min-height: 0; padding: 18px 20px; padding-right: 20px; }
  .wall-dots { position: static; margin-top: 12px; justify-content: flex-end; }
  .wall-controls { grid-column: 1; justify-self: end; }
}
.wall-auto { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.wall-auto .vlabel { margin-bottom: 8px; display: block; }
.wall-auto-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wall-auto-row input { flex: 1; min-width: 150px; background: var(--bg-lift); border: 1px solid var(--structure); border-radius: 8px; padding: 8px 12px; color: var(--ink); font: inherit; font-size: .92rem; }
.wall-auto-row input:focus { outline: none; border-color: var(--lime); }
.wall-auto-row > button {
  font: inherit; font-size: .82rem; color: var(--ink-soft); background: transparent;
  border: 1px solid var(--structure); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 40px;
}
.wall-auto-row > button:hover { border-color: var(--ink-mute); color: var(--ink); }
.wall-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.wall-icons .icon {
  width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--bg-lift); border: 1px solid var(--structure); border-radius: 8px;
}
.wall-icons .icon:hover { border-color: var(--ink-mute); }
.wall-icons canvas { image-rendering: pixelated; display: block; }
.wall-fields { display: grid; gap: 8px; margin-top: 14px; }
.wall-fields input { width: 100%; background: var(--bg-lift); border: 1px solid var(--structure); border-radius: 8px; padding: 10px 12px; color: var(--ink); font: inherit; font-size: .95rem; }
.wall-fields input:focus { outline: none; border-color: var(--lime); }
.wall-toast {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
  font-size: .92rem; color: #000; background: var(--lime); border-radius: 999px; padding: 9px 16px;
  transition: opacity .6s ease, transform .6s ease;
}
.wall-toast.out { opacity: 0; transform: translate(-50%, 8px); }

.wall-dialog {
  /* the global margin reset kills the UA's `margin: auto`, which is what
     centres a modal dialog — put it back */
  margin: auto; border: 1px solid var(--structure); border-top-color: var(--edge); border-radius: 16px;
  background: var(--panel); color: var(--ink-soft); padding: 0;
  width: min(640px, calc(100vw - 24px)); max-width: none; max-height: calc(100svh - 24px); overflow: auto;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .wall-dialog .inner { padding: 16px 14px 18px; }
  .wall-dialog h2 { font-size: 1.1rem; }
  .wall-foot .btn { width: 100%; justify-content: center; }
}
.wall-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.wall-dialog .inner { padding: 22px 24px 24px; }
.wall-dialog h2 { font-size: 1.25rem; margin: 0; }
.wall-dialog .lead { margin-top: 6px; font-size: .92rem; color: var(--ink-mute); max-width: none; }
.wall-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.wall-close { font: inherit; background: none; border: 1px solid var(--structure); color: var(--ink-soft); border-radius: 999px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; flex: none; }
.wall-close:hover { color: var(--ink); border-color: var(--ink-mute); }
#wall-pad { display: block; margin: 18px auto 0; border: 1px solid var(--structure); border-radius: 6px; touch-action: none; cursor: crosshair; background: #000; }
.wall-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.wall-tools .sep { width: 1px; height: 28px; background: var(--structure); margin: 0 4px; }
.wall-tools button {
  font: inherit; font-size: .82rem; color: var(--ink-soft); background: transparent;
  border: 1px solid var(--structure); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 40px;
  display: inline-flex; align-items: center; gap: 7px;
}
.wall-tools button:hover { border-color: var(--ink-mute); color: var(--ink); }
.wall-tools button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.wall-tools .sw { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; flex: none; }
.wall-tools .sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--panel) inset; }
.wall-tools .sw.grad { background: linear-gradient(90deg, #bbd64a, #faa33b, #ec6337, #d5448f); }
.wall-foot { display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.wall-foot .hp { position: absolute; left: -9999px; }
.wall-note { margin-top: 10px; font-size: .88rem; color: var(--ink-mute); min-height: 1.3em; }

/* ---------- hero pills: the three things we build, each a link to its demo ---------- */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--edge); background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.pill:hover { border-color: var(--lime); background: rgba(0, 0, 0, .6); }
/* the emphasised pill: a lime highlight travels round its border */
@property --pill-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pill-primary { position: relative; border-color: var(--edge); }
.pill-primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--pill-a), transparent 0deg, transparent 250deg, var(--lime) 320deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (prefers-reduced-motion: no-preference) {
  .pill-primary::before { animation: pill-orbit 3.2s linear infinite; }
  @keyframes pill-orbit { to { --pill-a: 360deg; } }
}
.pill-primary:hover { border-color: var(--lime); }
@media (max-width: 480px) { .pill { font-size: .9rem; padding: 0 14px; } }

/* the built strip, now one line to the portfolio */
.built-line { margin-top: 10px; font-size: .98rem; color: var(--ink-mute); max-width: 60ch; }
.built-line a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.built-line a:hover { color: var(--lime); }
.built-line a .chev { width: .5em; height: .5em; margin-left: 5px; color: var(--lime); }

/* ---------- work page ----------
   Same shape as a homepage section: a head band, the recreation at full
   measure, then the facts as short columns and the stack as one strip. */
.work-hero { padding-top: 150px; }
.work-hero h1 {
  margin-top: 14px; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); max-width: 15ch; text-wrap: balance;
}
.case { padding: 92px 0; border-top: 1px solid var(--hairline); }
.case-n { font-family: var(--mono); color: var(--lime); }
.points-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.points-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.stack-row { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.stack-lb { font-size: .92rem; color: var(--ink-mute); flex: none; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); border: 1px solid var(--structure); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 900px) {
  .case { padding: 68px 0; }
  .work-hero { padding-top: 120px; }
  .work-hero h1 { max-width: 18ch; }
  .points-3, .points-2 { grid-template-columns: 1fr 1fr; gap: 0 36px; }
}
@media (max-width: 600px) { .points-3, .points-2 { grid-template-columns: 1fr; gap: 0; } }

/* the recreations: still, but wearing the same chrome as the live demos */
.bcast { padding: 14px 14px 6px; }
.bcast .msg.out { max-width: 100%; align-self: stretch; }
.wp-grid { grid-template-columns: 24px minmax(0, 1fr) 118px 116px; }
.sc-grid { grid-template-columns: minmax(0, 1fr) 30px 124px 104px; }
.qrow .score { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cx-grid { grid-template-columns: 72px minmax(0, 1fr) 116px; }
.qrow .meter { margin-top: 0; }
.meter.warn i { background: var(--orange); }

/* two tenants, and the wall between them that the data never crosses */
.tenants { display: grid; grid-template-columns: 1fr 1fr; position: relative; padding-top: 34px; }
.tenant { padding: 4px 16px 18px; min-width: 0; }
.tenant + .tenant { border-left: 1px solid var(--lime); }
.tenant .t { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.tenant .sub { font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }
.tenant .spark { max-width: 236px; margin: 16px 0 0; gap: 6px; height: 52px; }
.tenant .foot { margin-top: 14px; }
.rls {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 10.5px; color: var(--lime); white-space: nowrap;
  background: var(--app-ground); border: 1px solid var(--lime); border-radius: 999px; padding: 2px 9px;
}
@media (max-width: 560px) {
  .tenants { grid-template-columns: 1fr; }
  .tenant + .tenant { border-left: 0; border-top: 1px solid var(--lime); }
  .tenants { padding-top: 0; }
  .tenant { padding-top: 18px; }
  .tenant + .tenant { padding-top: 30px; }
  .rls { top: auto; bottom: auto; margin-top: -1px; transform: translate(-50%, -50%); left: 50%; top: 50%; }
  .wp-grid { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 11px; }
  .qrow.wp-grid .face { grid-row: 1 / 3; align-self: center; }
  .qrow.wp-grid .t { grid-column: 2; grid-row: 1; }
  .qrow.wp-grid .sub { grid-column: 2; grid-row: 2; }
  .qrow.wp-grid .lbl { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .sc-grid { grid-template-columns: minmax(0, 1fr) 28px 84px; }
  .qrow.sc-grid .meter { display: none; }
  .cx-grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 11px; }
  .qrow.cx-grid .id { grid-column: 1; grid-row: 1; }
  .qrow.cx-grid .t { grid-column: 1; grid-row: 2; white-space: normal; }
  .qrow.cx-grid .lbl { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
