/* SOLVIQX — site styles
   Brand colours (official): Charcoal #0E1318 · Emerald #13C98A · Off-White #F8F8F8 */

:root {
  --charcoal: #0E1318;
  --emerald: #13C98A;
  --offwhite: #F8F8F8;
  --white: #FFFFFF;
  --ink-soft: #3D4752;      /* body text on light backgrounds (passes AA) */
  --line-light: #E3E6E8;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 15px 28px; border-radius: 4px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emerald); color: var(--charcoal); border: 0; font-family: inherit; cursor: pointer; }
.btn-ghost { border: 1.5px solid rgba(248,248,248,.4); color: var(--offwhite); }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; background: var(--emerald); transform: skewX(-42deg);
}
.dark .eyebrow { color: var(--emerald); }
.h2 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 24px 0; }
.lead { margin: 0; max-width: 440px; color: var(--ink-soft); }
.dark .lead { color: rgba(248,248,248,.74); }
.accent { color: var(--emerald); }

/* ---------- Intro ---------- */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeOut { to { opacity: 0; transform: scale(.94); } }
@keyframes seam { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes splitA { to { transform: translateY(-160vmax); } }
@keyframes splitB { to { transform: translateY(160vmax); } }
@keyframes gone { to { visibility: hidden; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; animation: gone 0s linear 3.4s forwards; }
.intro .cut { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(-42deg); }
.intro .pa, .intro .pb { position: absolute; left: -160vmax; width: 320vmax; height: 160vmax; background: var(--charcoal); }
.intro .pa { bottom: 0; animation: splitA 1s cubic-bezier(.76,0,.24,1) 2.35s forwards; }
.intro .pb { top: 0; animation: splitB 1s cubic-bezier(.76,0,.24,1) 2.35s forwards; }
.intro .seam { position: absolute; left: -160vmax; top: -1px; width: 320vmax; height: 2px; background: var(--emerald); transform: scaleX(0); animation: seam .5s ease-out 1.95s forwards; }
.intro .brand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; animation: fadeOut .45s ease-in 1.85s forwards; }
.intro .mono { animation: wipe .9s cubic-bezier(.7,0,.2,1) .2s both; }
.intro .wm-mask { overflow: hidden; }
.intro .wm { animation: up .8s cubic-bezier(.2,.7,.2,1) .7s both; }

/* Compact horizontal logo: symbol + wordmark side by side (original artwork, rearranged) */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup > img:first-child { height: 30px; width: auto; }
.lockup > img:last-child { height: 17px; width: auto; }
.lockup-sm > img:first-child { height: 24px; } .lockup-sm > img:last-child { height: 14px; }
.lockup-lg { gap: 22px; }
.lockup-lg > .mono { height: clamp(44px, 8vw, 64px); width: auto; }
.lockup-lg .wm-mask img { height: clamp(24px, 4.4vw, 36px); width: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.intro .track { width: 200px; height: 2px; background: rgba(248,248,248,.12); margin-top: 12px; animation: fade .3s ease .9s both; }
.intro .fill { height: 100%; background: var(--emerald); transform-origin: left; animation: bar 1s cubic-bezier(.6,0,.3,1) .95s both; }
.intro .tag { font-family: var(--font-display); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: rgba(248,248,248,.6); animation: fade .5s ease 1.1s both; }

/* ---------- Hero entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes slab { from { opacity: 0; transform: translateX(140px) skewX(-42deg); } to { opacity: 1; transform: skewX(-42deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.a-line { animation: up 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.a-in { animation: rise .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.a-slab { animation: slab 1.3s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.has-intro .a-line, .has-intro .a-in, .has-intro .a-slab { animation-delay: calc(var(--d, 0s) + 2.6s); }
.float { animation: float 6s ease-in-out infinite; }

/* ---------- Stacked pages ---------- */
.page { position: relative; min-height: min(100vh, 1000px); display: flex; align-items: center; overflow: clip; }
html { overflow-x: clip; }
.sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -28px 60px -20px rgba(0,0,0,.45); }
.light { background: var(--offwhite); }
.white { background: var(--white); }
.dark { background: var(--charcoal); color: var(--offwhite); }

@media (min-width: 900px) and (min-height: 640px) {
  .page { position: sticky; top: 0; height: 100vh; max-height: 1000px; min-height: 0; overflow: hidden; }
}

.deco-slab { position: absolute; top: -10%; height: 120%; background: rgba(19,201,138,.06); transform: skewX(-42deg); pointer-events: none; }

/* Reveals: scroll-driven where supported, otherwise IntersectionObserver (script.js) */
@keyframes reveal { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .rv, .js .rv2, .js .rv3 { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .rv2 { transition-delay: .12s; } .js .rv3 { transition-delay: .24s; }
.js .draw { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) .35s; }
.js .rv.is-in, .js .rv2.is-in, .js .rv3.is-in, .js .draw.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { z-index: 1; flex-direction: column; align-items: stretch; }
.nav { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn), .footer nav a { color: rgba(248,248,248,.78); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn):hover, .footer nav a:hover { color: var(--emerald); }
.nav-links .btn { min-height: 44px; padding: 12px 22px; }
.hero-body { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px 48px; padding-block: 24px; }
.hero-left { flex: 1 1 640px; min-width: 0; }
.hero-sub { margin-top: 32px !important; }
.caret { display: inline-block; width: .07em; height: .82em; margin-left: .06em; background: var(--emerald); vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Build-log terminal */
.term { flex: 1 1 360px; max-width: 440px; min-width: 0; border-radius: 10px; background: #0A0E12; border: 1px solid rgba(248,248,248,.1); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(248,248,248,.08); }
.term-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(248,248,248,.18); }
.term-bar em { margin-left: auto; font-style: normal; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: rgba(248,248,248,.45); }
.term-body { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.85; padding: 16px 18px 18px; min-height: 214px; color: rgba(248,248,248,.72); }
.term-body b { color: var(--emerald); font-weight: 500; }
.t-line { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; overflow: hidden; animation: fade .3s ease both; }
.t-line .ok { color: var(--emerald); }
.t-done { color: var(--emerald); animation: fade .3s ease both; }
.kicker { margin: 0 0 26px; font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald); }
.hero h1 { font-size: clamp(42px, 5.8vw, 84px); line-height: 1; letter-spacing: -.035em; }
.hero h1 .mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .mask > span { display: block; }
.hero-sub { margin: 0; max-width: 540px; font-size: 19px; color: rgba(248,248,248,.76); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Software page: heading row + 3-column tiles */
.stack { padding-block: 64px; }
.stack-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 40px; }
.stack-head > div { flex: 1 1 560px; min-width: 0; }
.stack-head .h2 { margin-bottom: 0; }
.stack-head .lead { flex: 1 1 320px; }
.tiles.tiles-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tiles-3 .tile { padding: 26px 26px; }
.tiles-3 .tile h3 { margin-top: 10px; }
.u-mark { background: linear-gradient(transparent 68%, rgba(19,201,138,.55) 68%, rgba(19,201,138,.55) 92%, transparent 92%); }

/* Example system panel */
.sys { border-radius: 10px; border: 1px solid rgba(248,248,248,.12); background: rgba(248,248,248,.03); padding: 22px; }
.sys-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: rgba(248,248,248,.8); }
.sys-head em { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(248,248,248,.55); border: 1px solid rgba(248,248,248,.2); border-radius: 99px; padding: 3px 10px; }
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.sys-card { border-radius: 8px; padding: 18px; background: rgba(248,248,248,.04); border: 1px solid rgba(248,248,248,.1); transition: border-color .3s, transform .3s; }
.sys-card:hover { border-color: var(--emerald); transform: translateY(-3px); }
.sys-card small { display: block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px; }
.sys-card b { font-weight: 500; font-size: 16px; line-height: 1.4; }
.sys-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: rgba(248,248,248,.6); }
.sys-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(19,201,138,.18); animation: blink 2s ease-in-out infinite; }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 32px; font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(248,248,248,.55); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 44px; background: rgba(248,248,248,.15); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--emerald); animation: cue 2.2s cubic-bezier(.6,0,.3,1) infinite; }

/* ---------- Split pages (services, about, contact) ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px; }
.split-text { flex: 1 1 380px; min-width: 0; }
.split-side { flex: 1.3 1 520px; min-width: 0; }
.reverse { flex-wrap: wrap-reverse; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 8px; padding: 30px 28px; background: var(--white); border: 1px solid var(--line-light); transition: transform .35s ease, border-color .35s ease; }
.dark .tile { background: rgba(248,248,248,.04); border-color: rgba(248,248,248,.12); }
.tile::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 48px; background: var(--emerald); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: translateY(-6px); border-color: var(--emerald); }
.tile:hover::before { width: 100%; }
.tile .num { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.dark .tile .num { color: var(--emerald); }
.tile h3 { margin: 14px 0 8px; font-size: 21px; line-height: 1.2; }
.tile p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.dark .tile p { color: rgba(248,248,248,.72); }

/* ---------- Process ---------- */
.process { padding-block: 72px; }
.process .h2 { max-width: 820px; margin-bottom: 72px; }
.steps-wrap { position: relative; }
.steps-track, .steps-wrap .draw { position: absolute; top: 27px; left: 0; right: 0; height: 2px; }
.steps-track { background: var(--line-light); }
.steps-wrap .draw { background: var(--charcoal); }
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--charcoal); color: var(--emerald); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 17px; box-shadow: 0 0 0 8px var(--white); }
.steps h3 { margin: 28px 0 10px; font-size: 24px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- About ---------- */
.about-text p { margin: 0 0 18px; color: var(--ink-soft); }
.who { position: relative; overflow: hidden; background: var(--charcoal); color: var(--offwhite); border-radius: 8px; padding: 40px; flex: 1 1 420px; min-width: 0; }
.who h3 { position: relative; font-size: 22px; margin-bottom: 20px; }
.who > div:not(.deco-slab) { position: relative; padding: 16px 0; border-top: 1px solid rgba(248,248,248,.12); }
.who strong { display: block; font-size: 17px; }
.who span { display: block; color: rgba(248,248,248,.7); font-size: 15px; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { flex-direction: column; align-items: stretch; z-index: 6; }
.contact .split { flex: 1; padding-bottom: 40px; }
.contact h2 { font-size: clamp(42px, 5.2vw, 78px); line-height: 1; letter-spacing: -.035em; margin: 24px 0 22px; }
.channels { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin-top: 34px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(248,248,248,.18); border-radius: 6px; color: var(--offwhite); text-decoration: none; transition: border-color .2s, transform .2s; }
.channel:hover { border-color: var(--emerald); transform: translateY(-2px); }
.channel small { display: block; font-size: 13px; color: rgba(248,248,248,.6); }
.channel b { font-weight: 600; }
.form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 8px; background: rgba(248,248,248,.04); border: 1px solid rgba(248,248,248,.12); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(248,248,248,.8); }
.form input, .form select, .form textarea { background: var(--charcoal); border: 1px solid rgba(248,248,248,.2); border-radius: 4px; padding: 12px 14px; color: var(--offwhite); font: inherit; font-size: 16px; min-height: 46px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--emerald); }
.form .btn { align-self: flex-start; }
.form-note { margin: 0; font-size: 14px; color: rgba(248,248,248,.6); }

.footer { position: relative; border-top: 1px solid rgba(248,248,248,.1); color: rgba(248,248,248,.7); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a[href="#process"], .nav-links a[href="#about"] { display: none; }
  .term-body { font-size: 12px; min-height: 196px; }
  .hero-row { margin-top: 26px; }
  .hero-foot span:first-child, .hero-foot span:last-child { display: none; }
  .hero-foot { justify-content: center; }
  .split, .process { padding-block: 56px; }
  .who, .form { padding: 26px; }
  .sheet { border-radius: 20px 20px 0 0; }
  .steps-track, .steps-wrap .draw { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv2, .js .rv3, .js .draw { opacity: 1 !important; transform: none !important; }
}

/* ===== v3 additions ===== */

/* Nav: wordmark only */
.wordmark-link { display: inline-flex; align-items: center; }
.wordmark-link img { height: 20px; width: auto; }

/* Hero: centred, no logo artwork */
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(248,248,248,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,248,248,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.hero-center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 24px 96px; }
.hero-center h1 { font-size: clamp(42px, 6.6vw, 96px); }
.hero-center .hero-sub { margin: 32px auto 0 !important; max-width: 620px; }
.hero-center .hero-ctas { justify-content: center; }

/* Bouncing scroll arrow */
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.scroll-down { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(248,248,248,.6); text-decoration: none; font-family: var(--font-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; min-width: 44px; min-height: 44px; transition: color .2s; }
.scroll-down:hover { color: var(--emerald); }
.scroll-down svg { color: var(--emerald); animation: bounce 1.4s ease-in-out infinite; }

/* Example system panel on a light page */
.light .sys { background: var(--white); border-color: var(--line-light); box-shadow: 0 30px 60px -40px rgba(14,19,24,.35); }
.light .sys-head { color: var(--charcoal); }
.light .sys-head em { color: var(--ink-soft); border-color: var(--line-light); }
.light .sys-card { background: var(--offwhite); border-color: var(--line-light); }
.light .sys-card small { color: var(--ink-soft); }
.light .sys-card small::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--emerald); transform: skewX(-42deg); }
.light .sys-foot { color: var(--ink-soft); }
.light .lead a { color: var(--charcoal); font-weight: 600; text-decoration-color: var(--emerald); text-underline-offset: 3px; }

/* FAQ accordion */
.faq-wrap { align-items: flex-start; }
.faq { flex: 1.4 1 520px; min-width: 0; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 4px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 18px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white) no-repeat center / 14px; border: 1px solid var(--line-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1318' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--emerald); border-color: var(--emerald); }
.faq summary:hover { color: var(--ink-soft); }
.faq details p { margin: 0; padding: 0 48px 20px 4px; color: var(--ink-soft); font-size: 16px; animation: rise .35s ease both; }

@media (max-width: 720px) {
  .wordmark-link img { height: 16px; }
  .nav-links a[href="#faq"] { display: none; }
  .faq summary { font-size: 16px; }
}

/* Business system modules light up one after another, like data flowing between them */
@keyframes pulseCard { 0%, 14%, 100% { border-color: var(--line-light); box-shadow: none; } 5% { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(19,201,138,.18); } }
.sys-flow { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.sys-flow .sys-card { animation: pulseCard 7.2s ease-in-out infinite; }
.sys-flow .sys-card:nth-child(2) { animation-delay: 1.2s; }
.sys-flow .sys-card:nth-child(3) { animation-delay: 2.4s; }
.sys-flow .sys-card:nth-child(4) { animation-delay: 3.6s; }
.sys-flow .sys-card:nth-child(5) { animation-delay: 4.8s; }
.sys-flow .sys-card:nth-child(6) { animation-delay: 6s; }

/* FAQ: contact card fills the left column */
.ask-card { position: relative; overflow: hidden; margin-top: 40px; padding: 32px; border-radius: 10px; background: var(--charcoal); color: var(--offwhite); }
.ask-card h3 { position: relative; font-size: 24px; margin-bottom: 10px; }
.ask-card p { position: relative; margin: 0 0 24px; color: rgba(248,248,248,.74); font-size: 16px; }
.ask-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ask-mail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--offwhite); font-weight: 500; text-decoration: none; transition: color .2s; }
.ask-mail:hover { color: var(--emerald); }

/* Hero word swap: old word disappears upward, new word bounces in from below */
@keyframes wordOut { to { opacity: 0; transform: translateY(-55%); filter: blur(6px); } }
@keyframes wordIn { 0% { opacity: 0; transform: translateY(80%); } 60% { opacity: 1; transform: translateY(-10%); } 80% { transform: translateY(4%); } 100% { opacity: 1; transform: none; } }
.swap { display: inline-block; }
.swap-out { animation: wordOut .42s cubic-bezier(.55,0,.8,.3) forwards; }
.swap-in { animation: wordIn .75s cubic-bezier(.2,.7,.2,1) both; }

/* ===== Intro v4: symbol only, splits between the S and the X ===== */
@keyframes halfInS { from { opacity: 0; translate: 0 -46px; } to { opacity: 1; translate: 0 0; } }
@keyframes halfInX { from { opacity: 0; translate: 0 46px; } to { opacity: 1; translate: 0 0; } }
.intro { animation: gone 0s linear 2.85s forwards; }
.intro .pa { animation: splitA 1.05s cubic-bezier(.76,0,.24,1) 1.7s forwards; }
.intro .pb { animation: splitB 1.05s cubic-bezier(.76,0,.24,1) 1.7s forwards; }
.intro .seam { animation: seam .45s ease-out 1.3s forwards; z-index: 2; }
.intro .half { position: absolute; left: 160vmax; width: min(46vw, 300px); height: auto; }
.intro .half-s { bottom: 0; transform: translate(-50%, 50%) rotate(42deg); animation: halfInS .8s cubic-bezier(.2,.7,.2,1) .15s both; }
.intro .half-x { top: 0; transform: translate(-50%, -50%) rotate(42deg); animation: halfInX .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.has-intro .a-line, .has-intro .a-in, .has-intro .a-slab { animation-delay: calc(var(--d, 0s) + 2s); }

/* ===== Headings animate word by word when their page arrives ===== */
.w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); transform-origin: left bottom;
     transition: opacity .6s ease, transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 60ms + 80ms); }
.words-in .w { opacity: 1; transform: none; }
.split-words .u-mark { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .9s cubic-bezier(.6,0,.3,1) .55s;
  background-image: linear-gradient(transparent 68%, rgba(19,201,138,.55) 68%, rgba(19,201,138,.55) 92%, transparent 92%); }
.split-words.words-in .u-mark { background-size: 100% 100%; }
.eyebrow { transition: letter-spacing .9s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.js .page:not(.hero) .eyebrow:not(.seen) { letter-spacing: .5em; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .w { opacity: 1 !important; transform: none !important; }
  .split-words .u-mark { background-size: 100% 100% !important; }
  .js .page .eyebrow { letter-spacing: .18em !important; opacity: 1 !important; }
}


/* ===== v5 fixes ===== */
/* Software page: intro paragraph sits level with the heading */
.stack-head { align-items: center; }

/* Contact: centred heading, larger centred form, email below */
.contact-center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 64px 32px; }
.contact-center .eyebrow { justify-content: center; }
.contact-center .lead { margin: 0 auto; max-width: 560px; }
.contact-center .form { width: 100%; max-width: 820px; flex: none; margin-top: 36px; padding: 40px; text-align: left; gap: 20px; }
.contact-center .form textarea { min-height: 120px; }
.contact-center .form .btn { align-self: center; min-width: 220px; justify-content: center; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 44px; color: rgba(248,248,248,.85); text-decoration: none; font-weight: 500; transition: color .2s; }
.contact-mail:hover { color: var(--emerald); }
@media (max-width: 720px) { .contact-center .form { padding: 24px; } }
/* Contact is the last page: let it grow so the footer is never cut off */
@media (min-width: 900px) and (min-height: 640px) {
  .page.contact { height: auto; max-height: none; min-height: 100vh; overflow: clip; }
}

/* Multi-select service chips */
.chips { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: rgba(248,248,248,.8); }
.chips legend span { margin-left: 8px; font-weight: 400; color: rgba(248,248,248,.5); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 99px; border: 1px solid rgba(248,248,248,.2); background: var(--charcoal); font-size: 15px; font-weight: 500; color: rgba(248,248,248,.85); transition: border-color .2s, background-color .2s, color .2s, transform .15s; }
.chip > span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(248,248,248,.35); flex: none; transition: all .2s; }
.chip:hover > span { border-color: rgba(19,201,138,.6); }
.chip input:checked + span { border-color: var(--emerald); background: rgba(19,201,138,.12); color: var(--offwhite); }
.chip input:checked + span::before { border-color: var(--emerald); background: var(--emerald) no-repeat center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1318' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 2px; }
.chip:active > span { transform: scale(.97); }
.chip-all { flex-basis: 100%; }
.chip-all > span { width: 100%; padding: 14px 18px; border-radius: 10px; font-size: 16px; font-weight: 600; }
.chip-all small { margin-left: auto; font-size: 13px; font-weight: 400; color: rgba(248,248,248,.55); }
@media (max-width: 720px) { .chip-all small { display: none; } }

/* ===== Intro v5: logo + loader, opens with a horizontal split ===== */
.intro { animation: none !important; background: transparent; }
.intro .ihalf { position: absolute; left: 0; right: 0; height: 50%; background: var(--charcoal); display: flex; justify-content: center;
  transition: transform 1s cubic-bezier(.76,0,.24,1); }
.intro .itop { top: 0; align-items: flex-end; padding-bottom: 28px; }
.intro .ibottom { bottom: 0; align-items: flex-start; padding-top: 36px; }
.intro .ilogo { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.intro .imono { width: min(40vw, 190px); height: auto; animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
.intro .iword { width: min(60vw, 260px); height: auto; animation: rise .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.intro .iload { width: min(80vw, 320px); display: flex; flex-direction: column; align-items: center; gap: 14px; animation: rise .8s cubic-bezier(.2,.7,.2,1) .45s both; }
.intro .istatus { height: 22px; overflow: hidden; font-family: var(--font-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,248,248,.7); }
.intro .istatus span { display: block; }
.intro .istatus span.swap-msg { animation: msgIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
.intro .ibar { width: 100%; height: 3px; border-radius: 3px; background: rgba(248,248,248,.12); overflow: hidden; }
.intro .ifill { width: 100%; height: 100%; background: var(--emerald); transform: scaleX(0); transform-origin: left; }
.intro .ipct { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--emerald); font-variant-numeric: tabular-nums; }
.intro .iline { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--emerald); transform: scaleX(0); transition: transform .45s cubic-bezier(.6,0,.3,1), opacity .4s ease .9s; }
.intro.is-cut .iline { transform: scaleX(1); }
.intro.is-open .itop { transform: translateY(-100%); }
.intro.is-open .ibottom { transform: translateY(100%); }
.intro.is-open .iline { opacity: 0; }
.intro.is-welcome .istatus { color: var(--offwhite); }

/* Hero entrance waits until the intro opens */
.has-intro .a-line, .has-intro .a-in, .has-intro .a-slab { animation-delay: var(--d, 0s); }
.has-intro:not(.intro-open) .a-line, .has-intro:not(.intro-open) .a-in, .has-intro:not(.intro-open) .a-slab { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .has-intro .a-line, .has-intro .a-in { animation-play-state: running !important; } }
.intro.is-open .iline { opacity: 0; transition: transform .45s cubic-bezier(.6,0,.3,1), opacity .25s ease; }


/* ===== v6 ===== */
/* Reveals are tied to the page on screen (replay when scrolling either way) */
.js .rv.is-in, .js .rv2.is-in, .js .rv3.is-in, .js .draw.is-in { opacity: 0; }
.js .page.in-view .rv, .js .page.in-view .rv2, .js .page.in-view .rv3 { opacity: 1; transform: none; }
.js .page.in-view .draw { transform: none; }
.page.in-view .w { opacity: 1; transform: none; }
.page.in-view .split-words .u-mark { background-size: 100% 100%; }
.js .page:not(.hero).in-view .eyebrow { letter-spacing: .18em; opacity: 1; }
.js .page:not(.in-view) .w { transition-delay: 0s; }

/* Software tiles fly in from different directions and lock together into the grid */
.js .assemble .tile { transition: transform .95s cubic-bezier(.2,.75,.25,1), opacity .6s ease, border-color .35s ease; }
.js .assemble .tile:nth-child(1) { transition-delay: .05s; } .js .assemble .tile:nth-child(2) { transition-delay: .15s; }
.js .assemble .tile:nth-child(3) { transition-delay: .25s; } .js .assemble .tile:nth-child(4) { transition-delay: .2s; }
.js .assemble .tile:nth-child(5) { transition-delay: .3s; }  .js .assemble .tile:nth-child(6) { transition-delay: .4s; }
.js .page:not(.in-view) .assemble .tile { opacity: 0; transition-delay: 0s; }
.js .page:not(.in-view) .assemble .tile:nth-child(3n+1) { transform: translate(-180px, 50px) rotate(-8deg); }
.js .page:not(.in-view) .assemble .tile:nth-child(3n+2) { transform: translateY(200px) scale(.85); }
.js .page:not(.in-view) .assemble .tile:nth-child(3n)   { transform: translate(180px, 50px) rotate(8deg); }
.js .assemble .tile:hover { transition-delay: 0s; }

/* No bounce on the hero arrow */
.scroll-down svg { animation: none; }

/* Round buttons */
.btn { border-radius: 999px; }
.form .btn, .ask-actions .btn { border-radius: 999px; }

/* Fixed glass navigation panel */
.site-nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; padding-inline: 16px; pointer-events: none; }
.site-nav .nav { pointer-events: auto; max-width: 1208px; margin: 0 auto; padding: 10px 10px 10px 26px; border-radius: 999px;
  background: rgba(14,19,24,.74); border: 1px solid rgba(248,248,248,.14);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 32px -14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.site-nav .nav-links .btn { min-height: 44px; padding: 11px 22px; }
.hero-center { padding-top: 96px; }
@media (max-width: 720px) { .site-nav { top: 10px; padding-inline: 10px; } .site-nav .nav { padding-left: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .js .page .rv, .js .page .rv2, .js .page .rv3, .js .page .draw, .js .assemble .tile { opacity: 1 !important; transform: none !important; }
}

/* Nav: logo left, links centred, button right */
.site-nav .nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-nav .nav-links { justify-content: center; }
.site-nav .nav-cta { justify-self: end; }
.site-nav .nav-cta .btn { min-height: 44px; padding: 11px 22px; }
@media (max-width: 720px) { .site-nav .nav { grid-template-columns: auto 1fr auto; } .site-nav .nav-cta .btn { padding: 10px 16px; font-size: 14px; } }
@media (max-width: 720px) { .site-nav .nav-links { display: none; } .site-nav .nav { grid-template-columns: 1fr auto; } .site-nav .nav-cta .btn { white-space: nowrap; } }


/* ===== v7 ===== */
/* Full-width glass nav bar, larger links and button */
.site-nav { top: 0; padding-inline: 0; }
.site-nav .nav { max-width: none; margin: 0; border-radius: 0; border-width: 0 0 1px; padding: 14px clamp(20px, 3vw, 48px); }
.site-nav .wordmark-link img { height: 24px; }
.site-nav .nav-links { gap: 40px; font-size: 17px; font-weight: 500; }
.site-nav .nav-cta .btn { min-height: 52px; padding: 14px 30px; font-size: 17px; }
.hero-center { padding-top: 110px; }
@media (max-width: 720px) {
  .site-nav .nav { padding: 10px 16px; }
  .site-nav .wordmark-link img { height: 18px; }
  .site-nav .nav-cta .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
}

/* Loader: symbol above the centre line, lettering below it; full-width bar at the bottom */
.intro .itop { align-items: flex-end; padding-bottom: 22px; }
.intro .ibottom { flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 26px; }
.intro .imono { width: min(44vw, 220px); }
.intro .iword { width: min(70vw, 340px); }
.intro .iload { position: absolute; left: 0; right: 0; bottom: 0; width: auto; gap: 12px; align-items: stretch; animation: fade .6s ease .4s both; }
.intro .iload-row { display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 3vw, 48px); }
.intro .istatus { text-align: left; }
.intro .ipct { font-size: 18px; }
.intro .ibar { width: 100%; height: 4px; border-radius: 0; }

/* Loader text in a wide geometric face that matches the SOLVIQX lettering */
.intro .istatus, .intro .ipct { font-family: 'Michroma', var(--font-display); }
.intro .istatus { height: 24px; font-size: 12px; letter-spacing: .14em; }
.intro .istatus span { display: flex; align-items: center; gap: .9em; height: 24px; }
.intro .msg-logo { height: 13px; width: auto; display: inline-block; }
.intro .ipct { font-size: 16px; font-weight: 400; }


/* ===== v8: professional loader bar, no scrollbar ===== */
/* Hide the browser scrollbar site-wide (scrolling still works), and lock scrolling while the loader plays */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.has-intro:not(.intro-open), html.has-intro:not(.intro-open) body { overflow: hidden; }

.intro .iload { gap: 18px; }
.intro .iload-row { align-items: flex-end; padding: 0 clamp(24px, 4vw, 56px); }
.intro .istatus, .intro .ipct { font-family: var(--font-display); }
.intro .istatus { display: flex; align-items: center; gap: 14px; height: 26px; padding-bottom: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; color: rgba(248,248,248,.62); }
.intro .istatus span { display: flex; align-items: center; gap: .8em; height: 26px; }
.intro .msg-logo { height: 14px; margin-left: .2em; }
.intro.is-welcome .istatus { color: var(--offwhite); }
@keyframes ipulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(19,201,138,.55); } 50% { box-shadow: 0 0 0 6px rgba(19,201,138,0); } }
.intro .ipulse { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: ipulse 1.4s ease-in-out infinite; }
.intro .ipct { display: flex; align-items: baseline; line-height: 1; font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.03em; color: var(--offwhite); font-variant-numeric: tabular-nums; }
.intro .ipct em { font-style: normal; font-size: .38em; font-weight: 500; letter-spacing: 0; margin-left: .15em; color: var(--emerald); }
.intro .ibar { position: relative; height: 2px; background: rgba(248,248,248,.08); overflow: visible; }
.intro .ifill { position: relative; width: 0; height: 100%; transform: none; background: var(--emerald); box-shadow: 0 0 14px rgba(19,201,138,.55); }
.intro .ifill::after { content: ""; position: absolute; right: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 3px rgba(19,201,138,.8); }


/* Nav: full width with rounded edges, active page underlined */
.site-nav { top: 12px; padding-inline: 12px; }
.site-nav .nav { border-radius: 999px; border-width: 1px; padding: 10px 10px 10px clamp(22px, 2.6vw, 36px); }
.site-nav .nav-links { gap: 34px; }
.site-nav .nav-links a { position: relative; padding-block: 8px; }
.site-nav .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--emerald);
  transform: scaleX(0); transform-origin: center; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.site-nav .nav-links a:hover::after { transform: scaleX(.45); }
.site-nav .nav-links a.active { color: var(--offwhite); }
.site-nav .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 1000px) { .site-nav .nav-links { gap: 20px; font-size: 15px; } }
@media (max-width: 720px) { .site-nav { top: 8px; padding-inline: 8px; } }


/* ===== v9: refined loader bar ===== */
.intro .iload { bottom: 4px; gap: 14px; }
.intro .iload-row { align-items: center; padding: 0 clamp(24px, 4vw, 56px); }
.intro .istatus { overflow: visible; height: auto; padding: 0; gap: 12px; font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(248,248,248,.7); }
.intro .istatus span { display: inline-flex; align-items: center; gap: .7em; height: auto; animation: none !important; transform: none !important; opacity: 1 !important; white-space: pre; }
.intro .ipulse { width: 6px; height: 6px; }
.intro .msg-logo { height: 12px; margin-left: 0; }
.intro .ipct { font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 12px; font-weight: 500;
  letter-spacing: .12em; color: rgba(248,248,248,.7); }
.intro .ipct em { font-size: 1em; margin-left: .2em; color: var(--emerald); }
.intro .ibar { height: 1px; background: rgba(248,248,248,.1); }
.intro .ifill { box-shadow: 0 0 6px rgba(19,201,138,.45); }
.intro .ifill::after { width: 3px; height: 3px; margin-top: -1.5px; right: -1.5px; box-shadow: 0 0 6px 2px rgba(19,201,138,.7); }


/* ===== Workflow steps: revealed one by one ===== */
.pin-spacer { height: 0; }
@media (min-width: 900px) and (min-height: 640px) {
  .pin-spacer { height: 210vh; }                 /* extra scroll while the Workflow page is pinned */
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Line runs from the centre of circle 1 to the centre of circle 4 — nothing after step 4 */
.steps-wrap .steps-track, .steps-wrap .steps-fill { position: absolute; top: 27px; left: 28px; height: 2px; border-radius: 2px; }
.steps-wrap .steps-track { right: auto; width: calc(75% + 30px); background: var(--line-light); }
.steps-wrap .steps-fill { width: calc((75% + 30px) * var(--f, 0)); background: var(--emerald); transition: width .6s cubic-bezier(.4,0,.2,1); }
@media (max-width: 899px), (max-height: 639px) { .steps-wrap .steps-track, .steps-wrap .steps-fill { display: none; } }

.js .steps li { opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .steps li.on { opacity: 1; transform: none; }
.steps .step-num { transition: background-color .4s ease, color .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.js .steps li:not(.on) .step-num { transform: scale(.6); }
.js .steps li.on .step-num { transform: scale(1); }
/* the newest step glows emerald, earlier ones settle back to charcoal */
.steps-wrap[data-step="1"] li:nth-child(1) .step-num, .steps-wrap[data-step="2"] li:nth-child(2) .step-num,
.steps-wrap[data-step="3"] li:nth-child(3) .step-num, .steps-wrap[data-step="4"] li:nth-child(4) .step-num {
  background: var(--emerald); color: var(--charcoal); }
@media (prefers-reduced-motion: reduce) { .js .steps li { opacity: 1 !important; transform: none !important; } }
/* Phones / short screens: leave room under the floating top bar */
@media (max-width: 899px), (max-height: 639px) { main > .page:not(.hero) { padding-top: 64px; } }
