/* QAPPTECH — matte slate + soft lavender. Colours live here; change the accent in one place. */
:root {
  --bg: #23292c;          /* matte slate */
  --bg-2: #2b3236;
  --card: #384045;        /* dark card */
  --line: #3c454a;
  --ink: #dfe5e8;         /* main text on dark */
  --ink-soft: #9aa6ac;
  --ink-mute: #6f7b81;
  --panel: #aebfc6;       /* light grey-blue panel */
  --panel-2: #c4d2d8;
  --panel-ink: #1f2629;
  --accent: #67dcfb;      /* cyan (user choice, 2026-11-18) */
  --accent-ink: #23292c;
  --tile-1: #f1c9c4;      /* soft pastel icon tiles */
  --tile-2: #f2dfae;
  --tile-3: #c7e4cc;
  --tile-4: #c9c5f2;
  --radius: 18px;
  --sans: "Onest", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
p { margin: 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

.label { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; border-radius: 10px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-dark { background: #1b2023; color: var(--ink); border: 1px solid var(--line); }
.btn-split { padding: 0; overflow: hidden; border: 2px solid transparent; }
.btn-split span { padding: 13px 18px; }
.btn-split b { display: grid; place-items: center; width: 44px; align-self: stretch; font-weight: 500; }
.btn-dark.btn-split b { background: var(--card); color: var(--accent); }
.btn-accent.btn-split { border-color: var(--accent); }
.btn-accent.btn-split b { background: #23292c; color: var(--accent); border-radius: 8px; margin: 2px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; display: block; }
.brand-name { font-weight: 700; font-size: 28px; letter-spacing: -0.035em; color: var(--accent); }
.brand-name .tm { font-size: .55em; font-weight: 700; line-height: 0; vertical-align: .62em; margin-left: 1px; letter-spacing: 0; }
.nav { display: flex; gap: 34px; }
.nav a, .floatbar a { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav i, .floatbar i { font-style: normal; color: var(--accent); margin-left: 4px; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 120px 20px 230px; overflow: hidden; }
.hero > *:not(.hero-arcs) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 7vw, 92px); margin: 26px auto 26px; max-width: 15ch; color: var(--ink); text-wrap: balance; }
.hero-sub { max-width: 600px; margin: 0 auto 38px; color: var(--ink-soft); font-size: 18px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-arcs { position: absolute; inset: auto 0 0 0; height: 520px; pointer-events: none; }
.hero-arcs svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-arcs path { fill: none; stroke: #4b565c; stroke-width: 1; opacity: .55; }
.hero-dome { position: absolute; left: 50%; bottom: -560px; width: 1700px; height: 760px; transform: translateX(-50%); border-radius: 50%; background: var(--bg); box-shadow: 0 -40px 140px 10px rgba(170, 190, 198, .22); }
.hero::before { content: ""; position: absolute; left: 50%; top: 55%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(150, 168, 176, .22), transparent); pointer-events: none; }

/* ---------- services panel ---------- */
.services { padding: 0 12px; }
.panel { max-width: 1240px; margin: -40px auto 0; background: var(--panel); color: var(--panel-ink); border-radius: 26px; padding: 26px; position: relative; z-index: 2; }
.tabs { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { all: unset; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.22); transition: background .2s; flex: 1 1 200px; }
.tab:hover { background: rgba(255,255,255,.35); }
.tab.is-on { background: var(--panel-2); }
.tile { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; }
.tile svg, .ui svg { width: 22px; height: 22px; fill: none; stroke: #1f2629; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab-name { font-family: var(--mono); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; }
.tab-body { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; background: var(--panel-2); border-radius: 20px; padding: 56px 0 0 56px; min-height: 460px; overflow: hidden; }
.tab-body.fade > * { animation: rise .45s ease both; }
.tab-body.fade > *:last-child { animation-delay: .08s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tb-text h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; }
.tb-text p { color: #3a4549; margin-bottom: 22px; max-width: 44ch; }
.tb-text ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.tb-text li { font-family: var(--mono); font-size: 14px; color: #2c3539; padding-left: 20px; position: relative; }
.tb-text li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: #23292c; }
.link { font-family: var(--mono); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tb-visual { align-self: end; }

/* mock UIs */
.ui { background: #eef3f5; border-radius: 14px 0 0 0; border: 1px solid #d5e0e4; border-right: 0; border-bottom: 0; min-height: 380px; font-size: 13px; color: #2c3539; position: relative; }
.ui-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #d5e0e4; font-size: 16px; }
.ui-logo { width: 24px; height: 24px; border-radius: 7px; background: #23292c; box-shadow: inset 0 0 0 6px #23292c, inset 0 0 0 9px var(--accent); }
.ui-app { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto 1fr; }
.ui-app .ui-top { grid-column: 1 / -1; }
.ui-side { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 18px 0; border-right: 1px solid #d5e0e4; }
.ui-side i { width: 20px; height: 20px; border-radius: 6px; background: #d3dde1; }
.ui-side i.on { background: #23292c; }
.ui-content { padding: 22px; }
.ui-h { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.ui-cards.two { grid-template-columns: 1fr 1fr; }
.ui-cards div { background: #fff; border-radius: 10px; padding: 14px; display: grid; gap: 4px; }
.ui-cards small, .ui-rows.mono, .ui small { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: #7c898e; }
.ui-cards strong { font-family: var(--mono); font-weight: 500; font-size: 17px; color: #23292c; }
.ui-cards em { font-style: normal; color: #7c898e; font-size: 12px; }
.ui-rows { display: grid; gap: 6px; }
.ui-rows div { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 10px 12px; color: #2c3539; font-size: 13px; }
.ui-rows.mono div { font-family: var(--mono); font-size: 12px; }
.ui-rows span { width: 12px; height: 12px; border: 1px solid #b9c6cb; border-radius: 3px; }
.ui-rows mark { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }
mark.ok { background: var(--tile-3); color: #2a4a31; }
mark.mid { background: var(--accent); color: #0f3a47; }
mark.low { background: var(--tile-1); color: #6a302a; }

.ui-web { padding: 0 0 24px; }
.ui-browser { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #d5e0e4; }
.ui-browser span { width: 10px; height: 10px; border-radius: 50%; background: #c9d4d8; }
.ui-browser em { margin-left: 14px; font-style: normal; font-family: var(--mono); font-size: 11px; color: #7c898e; background: #fff; padding: 3px 12px; border-radius: 6px; }
.ui-page { padding: 18px 22px; margin-right: 120px; }
.ui-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 30px; }
.ui-nav i { width: 22px; height: 22px; border-radius: 6px; background: #23292c; }
.ui-nav b { width: 48px; height: 7px; border-radius: 4px; background: #c9d4d8; }
.ui-nav u { margin-left: auto; width: 70px; height: 22px; border-radius: 6px; background: var(--accent); }
.ui-hero b { display: block; height: 18px; border-radius: 5px; background: #2c3539; margin-bottom: 9px; }
.ui-hero .l1 { width: 80%; } .ui-hero .l2 { width: 65%; } .ui-hero .l3 { width: 40%; height: 8px; background: #b9c6cb; margin-top: 16px; }
.ui-hero u { display: block; width: 110px; height: 28px; border-radius: 7px; background: #23292c; margin: 18px 0 26px; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-grid i { height: 74px; border-radius: 10px; background: #fff; }
.ui-grid i:nth-child(1) { background: var(--tile-1); } .ui-grid i:nth-child(2) { background: var(--tile-2); } .ui-grid i:nth-child(3) { background: var(--tile-3); }
.ui-phone { position: absolute; right: 26px; top: 70px; width: 130px; height: 250px; background: #fff; border: 6px solid #23292c; border-radius: 22px; padding: 16px 10px; display: grid; align-content: start; gap: 8px; }
.ui-phone i { width: 18px; height: 18px; border-radius: 5px; background: #23292c; margin-bottom: 8px; }
.ui-phone b { height: 10px; border-radius: 4px; background: #2c3539; }
.ui-phone b.s { width: 60%; background: #b9c6cb; }
.ui-phone u { height: 60px; border-radius: 8px; background: var(--accent); margin-top: 8px; }

/* ---------- process ---------- */
.process, .products, .contact { max-width: 1240px; margin: 0 auto; padding: 140px 20px 0; }
.process h2, .products h2, .contact h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 18px auto 70px; max-width: 18ch; }
.pcard { display: grid; grid-template-columns: 1.5fr 1fr; background: var(--card); border-radius: 26px; overflow: hidden; margin-bottom: 26px; min-height: 420px; }
.pcard.reverse { grid-template-columns: 1fr 1.5fr; }
.pcard.reverse .pcard-visual { order: 2; }
.pcard-visual { background: #1f2528; border: 1px solid #353e43; border-radius: 26px; display: grid; place-items: center; padding: 40px; }
.dots { background-image: radial-gradient(#3a4449 1px, transparent 1px); background-size: 14px 14px; }
.pcard-text { padding: 44px 40px; display: flex; flex-direction: column; }
.pcard-text h3 { font-size: 26px; margin-bottom: 12px; }
.pcard-text p { color: var(--ink-soft); max-width: 36ch; }
.num { margin-top: auto; padding-top: 30px; font-family: var(--mono); font-size: 22px; color: var(--ink-mute); }

.mini-stack { display: grid; gap: 8px; }
.mini { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 18px 20px; width: 230px; display: grid; gap: 2px; }
.mini small, .ring small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #4a565b; }
.mini strong { font-size: 24px; font-weight: 600; }
.mini em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #4a565b; }
.code-card { width: min(420px, 100%); background: var(--panel); color: var(--panel-ink); border-radius: 14px; overflow: hidden; }
.code-head { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--panel-2); }
.code-head span { width: 9px; height: 9px; border-radius: 50%; background: #8fa2a9; }
.code-head small { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: #4a565b; }
.code-card pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.code-card b { display: inline-block; width: 72px; color: #1d5f73; font-weight: 500; }
.ring-stack { display: flex; gap: 10px; }
.ring { background: var(--panel); border-radius: 14px; padding: 20px; display: grid; justify-items: center; gap: 10px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #8fa2a9; stroke-width: 3; }
.ring .arc { stroke: #23292c; stroke-width: 4; stroke-linecap: round; stroke-dasharray: calc(163 * var(--p)) 163; }

/* ---------- products ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; background: var(--panel); color: var(--panel-ink); border-radius: 26px; padding: 56px 56px 0; overflow: hidden; }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: #0f3a47; padding: 5px 10px; border-radius: 7px; margin-bottom: 18px; }
.product-text { display: contents; }
.product-text > .chip, .product-text > h3, .product-text > p { grid-column: 1; }
.product-text > .chip { justify-self: start; }
.product-text h3 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 16px; }
.product-text p { color: #3a4549; max-width: 42ch; }
.facts { grid-column: 2; grid-row: 1 / span 3; align-self: end; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { font-size: 15px; display: grid; grid-template-columns: 110px 1fr; }
.facts span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #4a565b; padding-top: 2px; }
.product-visual { grid-column: 1 / -1; margin-top: 44px; }
.demo { margin: 0; background: #1f2528; border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(31,38,41,.18); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 1px solid #353e43; }
.demo-bar em { margin-left: auto; font-style: normal; font-weight: 400; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); }
.app-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 848; background: #23292c; }
.brandband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px; padding: 52px 56px; margin-bottom: 26px; position: relative; overflow: hidden; }
.brandband-logo { position: relative; width: 100%; max-width: 420px; justify-self: center;  container-type: inline-size; }
.brandband-logo img { display: block; width: 100%; height: auto; }
.brandband-logo .rtm { position: absolute; left: 94.2%; top: 44%; font-family: var(--sans, inherit); font-weight: 700; font-size: 5.2cqw; line-height: 1; color: #fff; }
.brandband-text { position: relative; }
.brandband-text h3 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 14px; }
.brandband-text > p:not(.label) { color: var(--ink-soft); max-width: 50ch; margin-bottom: 28px; }
.brandband-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.facts a { border-bottom: 1px solid currentColor; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.pmini { background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.pmini h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.pmini p { color: var(--ink-soft); margin-bottom: 20px; }
.pmini ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; width: 100%; }
.pmini li { padding-left: 18px; position: relative; font-size: 15px; }
.pmini li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.pmini .link { margin-top: auto; color: var(--accent); }
.product-slot a { color: var(--accent); border-bottom: 1px solid currentColor; }
.product-slot { margin-top: 26px; border: 1px dashed #4b565c; border-radius: 26px; padding: 34px 40px; display: flex; gap: 30px; align-items: center; }
.product-slot p { color: var(--ink-soft); max-width: 70ch; }

/* ---------- contact ---------- */
.contact { padding-bottom: 140px; }
.contact h2 { margin-bottom: 20px; }
.contact .lead { color: var(--ink-soft); margin: 0 auto 36px; max-width: 52ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 20px 110px; max-width: 1240px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid p { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer h4 { font-family: var(--mono); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a:hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 14px; }

/* ---------- floating bar ---------- */
.floatbar { position: fixed; left: 50%; bottom: 18px; z-index: 40; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #1b2023; border: 1px solid var(--line); transform: translate(-50%, 140%); transition: transform .35s ease; }
.floatbar.show { transform: translate(-50%, 0); }
.floatbar a { padding: 10px 16px; border-radius: 10px; background: var(--bg-2); white-space: nowrap; }
.floatbar a:hover { color: var(--ink); }
.floatbar .fb-up { padding: 10px 14px; color: var(--ink); }
.floatbar .fb-cta { background: var(--accent); color: var(--accent-ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tab-body { grid-template-columns: 1fr; padding: 32px 0 0 24px; }
  .tb-text { padding-right: 24px; }
  .product { grid-template-columns: 1fr; padding: 32px 20px 0; }
  .brandband { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .brandband-logo { max-width: 300px; justify-self: start; }
  .pgrid { grid-template-columns: 1fr; }
  .pmini { padding: 30px 24px; }
  .facts { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .product-visual { margin-top: 28px; }
  .demo-bar em { display: none; }
  .pcard, .pcard.reverse { grid-template-columns: 1fr; }
  .pcard.reverse .pcard-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .floatbar a:not(.fb-up):not(.fb-cta) { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 67px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  body.menu-open .nav { transform: none; }
  .topbar > .btn { display: none; }
  .menu-toggle { all: unset; display: grid; gap: 6px; width: 40px; height: 40px; place-content: center; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--ink); }
  .topbar { padding: 12px 16px; }
  .hero { padding: 80px 16px 170px; }
  .services { padding: 0 8px; }
  .panel { padding: 12px; border-radius: 20px; }
  .tab { flex-basis: 100%; }
  .ui-cards { grid-template-columns: 1fr; }
  .ui-page { margin-right: 0; }
  .ui-phone { display: none; }
  .ui-app { grid-template-columns: 1fr; } .ui-side { display: none; }
  .process, .products, .contact { padding: 100px 16px 0; }
  .pcard-visual { padding: 28px 16px; }
  .ring-stack { flex-wrap: wrap; justify-content: center; }
  .product-slot { flex-direction: column; align-items: flex-start; padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}
/* ---------- motion (only when motion.js adds html.motion) ---------- */
:root { --ease-out: cubic-bezier(.16,1,.3,1); --ease-swap: cubic-bezier(.579,.001,0,1.007); }

/* 1. hero rises in sequence — CSS only, so it plays from the very first paint */
.motion .hero > :not(.hero-arcs) { animation: hero-rise 1.4s var(--ease-out) both; }
.motion .hero > :nth-child(2) { animation-delay: .1s; }
.motion .hero > :nth-child(3) { animation-delay: .25s; }
.motion .hero > :nth-child(4) { animation-delay: .4s; }
.motion .hero > :nth-child(5) { animation-delay: .55s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(5rem); } }
.motion .hero-arcs path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: arc-draw 2.4s cubic-bezier(.65,0,.35,1) .3s forwards; }
.motion .hero-arcs path:nth-child(2) { animation-delay: .5s; }
.motion .hero-arcs path:nth-child(3) { animation-delay: .7s; }
.motion .hero-arcs path:nth-child(4) { animation-delay: .9s; }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
.motion .hero-dome { translate: 0 var(--lift, 0); }

/* 2. headings wipe up as one piece */
.motion .wipe { clip-path: inset(0 -5% 100% -5%); transform: translateY(.45em); opacity: 0; transition: clip-path 1.1s var(--ease-out), transform 1.1s var(--ease-out), opacity .5s ease; }
.motion .wipe.in { clip-path: inset(-15% -5% -25% -5%); transform: none; opacity: 1; }

/* scramble overlay: real text hidden for a moment, scrambled copy drawn from data-scr */
.scr { position: relative; -webkit-text-fill-color: transparent; }
.scr::after { content: attr(data-scr); position: absolute; inset: 0; padding: inherit; -webkit-text-fill-color: currentColor; white-space: pre; pointer-events: none; }
.lc { text-transform: none !important; }

/* 3. [ labels ]: brackets come in from the sides */
.motion .bracket .lb, .motion .bracket .lt { display: inline-block; transition: opacity .6s ease, transform 1s var(--ease-out); }
.motion .bracket .lt { opacity: 0; margin: 0 .5em; }
.motion .bracket .lb { opacity: 0; transition-delay: .4s; }
.motion .bracket .lb:first-child { transform: translateX(-.9em); }
.motion .bracket .lb:last-child { transform: translateX(.9em); }
.motion .bracket.in .lt { opacity: 1; }
.motion .bracket.in .lb { opacity: 1; transform: none; }

/* 4. big blocks */
.motion .reveal { opacity: 0; transform: translateY(80px) scale(1.1); transition: opacity 1.4s ease, transform 1.8s var(--ease-out); }
.motion .reveal.in { opacity: 1; transform: none; }

/* 5. staggered groups and paragraphs */
.motion .stagger > * { opacity: 0; transform: translateY(80px); transition: opacity .8s ease, transform .9s var(--ease-out); transition-delay: calc(var(--s) * 130ms + .15s); }
.motion .stagger.in > * { opacity: 1; transform: none; }
.motion .fade-up { opacity: 0; transform: translateY(1.3em); transition: opacity .8s ease .2s, transform .9s var(--ease-out) .2s; }
.motion .fade-up.in { opacity: 1; transform: none; }

/* 6. clip-in (values set from JS while scrolling) + 7. drift */
.motion .clip { will-change: transform, filter, clip-path; transform-origin: 50% 40%; }
.motion .pcard-visual > * { translate: 0 var(--drift, 0); }

/* 8. service tabs: progress line, content comes in piece by piece */
.tab { position: relative; overflow: hidden; }
.tab-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #23292c; opacity: .55; border-radius: 0 3px 3px 0; }
.motion .panel.cycling .tab.is-on .tab-line { animation: tab-line 8s linear forwards; }
@keyframes tab-line { from { width: 0; } to { width: 100%; } }
.motion .tab-body.fade > * { animation: none; }
.motion .tab-body.fade .tb-text > * { animation: rise-1 .55s var(--ease-out) both; }
.motion .tab-body.fade .tb-text > :nth-child(2) { animation-delay: .1s; }
.motion .tab-body.fade .tb-text > :nth-child(3) { animation-delay: .2s; }
.motion .tab-body.fade .tb-text > :nth-child(4) { animation-delay: .3s; }
.motion .tab-body.fade .tb-visual { animation: rise-2 .9s var(--ease-out) .15s both; }
@keyframes rise-1 { from { opacity: 0; transform: translateY(1em); } }
@keyframes rise-2 { from { opacity: 0; transform: translate(40px, 30px); } }

/* 9. split buttons: dark arrow box sweeps across, text slides, arrow swaps sides */
.btn-split { position: relative; padding-right: 46px; }
.btn-split span { position: relative; z-index: 1; display: inline-block; }
.btn-split b { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; overflow: hidden; display: block; }
.btn-accent.btn-split b { top: 2px; right: 2px; bottom: 2px; margin: 0; width: 40px; }
.btn-split b i { position: absolute; top: 50%; left: 50%; font-style: normal; translate: -50% -50%; }
.btn-split b .a-in { left: -50%; }
@media (min-width: 800px) and (hover: hover) {
  .motion .btn-split span { transition: transform .45s var(--ease-swap), color .5s; }
  .motion .btn-split b { transition: width .65s var(--ease-swap); }
  .motion .btn-split b i { transition: left .65s var(--ease-swap); }
  .motion .btn-split:hover { transform: none; }
  .motion .btn-split:hover b { width: calc(100% - 0px); }
  .motion .btn-accent.btn-split:hover b { width: calc(100% - 4px); }
  .motion .btn-split:hover span { transform: translateX(36px); }
  .motion .btn-accent.btn-split:hover span { color: var(--accent); }
  .motion .btn-split:hover .a-out { left: 160%; }
  .motion .btn-split:hover .a-in { left: 22px; }
}
.motion .btn.tap { animation: tap .3s ease; }
@keyframes tap { 50% { transform: scale(.95); } }

/* 10. cursor label */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; scale: .6; transition: opacity .25s, scale .35s var(--ease-out); }
.cursor-tag.on { opacity: 1; scale: 1; }
.cursor-tag p { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 7px 11px; border-radius: 8px; white-space: nowrap; }

/* 12. process cards: rings fill, log lines type in */
.motion .ring .arc { transition: stroke-dasharray 1.8s var(--ease-out) .3s; stroke-dasharray: 0 163; }
.motion .ring.in .arc { stroke-dasharray: calc(163 * var(--p)) 163; }
.motion .code-card pre code { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.6s steps(28) .4s; }
.motion .code-card.in pre code { clip-path: inset(0 0 0 0); }

/* 13. top bar drops in on load */
.motion .topbar { perspective: 700px; }
.motion .topbar > * { animation: nav-drop 1s var(--ease-out) backwards; }
.motion .topbar > :nth-child(1) { animation-delay: .2s; }
.motion .topbar > :nth-child(2) { animation-delay: .35s; }
.motion .topbar > :nth-child(3) { animation-delay: .5s; }
.motion .topbar > :nth-child(4) { animation-delay: .65s; }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-170%) rotateX(-70deg); } }

/* 13. custom pointer (desktop mouse only; JS adds .has-qcursor) */
.has-qcursor, .has-qcursor * { cursor: none !important; }
.qcursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s; }
.qcursor.on { opacity: 1; }
.qcursor i { display: block; width: 18px; height: 18px; background: #eef3f5;
  /* our own arrow, 12 points so it can morph into the 12-point square below */
  clip-path: polygon(0 0, 0 0, 0 74%, 0 74%, 21% 56%, 35% 88%, 49% 82%, 36% 51%, 64% 50%, 64% 50%, 32% 18%, 0 0);
  transition: clip-path .25s ease, transform .3s cubic-bezier(.43,0,0,1), width .2s cubic-bezier(.43,0,0,1), height .2s cubic-bezier(.43,0,0,1), border-radius .25s, background-color .3s; }
.qcursor.is-link i { width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
  clip-path: polygon(0 0, 50% 0, 100% 0, 100% 0, 100% 50%, 100% 100%, 100% 100%, 50% 100%, 0 100%, 0 100%, 0 50%, 0 0); }
.qcursor.is-dark i { background: #1f2629; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
