/* Sapxifi site: editorial layout, depth motion */
:root {
  --paper: #F5F8FC;
  --paper-2: #EAF2FB;
  --ink: var(--navy-900);
  --ink-soft: #3E4C6B;
  --ink-mute: #7A88A6;
  --rule: #D9E3F0;
  --ease-out: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 400; letter-spacing: -.025em; line-height: 1.06; }
h2 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-cyan { color: var(--cyan-400); }
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex: none; }

/* Labels, links, buttons */
.dot-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 500 13px var(--font-body); color: var(--ink-soft); }
.dot-label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(30,107,255,.12); }
.dot-label.light { color: #B9C7E4; }
.dot-label.light::before { background: var(--mint-400); box-shadow: 0 0 0 4px rgba(46,230,192,.15); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font-display); color: var(--ink); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; border-color: rgba(5,18,46,.25); transition: border-color .3s, gap .3s var(--ease-out); }
.text-link:hover { gap: 12px; border-color: currentColor; }
.text-link.light { color: #fff; border-color: rgba(255,255,255,.3); }
.text-link.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 26px; border-radius: 999px; font: 600 15px/1 var(--font-display); transition: transform .4s var(--ease-out), background .3s, box-shadow .4s; }
.btn svg { transition: transform .4s var(--ease-out); }
.btn:hover svg, .talk:hover svg, .service:hover .go svg { transform: translate(3px,-3px) rotate(0deg); }
.btn-dark { background: var(--navy-900); color: #fff; box-shadow: 0 14px 34px -16px rgba(5,18,46,.6); }
.btn-dark:hover { background: var(--royal-600); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(22,212,255,.55); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .4s, box-shadow .4s, transform .5s var(--ease-out); }
.nav.solid { background: rgba(245,248,252,.86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--rule); }
.nav.hide { transform: translateY(-100%); }
.nav-in { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 28px; width: auto; }
.links { display: flex; gap: 34px; font-size: 14px; color: var(--ink-soft); }
.links a { text-decoration: none; position: relative; padding: 6px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--blue-500); transition: right .45s var(--ease-out); }
.links a:hover, .links a.active { color: var(--ink); }
.links a:hover::after, .links a.active::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.talk { display: inline-flex; align-items: center; gap: 14px; font: 500 14px var(--font-body); }
.talk .circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .3s, color .3s; }
.talk:hover .circle { background: var(--ink); color: #fff; }
.burger { display: none; width: 42px; height: 42px; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 6px auto; transition: transform .35s var(--ease-out); }
.nav.menu .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.menu .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 960px) {
  .burger { display: block; }
  .talk { font-size: 0; gap: 0; }
  .links { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--gutter) 22px; background: var(--paper); box-shadow: 0 30px 40px -30px rgba(5,18,46,.35); clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease-out); }
  .links a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--ink); }
  .links a::after { display: none; }
  .nav.menu .links { clip-path: inset(0 0 0 0); }
  .nav.menu { background: var(--paper); }
}

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 140px 0 0; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(70% 60% at 85% 35%, #E3EEFF 0%, rgba(227,238,255,0) 70%), var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: 40px; align-items: center; flex: 1; }
.hero h1 { font-size: clamp(40px, 4.9vw, 76px); font-weight: 300; letter-spacing: -.04em; margin-bottom: 30px; }
.opening .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
@media (max-width: 520px) { .opening .line { white-space: normal; } }
.opening .line > span { display: inline-block; }
.hero-sub { max-width: 46ch; margin: 0 0 14px; font-size: 18px; color: var(--ink-soft); }
.hero-sub.muted { color: var(--ink-mute); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 34px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 26px; padding-bottom: 26px; margin-top: 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.hero-foot p { margin: 0; }
.hero-foot span { color: var(--ink-mute); }

/* Telescopic X field */
.x-field { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: end; perspective: 1300px; --tilt-x: 0deg; --tilt-y: 0deg; --travel: 0; }
.field-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-grid circle { fill: #9FB3D6; opacity: .55; }
.field-camera { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt-x)) rotateY(calc(var(--tilt-y) - 8deg)) rotateX(4deg); transition: transform .1s linear; }
.field-flight { position: absolute; inset: 0; transform-style: preserve-3d; animation: telescopic-arrival 2.2s var(--ease-out) both; }
.depth-plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--layer) * 20px - 60px + var(--travel) * var(--layer) * 46px)); animation: layer-settle 1.9s var(--ease-out) both; animation-delay: calc(var(--layer) * 70ms); }
.depth-plane img, .depth-plane svg { position: absolute; inset: 9%; width: 82%; height: 82%; overflow: visible; }
.depth-plane.front img { filter: drop-shadow(0 30px 50px rgba(30,107,255,.35)); }
.depth-plane:not(.front) img { filter: saturate(.9) blur(.3px); }
.blade { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) forwards; animation-delay: calc(500ms + var(--layer) * 90ms); }
.blade.b2 { animation-delay: calc(700ms + var(--layer) * 90ms); }
.x-core { fill: var(--royal-600); opacity: 0; animation: pop .9s var(--ease-out) 1.9s forwards; filter: drop-shadow(0 0 16px rgba(30,107,255,.7)); }
.field-caption { position: absolute; right: 4%; bottom: 3%; font-size: 12px; color: var(--ink-mute); letter-spacing: .02em; }
@keyframes telescopic-arrival { from { transform: translateZ(380px) rotateY(-26deg) rotateX(14deg) scale(1.05); opacity: 0; } 25% { opacity: 1; } to { transform: none; } }
@keyframes layer-settle { from { transform: translateZ(calc(var(--layer) * 62px + 80px)) translateX(calc(var(--layer) * -10px)); opacity: .1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

/* Opening motion */
html[data-motion=on] .opening .line > span { animation: opening-type 1.1s var(--ease-out) both; animation-delay: var(--d); }
html[data-motion=on] .hero-in { animation: rise .9s var(--ease-out) both; animation-delay: var(--d); }
@keyframes opening-type { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: clamp(64px, 11vw, 150px) 0; position: relative; }
@media (max-width: 700px) { .section-head { margin-bottom: 36px; } }
.section.soft { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 80px); }
.chip-outline { border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; font-size: 13px; color: var(--ink-soft); background: #fff; }
.side-note { margin: 0; font-size: 14px; color: var(--ink-mute); max-width: 30ch; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 52ch; margin: 26px 0 0; }

/* POV */
.pov { background: linear-gradient(180deg, var(--paper), #EDF4FD); }
.pov-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; }
.pov-card { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 20px; padding: 28px 26px 26px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pov-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad-rule); transform: scaleX(.18); transform-origin: left; transition: transform .8s var(--ease-out); }
.pov-card.in::before, .pov-card:hover::before { transform: scaleX(1); }
.pov-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(5,18,46,.45); }
.pov-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.pov-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #EAF2FF; color: var(--blue-500); flex: none; }
.pov-ic svg.lucide { width: 24px; height: 24px; }
.pov-ic img { width: 30px; }
.pov-step { font: 600 11px var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.pov-card h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; }
.pov-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.pov-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pov-tags li { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); }
.pov-answer { background: var(--navy-900) url(../art/x-night2.svg) 80% center/cover; border-color: transparent; color: #fff; box-shadow: 0 30px 60px -34px rgba(10,43,201,.7); }
.pov-answer .pov-ic { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.pov-answer .pov-step { color: var(--mint-300); }
.pov-answer p { color: #C9D4EC; }
.pov-answer .pov-tags li { background: rgba(255,255,255,.1); color: #fff; }
.facts { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 20px; overflow: hidden; background: var(--navy-950); position: relative; }
.facts::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 20% 0%, rgba(30,107,255,.35), transparent 70%), radial-gradient(50% 120% at 90% 100%, rgba(46,230,192,.18), transparent 70%); }
.facts div { position: relative; padding: 34px 32px; display: grid; gap: 8px; align-content: start; }
.facts div + div { border-left: 1px solid var(--line-dark); }
.facts svg.lucide { width: 24px; height: 24px; color: var(--cyan-400); margin-bottom: 8px; }
.facts .big { font: 300 clamp(44px, 5vw, 72px)/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff 20%, var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span:last-child { font-size: 14px; color: #B9C7E4; line-height: 1.35; }
@media (max-width: 900px) {
  .pov-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scrollbar-width: none; grid-auto-columns: 82%; gap: 12px; }
  .pov-cards::-webkit-scrollbar { display: none; }
  .pov-card { scroll-snap-align: start; }
  .pov-cards::after { content: ""; width: 1px; }
  .facts div { padding: 22px 14px 20px; gap: 4px; }
  .facts svg.lucide { width: 20px; height: 20px; margin-bottom: 4px; }
  .facts .big { font-size: 42px; }
  .facts span:last-child { font-size: 12px; }
}
.swipe-hint { display: none; }
@media (max-width: 900px) { .swipe-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; color: var(--ink-mute); } .swipe-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* Dark explorer */
.dark { background: var(--navy-950); color: #fff; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 15% 70%, rgba(30,107,255,.22), transparent 70%), radial-gradient(40% 50% at 90% 10%, rgba(46,230,192,.12), transparent 70%); pointer-events: none; }
.dark .wrap { position: relative; }
.explorer { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.explorer-art { border: 1px solid var(--line-dark); border-radius: 22px; padding: 28px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); display: grid; gap: 18px; align-content: start; min-height: 100%; }
.stage-hero { position: relative; aspect-ratio: 16/10; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 80% at 50% 40%, rgba(30,107,255,.45), transparent 70%), rgba(3,10,28,.6); border: 1px solid rgba(22,212,255,.18); }
.stage-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.stage-hero svg.lucide { position: relative; width: 34%; height: auto; max-width: 150px; color: #fff; stroke-width: 1.1; filter: drop-shadow(0 0 22px rgba(22,212,255,.6)); }
.stage-num { position: absolute; top: 16px; left: 18px; font: 600 12px var(--font-display); letter-spacing: .2em; color: var(--mint-300); }
.stage-steps { display: grid; gap: 10px; }
.step-chip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); font-size: 14px; color: #DCE6FA; }
.step-chip svg.lucide { width: 22px; height: 22px; color: var(--cyan-400); }
.stage-progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.stage-progress span { display: block; height: 100%; width: 25%; background: var(--grad-rule); transition: width .8s var(--ease-out); }
.explorer-art.swap .stage-hero svg { animation: icon-in .8s var(--ease-out) both; }
.explorer-art.swap .step-chip { animation: stage-change .7s var(--ease-out) both; }
.explorer-art.swap .step-chip:nth-child(2) { animation-delay: 80ms; } .explorer-art.swap .step-chip:nth-child(3) { animation-delay: 160ms; }
.explorer-art.swap svg.lucide :is(path, circle, rect, line, polyline, polygon, ellipse), .stage.swap svg.lucide :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease-out) .15s forwards; }
@keyframes icon-in { from { opacity: 0; transform: scale(.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-bottom: 40px; }
.tabs button { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: #93A3C4; font-size: 15px; display: flex; align-items: center; gap: 14px; transition: color .3s; }
.tabs button::before { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.tabs button[aria-selected=true] { color: var(--mint-300); border-color: rgba(46,230,192,.5); }
.tabs button[aria-selected=true]::before { width: 30px; }
.tabs button:hover { color: #fff; }
.stage.swap > * { animation: stage-change .7s var(--ease-out) both; }
.stage.swap > *:nth-child(2) { animation-delay: 60ms; } .stage.swap > *:nth-child(3) { animation-delay: 120ms; } .stage.swap > *:nth-child(4) { animation-delay: 180ms; }
@keyframes stage-change { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.stage-k { font: 600 12px var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan-400); margin: 0 0 16px; }
.stage h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 300; margin-bottom: 20px; }
.stage h3 span { color: var(--mint-300); }
.stage p { color: #B9C7E4; max-width: 52ch; margin: 0 0 24px; }
.stage ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.stage li { display: flex; gap: 12px; align-items: center; color: #DCE6FA; font-size: 15px; }
.stage li svg { color: var(--mint-400); }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; gap: 40px; } .explorer-art { max-width: 420px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; border-radius: 4px; padding: 30px 30px 32px; display: flex; flex-direction: column; min-height: 520px; border-top: 2px solid var(--navy-900); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); overflow: hidden; }
.service::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(30,107,255,.25), transparent 70%); transition: transform .8s var(--ease-out); }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(5,18,46,.45); }
.service:hover::after { transform: scale(1.6); }
.s-ice { background: #E3EEFF; }
.s-navy { background: var(--navy-900); color: #fff; border-color: var(--cyan-400); }
.s-navy::after { background: radial-gradient(circle, rgba(22,212,255,.3), transparent 70%); }
.s-mint { background: #D9F7EE; border-color: #0E8F78; }
.s-mint::after { background: radial-gradient(circle, rgba(46,230,192,.45), transparent 70%); }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.tag { background: var(--navy-900); color: #fff; font: 600 12px var(--font-display); padding: 7px 11px; border-radius: 3px; }
.s-navy .tag { background: var(--cyan-400); color: var(--navy-900); }
.s-mint .tag { background: #0B5F51; }
.go svg { width: 22px; height: 22px; transition: transform .45s var(--ease-out); }
.service-icon, .service > svg.lucide { width: 46px; height: 46px; stroke-width: 1.25; color: var(--blue-500); margin-bottom: 28px; }
.s-navy > svg.lucide { color: var(--cyan-400); }
.s-mint > svg.lucide { color: #0E8F78; }
.service h3 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 300; margin-bottom: 18px; }
.service p { margin: 0 0 24px; font-size: 15px; color: var(--ink-soft); }
.s-navy p { color: #B9C7E4; }
.service ul { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.service li { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(5,18,46,.15); background: rgba(255,255,255,.5); }
.s-navy li { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #DCE6FA; }
.service .text-link { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.help { margin: 34px 0 0; font-size: 14px; color: var(--ink-mute); display: flex; gap: 12px; align-items: center; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cap { padding: 34px 28px 36px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; background: rgba(255,255,255,.4); transition: background .4s; }
.cap::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad-rule); transition: width .6s var(--ease-out); }
.cap:hover { background: #fff; }
.cap:hover::before { width: 100%; }
.cap svg { width: 34px; height: 34px; stroke-width: 1.4; color: var(--blue-500); margin-bottom: 26px; transition: transform .6s var(--ease-out), color .4s; }
.cap:hover svg { transform: translateY(-4px) scale(1.06); color: var(--royal-600); }
.cap h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.cap p { margin: 0; font-size: 14px; color: var(--ink-mute); }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cap { padding: 24px 18px; } }

/* Talent band */
.band { background: var(--navy-950) url(../art/x-night2.svg) right center/cover; color: #fff; padding: clamp(84px, 11vw, 140px) 0; overflow: hidden; }
.band-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.band-copy { color: #B9C7E4; font-size: 17px; max-width: 46ch; margin: 24px 0 34px; }
.roles { display: grid; gap: 14px; min-width: 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: marquee 34s linear infinite; }
.reverse .track { animation-direction: reverse; animation-duration: 40s; }
.track span { padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); font: 500 15px var(--font-display); white-space: nowrap; }
.reverse .track span { border-color: rgba(46,230,192,.3); color: var(--mint-300); }
@keyframes marquee { to { transform: translateX(-50%); } }
.sign { margin: 14px 0 0; font: 500 15px var(--font-display); color: var(--mint-300); }
@media (max-width: 900px) {
  .band { position: relative; padding: 72px 0 64px; background-position: 70% 30%; }
  .band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,10,28,.88) 0%, rgba(3,10,28,.78) 55%, rgba(3,10,28,.92) 100%); }
  .band-grid { position: relative; grid-template-columns: 1fr; gap: 36px; }
  .band h2 { font-size: 38px; }
  .band-copy { font-size: 16px; margin: 18px 0 26px; }
  .roles { gap: 10px; margin: 0 calc(var(--gutter) * -1); }
  .marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .track { gap: 8px; }
  .track span { padding: 9px 14px; font-size: 13px; }
  .roles .sign { padding: 0 var(--gutter); margin-top: 8px; }
}

/* AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.signal { position: relative; border-radius: 22px; background: linear-gradient(160deg, #fff, #E6F0FF); border: 1px solid var(--rule); padding: 24px; }
.ai-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-tile { aspect-ratio: 1.15; border-radius: 16px; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; font: 500 13px var(--font-display); color: var(--ink-soft); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; }
.ai-tile svg.lucide { width: 34px; height: 34px; color: var(--blue-500); stroke-width: 1.4; transition: transform .5s var(--ease-out); }
.ai-tile:hover { transform: translateY(-4px); border-color: var(--blue-500); box-shadow: 0 18px 34px -22px rgba(30,107,255,.6); }
.ai-tile:hover svg { transform: scale(1.1); }
.ai-tile.core { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 20px 40px -18px rgba(10,43,201,.7); }
.ai-tile.core svg.lucide { color: var(--cyan-400); }
.signal.in .ai-tile { animation: tile-pop .7s var(--ease-out) both; }
.signal.in .ai-tile:nth-child(1) { animation-delay: 0ms } .signal.in .ai-tile:nth-child(2) { animation-delay: 60ms } .signal.in .ai-tile:nth-child(3) { animation-delay: 120ms }
.signal.in .ai-tile:nth-child(4) { animation-delay: 180ms } .signal.in .ai-tile:nth-child(5) { animation-delay: 240ms } .signal.in .ai-tile:nth-child(6) { animation-delay: 300ms }
.signal.in .ai-tile:nth-child(7) { animation-delay: 360ms } .signal.in .ai-tile:nth-child(8) { animation-delay: 420ms } .signal.in .ai-tile:nth-child(9) { animation-delay: 480ms }
.signal.in .ai-tile.core svg { animation: glow-pulse 2.8s ease-in-out 1s infinite; }
@keyframes tile-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glow-pulse { 50% { filter: drop-shadow(0 0 12px rgba(22,212,255,.9)); transform: scale(1.08); } }
.signal.in .ai-tile svg.lucide :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease-out) forwards; animation-delay: .35s; }
.signal-legend { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-mute); }
.ticks { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 22px; }
.ticks li { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.ticks svg { width: 28px; height: 28px; color: var(--blue-500); stroke-width: 1.5; }
.ticks b { display: block; font: 500 18px var(--font-display); margin-bottom: 2px; }
.ticks span { color: var(--ink-mute); font-size: 15px; }
@media (max-width: 900px) {
  #ai.section { padding-top: 64px; }
  .ai-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-grid .signal { order: 2; padding: 14px; }
  .ai-tiles { gap: 8px; }
  .ai-tile { font-size: 12px; gap: 8px; }
  .ai-tile svg.lucide { width: 28px; height: 28px; }
  .ticks { margin-top: 26px; }
}

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.why-item { border-top: 1px solid var(--ink); padding-top: 26px; }
.why-item svg { width: 28px; height: 28px; color: var(--blue-500); stroke-width: 1.5; margin-bottom: 22px; }
.why-item h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Closing */
.closing { background: linear-gradient(120deg, #DDEBFF 0%, #E2FAF3 100%); padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; right: -6%; top: -40%; width: 46%; aspect-ratio: 1; background: url(../brand/sapxifi-mark.svg) center/contain no-repeat; opacity: .14; animation: slow-spin 80s linear infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.closing-in { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.closing p { margin: 20px 0 0; color: var(--ink-soft); }

/* Footer */
.footer { background: var(--navy-950); color: #93A3C4; padding: 80px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.foot-logo { width: 240px; }
.foot-tag { margin: 22px 0 0; font-size: 14px; }
.foot-grid > div:not(:first-child) { display: grid; gap: 12px; align-content: start; }
.foot-grid .k { margin: 0 0 6px; color: #fff; font-size: 14px; }
.foot-grid a, .foot-grid button { text-decoration: none; font-size: 15px; text-align: left; color: inherit; transition: color .3s; }
.foot-grid a:hover, .foot-grid button:hover { color: var(--cyan-400); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* Motion toggle */
.motion-toggle { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border: 1px solid var(--rule); font-size: 12px; color: var(--ink-soft); box-shadow: 0 10px 24px -14px rgba(5,18,46,.4); }
.motion-toggle span { font-weight: 600; color: var(--ink); }
.motion-toggle i { width: 26px; height: 14px; border-radius: 999px; background: var(--blue-500); position: relative; margin-left: 4px; transition: background .3s; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left .3s var(--ease-out); }
.motion-toggle[aria-pressed=true] i { background: #B5C2DA; }
.motion-toggle[aria-pressed=true] i::after { left: 2px; }
@media (max-width: 700px) {
  .motion-toggle { left: 12px; bottom: 12px; padding: 7px 9px; font-size: 0; gap: 0; opacity: .85; }
  .motion-toggle span { display: none; }
  .motion-toggle i { margin-left: 0; width: 24px; }
  .motion-toggle::before { content: ""; width: 14px; height: 14px; margin-right: 6px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E") center/contain no-repeat; }
}

/* Enquiry dialog */
.enquiry { width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(3,10,28,.6); overflow: auto; }
.enquiry::backdrop { background: rgba(3,10,28,.55); backdrop-filter: blur(6px); }
.enquiry[open] { animation: dialog-in .55s var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.enq-close-form { position: absolute; top: 16px; right: 16px; margin: 0; }
.enq-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; background: #fff; }
.enq-body { padding: clamp(28px, 5vw, 48px); }
.enq-body h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 30px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.form input:not([type=radio]), .form textarea { font: 16px var(--font-body); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(30,107,255,.15); }
.pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick legend { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.pick label { display: block; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); transition: border-color .2s, background .2s; cursor: pointer; }
.pick svg { color: var(--blue-500); }
.pick input:checked + span { border-color: var(--blue-500); background: #EAF2FF; box-shadow: inset 0 0 0 1px var(--blue-500); }
.pick input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { margin: 0; min-height: 1.4em; font-size: 14px; }
.form-note.ok { color: #0E8F78; } .form-note.err { color: #D23B44; }
@media (max-width: 560px) { .form .row, .pick { grid-template-columns: 1fr; } }

/* Scroll reveal */
html[data-motion=on] .reveal { opacity: 0; transform: translateY(26px); }
html[data-motion=on] .reveal.in { animation: section-arrival .95s var(--ease-out) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes section-arrival { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* icons draw themselves in when their block arrives */
html[data-motion=on] .reveal .lucide :is(path, circle, rect, line, polyline, polygon, ellipse) { stroke-dasharray: 1; stroke-dashoffset: 1; }
html[data-motion=on] .reveal.in .lucide :is(path, circle, rect, line, polyline, polygon, ellipse) { animation: draw 1.4s var(--ease-out) forwards; animation-delay: calc(var(--reveal-delay, 0ms) + 250ms); }

/* Motion off */
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html[data-motion=off] .track { animation: none !important; flex-wrap: wrap; width: auto; }

@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .x-field { max-width: 440px; justify-self: center; width: 92%; margin-top: 20px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* Stage illustrations */
.stage-hero .stage-art { position: relative; width: 78%; max-width: 330px; height: auto; overflow: visible; filter: drop-shadow(0 24px 40px rgba(10,43,201,.45)); }
.stage-art .float { animation: art-float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.stage-art .float-slow { animation: art-float 7s ease-in-out infinite reverse; }
.stage-art .rocket { animation: lift 3.2s ease-in-out infinite; }
.stage-art .gauge { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gauge 1.8s var(--ease-out) .2s forwards; }
.stage-art .needle { transform-origin: 100px 98px; transform: rotate(-90deg); animation: needle 1.8s var(--ease-out) .2s forwards; }
.stage-art .badge { transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease-out) 1.6s both; }
.stage-art .rows rect { animation: rise .6s var(--ease-out) both; }
.stage-art .trail { stroke-dasharray: 160; stroke-dashoffset: 160; animation: trail 1.4s var(--ease-out) .1s forwards; }
.stage-art .puffs circle { transform-box: fill-box; transform-origin: center; animation: puff 2.6s ease-in-out infinite; }
.stage-art .puffs circle:nth-child(2) { animation-delay: .6s; } .stage-art .puffs circle:nth-child(3) { animation-delay: 1.2s; }
.stage-art .s2 { animation-delay: 1.1s; }
@keyframes gauge { to { stroke-dashoffset: .26px; } }
@keyframes needle { to { transform: rotate(42deg); } }
@keyframes lift { 50% { transform: translate(3px, -6px); } }
@keyframes trail { to { stroke-dashoffset: 0; } }
@keyframes puff { 50% { transform: scale(1.5); opacity: .08; } }
.stage-art .scan { animation: scan 2.4s ease-in-out infinite; }
.stage-art .flame { transform-box: fill-box; transform-origin: 50% 0; animation: flame .3s ease-in-out infinite alternate; }
.stage-art .route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-out) .2s forwards; }
.stage-art .flag { transform-box: fill-box; transform-origin: bottom left; animation: pop .7s var(--ease-out) 1.4s both; }
.stage-art .bar { transform-box: fill-box; transform-origin: bottom; animation: grow 1s var(--ease-out) both; }
.stage-art .b2 { animation-delay: .12s; } .stage-art .b3 { animation-delay: .24s; }
.stage-art .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.2s ease-in-out infinite; }
@keyframes art-float { 50% { transform: translateY(-6px); } }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(40px); } }
@keyframes flame { to { transform: scaleY(1.25) scaleX(.9); opacity: .8; } }
@keyframes speed { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .3; } }
.explorer-art.swap .stage-art { animation: icon-in .8s var(--ease-out) both; }

/* Brand-gradient line icons */
:is(.cap, .why-item, .ticks, .pov-card:not(.pov-answer) .pov-ic, .service, .stage li, .ai-tile:not(.core), .help, .hero-actions .text-link) svg.lucide { stroke: url(#brandStroke); }
:is(.step-chip, .facts, .ai-tile.core, .s-navy) svg.lucide { stroke: url(#brandStrokeLight); }
.service .go svg.lucide, .service .text-link svg.lucide { stroke: currentColor; }

/* BCON credit */
.made-by { display: inline-flex; align-items: center; gap: 6px; color: #93A3C4; text-decoration: none; transition: color .3s; }
.made-by b { color: #fff; font-family: var(--font-display); letter-spacing: .04em; }
.made-by .heart { display: inline-block; background: linear-gradient(135deg, var(--mint-400), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 15px; animation: beat 1.4s ease-in-out infinite; }
.made-by:hover { color: #fff; }
.made-by:hover b { color: var(--cyan-400); }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1.05); } 45% { transform: scale(1.2); } }
