/* ===========================================================================
   CENTRAL HUB — portfolio & client gateway
   ---------------------------------------------------------------------------
   PLACEHOLDER BRAND TOKENS. When the brand kit arrives, change the values in
   :root and the whole site follows — including the canvas animation and the
   live demo, which read these same variables.
   =========================================================================== */

:root {
  /* --- Brand: sampled from the logo ---------------------------------------
     The logo runs crimson #C11E3D -> plum #802340 -> navy #172A46.
     Deep crimson and navy are too dark to read against a dark page, so
     highlights use brighter tints of the same crimson. */
  --brand:        #C11E3D;   /* primary — the logo's crimson */
  --brand-plum:   #802340;   /* the logo's midpoint */
  --brand-navy:   #172A46;   /* the logo's navy */

  --accent:       #E8335A;   /* crimson, lifted for lines and icons on dark */
  --accent-2:     #FF7A95;   /* pink tint, for small text on dark */
  --accent-rgb:   232, 51, 90;
  --accent-2-rgb: 255, 122, 149;
  --mesh-rgb:     86, 116, 168; /* the logo navy, lifted enough to show on dark */

  --gradient:      linear-gradient(120deg, #E8335A 0%, #C11E3D 45%, #802340 100%);  /* fills */
  --gradient-text: linear-gradient(110deg, #FF8FA6 0%, #FF4D6D 45%, #D42A4C 100%);  /* text */
  --glow:          rgba(232, 51, 90, 0.45);

  /* --- Surfaces: tinted towards the logo's navy --- */
  --bg:          #060A12;
  --bg-2:        #09101B;
  --bg-3:        #0E1726;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --line:        rgba(255, 255, 255, 0.085);
  --line-bright: rgba(255, 255, 255, 0.17);

  /* --- Text --- */
  --text:        #E9EEF7;
  --text-2:      #A3AEC0;
  --text-3:      #677386;

  /* --- Status --- */
  --ok:          #2FD48A;
  --warn:        #FFB547;
  --bad:         #FF6B6B;

  /* --- Type --- */
  /* Matches the Central Hub product: Inter throughout, system monospace. */
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* --- Layout --- */
  --max: 1240px;
  --gutter: 24px;
  --r: 18px;
  --r-sm: 11px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
html:not(.lenis) { scroll-behavior: smooth; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient page atmosphere */
body::before {
  content: "";
  position: fixed; inset: -10%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(50vw 40vw at 8% 0%,    rgba(193, 30, 61, 0.14), transparent 60%),   /* crimson, top-left — as in the logo */
    radial-gradient(55vw 45vw at 95% 10%,  rgba(128, 35, 64, 0.10), transparent 62%),   /* plum */
    radial-gradient(70vw 55vw at 60% 110%, rgba(23, 42, 70, 0.55), transparent 65%);    /* navy */
}
/* Film grain — gives flat dark surfaces some tooth */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }

/* ---------------------------------------------------------------- Typography */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--display);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #fff;
}
h1 { font-size: clamp(2.7rem, 6.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0 0 1.1em; }
a { color: inherit; }

/* Static. Animating the background position of clipped text repaints the whole
   headline every frame, which was visible as stutter in the hero. */
.grad {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.6;
}

/* Uppercase, letter-spaced, crimson — the product's label style */
/*
 * Small headings as MODULE TABS — the page is laid out like one of the
 * systems it sells. Each section heading is a numbered module (01, 02...),
 * other labels carry a crimson marker, and the hero's label is a live status
 * badge. Numbering is automatic (a CSS counter), so reordering or adding
 * sections in the admin keeps it right.
 */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.4rem; padding: .32rem .85rem .32rem .38rem;
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; line-height: 1.2;
  color: #fff; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--line-bright);
  box-shadow: 0 6px 18px -12px rgba(0,0,0,.8);
}
/* default marker: a small crimson square, like an active item in the product */
.eyebrow::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: .38rem;
  border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px -1px var(--glow);
}
/* section headings are numbered modules */
main { counter-reset: module; }
.section-head .eyebrow,
.overview-head .eyebrow { counter-increment: module; }
.section-head .eyebrow::before,
.overview-head .eyebrow::before {
  content: counter(module, decimal-leading-zero);
  width: auto; height: auto; margin: 0; padding: .16rem .45rem; border-radius: 6px;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: 0; line-height: 1.2;
  color: #fff; background: linear-gradient(180deg, #D0254A, var(--brand) 55%, #8C122B);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
/* the hero's label is a status badge: the live dot replaces the marker */
.eyebrow:has(.live-dot) { padding-left: .8rem; }
.eyebrow:has(.live-dot)::before { display: none; }

.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 12px var(--ok);
}
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--ok); animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.narrow { max-width: 880px; }

/* Split-text pieces (built by site.js) */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .14em; margin: 0 -.02em -.14em; }
.char, .word { display: inline-block; will-change: transform; }
.char-space { display: inline-block; width: .26em; }
[data-scrub-words] .word { opacity: .16; transition: opacity .1s linear; }

/* ------------------------------------------------------- Chrome: header etc */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: var(--gradient); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .45s var(--ease);
}
.site-header.stuck {
  /* Mostly opaque with a light blur: a strong backdrop blur across a sticky
     bar re-samples everything behind it on every scrolled frame. */
  background: rgba(6, 10, 18, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -.03em;
}
/* CENTRALHUB — as on the product's own sign-in screen */
.wordmark {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; color: #fff; line-height: 1; white-space: nowrap;
}
.wordmark-hub { color: var(--brand); }
.brand .wordmark { font-size: 1.22rem; }

.brand-logo {
  width: 36px; height: 36px; flex: none; display: block; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 26px -6px rgba(193, 30, 61, .55);
  transition: transform .6s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-12deg) scale(1.05); }
.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--gradient); position: relative;
  box-shadow: 0 0 24px -4px var(--glow);
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 4px; background: var(--bg); }
.brand-mark::before {
  content: ""; position: absolute; inset: 12px; border-radius: 2px;
  background: var(--gradient); z-index: 1; animation: hub-pulse 2.4s ease-in-out infinite;
}
@keyframes hub-pulse { 50% { transform: scale(.55); opacity: .7; } }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a { position: relative; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gradient); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------------------------------------------ Buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.55rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: box-shadow .3s, background .25s, border-color .25s, color .25s;
  will-change: transform;
}
/* The product's button: crimson falling to a deeper crimson, white text */
.btn-primary {
  background: linear-gradient(180deg, #D0254A 0%, var(--brand) 45%, #8C122B 100%);
  color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 30px -10px var(--glow);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 44px -10px var(--glow); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-bright); color: var(--text); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(var(--accent-2-rgb), .7); color: #fff; background: rgba(var(--accent-2-rgb), .06); }
.btn-sm { padding: .55rem 1.1rem; font-size: .86rem; }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

.arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow, .product-card:hover .link-arrow .arrow { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .94rem; font-weight: 600; color: var(--accent-2); text-decoration: none; }

/* ----------------------------------------------------------------- Sections */

.section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.8rem, 5vw, 4rem); }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.section-head--row > div { max-width: 62ch; }

/* --------------------------------------------------------------------- Hero */

.hero { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero h1 { max-width: 17ch; margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.3rem; }

.hero--home {
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 8vw, 7rem);
  overflow: hidden;
}
.hub-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero--home::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(transparent, var(--bg)); z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-title { font-size: clamp(2.8rem, 6.4vw, 5.5rem); max-width: 12ch; }
.rotator { display: inline-block; position: relative; vertical-align: bottom; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rotator-word { display: inline-block; white-space: nowrap; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(1.8rem, 4.5vw, 3.6rem); margin-top: clamp(2rem, 3.5vw, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.stat .n {
  display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 600; letter-spacing: -.04em; line-height: 1;
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { display: block; margin-top: .55rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 1; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-bright); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--accent-2); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* -------------------------------------------------------------- Live demo */

.hero-visual { position: relative; perspective: 1600px; }
.demo {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(20, 26, 38, .92), rgba(9, 12, 18, .96));
  border: 1px solid var(--line-bright);
  box-shadow:
    0 50px 120px -40px rgba(0,0,0,.95),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 80px -30px rgba(var(--accent-rgb), .55);
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(1deg);
  transform-style: preserve-3d;
  font-family: var(--sans);
  overflow: hidden;
}
.demo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 35%);
}
.demo-chrome { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.demo-url { flex: 1; font-family: var(--mono); font-size: .7rem; color: var(--text-3); background: rgba(255,255,255,.04); border-radius: 6px; padding: .28rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-url b { color: var(--text-2); font-weight: 500; }
.demo-live { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.demo-body { display: grid; grid-template-columns: 118px 1fr; min-height: 360px; }
.demo-side { display: flex; flex-direction: column; gap: .25rem; padding: .9rem .7rem; border-right: 1px solid var(--line); background: rgba(255,255,255,.015); }
/* --skin is set per industry by site.js; everything industry-coloured reads it */
.demo { --skin: 232, 51, 90; }
.demo-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, rgb(var(--skin)), rgba(var(--skin), .45)); margin: 0 0 .9rem .3rem; box-shadow: 0 0 18px -4px rgba(var(--skin), .7); transition: background .5s, box-shadow .5s; }
.demo-nav { font-size: .72rem; color: var(--text-3); padding: .42rem .55rem; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s, color .3s; }
.demo-nav.is-on { background: rgba(var(--skin), .18); color: #fff; box-shadow: inset 2px 0 0 rgb(var(--skin)); }

.demo-main { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; }
.demo-head b { font-family: var(--display); font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.demo-date { font-family: var(--mono); font-size: .64rem; color: var(--text-3); }

.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.demo-kpi { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem; min-width: 0; }
.demo-kpi span { display: block; font-size: .6rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-kpi b { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 600; color: #fff; letter-spacing: -.03em; margin: .1rem 0; font-variant-numeric: tabular-nums; }
.demo-kpi em { font-style: normal; font-family: var(--mono); font-size: .58rem; }
.demo-kpi em.up { color: var(--ok); } .demo-kpi em.down { color: var(--accent-2); }

.demo-chart { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .6rem .3rem; }
.demo-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: .6rem; color: var(--text-3); margin-bottom: .2rem; }
.demo-chart-head i { width: 34px; height: 5px; border-radius: 3px; background: var(--gradient); opacity: .6; }
.demo-svg { width: 100%; height: 78px; display: block; overflow: visible; }
.demo-line { stroke-linecap: round; stroke-linejoin: round; }

/* Three rows tall, exactly: 3 x 28px + 2 x 5.6px of gap. */
.demo-feed-window { height: 95px; overflow: hidden; }
.demo-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; will-change: transform; }
.demo-feed li {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: .55rem;
  font-size: .66rem; color: var(--text-2);
  /* A fixed row height keeps every row identical, so the slide is even. */
  height: 28px; padding: 0 .55rem; border-radius: 8px;
  background: rgba(255,255,255,.025); border: 1px solid transparent;
}
.demo-feed li.is-new { border-color: rgba(var(--accent-2-rgb), .35); background: rgba(var(--accent-2-rgb), .06); }
.demo-feed li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-feed li i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.demo-feed li i.ok { background: var(--ok); } .demo-feed li i.warn { background: var(--warn); }
.demo-feed time { font-family: var(--mono); font-size: .58rem; color: var(--text-3); }
.demo-feed li.is-new { border-color: rgba(var(--skin), .4); background: rgba(var(--skin), .07); }

/* ------------------------------------------------ Industry screens (demo) */
/* A fixed height, so switching industries never resizes the panel. */

.demo-view { height: 292px; display: flex; flex-direction: column; justify-content: space-between; gap: .7rem; }

.v-strip {
  display: flex; gap: 1rem; flex-wrap: wrap; font-size: .6rem; color: var(--text-3);
  padding: .5rem .65rem; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid var(--line);
}
.v-strip b { color: #fff; font-weight: 600; margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* shared circular gauge */
.gauge, .occ-ring { position: relative; flex: none; }
.gauge svg, .occ-ring svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
.g-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.g-fill {
  fill: none; stroke: rgb(var(--skin)); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 100; transition: stroke-dashoffset .9s var(--ease);
}
.g-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.g-mid b { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.g-mid span { font-size: .5rem; color: var(--text-3); margin-top: .1rem; }

/* INDUSTRY — plant floor */
.v-plant { display: grid; grid-template-columns: 112px 1fr; gap: .75rem; align-items: center; }
.v-plant .gauge { width: 112px; height: 112px; }
.machines { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.mc {
  display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: .4rem;
  padding: .36rem .5rem; border-radius: 7px; font-size: .6rem; color: var(--text-2);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: border-color .4s, background .4s;
}
.mc i { width: 7px; height: 7px; border-radius: 50%; transition: background .4s, box-shadow .4s; }
.mc em { font-style: normal; font-size: .56rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mc[data-state="run"] i  { background: var(--ok);   box-shadow: 0 0 8px var(--ok); }
.mc[data-state="warn"]   { border-color: rgba(255,181,71,.4); }
.mc[data-state="warn"] i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.mc[data-state="stop"]   { border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.08); }
.mc[data-state="stop"] i { background: var(--bad);  box-shadow: 0 0 8px var(--bad); animation: blink 1s ease-in-out infinite; }

.p-output { padding: .5rem .6rem .45rem; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.p-output-head { display: flex; justify-content: space-between; font-size: .58rem; color: var(--text-3); margin-bottom: .4rem; }
.p-output-head b { color: rgb(var(--skin)); font-weight: 600; font-variant-numeric: tabular-nums; }
.p-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; overflow: hidden; }
.p-bars i {
  flex: 1; height: calc(var(--h) * 1%); border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgb(var(--skin)), rgba(var(--skin), .3));
  transition: height .6s var(--ease);
}

/* HOSPITALITY — room board */
.v-hotel { display: grid; grid-template-columns: 1fr 104px; gap: .75rem; align-items: start; }
.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; }
.rm {
  height: 46px; border-radius: 6px; display: grid; place-items: center;
  font-size: .58rem; font-weight: 600; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums;
  transition: background .5s;
}
.rm[data-s="occ"],   .legend i[data-s="occ"]   { background: rgba(var(--skin), .55); }
.rm[data-s="arr"],   .legend i[data-s="arr"]   { background: rgba(255,181,71,.55); }
.rm[data-s="clean"], .legend i[data-s="clean"] { background: rgba(255,255,255,.1); color: var(--text-3); }
.rm[data-s="ready"], .legend i[data-s="ready"] { background: rgba(47,212,138,.5); }
.h-side { display: grid; gap: .6rem; justify-items: center; }
.occ-ring { width: 92px; height: 92px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .28rem; font-size: .54rem; color: var(--text-3); justify-self: stretch; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; }

/* COMMERCE — takings and orders */
.rev {
  padding: .6rem .75rem .25rem; border-radius: 10px;
  background: linear-gradient(160deg, rgba(var(--skin), .18), rgba(255,255,255,.02));
  border: 1px solid rgba(var(--skin), .32);
}
.rev-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .58rem; color: var(--text-3); }
.rev-top em { font-style: normal; color: var(--ok); }
.rev-val { display: block; font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: .1rem 0 .1rem; transform-origin: left center; }
.spark { width: 100%; height: 34px; display: block; }
.sp-area { fill: rgba(var(--skin), .22); }
.sp-line { fill: none; stroke: rgb(var(--skin)); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.shop-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.shop-kpis div { padding: .42rem .55rem; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.shop-kpis span { display: block; font-size: .52rem; color: var(--text-3); }
.shop-kpis b { font-size: .92rem; color: #fff; font-variant-numeric: tabular-nums; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; will-change: transform; }
.orders li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .55rem;
  height: 28px; padding: 0 .55rem; border-radius: 8px; font-size: .62rem; color: var(--text-2);
  background: rgba(255,255,255,.025); border: 1px solid transparent;
}
.orders li.is-new { border-color: rgba(var(--skin), .45); background: rgba(var(--skin), .09); }
.o-id { font-family: var(--mono); font-size: .54rem; color: var(--text-3); }
.o-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orders b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill { font-style: normal; font-size: .48rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .14rem .42rem; border-radius: 99px; }
.pill.paid { background: rgba(47,212,138,.16); color: var(--ok); }
.pill.sent { background: rgba(var(--skin), .22); color: rgb(var(--skin)); }

/* STOCK CONTROL — levels against a reorder line */
.v-stock { padding: .65rem .7rem .35rem; border-radius: 10px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: .55rem; height: 148px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; }
.bar i {
  display: block; width: 100%; height: calc(var(--v) * .9%); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgb(var(--skin)), rgba(var(--skin), .3));
  transition: height .8s var(--ease), background .5s;
}
.bar.is-low i { background: linear-gradient(180deg, var(--bad), rgba(255,107,107,.28)); }
.bar span { font-family: var(--mono); font-size: .5rem; color: var(--text-3); }
.bar.is-low span { color: var(--bad); }
/* 25% stock, measured on the same 0.9 scale the bars use, above the labels */
.reorder { position: absolute; left: 0; right: 0; bottom: calc(1.05rem + 148px * .25 * .9); border-top: 1px dashed rgba(255,107,107,.6); pointer-events: none; z-index: 1; }
/* On its own dark tag, so it stays legible where it crosses a bar */
.reorder span {
  position: absolute; left: 0; top: -.62rem; padding: .08rem .38rem; border-radius: 4px;
  font-size: .46rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bad); background: #0E1420; border: 1px solid rgba(255,107,107,.45);
}

.demo-cursor {
  position: absolute; top: 0; left: 0; z-index: 4; width: 18px; height: 18px; pointer-events: none;
  opacity: 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1.2L9 21z' fill='%23fff' stroke='%2305070B' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.6));
}
.demo-cursor::after {
  content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--accent-2); opacity: 0; transform: scale(.3);
}
.demo-cursor.click::after { animation: click-ring .5s var(--ease); }
@keyframes click-ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }

.chip {
  position: absolute; z-index: 5;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .85rem; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; color: var(--text);
  /* Solid rather than blurred: four backdrop-filters over a moving canvas
     was costing frames in the hero. */
  background: rgba(10, 14, 22, .94); border: 1px solid var(--line-bright);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.9);
  white-space: nowrap; animation: float 6s ease-in-out infinite;
  will-change: transform;
}
.chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--gradient); }
.chip-1 { top: -4%;  left: -8%;  animation-delay: 0s; }
.chip-2 { top: 18%;  right: -7%; animation-delay: -1.5s; }
.chip-3 { bottom: 14%; left: -11%; animation-delay: -3s; }
.chip-4 { bottom: -5%; right: 6%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ------------------------------------------------------- Industry picker */

/* Sits directly under the demo, inside the same column, so it is on screen
   without scrolling — the whole point is that visitors use it. */
.hero-right { display: flex; flex-direction: column; min-width: 0; }
.picker { margin-top: clamp(1.4rem, 2.5vw, 2rem); }
.picker-label {
  margin: 0 0 .8rem; font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.picker-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.picker-btn {
  font: inherit; font-size: .84rem; font-weight: 550; cursor: pointer;
  padding: .5rem .9rem; border-radius: 999px; white-space: nowrap;
  color: var(--text-2); background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease);
}
.picker-btn:hover { color: #fff; border-color: rgba(var(--accent-rgb), .55); transform: translateY(-2px); }
.picker-btn.is-on {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #D0254A 0%, var(--brand) 55%, #8C122B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 20px -8px var(--glow);
}

/* --------------------------------------------------------- Back to top */

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  color: #fff; border: 1px solid transparent;
  background: linear-gradient(180deg, #D0254A 0%, var(--brand) 55%, #8C122B 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 28px -10px var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, box-shadow .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 36px -10px var(--glow); transform: translateY(-3px); }
.to-top:active { transform: translateY(0) scale(.96); }

/* Scroll-progress ring */
.to-top-ring {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px;
  margin: -29px 0 0 -29px; transform: rotate(-90deg); pointer-events: none;
}
.ring-track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; }
.ring-fill {
  fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .15s linear;
}

/* Two stacked arrows in a one-arrow-tall window */
.to-top-icons { display: block; height: 21px; overflow: hidden; will-change: transform; }
.to-top-icons svg { display: block; width: 21px; height: 21px; }

.to-top-ripple {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #fff; opacity: 0; pointer-events: none;
}

@media (max-width: 640px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------ Ticker */

/* ------------------------------------------------- Build your system: the hub */
/*
 * The visitor assembles their system as a hub. Parts are chips on the left;
 * tap one and it flies across and plugs into the core on an orbit, with data
 * pulsing along its connection. Templates plug in a whole sector at once.
 */

.builder { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

.hubb {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 1.8rem;
}

.hubb-label { margin: 0 0 .75rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.hubb-templates { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.7rem; }
.htpl {
  position: relative; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1.05rem; border-radius: 10px; color: #fff;
  background: rgba(193,30,61,.12); border: 1px solid rgba(232,51,90,.4);
  transition: background .2s, transform .25s var(--ease), border-color .2s;
}
.htpl[hidden] { display: none; }
.htpl:hover { background: rgba(193,30,61,.26); border-color: rgba(232,51,90,.7); transform: translateY(-2px); }
/* switched on: filled, with a tick — tap again to switch it off */
.htpl[aria-pressed="true"] {
  padding-left: 2rem; border-color: transparent;
  background: linear-gradient(180deg, #D0254A, var(--brand) 55%, #8C122B);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 18px -8px var(--glow);
}
.htpl[aria-pressed="true"]::before {
  content: ""; position: absolute; left: 1.15rem; top: 50%; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: translate(-50%, -62%) rotate(45deg);
}
.htpl.is-suggested::after {
  content: "Suggested"; position: absolute; top: -.62rem; right: -.45rem;
  font-size: .52rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .42rem; border-radius: 99px; background: var(--ok); color: #04130C;
}

.hubb-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.hchip {
  font: inherit; font-size: .82rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .42rem .85rem .42rem .45rem; border-radius: 999px;
  color: var(--text-2); background: rgba(255,255,255,.035); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s, transform .25s var(--ease);
}
.hchip:hover { color: #fff; border-color: rgba(var(--accent-rgb), .5); transform: translateY(-2px); }
.hchip-plug {
  position: relative; flex: none; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--line-bright); color: var(--text-2);
  transition: background .25s, border-color .25s, transform .35s var(--ease), color .25s;
}
.hchip-plug::before, .hchip-plug::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; }
.hchip-plug::before { width: 8px; height: 1.5px; margin: -.75px 0 0 -4px; }
.hchip-plug::after  { width: 1.5px; height: 8px; margin: -4px 0 0 -.75px; transition: transform .3s var(--ease); }
.hchip[aria-pressed="true"] { color: #fff; border-color: rgba(var(--accent-rgb), .65); background: rgba(193,30,61,.2); }
.hchip[aria-pressed="true"] .hchip-plug { color: #fff; background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.hchip[aria-pressed="true"] .hchip-plug::after { transform: scaleY(0); }   /* the + becomes a − */

.hubb-clear { margin-top: 1.1rem; padding: 0; font: inherit; font-size: .8rem; color: var(--text-3); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hubb-clear:hover { color: #fff; }
.hubb-clear[hidden] { display: none; }

/* the hub itself */
.hubb-stage { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.hubb-stage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,30,61,.2), rgba(23,42,70,.25) 45%, transparent 68%);
}
.hubb-orbit {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.13); transform: translate(-50%, -50%);
  animation: orbit-spin 70s linear infinite;
}
.hubb-orbit.o1 { width: 60%; height: 60%; }
.hubb-orbit.o2 { width: 88%; height: 88%; animation-direction: reverse; animation-duration: 110s; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hubb-core {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 31%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: .12rem; text-align: center;
  background: radial-gradient(circle at 40% 30%, #1B2436, #0B111B);
  border: 1px solid rgba(232,51,90,.5);
  box-shadow: 0 0 0 8px rgba(193,30,61,.08), 0 0 70px -10px var(--glow);
}
.hubb-core b { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
/* the label only: the pulsing ring is a span too, and must stay a full circle */
.hubb-core span:not(.hubb-core-ring) { font-size: clamp(.66rem, 1vw, .78rem); color: var(--text-2); letter-spacing: .03em; max-width: 9ch; line-height: 1.3; }
.hubb-core-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(232,51,90,.5); animation: core-ping 2.8s var(--ease) infinite; }
@keyframes core-ping { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.hubb-core.bump { animation: core-bump .55s var(--ease); }
@keyframes core-bump { 40% { transform: translate(-50%, -50%) scale(1.09); } }

.hubb-links, .hubb-nodes { position: absolute; inset: 0; }
.hlink {
  position: absolute; height: 1.5px; margin-top: -.75px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(232,51,90,.75), rgba(232,51,90,.12));
  transition: width .65s var(--ease), transform .65s var(--ease), opacity .4s;
}
/* data flowing along each connection, into the core */
.hlink::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%;
  background: #FF7A95; box-shadow: 0 0 8px #FF7A95;
  animation: hlink-pulse var(--dur, 2.2s) linear infinite; animation-delay: var(--delay, 0s);
}
@keyframes hlink-pulse {
  0%   { transform: translateX(var(--len, 120px)); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(0); opacity: .15; }
}
.hnode {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  white-space: nowrap; font-size: .7rem; font-weight: 600; color: #fff;
  padding: .32rem .62rem; border-radius: 999px;
  background: linear-gradient(180deg, #1C2538, #121A28); border: 1px solid rgba(232,51,90,.6);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.9), 0 0 16px -8px var(--glow);
  transition: left .65s var(--ease), top .65s var(--ease), opacity .35s, transform .35s var(--ease);
}
.hnode.is-leaving { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
.hnode.no-anim, .hlink.no-anim { transition: none !important; }

.hubb-empty { position: absolute; left: 0; right: 0; bottom: 3%; margin: 0; text-align: center; font-size: .8rem; color: var(--text-3); transition: opacity .3s; }
.hubb-empty.is-hidden { opacity: 0; }

.builder-chosen { font-size: .85rem; color: var(--text-2); line-height: 1.5; }

@media (max-width: 960px) {
  .hubb { grid-template-columns: 1fr; }
  .hubb-stage { order: -1; max-width: 460px; }
}
@media (max-width: 640px) {
  .hnode { font-size: .58rem; padding: .24rem .45rem; }
}

/* What you have chosen */
.builder-summary {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.2rem 1.4rem; border-radius: var(--r);
  border: 1px dashed var(--line-bright); background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s;
}
.builder-summary.has-picks { border-style: solid; border-color: rgba(var(--accent-rgb), .45); background: rgba(193,30,61,.06); }
.builder-count { margin: 0; font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.builder-summary.has-picks .builder-count { color: #fff; }
.builder-chosen { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; min-width: 0; }
.builder-chosen button {
  font: inherit; font-size: .76rem; cursor: pointer; color: var(--text-2);
  padding: .26rem .6rem .26rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: .4rem;
  transition: color .2s, border-color .2s;
}
.builder-chosen button::after { content: "\00d7"; font-size: .95em; opacity: .7; }
.builder-chosen button:hover { color: #fff; border-color: var(--accent); }
.builder-cta[hidden] { display: none; }

/* -------------------------------------------------- Off-the-shelf vs bespoke */

/* The same job, done both ways, with a handle to wipe between them. */

.duel { margin-top: clamp(3rem, 6vw, 5rem); }
.duel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.duel-title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: 0; }
.duel-hint { margin: 0; font-size: .8rem; font-weight: 600; color: var(--text-3); display: inline-flex; align-items: center; gap: .5rem; }
.duel-hint-ico { color: var(--accent); letter-spacing: -.05em; }

.duel-stage {
  --split: 50%;
  position: relative; height: 410px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-bright); cursor: ew-resize;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
/*
 * A split screen, not a wipe. Each side is its own panel anchored to its own
 * edge, so at the midpoint both screens are shown whole, side by side.
 * Dragging gives one side more room and squeezes the other — cropping it from
 * the middle, never hiding the parts that make it recognisable.
 */
.duel-pane { position: absolute; top: 0; bottom: 0; overflow: hidden; display: flex; padding: 2.6rem 1rem 1rem; }
.duel-a { left: 0; width: var(--split); background: #15171C; justify-content: flex-start; }
.duel-b {
  left: var(--split); right: 0; justify-content: flex-end;
  background: radial-gradient(120% 90% at 100% 0%, rgba(193,30,61,.18), transparent 55%), linear-gradient(160deg, #0E1726, #0A101B);
}
.duel-pane .dm { flex: 1 0 auto; width: 100%; min-width: 540px; }

/* The bespoke side catches the light: a sheen that sweeps across the screen
   every few seconds. */
.duel-b::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 38%;
  pointer-events: none; z-index: 2; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 18%, rgba(255,255,255,.08) 40%, rgba(255,215,225,.22) 50%, rgba(255,255,255,.08) 60%, transparent 82%);
  transform: translateX(0) skewX(-16deg); opacity: 0;
  animation: duel-sheen 6s cubic-bezier(.45,.05,.3,1) infinite 1.2s;
}
@keyframes duel-sheen {
  0%       { transform: translateX(0) skewX(-16deg);    opacity: 0; }
  6%       { opacity: 1; }
  38%      { transform: translateX(420%) skewX(-16deg); opacity: 1; }
  42%, 100%{ transform: translateX(420%) skewX(-16deg); opacity: 0; }
}
.duel-b .duel-tag { z-index: 3; }

/* Until someone grabs it, the grip pulses — an invitation to drag */
.duel-stage.is-idle .duel-grip { animation: duel-invite 2.2s ease-out infinite; }
@keyframes duel-invite {
  0%   { box-shadow: 0 0 0 0 rgba(232,51,90,.55), 0 10px 24px -6px rgba(0,0,0,.8); }
  70%  { box-shadow: 0 0 0 16px rgba(232,51,90,0), 0 10px 24px -6px rgba(0,0,0,.8); }
  100% { box-shadow: 0 0 0 0 rgba(232,51,90,0), 0 10px 24px -6px rgba(0,0,0,.8); }
}
.duel-tag {
  position: absolute; top: .9rem; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.duel-a .duel-tag { left: 1rem; color: #9AA0A8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.duel-b .duel-tag { right: 1rem; color: #fff; background: linear-gradient(180deg, #D0254A, var(--brand) 55%, #8C122B); }

.duel-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; z-index: 3;
  background: linear-gradient(transparent, rgba(255,255,255,.85) 12%, rgba(255,255,255,.85) 88%, transparent);
  pointer-events: none;
}
.duel-grip {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.1em;
  background: linear-gradient(180deg, #D0254A, var(--brand) 55%, #8C122B);
  box-shadow: 0 0 0 4px rgba(193,30,61,.25), 0 10px 24px -6px rgba(0,0,0,.8);
}
.duel-stage.is-dragging .duel-grip { box-shadow: 0 0 0 7px rgba(193,30,61,.3), 0 10px 24px -6px rgba(0,0,0,.8); }

/* the two mock screens */
.dm { height: 100%; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; font-size: .72rem; }
.dm-chrome { display: flex; align-items: center; gap: .7rem; padding: .55rem .8rem; }
.dm-url { flex: 1; font-family: var(--mono); font-size: .66rem; }
.dm-body { flex: 1; display: grid; grid-template-columns: 150px 1fr; min-height: 0; }
.dm-side { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .55rem; }
.dm-side span { display: flex; align-items: center; justify-content: space-between; padding: .38rem .55rem; border-radius: 7px; }
.dm-main { position: relative; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.dm-h { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.dm-field { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: .7rem; }
.dm-field i { font-style: normal; height: 26px; border-radius: 6px; display: flex; align-items: center; padding: 0 .6rem; }
.lk { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }

/* off-the-shelf: grey, cluttered, generic */
.dm-a { background: #1C1F25; border: 1px solid rgba(255,255,255,.06); color: #8B919A; }
.dm-a .dm-chrome { background: #22262D; }
.dm-a .dots i { background: rgba(255,255,255,.14) !important; }
.dm-up { font-size: .6rem; font-weight: 700; color: #D4B36A; border: 1px solid rgba(212,179,106,.4); padding: .15rem .5rem; border-radius: 5px; }
.dm-a .dm-side { background: #191B20; border-right: 1px solid rgba(255,255,255,.05); }
.dm-a .dm-side .is-locked { color: #5D626B; }
.dm-a .dm-h { color: #B8BDC5; }
.dm-a .dm-field i { background: #23262C; border: 1px solid rgba(255,255,255,.06); color: #6D737C; }
.dm-banner {
  display: flex; align-items: center; gap: .45rem; margin-top: .3rem;
  padding: .45rem .6rem; border-radius: 7px; font-size: .66rem;
  color: #D4B36A; background: rgba(212,179,106,.08); border: 1px dashed rgba(212,179,106,.35);
}
.dm-note {
  position: absolute; right: 1.2rem; bottom: 1rem; width: 128px; padding: .7rem .75rem;
  font-size: .68rem; line-height: 1.35; font-weight: 600; color: #3D3514;
  background: #EAD673; border-radius: 3px; transform: rotate(4deg);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.7);
}

/* bespoke: branded, focused, in your own words */
.dm-b { background: linear-gradient(165deg, #141C2B, #0D1420); border: 1px solid rgba(193,30,61,.35); color: var(--text-2); }
.dm-b .dm-chrome { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.dm-b .dm-url { color: var(--text-3); }
.dm-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.dm-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dm-b .dm-side { border-right: 1px solid var(--line); }
.dm-b .dm-side span { color: var(--text-2); }
.dm-b .dm-side .is-on { color: #fff; background: rgba(193,30,61,.22); box-shadow: inset 2px 0 0 var(--brand); }
.dm-b .dm-h { color: #fff; }
.dm-b .dm-field span { color: var(--text-3); }
.dm-b .dm-field i { color: #fff; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.dm-photos { display: flex; align-items: center; gap: .4rem; }
.dm-photos i { width: 34px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #3A4252, #252B36); border: 1px solid var(--line); }
.dm-photos span { font-size: .62rem; color: var(--text-3); margin-left: .2rem; }
.dm-uptime { display: grid; grid-template-columns: 1fr auto; gap: .25rem .7rem; align-items: center; padding: .5rem .65rem; border-radius: 8px; background: rgba(47,212,138,.07); border: 1px solid rgba(47,212,138,.25); }
.dm-uptime span { font-size: .64rem; color: var(--text-3); }
.dm-uptime b { color: var(--ok); font-weight: 700; }
.dm-uptime em { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.dm-uptime em i { display: block; width: 94%; height: 100%; background: var(--ok); border-radius: 3px; }
.dm-save {
  align-self: flex-start; margin-top: .2rem; padding: .5rem 1.1rem; border-radius: 8px;
  font-weight: 700; font-size: .72rem; color: #fff;
  background: linear-gradient(180deg, #D0254A, var(--brand) 55%, #8C122B);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

/* the argument, row by row. --a is how much of the off-the-shelf side is showing */
.duel-rows { margin-top: 1.8rem; --a: .5; }
.duel-cols, .duel-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 1rem; align-items: start; }
.duel-cols { padding-bottom: .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.duel-col-a { color: var(--text-3); }
.duel-col-b { color: var(--accent); }
.duel-row { padding: .95rem 0; border-top: 1px solid var(--line); }
.duel-row p { margin: 0; display: flex; gap: .65rem; align-items: flex-start; line-height: 1.5; transition: opacity .25s, color .25s; }
.duel-x { color: var(--text-3); opacity: calc(.4 + .6 * var(--a)); }
.duel-t { color: var(--text); opacity: calc(.4 + .6 * (1 - var(--a))); }
.duel-vs { color: var(--accent); text-align: center; padding-top: .1rem; opacity: .7; }

@media (max-width: 760px) {
  .duel-stage { height: 320px; }
  .duel-pane { padding: 2.5rem .5rem .5rem; }
  .duel-pane .dm { min-width: 330px; }
  .dm { font-size: .64rem; }
  .dm-body { grid-template-columns: 96px 1fr; }
  .dm-field { grid-template-columns: 78px 1fr; gap: .4rem; }
  .dm-main { padding: .7rem .6rem; }
  .dm-note { width: 100px; right: .6rem; bottom: .6rem; font-size: .6rem; }
  .dm-up { display: none; }
  .duel-cols { display: none; }
  .duel-row { grid-template-columns: 1fr; gap: .5rem; }
  .duel-vs { display: none; }
  .duel-x, .duel-t { opacity: 1; }
}

.mark-x, .mark-t { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: .15rem; }
.mark-x { background: rgba(255,107,107,.14); }
.mark-x::before, .mark-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: #FF8080; }
.mark-x::before { transform: rotate(45deg); } .mark-x::after { transform: rotate(-45deg); }
.mark-t { background: rgba(47,212,138,.16); }
.mark-t::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 9px;
  border: solid var(--ok); border-width: 0 1.6px 1.6px 0;
  transform: translate(-50%, -63%) rotate(45deg);   /* centres the tick's bounding box in the circle */
}

@media (max-width: 640px) {
  .mod { width: 170px; }
  .builder-summary { flex-direction: column; align-items: stretch; }
  .builder-cta { width: 100%; }
}

/* ---------------------------------------------------------------- Overview */

.overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.overview-head h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
.overview-body { font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 1.85rem); line-height: 1.4; letter-spacing: -.02em; color: #fff; }
.overview-body p { margin-bottom: 1.2em; }

/* ------------------------------------------------------------ Scroll story */

.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.story-stage-wrap { position: sticky; top: calc(var(--header-h) + 3vh); height: calc(100vh - var(--header-h) - 6vh); display: flex; align-items: center; }
.story-stage {
  position: relative; width: 100%; margin: 0 auto;
  /* Never taller than the sticky area: the sheet must be wholly on screen by
     the time it pins, which is when the scroll starts to change it.
     (window height = width x 10.5/16 + ~42px title bar, plus a little air) */
  max-width: calc((100vh - var(--header-h) - 6vh - 72px) * 16 / 10.5);
}
/*
 * Stage 1 is a light, Excel-style sheet — unmistakably a spreadsheet — which
 * the scroll turns into the dark, finished system. Solid colours (not
 * gradients) so the window and title bar can be tweened from light to dark.
 */
.stage-window {
  border-radius: 16px; overflow: hidden;
  background: #F3F4F6;
  border: 1px solid var(--line-bright);
  /* A smaller blur radius: this shadow is repainted while the cells morph. */
  box-shadow: 0 24px 60px -32px rgba(0,0,0,.95), 0 0 40px -26px rgba(var(--accent-rgb), .5);
}
.stage-chrome { display: flex; align-items: center; gap: .9rem; padding: .65rem .9rem; background: #1D6F42; }
.stage-title { font-family: var(--mono); font-size: .72rem; color: #fff; }

.stage-screen {
  position: relative; aspect-ratio: 16 / 10.5;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0;   /* no-JS fallback */
}
.stage-screen .cell { display: block; background: #fff; border: 1px solid #D5D9DF; border-radius: 0; color: #1F2937; }
.stage-screen .cell span {
  display: block; padding: .35em .5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--sans); font-size: clamp(.5rem, .85vw, .72rem); line-height: 1.3;
}
.stage-screen .cell.is-head { background: #F1F3F5; font-weight: 700; }
.stage-screen .cell.is-hl { background: #FFF3A6; }
.stage-screen .cell.is-err span { color: #C0392B; font-weight: 700; }
.stage-screen.is-live { display: block; padding: 0; }

/* the spreadsheet's own furniture — only drawn once the stage is live */
.sh { display: none; }
.stage-screen.is-live .sh { display: grid; position: absolute; font-family: var(--sans); color: #6B7280; font-size: clamp(.48rem, .8vw, .66rem); }
.sh-fx { left: 0; right: 0; top: 0; height: 9%; grid-template-columns: 7% auto 1fr; align-items: center; gap: .6em; background: #fff; border-bottom: 1px solid #D5D9DF; }
.sh-ref { text-align: center; border-right: 1px solid #D5D9DF; height: 100%; display: grid; place-items: center; color: #374151; }
.sh-fxi { font-style: italic; font-weight: 700; color: #1D6F42; }
.sh-formula { font-family: var(--mono); color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-cols { left: 7%; right: 1%; top: 9%; height: 6%; grid-template-columns: repeat(4, 1fr); background: #F1F3F5; border-bottom: 1px solid #D5D9DF; }
.sh-cols span, .sh-rows span { display: grid; place-items: center; }
.sh-rows { left: 0; width: 7%; top: 15%; height: 75%; grid-template-rows: repeat(6, 1fr); background: #F1F3F5; border-right: 1px solid #D5D9DF; }
.sh-tabs { left: 0; right: 0; bottom: 0; height: 9%; grid-auto-flow: column; justify-content: start; align-items: stretch; background: #E9ECEF; border-top: 1px solid #D5D9DF; }
.sh-tabs span { display: grid; place-items: center; padding: 0 1em; border-right: 1px solid #D5D9DF; white-space: nowrap; }
.sh-tabs span.on { background: #fff; color: #1D6F42; font-weight: 700; box-shadow: inset 0 -2px 0 #1D6F42; }
/*
 * The morph moves and resizes 24 boxes on every frame. Containment keeps each
 * box's layout and paint to itself, and promoting the screen to its own layer
 * stops the work spilling into the window's shadow behind it.
 */
.stage-screen.is-live { contain: layout paint style; transform: translateZ(0); }
.stage-screen.is-live .cell { position: absolute; contain: strict; }
.stage-num, .stage-toast, .stage-chart { display: none; }
.stage-screen.is-live .stage-num,
.stage-screen.is-live .stage-toast,
.stage-screen.is-live .stage-chart { display: block; position: absolute; }
/* Revealed by sweeping a clip across it. Dash-based drawing is unreliable on
   a stretched SVG with non-scaling strokes — Chrome ignores pathLength. */
.stage-chart { left: 26%; top: 27%; width: 46%; height: 34%; overflow: visible; clip-path: inset(0 100% 0 0); }
.stage-chart path { stroke-linecap: round; stroke-linejoin: round; }
.stage-num { font-family: var(--display); font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.25rem); color: #fff; letter-spacing: -.03em; opacity: 0; }
.n1 { left: 27.5%; top: 9%; } .n2 { left: 51.8%; top: 9%; } .n3 { left: 76.1%; top: 9%; }
.stage-toast {
  right: 3%; bottom: 5%; display: none; align-items: center; gap: .5rem;
  padding: .45rem .75rem; border-radius: 999px; font-family: var(--mono); font-size: .66rem; color: #fff;
  background: rgba(47, 212, 138, .14); border: 1px solid rgba(47, 212, 138, .45); opacity: 0;
}
.stage-screen.is-live .stage-toast { display: inline-flex; }
.stage-toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/*
 * The phone: someone on the plant floor logging a breakdown. Sized entirely
 * in container units (cqw = 1% of the phone's width), so the whole screen
 * scales as one with the phone, at any size.
 */
.stage-phone {
  position: absolute; right: -4%; bottom: -8%; width: 23%; aspect-ratio: 9 / 18.5;
  container-type: inline-size; overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(170deg, #161C28, #0A0E15);
  border: 1px solid var(--line-bright);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.95), inset 0 0 0 3px #05080D;
  opacity: 0; transform: translateY(30px) rotate(6deg);
}
/* cqw units cannot size the container itself — only what is inside it — so
   the padding and type live on this inner screen. */
.ph-screen {
  position: absolute; inset: 0; padding: 16cqw 6cqw 5cqw;
  display: flex; flex-direction: column; gap: 4cqw;
  font-size: 5.6cqw; color: var(--text-2);
}
.ph-notch { position: absolute; top: 3cqw; left: 50%; width: 30cqw; height: 5.5cqw; margin-left: -15cqw; border-radius: 99px; background: #05080D; }
.ph-status { position: absolute; top: 3.2cqw; left: 8cqw; right: 8cqw; display: flex; justify-content: space-between; align-items: center; }
.ph-status b { font-size: 4.6cqw; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.ph-sig { display: flex; align-items: flex-end; gap: .8cqw; height: 4cqw; }
.ph-sig i { width: 1.4cqw; background: #fff; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 35%; } .ph-sig i:nth-child(2) { height: 55%; }
.ph-sig i:nth-child(3) { height: 78%; } .ph-sig i:nth-child(4) { height: 100%; opacity: .35; }

.ph-bar { display: flex; align-items: center; gap: 3cqw; }
.ph-bar b { flex: 1; color: #fff; font-size: 6.4cqw; font-weight: 700; letter-spacing: -.02em; }
/* Four apps share the screen and take turns. --app is the app's colour,
   --tone the colour of its status. */
.ph-apps { position: relative; flex: 1; }
.ph-app {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4cqw;
  opacity: 0; transform: translateX(10cqw);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.ph-app.is-on  { opacity: 1; transform: none; }
.ph-app.is-out { opacity: 0; transform: translateX(-10cqw); }

.ph-logo { width: 8cqw; height: 8cqw; border-radius: 2.2cqw; background: linear-gradient(135deg, rgb(var(--app)), rgba(var(--app), .5)); }
.ph-me { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; font-size: 3.6cqw; font-weight: 700; color: #fff; background: #2A3242; }

.ph-card {
  display: grid; gap: 1.6cqw; padding: 4.5cqw 4.5cqw 4cqw; border-radius: 4cqw;
  background: linear-gradient(160deg, rgba(var(--tone), .18), rgba(var(--tone), .05));
  border: 1px solid rgba(var(--tone), .45);
}
.ph-card-top { display: flex; justify-content: space-between; align-items: center; }
.ph-card-top b { color: #fff; font-size: 6cqw; }
.ph-pill { font-size: 3.4cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgb(var(--tone)); padding: .9cqw 2.6cqw; border-radius: 99px; animation: blink 1.6s ease-in-out infinite; }
.ph-big { font-family: var(--mono); font-size: 10.5cqw; font-weight: 600; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; white-space: nowrap; }
.ph-sub { font-size: 4.2cqw; color: var(--text-3); }

.ph-shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5cqw; }
.ph-shots i { aspect-ratio: 1; border-radius: 3cqw; background: linear-gradient(135deg, #3A4252, #1F2530); border: 1px solid var(--line); }
.ph-cam { aspect-ratio: 1; border-radius: 3cqw; border: 1px dashed rgba(255,255,255,.3); position: relative; }
.ph-cam::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8cqw; height: 8cqw; margin: -4cqw 0 0 -4cqw; border-radius: 50%; border: 1.2cqw solid rgba(255,255,255,.55); }

/* product thumbnails (Commerce) */
.ph-shots.is-products i:nth-child(1) { background: linear-gradient(135deg, #7C5CE0, #3B2A7A); }
.ph-shots.is-products i:nth-child(2) { background: linear-gradient(135deg, #E0A95C, #7A5220); }
.ph-shots.is-products i:nth-child(3) { background: linear-gradient(135deg, #5CC8E0, #1F5A70); }

/* barcode being scanned (Stock Control) */
.ph-scan { position: relative; height: 18cqw; border-radius: 3cqw; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ph-barcode {
  width: 78%; height: 58%;
  background: repeating-linear-gradient(90deg, #111 0 1.2cqw, #fff 1.2cqw 2cqw, #111 2cqw 2.5cqw, #fff 2.5cqw 3.6cqw, #111 3.6cqw 5.4cqw, #fff 5.4cqw 6.2cqw);
}
.ph-laser {
  position: absolute; left: 6%; right: 6%; height: 2px; top: 50%;
  background: #FF3B3B; box-shadow: 0 0 8px 1px rgba(255,59,59,.9);
  animation: ph-laser 1.6s ease-in-out infinite alternate;
}
@keyframes ph-laser { from { transform: translateY(-6cqw); } to { transform: translateY(6cqw); } }

.ph-list i.bad { background: var(--bad); }

.ph-btn {
  display: block; text-align: center; padding: 3.6cqw 0; border-radius: 3.2cqw;
  font-size: 5cqw; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, rgb(var(--app)), rgba(var(--app), .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.ph-btn.is-go {
  color: #04130C;
  background: linear-gradient(180deg, #43E29B, #22B874);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 3cqw; border-top: 1px solid var(--line); }
.ph-tabs i { width: 6cqw; height: 6cqw; border-radius: 1.8cqw; background: rgba(255,255,255,.14); }
.ph-tabs i.on { background: var(--brand); }

/* A notification drops in, sits a moment, and leaves — on a loop */
.ph-list { display: grid; gap: 1.8cqw; }
.ph-list span {
  display: grid; grid-template-columns: 2.4cqw 1fr auto; align-items: center; gap: 2.2cqw;
  padding: 2.4cqw 3cqw; border-radius: 2.6cqw; font-size: 4cqw; color: var(--text-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.ph-list i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--ok); }
.ph-list i.warn { background: var(--warn); }
.ph-list em { font-style: normal; font-size: 3.5cqw; color: var(--text-3); }

.ph-toast {
  position: absolute; left: 5cqw; right: 5cqw; top: 15cqw; z-index: 2;
  display: flex; align-items: center; gap: 2.4cqw; padding: 3cqw 3.6cqw; border-radius: 4cqw;
  font-size: 4cqw; font-weight: 600; color: #fff;
  background: rgba(22,28,40,.96); border: 1px solid rgba(47,212,138,.45);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(-140%);
  animation: ph-toast 7s var(--ease) infinite 1.5s;
}
.ph-toast i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); flex: none; }
@keyframes ph-toast {
  0%, 8%   { opacity: 0; transform: translateY(-140%); }
  14%, 52% { opacity: 1; transform: translateY(0); }
  60%, 100%{ opacity: 0; transform: translateY(-140%); }
}

.story-steps { display: flex; flex-direction: column; }
.story-step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 0; opacity: .28; transition: opacity .5s var(--ease);
}
.story-step.is-active, .no-js .story-step { opacity: 1; }
.story-num { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--accent-2); margin-bottom: 1rem; display: block; }
.story-step h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .8rem; }
.story-step p { color: var(--text-2); font-size: 1.05rem; max-width: 42ch; margin: 0; }

/* -------------------------------------------------------------------- Cards */

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-caps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  position: relative; padding: 1.9rem;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .35s, background .35s;
}
.card:hover { border-color: rgba(var(--accent-rgb), .4); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .16), transparent 45%);
}
.card::after {  /* spotlight border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-2-rgb), .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--text-2); font-size: .96rem; }
.card-num { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--text-3); display: block; margin-bottom: 1.1rem; }

.cap-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.6rem; }
.cap-top .card-num { margin: 0; }
.cap-icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 13px;
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), .08); border: 1px solid rgba(var(--accent-2-rgb), .22);
  box-shadow: 0 0 30px -12px rgba(var(--accent-2-rgb), .8);
}

/* ------------------------------------------------------------ Product cards */

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: calc(var(--r) + 4px);
  overflow: hidden; text-decoration: none;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.product-card:hover { border-color: rgba(var(--accent-rgb), .45); transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.95), 0 0 60px -30px rgba(var(--accent-rgb), .6); }

.product-shot {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, rgba(var(--accent-rgb), .22), transparent 60%),
              radial-gradient(90% 80% at 100% 100%, rgba(var(--accent-2-rgb), .14), transparent 60%),
              var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 7% 8% 0;
}
.product-shot > img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: top center; }
.product-shot .mk { transform: translateY(6%); transition: transform .7s var(--ease); }
.product-card:hover .product-shot .mk { transform: translateY(1%) scale(1.02); }
.product-index {
  position: absolute; top: 1rem; left: 1.2rem; z-index: 2;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: rgba(255,255,255,.55);
}

.product-body { padding: 1.8rem 1.9rem 2rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .3rem; }
.product-client { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--text-3); margin: 0 0 1rem; }
.product-summary { flex: 1; color: var(--text-2); font-size: .98rem; margin-bottom: 1.5rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  display: inline-block; padding: .26rem .7rem; border-radius: 999px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--text-2); background: var(--surface);
}
.tag-live { border-color: rgba(47, 212, 138, .4); color: var(--ok); }
.tag-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .45rem; vertical-align: 1px; box-shadow: 0 0 8px currentColor; }
.tag-dev { color: var(--text-3); }

/* ------------------------------------------------- Generated product mock UI */

.mk {
  width: 100%; border-radius: 12px 12px 0 0; overflow: hidden;
  background: linear-gradient(165deg, #151B27, #0B0F16);
  border: 1px solid var(--line-bright); border-bottom: 0;
  box-shadow: 0 -10px 60px -20px rgba(var(--accent-rgb), .5);
}
.mk-bar { display: flex; align-items: center; gap: 5px; padding: .5rem .7rem; border-bottom: 1px solid var(--line); }
.mk-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mk-bar em { margin-left: .5rem; font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--text-3); }
.mk-body { display: grid; grid-template-columns: 22% 1fr; min-height: 190px; }
.mk-side { padding: .7rem .55rem; display: flex; flex-direction: column; gap: .45rem; border-right: 1px solid var(--line); }
.mk-nav { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(255,255,255,.09); }
.mk-nav.is-on { background: var(--gradient); }
.mk-main { padding: .7rem; display: flex; flex-direction: column; gap: .55rem; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.mk-kpi { padding: .45rem; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mk-kpi b { display: block; height: 11px; width: var(--w); margin-top: .35rem; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.25)); }
.mk-line { display: block; height: 5px; width: var(--w); border-radius: 3px; background: rgba(255,255,255,.1); }
.mk-chart { height: 64px; border-radius: 7px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.mk-chart--bars { display: flex; align-items: flex-end; gap: 5%; padding: .45rem .55rem 0; }
.mk-chart--bars i {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(var(--accent-rgb), .5));
  transform-origin: bottom; transform: scaleY(.25);
  transition: transform .9s var(--ease) calc(var(--i) * 45ms);
}
.product-card:hover .mk-chart--bars i, .mk.in .mk-chart--bars i, .no-js .mk-chart--bars i { transform: scaleY(1); }
.mk-chart--line { width: 100%; display: block; padding: .3rem 0 0; overflow: visible; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
.mk-area { fill: rgba(var(--accent-rgb), .18); }
.mk-stroke { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.product-card:hover .mk-chart--line, .mk.in .mk-chart--line, .no-js .mk-chart--line { clip-path: inset(0 0% 0 0); }
.mk-rows { display: grid; gap: .35rem; }
.mk-row { display: grid; grid-template-columns: 7px 1fr 26px; gap: .45rem; align-items: center; }
.mk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.mk-pill { display: block; height: 7px; border-radius: 4px; background: rgba(47, 212, 138, .35); }
.mk--2 .mk-kpis { grid-template-columns: 1fr 1fr; } .mk--2 .mk-kpi:nth-child(3) { display: none; }

.shot-mock { max-width: 900px; margin: 0 auto; }
.shot-mock .mk { border-radius: 14px; border-bottom: 1px solid var(--line-bright); }
.shot-mock .mk-body { min-height: 360px; }
.shot-mock .mk-chart { height: 140px; }

/* --------------------------------------------------------------------- FAQ */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--display); font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500; letter-spacing: -.02em; color: #fff; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: currentColor; transition: transform .4s var(--ease);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-a { color: var(--text-2); padding: 0 3rem 1.6rem 0; }
.faq-a p { margin: 0; }

/* --------------------------------------------------------------------- CTA */

.cta-band { position: relative; padding: clamp(6rem, 13vw, 11rem) 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow {
  position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(193, 30, 61, .34), rgba(128, 35, 64, .16) 50%, rgba(23, 42, 70, .2) 75%, transparent);
  /* No blur filter: the gradient is already soft, and blurring an element this
     large was re-rasterising a full screen of pixels on every frame. */
  pointer-events: none; animation: breathe 11s ease-in-out infinite; will-change: transform;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .75; } }
.cta-title { font-size: clamp(2.6rem, 7vw, 5.6rem); margin-bottom: 1.4rem; }

/* ---------------------------------------------------------- Sign-in gateway */

.signin-list { display: grid; gap: 1rem; }
.signin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
  padding: 1.5rem 1.7rem; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), background .3s;
}
.signin-row:hover { border-color: rgba(var(--accent-2-rgb), .6); transform: translateX(6px); }
.signin-id { display: flex; align-items: center; gap: 1.1rem; }
.signin-mark {
  width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--gradient);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff;
  box-shadow: 0 0 26px -8px var(--glow);
}
/* A real logo speaks for itself: no brand fill behind it, and shown whole
   rather than cropped. The tile stays only so a logo with a transparent
   background still has something to sit on. */
.signin-mark.is-logo {
  background: rgba(255,255,255,.05); box-shadow: none;
  border: 1px solid var(--line); padding: 5px; object-fit: contain;
}
.signin-row h3 { margin: 0 0 .1rem; font-size: 1.15rem; }
.signin-row p { margin: 0; font-size: .82rem; color: var(--text-3); font-family: var(--mono); }
.signin-go { font-size: .92rem; font-weight: 600; color: var(--accent-2); white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.signin-row:hover .arrow { transform: translateX(4px); }
.signin-row.is-soon { opacity: .45; pointer-events: none; }

/* -------------------------------------------------------------- Product page */

.product-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.crumb { font-family: var(--mono); font-size: .78rem; color: var(--text-3); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.crumb:hover { color: var(--accent-2); }
.product-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin: 1.4rem 0 1rem; }

.split { display: grid; gap: clamp(2.5rem, 5vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--text-2); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--gradient); box-shadow: 0 0 14px -2px var(--glow); transform: rotate(45deg);
}

.shot-stack { display: grid; gap: 1.8rem; }
.shot-stack figure { margin: 0; }
.shot-stack img { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--r); }
.shot-stack figcaption { margin-top: .8rem; font-family: var(--mono); font-size: .76rem; color: var(--text-3); }
.shot-empty {
  border: 1px dashed var(--line-bright); border-radius: var(--r);
  padding: clamp(3rem, 8vw, 5rem) 1.5rem; text-align: center;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); background: var(--surface);
}

/* ------------------------------------------------------------------- Contact */

.contact-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(2rem, 4vw, 3rem);
}
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .96rem; padding: .85rem 1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(5, 7, 11, .6); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(193, 30, 61, .22); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--text-3); margin: .9rem 0 0; }

/* -------------------------------------------------------------------- Footer */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 4.5rem 0 2.5rem; color: var(--text-2); }
.footer-top { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4.5rem); }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; font-weight: 500; }
.footer-col a { display: block; text-decoration: none; font-size: .93rem; color: var(--text-2); padding: .24rem 0; transition: color .2s, transform .3s var(--ease); }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
/* Right padding keeps the clock clear of the back-to-top button, which sits
   fixed in the bottom-right corner and would otherwise cover it on screens
   narrow enough for this row to reach the edge. */
.footer-bottom { padding-top: 1.8rem; padding-right: 76px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--text-3); }
@media (max-width: 640px) { .footer-bottom { padding-right: 60px; } }
.footer-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.footer-legal a { color: var(--text-2); text-decoration: none; padding-left: 1rem; border-left: 1px solid var(--line-bright); transition: color .2s; }
.footer-legal a:hover { color: #fff; }
.footer-clock { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .74rem; }
.footer-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s ease-in-out infinite; }
.footer-clock b { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Cookie notice */

.cookie-notice {
  position: fixed; left: 50%; bottom: 18px; z-index: 150; overflow: hidden;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(140%) scale(.98); opacity: 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), .14), transparent 62%),
    rgba(11, 14, 20, .96);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--line-bright); border-radius: var(--r);
  box-shadow: 0 28px 70px -30px rgba(0,0,0,.95), 0 0 50px -34px var(--glow);
  transition: transform .6s var(--ease), opacity .4s;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.show { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
/* a hairline of the brand gradient along the top edge */
.cookie-edge {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 24%, var(--accent-2) 50%, var(--accent) 76%, transparent);
}
.cookie-inner { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.35rem; flex-wrap: wrap; }
.cookie-mark {
  flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .95), rgba(193,30,61,.7));
  box-shadow: 0 10px 24px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
}
.cookie-mark svg { width: 20px; height: 20px; }
.cookie-inner p { margin: 0; flex: 1 1 300px; font-size: .9rem; color: var(--text-2); line-height: 1.55; }
.cookie-inner a { color: var(--accent-2); text-underline-offset: 3px; }
.cookie-inner a:hover { color: #fff; }
.cookie-actions { display: flex; gap: .55rem; flex-wrap: wrap; }

@media (max-width: 560px) {
  .cookie-notice { bottom: 10px; width: calc(100vw - 20px); }
  .cookie-inner { gap: .85rem; padding: 1rem 1.05rem; }
  .cookie-mark { flex-basis: 32px; height: 32px; border-radius: 9px; }
  .cookie-mark svg { width: 17px; height: 17px; }
  .cookie-inner p { flex: 1 1 60%; font-size: .85rem; }
  .cookie-actions { flex: 1 1 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------------- Motion */

/*
 * Elements are only hidden for animation when JavaScript is running (.js on
 * <html>, set in the head). As a failsafe, if site.js never arrives, a CSS
 * animation reveals everything after 2.5s anyway. site.js sets .motion to
 * take over.
 */
.js .reveal { opacity: 0; transform: translateY(28px); animation: failsafe 0s 2.5s forwards; }
.js.motion .reveal { animation: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js.motion .reveal.in { opacity: 1; transform: none; }

.js .hero-copy > * { opacity: 0; animation: failsafe 0s 2.5s forwards; }
.js .hero-visual { opacity: 0; animation: failsafe 0s 2.5s forwards; }
.js.motion .hero-copy > *, .js.motion .hero-visual { animation: none; }

@keyframes failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .hero-copy > *, .js .hero-visual { opacity: 1 !important; transform: none !important; }
  .demo { transform: none; }
  .story-step { opacity: 1; }
  [data-scrub-words] .word { opacity: 1; }
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 1080px) {
  .chip-1 { left: -2%; } .chip-3 { left: -3%; } .chip-2 { right: -2%; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .picker { grid-column: 1; }
  .hero--home { min-height: 0; }
  .hero-title { max-width: 14ch; }
  .hero-visual { max-width: 600px; margin: 1rem auto 0; width: 100%; }
  .demo { transform: rotateX(8deg); }
  .scroll-cue { display: none; }
  .overview, .faq-grid { grid-template-columns: 1fr; }
  .overview-head h2, .faq-grid .section-head { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage-wrap {
    top: calc(var(--header-h) + 8px); height: auto; z-index: 2;
    padding: .5rem 0 1.4rem;
    /* Opaque almost to the edge: the steps scroll underneath this panel, and
       a backdrop that fades too early lets their text show through it. */
    background: linear-gradient(var(--bg) 94%, transparent);
  }
  .story-stage { max-width: 520px; margin: 0 auto; }
  .story-step { min-height: 55vh; }
}

@media (max-width: 860px) {
  .nav { gap: 1.2rem; }
  .nav .nav-hide { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; --gutter: 18px; }
  .chip { font-size: .62rem; padding: .4rem .65rem; }
  .chip-2, .chip-4 { display: none; }
  .demo-body { grid-template-columns: 1fr; min-height: 0; }
  .demo-side { display: none; }
  .signin-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stats { gap: 1.6rem; }
  .product-body { padding: 1.4rem 1.4rem 1.6rem; }
  .faq-a { padding-right: 0; }
  .stage-phone { width: 26%; right: -2%; }
}

/* ------------------------------------------------------------------ Utility */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.only-sm { display: none; }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .only-sm { display: inline; }
  .brand .wordmark { font-size: 1.05rem; }
  .brand-logo { width: 30px; height: 30px; }
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ==========================================================================
   Approach page
   A live pipeline in the hero, then the four stages on a rail that fills as
   you scroll. Each stage has a small scene that plays when it arrives
   (.is-in, set by site.js) and resets once it is fully out of view.
   Without JS every scene simply shows its finished state.
   ========================================================================== */

.hero--approach { overflow: hidden; }
.hero--approach::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .16), transparent 70%);
}
.ap-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; position: relative; }

/* --- hero pipeline --- */
.ap-pipe {
  position: relative; display: flex; flex-direction: column; gap: 1.15rem;
  padding: 1.6rem; border-radius: 20px; border: 1px solid var(--line-bright);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px rgba(var(--accent-rgb), .45);
}
.ap-pipe-line { position: absolute; left: calc(1.6rem + 21px); top: calc(1.6rem + 22px); bottom: calc(1.6rem + 22px); width: 2px; background: var(--line-bright); }
.ap-pipe-pulse {
  position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px 5px var(--glow);
  animation: apPulse 5s linear infinite;
}
@keyframes apPulse { from { top: 0; } to { top: calc(100% - 10px); } }
.ap-node, .ap-pipe-out { position: relative; z-index: 1; display: flex; align-items: center; gap: 1rem; }
.ap-node-n {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: .78rem; color: var(--text-3);
  background: var(--bg-3); border: 1px solid var(--line-bright);
  animation: apNode 5s infinite; animation-delay: calc(var(--i) * 1.25s);
}
@keyframes apNode {
  0%   { color: #fff; border-color: var(--accent); background: #3A1523; box-shadow: 0 0 22px -2px var(--glow); }
  20%, 100% { color: var(--text-3); border-color: var(--line-bright); background: var(--bg-3); box-shadow: none; }
}
.ap-node-t { display: flex; flex-direction: column; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.ap-node-t b { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .15rem; }
.ap-pipe-out i {
  flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--gradient);
  animation: apLive 5s infinite; animation-delay: 4.8s;
}
.ap-pipe-out span { font-weight: 700; }
@keyframes apLive { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6); } 25%, 100% { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); } }

/* --- the four stages --- */
.ap-flow-section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.ap-flow-section + .section { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.ap-flow { position: relative; --p: 0; }
.ap-rail { position: absolute; left: 31px; top: 4.5rem; bottom: 4.5rem; width: 2px; background: var(--line); }
.ap-rail-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent-2), var(--accent) 60%, var(--brand-plum)); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px var(--glow); }

.ap-step {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.ap-marker span {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--mono); font-size: .9rem; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--line-bright); position: relative; z-index: 1;
  transition: color .5s, background .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease);
}
.ap-step.is-in .ap-marker span { color: #fff; background: var(--gradient); border-color: transparent; box-shadow: 0 0 34px -4px var(--glow); transform: scale(1.06); }
.ap-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .8rem; }
.ap-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; margin-bottom: 1rem; }
.ap-body { color: var(--text-2); font-size: 1.05rem; line-height: 1.65; max-width: 46ch; }
.ap-gets { margin-top: 1.6rem; }
.ap-gets-h { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: .7rem; }
.ap-gets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ap-gets li { position: relative; padding-left: 1.7rem; color: var(--text); font-size: .95rem; }
.ap-gets li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: rgba(var(--accent-rgb), .18); border: 1px solid rgba(var(--accent-rgb), .6);
}
.ap-gets li::after {
  content: ""; position: absolute; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  left: .525rem; top: calc(.2em + .525rem);          /* the centre of the 1.05rem circle */
  transform: translate(-50%, -59%) rotate(45deg);
}

/* copy slides in with its stage */
.js .ap-copy > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .ap-step:not(.is-in) .ap-copy > * { opacity: 0; transform: translateY(18px); }
.ap-copy > :nth-child(2) { transition-delay: .08s; }
.ap-copy > :nth-child(3) { transition-delay: .16s; }
.ap-copy > :nth-child(4) { transition-delay: .24s; }

.ap-scene {
  position: relative; border-radius: 16px; overflow: hidden; background: #0F1520;
  border: 1px solid var(--line-bright);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.95), 0 0 50px -30px rgba(var(--accent-rgb), .45);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .ap-step:not(.is-in) .ap-scene { opacity: 0; transform: translateY(30px) scale(.97); }
.ap-chrome { display: flex; align-items: center; gap: .9rem; padding: .65rem .9rem; background: #141B27; border-bottom: 1px solid var(--line); }
.ap-chrome-t { font-family: var(--mono); font-size: .7rem; color: var(--text-3); }

.apv { position: relative; height: 300px; padding: 1.4rem; }
.apv-label { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: .6rem; }

@keyframes apPop  { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes apFade { from { opacity: 0; } to { opacity: 1; } }

/* 1 · Listen: a conversation, then what was captured from it */
.apv-chat { display: flex; flex-direction: column; gap: .6rem; }
.apv-chat .b { max-width: 80%; padding: .6rem .85rem; border-radius: 14px; font-size: .85rem; line-height: 1.4; }
.apv-chat .them { align-self: flex-start; background: rgba(255,255,255,.07); color: var(--text); border-bottom-left-radius: 4px; }
.apv-chat .us { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.apv-notes { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line-bright); }
.apv-tags i {
  display: inline-block; font-style: normal; font-size: .76rem; color: #fff; margin: 0 .35rem .35rem 0;
  padding: .3rem .7rem; border-radius: 999px; background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .55);
}
.js .ap-step.is-in .apv-chat .b { animation: apPop .5s var(--ease) both .2s; }
.js .ap-step.is-in .apv-chat .b:nth-child(2) { animation-delay: .9s; }
.js .ap-step.is-in .apv-chat .b:nth-child(3) { animation-delay: 1.8s; }
.js .ap-step.is-in .apv-notes { animation: apFade .5s both 2.5s; }
.js .ap-step.is-in .apv-tags i { animation: apPop .45s var(--ease) both 2.8s; }
.js .ap-step.is-in .apv-tags i:nth-child(2) { animation-delay: 3.05s; }
.js .ap-step.is-in .apv-tags i:nth-child(3) { animation-delay: 3.3s; }

/* 2 · Shape: a wireframe drawn in outline, then filled in */
.apv-wf {
  height: 100%; display: grid; gap: 8px;
  grid-template-columns: 20% 1fr 1fr 1fr; grid-template-rows: 22% 1fr 11% 11% 11%;
}
.apv-wf i { position: relative; display: block; font-style: normal; border-radius: 8px; border: 1.5px dashed rgba(var(--accent-rgb), .55); --d: 0s; }
.apv-wf i::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; background: #182131; border: 1px solid rgba(255,255,255,.1); }
.apv-wf .wf-side { grid-row: 1 / -1; }
.apv-wf .wf-side::after { background: linear-gradient(180deg, rgba(var(--accent-rgb), .35), #182131 30%); }
.apv-wf .wf-main { grid-column: 2 / span 2; }
.apv-wf .wf-main::after { background: linear-gradient(0deg, rgba(var(--accent-rgb), .22), #182131 70%); }
.apv-wf .wf-row { grid-column: 2 / -1; }
.apv-wf b { position: absolute; z-index: 1; left: .6rem; top: .5rem; font-size: .7rem; font-weight: 600; color: #fff; }
.apv-wf i:nth-child(2) { --d: .12s; } .apv-wf i:nth-child(3) { --d: .24s; } .apv-wf i:nth-child(4) { --d: .36s; }
.apv-wf i:nth-child(5) { --d: .48s; } .apv-wf i:nth-child(6) { --d: .6s; }  .apv-wf i:nth-child(7) { --d: .72s; }
.apv-wf i:nth-child(8) { --d: .84s; } .apv-wf i:nth-child(9) { --d: .96s; }
.js .ap-step.is-in .apv-wf i { animation: apFade .4s both var(--d); }
.js .ap-step.is-in .apv-wf i::after { animation: apFade .5s both calc(var(--d) + 1.5s); }
.js .ap-step.is-in .apv-wf b { animation: apPop .4s var(--ease) both 2.9s; }
.apv-cursor {
  position: absolute; left: 60%; top: 60%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.18); opacity: 0;
}
.js .ap-step.is-in .apv-cursor { animation: apCursor 6s ease-in-out infinite 1.2s; }
@keyframes apCursor {
  0%   { opacity: 0; left: 70%; top: 75%; }
  8%   { opacity: 1; }
  30%  { left: 40%; top: 45%; }
  60%  { left: 85%; top: 42%; }
  90%  { opacity: 1; left: 55%; top: 80%; }
  100% { opacity: 0; left: 55%; top: 80%; }
}

/* 3 · Build: rows copied out of the spreadsheet into the new system */
.apv-mig { display: grid; grid-template-columns: 1fr 64px 1fr; gap: .6rem; align-items: center; }
.mig-old, .mig-new { display: flex; flex-direction: column; gap: 7px; padding: .8rem; border-radius: 10px; }
.mig-old { background: #F3F4F6; }
.mig-old .apv-label { color: #1D6F42; }
.mig-old i { height: 16px; background: #fff; border: 1px solid #D5D9DF; }
.mig-new { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mig-new i { height: 16px; border-radius: 5px; background: rgba(var(--accent-rgb), .2); border: 1px solid rgba(var(--accent-rgb), .35); }
.mig-old i, .mig-new i { --d: 0s; }
.mig-old i:nth-child(3), .mig-new i:nth-child(3) { --d: .25s; }
.mig-old i:nth-child(4), .mig-new i:nth-child(4) { --d: .5s; }
.mig-old i:nth-child(5), .mig-new i:nth-child(5) { --d: .75s; }
.mig-old i:nth-child(6), .mig-new i:nth-child(6) { --d: 1s; }
.js .ap-step.is-in .mig-old i { animation: apCopyOut 3s ease-in-out infinite var(--d); }
.js .ap-step.is-in .mig-new i { animation: apCopyIn 3s ease-in-out infinite var(--d); }
@keyframes apCopyOut { 0%, 20% { background: #fff; } 35% { background: #FFF3A6; } 60%, 100% { background: #fff; } }
@keyframes apCopyIn  { 0%, 35% { opacity: .2; transform: translateX(-14px); } 55%, 100% { opacity: 1; transform: none; } }
.mig-pipe { position: relative; height: 2px; background: var(--line-bright); }
.mig-pipe span { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--glow); opacity: 0; }
.js .ap-step.is-in .mig-pipe span { animation: apTravel 1.2s linear infinite; }
.js .ap-step.is-in .mig-pipe span:nth-child(2) { animation-delay: .4s; }
.js .ap-step.is-in .mig-pipe span:nth-child(3) { animation-delay: .8s; }
@keyframes apTravel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.apv-progress { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: .55rem; font-family: var(--mono); font-size: .74rem; color: var(--text-2); }
.apv-progress b { color: #fff; font-weight: 600; }
.apv-progress .bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.apv-progress .bar i { display: block; height: 100%; width: 100%; background: var(--gradient); border-radius: inherit; }
.js .ap-step.is-in .apv-progress .bar i { animation: apBar 3.4s var(--ease) both .3s; }
@keyframes apBar { from { width: 0; } to { width: 100%; } }

/* 4 · Own: settings the business changes itself */
.apv-own { height: 350px; }
.apv-set { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .2rem; background: rgba(255,255,255,.03); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.set-row em { font-style: normal; font-size: .78rem; color: var(--text-3); }
.set-new { display: inline-block; color: #fff; font-weight: 600; background: rgba(var(--accent-rgb), .25); padding: .05rem .4rem; border-radius: 5px; }
.set-row .tg { position: relative; flex: 0 0 34px; height: 20px; border-radius: 99px; background: var(--ok); --d: .1s; }
.set-row .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateX(14px); }
.set-row:nth-child(4) .tg { --d: .7s; }
.set-row:nth-child(5) .tg { --d: 1.3s; }
.js .ap-step.is-in .set-row .tg { animation: apTgBg .3s both var(--d); }
.js .ap-step.is-in .set-row .tg::after { animation: apTgKnob .3s var(--ease) both var(--d); }
@keyframes apTgBg   { from { background: rgba(255,255,255,.14); } to { background: var(--ok); } }
@keyframes apTgKnob { from { transform: none; } to { transform: translateX(14px); } }
.js .ap-step.is-in .set-new { animation: apPop .45s var(--ease) both 2.1s; }
.apv-toast {
  position: absolute; right: 1.4rem; bottom: 1.4rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .85rem; border-radius: 99px; font-size: .76rem; color: #fff;
  background: rgba(47,212,138,.12); border: 1px solid rgba(47,212,138,.45);
}
.apv-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.js .ap-step.is-in .apv-toast { animation: apPop .5s var(--ease) both 2.8s; }

/* before a stage arrives, its scene waits at its first frame */
.js .ap-step:not(.is-in) :is(.apv-chat .b, .apv-notes, .apv-tags i, .apv-wf i, .apv-wf b, .set-new, .apv-toast) { opacity: 0; }
.js .ap-step:not(.is-in) .apv-wf i::after { opacity: 0; }
.js .ap-step:not(.is-in) .apv-progress .bar i { width: 0; }
.js .ap-step:not(.is-in) .set-row .tg { background: rgba(255,255,255,.14); }
.js .ap-step:not(.is-in) .set-row .tg::after { transform: none; }

/* --- promises --- */
.ap-promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.ap-promise-ic {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1.2rem;
  font-family: var(--mono); font-size: .8rem; color: #fff; background: var(--gradient); box-shadow: 0 10px 26px -12px var(--glow);
}
.ap-promise h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.ap-promise p { color: var(--text-2); font-size: .94rem; }

@media (max-width: 1060px) {
  .ap-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ap-hero { grid-template-columns: 1fr; }
  .ap-pipe { max-width: 460px; }
  .ap-rail { left: 21px; }
  .ap-step { grid-template-columns: 44px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
  .ap-marker span { width: 44px; height: 44px; font-size: .76rem; }
  .ap-scene { grid-column: 2; }
}
@media (max-width: 560px) {
  .ap-promises { grid-template-columns: 1fr; }
  .apv { height: 280px; padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-pipe-pulse, .ap-node-n, .ap-pipe-out i, .apv-cursor { animation: none !important; }
  .ap-step .apv *, .ap-step .apv *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   Work — mock-up systems (inc/mockscreens.php)
   A browser window cycling through three screens, plus a phone. Everything
   inside the window is sized in container units (cqw = 1% of the window's
   width), so it scales as one, like a screenshot. Entrance animations run
   only once site.js marks the mock-up .is-live (on screen); without JS the
   screens simply show, finished.
   ========================================================================== */

/* status tones, as RGB triplets */
.t-ok    { --t: 47, 212, 138; }
.t-warn  { --t: 255, 181, 71; }
.t-bad   { --t: 255, 107, 107; }
.t-info  { --t: 96, 165, 250; }
.t-brand { --t: 232, 51, 90; }
.t-muted { --t: 120, 130, 148; }

.wk-sys { position: relative; }
.wk-stage { position: relative; padding: 0 9% 8% 0; }
.wk-win {
  position: relative; aspect-ratio: 16 / 9.4; container-type: inline-size;
  border-radius: 14px; overflow: hidden; background: #0B111B;
  border: 1px solid var(--line-bright);
  box-shadow: 0 40px 90px -45px rgba(0,0,0,.95), 0 0 70px -40px rgba(var(--accent-rgb), .55);
}
.wk-inner { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 1.3cqw; color: var(--text-2); line-height: 1.35; }

.wk-chrome { flex: 0 0 auto; display: flex; align-items: center; gap: 1.6cqw; height: 5cqw; padding: 0 1.6cqw; background: #121A27; border-bottom: 1px solid rgba(255,255,255,.06); }
.wk-chrome .dots { gap: .6cqw; }
.wk-chrome .dots i { width: 1cqw; height: 1cqw; }
.wk-url { display: inline-flex; align-items: center; gap: .6cqw; padding: .5cqw 1.4cqw; border-radius: 99px; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 1.05cqw; color: var(--text-3); white-space: nowrap; }
.wk-url i { width: .8cqw; height: .8cqw; border-radius: 50%; background: var(--ok); }
.wk-tabs { margin-left: auto; display: flex; gap: .4cqw; }
.wk-tab {
  position: relative; font: inherit; font-size: 1.1cqw; font-weight: 600; color: var(--text-3);
  padding: .6cqw 1.3cqw; border: 0; border-radius: .8cqw; background: none; cursor: pointer; white-space: nowrap;
  transition: color .3s, background .3s;
}
.wk-tab:hover { color: var(--text); }
.wk-tab.is-on { color: #fff; background: rgba(255,255,255,.08); }
.wk-tab i { position: absolute; left: 1cqw; right: 1cqw; bottom: .25cqw; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.wk-sys.is-playing .wk-tab.is-on i { animation: wkProg var(--dur, 5s) linear both; }
@keyframes wkProg { to { transform: scaleX(1); } }

.wk-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 16% minmax(0, 1fr); }
.wk-side { display: flex; flex-direction: column; gap: .4cqw; padding: 1.6cqw 1.1cqw; background: #0E1520; border-right: 1px solid rgba(255,255,255,.06); }
.wk-brand { display: flex; align-items: center; gap: .8cqw; margin-bottom: 1.4cqw; color: #fff; font-weight: 700; font-size: 1.2cqw; white-space: nowrap; overflow: hidden; }
.wk-brand i { flex: 0 0 2.6cqw; height: 2.6cqw; border-radius: .7cqw; display: grid; place-items: center; font-style: normal; font-size: 1.2cqw; background: var(--gradient); }
.wk-nav { display: flex; align-items: center; gap: .8cqw; padding: .65cqw .8cqw; border-radius: .7cqw; font-size: 1.08cqw; white-space: nowrap; transition: background .4s, color .4s; }
.wk-nav i { flex: 0 0 1.1cqw; height: 1.1cqw; border-radius: .3cqw; background: rgba(255,255,255,.14); transition: background .4s; }
.wk-nav.is-on { background: rgba(var(--accent-rgb), .15); color: #fff; }
.wk-nav.is-on i { background: var(--accent); }

.wk-views { position: relative; min-width: 0; overflow: hidden; }
.wk-view {
  position: absolute; inset: 0; padding: 1.8cqw 2cqw; display: flex; flex-direction: column; gap: 1.4cqw;
  opacity: 0; visibility: hidden; transform: translateX(2.5cqw);
  transition: opacity .5s ease, transform .6s var(--ease), visibility 0s .6s;
}
.wk-view.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .1s, transform .6s var(--ease) .1s, visibility 0s; }
.wk-view.is-out { transform: translateX(-2.5cqw); }
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; }
.wk-head h3 { margin: 0; font-size: 2cqw; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.wk-head span { font-size: 1.05cqw; color: var(--text-3); }
.wk-live { display: inline-flex; align-items: center; gap: .5cqw; padding: .35cqw .9cqw; border-radius: 99px; font-size: .95cqw !important; color: var(--ok) !important; background: rgba(47,212,138,.1); border: 1px solid rgba(47,212,138,.3); }
.wk-live i { width: .7cqw; height: .7cqw; border-radius: 50%; background: var(--ok); animation: blink 1.6s ease-in-out infinite; }

.wk-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2cqw; align-content: start; }
.wk-c { position: relative; grid-column: span var(--span, 12); min-width: 0; padding: 1.2cqw 1.4cqw; border-radius: 1cqw; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.wk-c h4 { margin: 0 0 1cqw; font-size: 1.08cqw; font-weight: 600; color: var(--text-2); }
.wk-board-c { padding: 0; background: none; border: 0; }

/* KPI */
.wk-k-l { display: block; font-size: 1cqw; color: var(--text-3); }
.wk-k-v { display: block; margin: .25cqw 0 .15cqw; font-size: 2.3cqw; font-weight: 700; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wk-k-d { font-style: normal; font-size: .95cqw; color: rgb(var(--t)); }

/* bar chart */
.wk-bars { display: flex; align-items: flex-end; gap: 1.2cqw; height: 15cqw; padding-bottom: 2.2cqw; }
.wk-bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.wk-bar em { order: 0; font-style: normal; font-size: .9cqw; color: #fff; text-align: center; margin-bottom: .4cqw; }
.wk-bar i { order: 1; display: block; height: calc(var(--h) * .82); border-radius: .5cqw .5cqw .15cqw .15cqw; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .3)); transform-origin: bottom; }
.wk-bar b { position: absolute; left: -20%; right: -20%; bottom: -2.1cqw; font-size: .9cqw; font-weight: 500; color: var(--text-3); text-align: center; white-space: nowrap; }

/* line chart */
.wk-line { display: block; width: 100%; height: 13cqw; }
.wk-line .g { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wk-line .a { fill: rgba(var(--accent-rgb), .12); }
.wk-line .s { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.wk-line-now { position: absolute; top: 1cqw; right: 1.4cqw; font-size: 1.6cqw; font-weight: 700; color: #fff; }

/* table */
.wk-table { width: 100%; border-collapse: collapse; font-size: 1.05cqw; table-layout: auto; }
.wk-table th { text-align: left; font-weight: 600; font-size: .88cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: .5cqw .8cqw; border-bottom: 1px solid rgba(255,255,255,.08); }
.wk-table td { padding: .72cqw .8cqw; color: var(--text); border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18cqw; }
.wk-table td:first-child { color: #fff; font-weight: 600; }
.wk-table tr:last-child td { border-bottom: 0; }
.wk-pill { display: inline-block; padding: .2cqw .8cqw; border-radius: 99px; font-size: .9cqw; font-weight: 600; color: rgb(var(--t)); background: rgba(var(--t), .14); border: 1px solid rgba(var(--t), .35); }

/* meters */
.wk-meter { display: grid; grid-template-columns: 1fr auto; gap: .5cqw; margin-bottom: 1.2cqw; font-size: 1.02cqw; }
.wk-meter b { color: #fff; font-weight: 600; }
.wk-meter > i { grid-column: 1 / -1; display: block; height: .7cqw; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.wk-meter > i > i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--gradient); transform-origin: left; }

/* live feed */
.wk-feed { list-style: none; margin: 0; padding: 0; }
.wk-feed li { display: grid; grid-template-columns: .8cqw 4cqw 1fr; gap: .9cqw; align-items: center; padding: .7cqw 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 1.02cqw; color: var(--text); white-space: nowrap; overflow: hidden; }
.wk-feed li:last-child { border-bottom: 0; }
.wk-feed i { width: .8cqw; height: .8cqw; border-radius: 50%; background: rgb(var(--t)); box-shadow: 0 0 .8cqw rgba(var(--t), .7); }
.wk-feed time { font-family: var(--mono); font-size: .92cqw; color: var(--text-3); }

/* board */
.wk-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2cqw; }
.wk-col { min-height: 30cqw; padding: 1.1cqw; border-radius: 1cqw; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.wk-col h5 { display: flex; align-items: center; gap: .6cqw; margin: 0 0 1.1cqw; font-size: 1.1cqw; color: #fff; }
.wk-col h5 i { width: .8cqw; height: .8cqw; border-radius: 50%; background: rgb(var(--t)); }
.wk-col h5 em { margin-left: auto; font-style: normal; font-size: .9cqw; padding: .1cqw .7cqw; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--text-2); }
.wk-card { padding: 1cqw 1.1cqw; margin-bottom: .9cqw; border-radius: .7cqw; background: #172030; border: 1px solid rgba(255,255,255,.07); border-left: .35cqw solid rgb(var(--t)); }
.wk-card b { display: block; font-size: 1.05cqw; color: #fff; margin-bottom: .2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-card span { font-size: .92cqw; color: var(--text-3); }

/* tiles */
.wk-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .8cqw; }
.wk-tile { aspect-ratio: 1.55; display: grid; place-items: center; border-radius: .7cqw; font-size: 1.15cqw; font-weight: 700; color: #fff; background: rgba(var(--t), .2); border: 1px solid rgba(var(--t), .5); }
.wk-legend { display: flex; flex-wrap: wrap; gap: .6cqw 1.4cqw; margin-top: 1.2cqw; font-size: .95cqw; }
.wk-legend i { display: inline-block; width: .9cqw; height: .9cqw; margin-right: .5cqw; border-radius: .25cqw; background: rgb(var(--t)); vertical-align: -.1cqw; }

/* tape chart */
.wk-gantt { position: relative; }
.wk-g-head { display: grid; grid-template-columns: 15% repeat(var(--days), minmax(0, 1fr)); padding-bottom: .8cqw; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .9cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.wk-g-row { display: grid; grid-template-columns: 15% minmax(0, 1fr); align-items: center; height: 4.8cqw; border-bottom: 1px solid rgba(255,255,255,.05); }
.wk-g-row b { font-size: 1.02cqw; font-weight: 600; color: var(--text); white-space: nowrap; }
.wk-g-lane { position: relative; height: 100%; background-image: linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: calc(100% / var(--days)) 100%; }
.wk-g-lane i {
  position: absolute; top: 20%; bottom: 20%; display: flex; align-items: center; padding: 0 .9cqw;
  left: calc(100% * var(--s) / var(--days) + .3cqw); width: calc(100% * var(--l) / var(--days) - .6cqw);
  font-style: normal; font-size: .98cqw; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden;
  border-radius: .6cqw; background: rgba(var(--t), .3); border: 1px solid rgba(var(--t), .65); transform-origin: left;
}
.wk-g-today { position: absolute; top: 0; bottom: 0; width: 2px; left: calc(15% + 85% * var(--t) / var(--days)); background: var(--accent); box-shadow: 0 0 10px var(--glow); }

/* the phone: the home page's .ph-* styles, in a frame of its own */
.wk-phone {
  position: absolute; right: 0; bottom: 0; width: 21%; aspect-ratio: 9 / 18.5;
  container-type: inline-size; overflow: hidden; border-radius: 18px;
  background: linear-gradient(170deg, #161C28, #0A0E15); border: 1px solid var(--line-bright);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.95), inset 0 0 0 3px #05080D;
}
.wk-sys.is-live .wk-phone { animation: wkFloat 7s ease-in-out infinite; }
@keyframes wkFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2.5%) rotate(.6deg); } }

/* entrances — replayed each time a screen comes round */
@keyframes wkIn   { from { opacity: 0; transform: translateY(1.2cqw); } to { opacity: 1; transform: none; } }
@keyframes wkRow  { from { opacity: 0; transform: translateX(-1.2cqw); } to { opacity: 1; transform: none; } }
@keyframes wkGrowY { from { transform: scaleY(0); } to { transform: none; } }
@keyframes wkGrowX { from { transform: scaleX(0); } to { transform: none; } }
@keyframes wkPop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes wkWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wkNew  { 0% { background: rgba(var(--accent-rgb), .28); } 100% { background: transparent; } }

.wk-sys.is-live .wk-view.is-on .wk-c { animation: wkIn .6s var(--ease) both; animation-delay: calc(var(--bn) * 80ms + 120ms); }
.wk-sys.is-live .wk-view.is-on .wk-bar i { animation: wkGrowY .9s var(--ease) both; animation-delay: calc(var(--n) * 70ms + 400ms); }
.wk-sys.is-live .wk-view.is-on .wk-line { animation: wkWipe 1.4s var(--ease) both .45s; }
.wk-sys.is-live .wk-view.is-on .wk-table tbody tr { animation: wkRow .45s var(--ease) both; animation-delay: calc(var(--n) * 70ms + 350ms); }
.wk-sys.is-live .wk-view.is-on .wk-table tr.is-new td { animation: wkNew 2.4s ease-out both 1.4s; }
.wk-sys.is-live .wk-view.is-on .wk-meter > i > i { animation: wkGrowX 1s var(--ease) both; animation-delay: calc(var(--n) * 120ms + 500ms); }
.wk-sys.is-live .wk-view.is-on .wk-feed li { animation: wkRow .45s var(--ease) both; animation-delay: calc(var(--n) * 110ms + 450ms); }
.wk-sys.is-live .wk-view.is-on .wk-card { animation: wkIn .5s var(--ease) both; animation-delay: calc(var(--n) * 110ms + 300ms); }
.wk-sys.is-live .wk-view.is-on .wk-tile { animation: wkPop .4s var(--ease) both; animation-delay: calc(var(--n) * 28ms + 300ms); }
.wk-sys.is-live .wk-view.is-on .wk-g-lane i { animation: wkGrowX .7s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 400ms); }

/* tour captions (product page) */
.wk-sys--tour .wk-stage { padding-right: 7%; }
.wk-sys--tour .wk-phone { width: 19%; }
.wk-caps { position: relative; margin-top: 1.2rem; min-height: 3.2em; }
.wk-cap { display: none; margin: 0; color: var(--text-2); font-size: 1.02rem; }
.wk-cap b { color: #fff; margin-right: .4rem; }
.wk-cap.is-on { display: block; animation: wkIn .5s var(--ease) both; }
.wk-note { margin: 2rem 0 0; font-size: .82rem; color: var(--text-3); }
.wk-tour-section .wk-note { margin-top: .6rem; }

/* home page cards */
.product-shot .wk-sys { width: 100%; transform: translateY(7%); transition: transform .7s var(--ease); }
.product-card:hover .product-shot .wk-sys { transform: translateY(3%) scale(1.015); }
.product-shot .wk-stage { padding-bottom: 0; }
.product-shot .wk-phone { bottom: -14%; }

/* --- Work index --- */
.hero--work { padding-bottom: 1rem; }
.wk-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 2rem; }
.wk-facts > span:first-child { margin-right: .6rem; color: var(--text-2); }
.wk-facts b { color: #fff; font-size: 1.1rem; }
.wk-fact-tag { padding: .35rem .8rem; border-radius: 99px; font-size: .82rem; color: var(--text); border: 1px solid var(--line-bright); background: rgba(255,255,255,.03); }

.wk-cases { padding-top: 0; }
.wk-case:first-child { padding-top: clamp(1rem, 3vw, 2rem); }
.wk-case {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.wk-case + .wk-case { border-top: 1px solid var(--line); }
.wk-case.is-flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); }
.wk-case.is-flip .wk-case-media { order: 2; }
.wk-case-media { display: block; text-decoration: none; perspective: 1400px; }
.wk-case-media .wk-stage { transition: transform .8s var(--ease); transform: rotateY(-5deg) rotateX(2deg); transform-style: preserve-3d; }
.wk-case.is-flip .wk-case-media .wk-stage { transform: rotateY(5deg) rotateX(2deg); }
.wk-case-media:hover .wk-stage { transform: none; }
.wk-case-n { display: block; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--accent-2); margin-bottom: 1rem; }
.wk-case-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0 .4rem; }
.wk-case-copy h2 a { color: inherit; text-decoration: none; }
.wk-case-copy h2 a:hover { color: var(--accent-2); }
.wk-case-sum { color: var(--text-2); font-size: 1.05rem; margin: 1rem 0 1.4rem; }
.wk-case-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.wk-case-feats li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--text); }
.wk-case-feats li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: rgba(var(--accent-rgb), .18); border: 1px solid rgba(var(--accent-rgb), .6); }
.wk-case-feats li::after {
  content: ""; position: absolute; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  left: .525rem; top: calc(.2em + .525rem);          /* the centre of the 1.05rem circle */
  transform: translate(-50%, -59%) rotate(45deg);
}

@media (max-width: 960px) {
  .wk-case, .wk-case.is-flip { grid-template-columns: 1fr; }
  .wk-case.is-flip .wk-case-media { order: 0; }
  .wk-case-media .wk-stage, .wk-case.is-flip .wk-case-media .wk-stage { transform: none; }
}
@media (max-width: 640px) {
  .wk-stage { padding-right: 12%; }
  .wk-phone, .wk-sys--tour .wk-phone { width: 28%; border-radius: 12px; }
  .wk-win { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-sys * { animation: none !important; }
  .wk-case-media .wk-stage { transform: none !important; }
}

/* the empty window a mock-up loads into (see mock_slot / mock.php) */
.wk-sys.is-pending .wk-win {
  background:
    linear-gradient(#121A27, #121A27) top / 100% 8.5% no-repeat,   /* the title bar: 5cqw of a 16:9.4 window */
    linear-gradient(90deg, #0E1520 16%, transparent 16%),
    #0B111B;
}

/* ------------------------------------------------- Headline word, by industry
   The rotating word wears the colour of the industry showing in the demo:
   crimson to start, amber for Industry, teal for Hospitality, violet for
   Commerce, sky for Stock Control. site.js sets --skin on the hero. */
.hero--home { --skin: 232, 51, 90; }
.rotator-word.grad { background: none; color: rgb(var(--skin)); }
@supports (color: color-mix(in srgb, red, blue)) {
  .rotator-word.grad {
    background-image: linear-gradient(110deg,
      color-mix(in srgb, rgb(var(--skin)) 45%, #fff) 0%,
      rgb(var(--skin)) 52%,
      color-mix(in srgb, rgb(var(--skin)) 78%, #2A0710) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* ------------------------------------------------------------ Touch targets
   On a touch screen every link worth tapping gets room around it. Padding
   only: setting a display value here would override the rules that hide parts
   of the nav on small screens. Pointer devices are left exactly as they were. */
@media (pointer: coarse) {
  .nav a:not(.btn) { padding-block: .55rem; }
  .footer-col a { padding: .55rem 0; }
  .footer-legal a, .hold-foot a, .modal-note a, .form-note a,
  .cookie-inner a, .pv-section a, .crumb, .link-arrow { padding-block: .62rem; }
  .brand { padding-block: .3rem; }
  .picker-btn, .btn-sm, .hchip, .htpl, .signin-row { min-height: 44px; }
}

/* ------------------------------------------------------------------ Not found
   The 404 drawn large and faint behind a short console that says, in the
   house style, that the address did not resolve. */
.nf { position: relative; overflow: hidden; min-height: calc(100svh - var(--header-h) - 12rem); display: flex; align-items: center; }
.nf-ghost {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
  font-family: var(--display); font-weight: 800; font-size: clamp(16rem, 46vw, 40rem); line-height: .8;
  letter-spacing: -.06em; pointer-events: none; user-select: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), 0) 72%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-inner { position: relative; z-index: 1; text-align: center; }
.nf-term {
  display: inline-block; text-align: left; margin: 0 auto 2.2rem; padding: 1rem 1.2rem;
  border-radius: 12px; border: 1px solid var(--line-bright); background: rgba(10, 14, 21, .72);
  backdrop-filter: blur(8px); font-family: var(--mono); font-size: clamp(.72rem, 1.6vw, .84rem); line-height: 1.9;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.9);
}
.nf-line { display: block; color: var(--text-2); white-space: nowrap; }
.nf-prompt { color: var(--accent); font-weight: 700; }
.nf-path { color: #fff; }
.nf-err { color: var(--bad); }
.nf-ok { color: var(--ok); }
.nf-caret { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -.15em; margin-left: .4rem; animation: caret 1.1s steps(1) infinite; }
/* .hero h1 is capped at 17ch with no auto margins, which reads as off-centre
   on a centred page — so here it centres itself. */
.nf h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 20ch; margin: 0 auto 1rem; }
.nf .lede { max-width: 44ch; margin: 0 auto 2.4rem; }
.nf-actions { justify-content: center; }
.nf-note { margin: 2.4rem 0 0; font-size: .9rem; color: var(--text-3); }
.nf-note a { color: var(--accent-2); }
.nf-note a:hover { color: #fff; }

@media (max-width: 560px) {
  .nf-term { padding: .8rem .9rem; max-width: 100%; overflow-x: auto; }
  .nf-line { white-space: normal; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) { .nf-caret { animation: none; } }
