:root {
  --bg: #07090c;
  --bg-2: #0c1016;
  --surface: #11161d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0ee;
  --muted: #8d949c;
  --accent: #ff6b1a;
  --accent-2: #ff8a45;
  --spark: #3cf28a;
  --bg-rgb: 7 9 12;                 /* --bg as channels, for translucent shades */
  --text-2: #c3c8cd;                /* secondary copy */
  --text-3: #b9bfc5;
  --ghost: rgba(255, 255, 255, .06);
  --ghost-2: rgba(255, 255, 255, .12);
  --panel-a: #141a22; --panel-b: #0b0e13; --panel-c: #161c24;
  --logo-filter: none;              /* client logos are white knock-outs */
  --radius: 18px;
  --wrap: 1240px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.02em; font-stretch: 92%; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; max-width: 16ch; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

.kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
.split--end { align-items: end; margin-bottom: 56px; }
.split--end > p { max-width: 42ch; justify-self: end; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: #0b0703; font-weight: 600; font-size: 0.95rem;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s;
  box-shadow: 0 10px 40px -10px rgba(255, 107, 26, .6);
}
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; box-shadow: none; }
.btn--ghost { background: var(--ghost); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--ghost-2); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgb(var(--bg-rgb) / .92); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; font-size: 0.9rem; color: var(--text-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .3s; }

/* Theme switch */
.theme { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line-2); }
.theme button { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 500 .74rem/1 var(--body); color: var(--text-2); transition: background .25s, color .25s; }
.theme button:hover { color: var(--text); }
.theme button[aria-checked="true"] { background: var(--ghost-2); color: var(--text); }
.theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.theme [data-theme-set="dark"] i { background: #07090c; }
.theme [data-theme-set="navy"] i { background: #0e2836; }
.theme [data-theme-set="light"] i { background: #f4f5f7; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 22% 72%, rgb(var(--bg-rgb) / .7), transparent 70%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / .55) 0%, rgb(var(--bg-rgb) / .2) 32%, rgb(var(--bg-rgb) / .8) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgb(var(--bg-rgb) / .85) 0%, rgb(var(--bg-rgb) / .35) 55%, rgb(var(--bg-rgb) / .1) 100%);
}
.hero__content { position: relative; padding-top: 140px; }
.hero__accent { color: rgba(238,240,238,.58); }
.hero__title { font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -0.035em; font-weight: 600; font-stretch: 88%; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero__creds {
  position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  margin-top: clamp(56px, 9vh, 110px); margin-bottom: 40px; padding-top: 26px; border-top: 1px solid var(--line-2);
}
.hero__creds img { width: auto; flex: none; opacity: .85; }
.hero__creds .hero__am { height: 60px; border-radius: 7px; opacity: 1; }
.hero__creds .hero__hot30 { height: 40px; }
.hero__creds .hero__south32 { height: 56px; }
.hero__made { display: flex; align-items: center; gap: 16px; }
.hero__made span { font-size: .85rem; line-height: 1.4; color: var(--text-2); text-align: right; }

/* Clients */
.clients { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); background: var(--bg); }
.clients__title { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 32px; }
.clients__logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; gap: 40px 32px; }
.clients__logos li { min-height: 56px; display: flex; align-items: center; }
.clients__logos img { height: 30px; width: auto; max-width: 100%; object-fit: contain; opacity: .62; filter: var(--logo-filter); transition: opacity .3s; }
.clients__logos .is-tall img { height: 48px; }
.clients__logos .is-word img { height: 20px; }
.clients__logos li:hover img { opacity: 1; }
.clients + .contact { padding-top: clamp(24px, 4vw, 48px); }
.clients__logos .is-text { font-family: var(--display); font-weight: 700; font-stretch: 95%; font-size: 1.45rem; line-height: 1; letter-spacing: -0.02em; color: var(--text); opacity: .62; transition: opacity .3s; }
.clients__logos .is-text small { font-weight: 500; font-size: .7em; }
.clients__logos .is-text:hover { opacity: 1; }
.clients__logos .is-svg svg { height: 46px; width: auto; max-width: 100%; fill: var(--text); font-family: var(--display); font-stretch: 95%; opacity: .62; transition: opacity .3s; }
.clients__logos .is-svg:hover svg { opacity: 1; }

/* Meet Pulse — scroll-scrubbed product film */
.film3d { position: relative; height: 560vh; background: var(--bg); }
.film3d__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.film3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film3d__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / .92) 0%, rgb(var(--bg-rgb) / .55) 26%, rgb(var(--bg-rgb) / 0) 50%),
    linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 14%, rgb(var(--bg-rgb) / 0) 86%, var(--bg) 100%);
}
.film3d__copy { position: relative; height: 100%; }
.film3d__beat {
  position: absolute; left: 0; bottom: 16vh; max-width: 400px; display: grid; gap: 12px;
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none;
}
.film3d__beat.is-on { opacity: 1; transform: none; }
.film3d__beat--intro { top: 22vh; bottom: auto; max-width: 460px; }
.film3d__beat--intro h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.film3d__beat h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.12; letter-spacing: -0.02em; }
.film3d__beat p { color: var(--text-3); font-size: .98rem; line-height: 1.6; }
.film3d__lede { color: var(--text-2) !important; font-size: 1.05rem !important; margin-top: 8px; }
.film3d__stat { font-family: var(--display); font-weight: 600; font-stretch: 88%; font-size: clamp(3.4rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -0.04em; color: var(--accent); }
.film3d__stat small { font-size: .42em; color: var(--text-2); margin-left: .08em; letter-spacing: 0; }
.film3d__progress { position: absolute; left: 50%; bottom: 28px; width: min(220px, 40vw); height: 2px; transform: translateX(-50%); background: var(--line-2); border-radius: 2px; overflow: hidden; }
.film3d__progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--accent); }

/* Speed */
.speed { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; border-top: 1px solid var(--line); }
.speed__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-2); }
.speed__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / .1) 30%, rgb(var(--bg-rgb) / .35) 60%, rgb(var(--bg-rgb) / .92) 100%), linear-gradient(90deg, rgb(var(--bg-rgb) / .6), transparent 60%); }
.speed__content { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; padding-bottom: clamp(48px, 8vw, 96px); }
.speed__num { font-family: var(--display); font-weight: 600; font-stretch: 85%; font-size: clamp(7rem, 18vw, 15rem); line-height: .8; letter-spacing: -0.05em; color: var(--accent); }
.speed__num span { font-size: .5em; vertical-align: top; margin-left: .04em; }
.speed h2 { margin-bottom: 18px; }
.speed__content p:not(.speed__num) { color: var(--text-2); max-width: 48ch; }

/* Integration — bench to cloud to blast software */
.flow__grid { display: grid; grid-template-columns: 1fr 64px 1.45fr 64px 1fr; align-items: stretch; }
.flow__node {
  padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.flow__node p { color: var(--muted); font-size: .93rem; line-height: 1.55; }
.flow__node--cloud { border-top: 3px solid var(--accent); background: linear-gradient(180deg, rgba(255,107,26,.06), transparent 40%), var(--surface); }
.flow__device { margin: auto 0; width: 100%; padding: 18px 8px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.flow__plot { width: 100%; height: auto; margin: auto 0; }
.flow__plot circle { fill: var(--accent-2); opacity: .85; }
.flow__plot .redrill { fill: #6fb1ff; opacity: 1; }
.flow__plot .backfill { fill: var(--text); opacity: 1; }
.flow__plot .missing { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.flow__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--muted); }
.flow__legend li { display: flex; align-items: center; gap: 7px; }
.flow__legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.flow__legend .redrill::before { background: #6fb1ff; }
.flow__legend .backfill::before { background: var(--text); }
.flow__legend .missing::before { background: none; box-shadow: inset 0 0 0 1.2px var(--muted); }
.flow__link { position: relative; display: grid; place-items: center; }
.flow__link .mono { position: absolute; top: calc(50% - 26px); }
.flow__link i { position: relative; width: 70%; height: 1px; background: var(--line-2); overflow: hidden; }
.flow__link i::after {
  content: ""; position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent)); animation: flow-pulse 1.8s var(--ease) infinite;
}
@keyframes flow-pulse { to { left: 100%; } }
@keyframes flow-pulse-y { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .flow__link i::after { animation: none !important; opacity: 0; } }
.flow__out { display: grid; gap: 12px; }
.flow__partner { padding: 22px 22px 24px; gap: 12px; justify-content: center; }
.flow__logo { display: flex; align-items: center; gap: 12px; align-self: flex-start; padding: 10px 14px; border-radius: 10px; background: #fff; }
.flow__logo img { height: 34px; width: auto; }
.flow__logo b { font: 600 .95rem var(--body); color: #4b4b4b; letter-spacing: -.01em; }
.flow__tm { margin-top: 28px; font-size: .74rem; color: var(--muted); opacity: .7; }

/* Compare — light section (tokens re-pointed so shared components adapt) */
.specs {
  --text: #0c0f13; --muted: #5f6770; --line: rgba(12,15,19,.09); --line-2: rgba(12,15,19,.16);
  --accent: #e35a0e; --surface: #ffffff;
  background: #f3f2ee; color: var(--text);
}

.compare__head { margin-bottom: 32px; }
.compare__table { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr; }
.compare__row > span { padding: 18px 24px; border-top: 1px solid var(--line); font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.compare__row > span:first-child { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; font-weight: 500; }
.compare__row > span:first-child small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.compare__row--head > span { border-top: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-block: 20px; }
.compare__pulse { background: #0c0f13; color: #eef0ee; font-weight: 500; }
.compare__row--head .compare__pulse { color: #ff8a45; }
.compare__row > .compare__pulse { border-top-color: rgba(255,255,255,.08); }
.compare i { flex: none; width: 18px; height: 18px; border-radius: 50%; position: relative; }
.compare i.yes { background: var(--spark); }
.compare i.yes::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #06210f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.compare i.x { width: 16px; height: 16px; border-radius: 0; }
.compare i.x::before, .compare i.x::after { content: ""; position: absolute; left: 7px; top: 0; width: 2px; height: 16px; border-radius: 1px; background: #e5484d; transform: rotate(45deg); }
.compare i.x::after { transform: rotate(-45deg); }
.specs__note { margin-top: 16px; font-size: .8rem; color: var(--muted); }

/* Value case */
.value { background: radial-gradient(60% 50% at 85% 0%, rgba(255,107,26,.07), transparent 70%), var(--bg); }

.vtable { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
.vtable__cap { display: flex; align-items: baseline; gap: 16px; padding: 22px 24px; }
.vtable__cap h3 { font-size: 1.25rem; }
.vtable__row { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr 1.1fr; }
.vtable__row > span { padding: 16px 24px; border-top: 1px solid var(--line); font-size: .95rem; display: flex; flex-direction: column; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; }
.vtable__row > span:first-child { font-weight: 500; }
.vtable__row small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.vtable__row > span:nth-child(2) { color: var(--muted); }
.vtable__row--head > span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding-block: 14px; }
.vtable__pulse { background: rgba(255,107,26,.07); box-shadow: inset 1px 0 0 rgba(255,107,26,.25), inset -1px 0 0 rgba(255,107,26,.25); font-weight: 500; }
.vtable__row--head .vtable__pulse { color: var(--accent-2); }
.vtable__delta { color: var(--spark); }
.vtable__row--head .vtable__delta { color: var(--muted); }

.calc {
  margin-top: 16px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 0 clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
}
.calc__input { display: grid; gap: 12px; align-content: start; }
.calc__input label { display: block; }
.calc__holes { font-family: var(--display); font-weight: 500; font-stretch: 88%; font-size: clamp(2.6rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc__input p { font-size: .8rem; line-height: 1.5; margin-top: 4px; }
.calc input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 10px 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 26%), var(--line-2) var(--fill, 26%)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.calc input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--accent); }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.calc__out { margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.calc__out > div { padding: 18px 0 18px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.calc__out > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.calc__out dt { font-size: .82rem; color: var(--muted); }
.calc__out dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc__cta { grid-column: 1 / -1; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.calc__cta p { color: var(--text-2); }

/* Team */
.team h2 { max-width: 20ch; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.member { padding: 28px 24px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.member:hover { border-color: rgba(255,107,26,.45); transform: translateY(-4px); }
.member img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; filter: saturate(.85); border: 1px solid var(--line); margin-bottom: 24px; }
.member h3 { font-size: 1.2rem; margin-bottom: 10px; }
.member p.muted { font-size: .92rem; }
@media (max-width: 1024px) { .team__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .team__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .member { padding: 18px 14px 20px; }
  .member img { width: 72px; height: 72px; margin-bottom: 14px; }
  .member h3 { font-size: 1rem; margin-bottom: 6px; }
  .member p.muted { font-size: .82rem; }
}

/* Contact */
.contact__panel {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end;
  padding: clamp(32px, 6vw, 80px); border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255,107,26,.35), transparent 60%),
    linear-gradient(160deg, var(--panel-c), var(--panel-b));
  border: 1px solid var(--line-2);
}
.contact h2 { margin-bottom: 18px; }
.contact__list { display: grid; gap: 0; }
.contact__list > * { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-2); font-size: 1.05rem; }
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--accent-2); }

/* Footer */
.footer { padding: 40px 0 56px; color: var(--muted); font-size: .85rem; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__inner img { height: 22px; width: auto; opacity: .8; }
.footer nav { margin-left: auto; display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Workflow explainer — overlays scale with the player width (cqw) so the frame reads the same at any size */
.xp { border-top: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 60%, rgba(255,107,26,.06), transparent 70%), var(--bg); }
.xp__player { position: relative; container-type: inline-size; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #04060a; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.xp__stage { aspect-ratio: 16 / 9; }
.xp__svg { display: block; width: 100%; height: 100%; }
.xp__captions::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 52cqw; height: 26cqw; background: radial-gradient(80% 90% at 0 0, rgba(4,6,10,.85), transparent 70%); pointer-events: none; }
.xp__cap { position: absolute; left: 3.2cqw; top: 3cqw; width: 33cqw; opacity: 0; will-change: opacity, transform; }
.xp__cap .mono { font-size: .86cqw; }
.xp__cap h3 { font-size: 2.35cqw; line-height: 1.08; letter-spacing: -0.02em; margin: .7cqw 0 .8cqw; }
.xp__cap p { font-size: 1.22cqw; line-height: 1.5; color: var(--text-3); }
.xp__card { position: absolute; right: 2.4cqw; top: 2.4cqw; width: 24.5cqw; padding: 1.3cqw 1.5cqw 1.1cqw; border-radius: 1.1cqw; opacity: 0;
  background: rgba(9,12,17,.84); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.xp__row { --hl: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; padding: .42cqw .5cqw; margin-inline: -.5cqw; border-radius: .5cqw;
  line-height: 1.25; background: rgba(60,242,138,calc(var(--hl) * .14)); }
.xp__row span { font-family: var(--mono); font-size: .8cqw; letter-spacing: .1em; color: var(--muted); }
.xp__row b { font-family: var(--mono); font-weight: 500; font-size: 1.14cqw; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp__row--status { padding-bottom: .7cqw; margin-bottom: .3cqw; border-bottom: 1px solid var(--line); border-radius: 0; }
.xp__row--status b { color: var(--text); }
.xp__row--status b[data-tone="ok"] { color: var(--spark); }
.xp__row--status b[data-tone="warn"] { color: #ffb27a; }
.xp__row--status b[data-tone="water"] { color: #6bb6ff; }
.xp__row--big { padding-block: .7cqw; }
.xp__row--big b { font-family: var(--display); font-size: 2.5cqw; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.xp__row--big b[data-empty="true"] { color: var(--muted); font-size: 1.4cqw; }
.xp__note { margin-top: .6cqw; font-family: var(--mono); font-size: .7cqw; letter-spacing: .1em; text-transform: uppercase; color: #5f6770; }
.xp__row[hidden] { display: none; }
.xp__tablet { width: 27cqw; padding: 1.6cqw 1.8cqw 1.4cqw; background: #eef0f2; color: #0c0f13; border: 0; box-shadow: 0 1.4cqw 3cqw -1cqw rgba(0,0,0,.7); }
.xp__tablet .xp__row { padding: .75cqw 0; margin: 0; border-radius: 0; border-bottom: 1px solid rgba(12,15,19,.14); }
.xp__tablet .xp__row span { font-size: .92cqw; color: #3b4148; }
.xp__tablet .xp__row b { font-size: 1.45cqw; color: #0c0f13; font-weight: 600; }
.xp__tabhead { display: flex; justify-content: space-between; align-items: center; padding-bottom: .9cqw; margin-bottom: .2cqw; border-bottom: 2px solid rgba(12,15,19,.18);
  font-family: var(--mono); font-size: .92cqw; letter-spacing: .1em; text-transform: uppercase; color: #3b4148; }
.xp__tabhead b { font-size: 2.4cqw; letter-spacing: 0; color: #d93a2b; font-weight: 600; font-variant-numeric: tabular-nums; }
.xp__warn { margin-top: 1cqw; font-family: var(--mono); font-size: .9cqw; letter-spacing: .1em; text-transform: uppercase; color: #d93a2b; font-weight: 500; }

.xp__controls { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.xp__play { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); }
.xp__play span, .xp__play span::before { position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 1px; background: #0b0703; }
.xp__play span { left: 16px; }
.xp__play span::before { content: ""; top: 0; left: 8px; }
.xp__play.is-paused span { left: 17px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #0b0703; }
.xp__play.is-paused span::before { display: none; }
.xp__play:focus-visible, .xp__chapters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.xp__chapters { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.xp__chapters li { --k: 0; }
.xp__chapters button { display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 0 0 10px; border: 0; background: none; cursor: pointer;
  font: 500 .86rem/1.3 var(--body); color: var(--muted); text-align: left; transition: color .3s var(--ease); }
.xp__chapters li.is-active button, .xp__chapters button:hover { color: var(--text); }
.xp__chapters i { display: block; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.xp__chapters b { display: block; height: 100%; width: calc(var(--k) * 100%); background: var(--accent); }

/* video capture: the player fills the viewport */
.xp--capture .xp__player { position: fixed; inset: 0; z-index: 9999; border: 0; border-radius: 0; opacity: 1 !important; transform: none !important; transition: none !important; }
.xp--capture .xp__stage { height: 100vh; aspect-ratio: auto; }

@media (max-width: 760px) {
  .xp__stage { aspect-ratio: 4 / 3; }
  .xp__captions::before, .xp__card { display: none; }
  .xp__cap { position: static; width: auto; display: none; opacity: 1 !important; transform: none !important; padding: 18px 18px 20px; }
  .xp__cap.is-on { display: block; }
  .xp__cap .mono { font-size: .72rem; }
  .xp__cap h3 { font-size: 1.25rem; margin: 6px 0 6px; }
  .xp__cap p { font-size: .92rem; }
  .xp__chapters { gap: 6px; }
  .xp__chapters button { font-size: 0; }
  .xp__chapters button .mono { font-size: .7rem; }
}

/* Themes: dark is the default; navy follows the original diptek.com.au palette; light is off-white.
   Sections built on dark footage or renders (and the nav/footer, whose logo has white type in light) stay dark. */
:root[data-theme="navy"] {
  --bg: #0b2230; --bg-rgb: 11 34 48; --bg-2: #0e2836; --surface: #123245;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f1f5f7; --muted: #93aab6; --text-2: #c7d4db; --text-3: #b3c3cc;
  --accent: #f27405; --accent-2: #ff8f2e; --spark: #2fd8a8;
  --panel-a: #143a50; --panel-b: #0b2230; --panel-c: #17405a;
}
:root[data-theme="light"] {
  --bg: #f4f5f7; --bg-rgb: 244 245 247; --bg-2: #e9ecf0; --surface: #ffffff;
  --line: rgba(12,18,24,.09); --line-2: rgba(12,18,24,.16);
  --text: #0d141b; --muted: #5d6873; --text-2: #3a444e; --text-3: #4a545e;
  --accent: #e35a0e; --accent-2: #f27405; --spark: #12a150;
  --ghost: rgba(12,18,24,.05); --ghost-2: rgba(12,18,24,.1);
  --panel-a: #ffffff; --panel-b: #eef1f4; --panel-c: #ffffff;
  --logo-filter: invert(1);
}
:root[data-theme="light"] :is(.nav, .hero, .speed, .footer, .xp__card),
:root[data-theme="navy"] :is(.film3d, .xp__player) {
  --bg: #07090c; --bg-rgb: 7 9 12; --bg-2: #0c1016; --surface: #11161d;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #eef0ee; --muted: #8d949c; --text-2: #c3c8cd; --text-3: #b9bfc5;
  --accent: #ff6b1a; --accent-2: #ff8a45; --spark: #3cf28a;
  --ghost: rgba(255,255,255,.06); --ghost-2: rgba(255,255,255,.12);
  color: var(--text);
}
:root[data-theme="light"] .footer { background: var(--bg); }
/* light: the film uses its light render and the explainer plays in daylight (explainer.js) */
:root[data-theme="light"] .xp__player { background: #cfe3f3; border-color: var(--line); box-shadow: 0 40px 120px -50px rgba(20,40,60,.35); }
:root[data-theme="light"] .xp__captions::before { background: radial-gradient(80% 90% at 0 0, rgba(255,255,255,.88), transparent 70%); }
:root[data-theme="light"] .flow__logo { box-shadow: inset 0 0 0 1px var(--line-2); }

/* Responsive */
@media (max-width: 1100px) { .theme span { display: none; } .theme button { padding: 5px; } }
@media (max-width: 1000px) {
  .flow__grid { grid-template-columns: 1fr; }
  .flow__link { height: 64px; }
  .flow__link i { width: 1px; height: 70%; }
  .flow__link i::after { top: -30%; left: -1px; width: 3px; height: 30%; background: linear-gradient(180deg, transparent, var(--accent)); animation-name: flow-pulse-y; }
  .flow__link .mono { top: auto; left: calc(50% + 14px); }
  .flow__device { max-width: 420px; }
  .calc { grid-template-columns: 1fr; row-gap: 24px; }
}
@media (max-width: 820px) {
  .film3d { height: 520vh; }
  .film3d__shade { background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / 0) 12%, rgb(var(--bg-rgb) / 0) 46%, rgb(var(--bg-rgb) / .96) 64%, var(--bg) 100%); }
  .film3d__beat, .film3d__beat--intro { top: auto; bottom: 9vh; max-width: none; right: 0; }
  .film3d__beat p { font-size: .92rem; }
  .film3d__progress { bottom: 3vh; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 24px;
    background: rgb(var(--bg-rgb) / .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgb(var(--bg-rgb) / .96); }
  .nav__toggle { display: block; }
  .theme { margin-left: auto; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .split, .contact__panel { grid-template-columns: 1fr; }
  .split--end > p { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { gap: 12px; }
  .nav__logo img { height: 24px; }
  .nav .btn--sm { white-space: nowrap; padding: 9px 14px; font-size: .8rem; }
  .theme button { padding: 4px; }
  .speed__content { grid-template-columns: 1fr; }
  .speed__video { object-position: 78% center; }   /* speed-sm.mp4 is cropped to this window, so framing matches */
  .speed__shade { background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / .3) 22%, rgb(var(--bg-rgb) / .82) 52%, rgb(var(--bg-rgb) / .96) 100%); }
  .hero__creds { gap: 18px 22px; }
  .hero__made { flex-basis: 100%; gap: 12px; justify-content: flex-end; }
  .hero__made span { font-size: .8rem; }
  .hero__creds .hero__am { height: 46px; }
  .hero__creds .hero__hot30 { height: 28px; }
  .hero__creds .hero__south32 { height: 42px; }
  .compare__table { overflow-x: auto; }
  .compare__row { grid-template-columns: 124px repeat(3, minmax(136px, 1fr)); min-width: 532px; }
  .compare__row > span { padding: 14px 12px; font-size: .84rem; }
  .compare__row > .compare__pulse { order: -1; }   /* phones: Pulse sits next to the labels, before the scroll */
  .compare__row > span:first-child { order: -2; }
  .footer nav { margin-left: 0; }
  .clients__logos { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .clients__logos img { height: 24px; }
  .clients__logos .is-tall img { height: 36px; }
  .clients__logos .is-word img { height: 16px; }
  .clients__logos .is-svg svg { height: 36px; }
  .vtable__cap { padding: 18px 16px; }
  .vtable__row { grid-template-columns: 1fr 1fr; }
  .vtable__row > span { padding: 12px 16px; font-size: .88rem; }
  .vtable__row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .vtable__row > span:nth-child(2) { display: none; }   /* phones: Pulse result + difference only */
  .vtable__row > span:not(:first-child) { border-top: 0; }
  .vtable__pulse { background: none; box-shadow: none; }
  .vtable__row--head > span:first-child { display: none; }
  .vtable__row--head > span { border-top: 1px solid var(--line); }
  .calc__out { grid-template-columns: 1fr; }
  .calc__out > div:nth-child(even) { padding-left: 0; border-left: 0; }
}
