/* 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 { --r: 28px; border-radius: var(--r) var(--r) 0 0; box-shadow: 0 -18px 40px -22px rgba(0,0,0,.2); }
.light { background: var(--offwhite); }
.white { background: var(--white); }
.dark { background: var(--charcoal); color: var(--offwhite); }


.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(30px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv2 { transition-delay: .06s; } .js .rv3 { transition-delay: .12s; }
.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%); }

.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 { --r: 20px; }
  .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; }

.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; }
}


/* 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 .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 35ms + 40ms); }
.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 */

/* 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; } }


/* ===== v10: welcome fade, slimmer header, no black behind page curves ===== */
.intro { background: var(--charcoal); transition: opacity .8s ease; }
.intro.is-open { opacity: 0; }
.intro .iwelcome { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 9vw, 120px); letter-spacing: -.03em; color: var(--offwhite);
  animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }

.site-nav { top: 8px; }
.site-nav .nav { padding: 6px 6px 6px clamp(20px, 2.4vw, 30px); }
.site-nav .wordmark-link img { height: 20px; }
.site-nav .nav-links { gap: 30px; font-size: 15px; }
.site-nav .nav-cta .btn { min-height: 40px; padding: 8px 22px; font-size: 15px; }
@media (max-width: 720px) {
  .site-nav { top: 6px; }
  .site-nav .nav { padding: 5px 5px 5px 16px; }
  .site-nav .wordmark-link img { height: 16px; }
  .site-nav .nav-cta .btn { min-height: 36px; padding: 7px 14px; font-size: 13px; }
}
@media (max-width: 899px), (max-height: 639px) { main > .page:not(.hero) { padding-top: 52px; } }



/* ===== v11: no lines between workflow steps, panels on a plain background, founder note ===== */
.steps-wrap .steps-track, .steps-wrap .steps-fill { display: none; }




/* ===== v12: typed welcome, one dark background on every page, founder circle, hopping scroll hint ===== */
.intro .iwelcome { flex-direction: column; gap: .05em; line-height: 1.05; text-align: center; }
.intro .iwelcome > span { display: block; min-height: 1.05em; }

/* Every page uses the same background; panels sit on top of it. Light-theme colours are remapped inside sheets. */
/* Every page, hero to footer, shares one plain white background; content sits on dark panels that rise into place */
.sheet { background: transparent; color: var(--charcoal); border: 0; border-radius: 0; margin-top: 0; box-shadow: none;
  position: relative; min-height: 0; padding: 0 clamp(12px, 2.5vw, 36px) 16px; }
.sheet > .wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding: 44px clamp(24px, 4vw, 56px); border-radius: 26px;
  min-height: calc(100vh - 108px); }
/* Panels alternate between dark and light so every edge is easy to see */
.sheet.dark > .wrap { background: var(--charcoal); color: var(--offwhite); border: 1px solid rgba(248,248,248,.12); box-shadow: 0 -8px 28px -10px rgba(0,0,0,.5);
  --ink-soft: rgba(248,248,248,.72); --line-light: rgba(248,248,248,.14); --white: #151C23; }
.sheet.light > .wrap { background: #F2F4F5; color: var(--charcoal); border: 1px solid #DCE0E3; box-shadow: 0 -8px 28px -10px rgba(14,19,24,.25); }
.sheet.white > .wrap { background: #FFFFFF; color: var(--charcoal); border: 1px solid #DCE0E3; box-shadow: 0 -8px 28px -10px rgba(14,19,24,.25); }
.sheet { overflow: visible; }
.sheet > .stack, .sheet > .process, .sheet > .work { display: flex; flex-direction: column; justify-content: center; }
.sheet > .split, .sheet > .founder { align-content: center; }
main > .page.sheet { padding-top: 0; }
.hero { position: relative; min-height: 100vh; }
.footer { margin: 12px clamp(12px, 2.5vw, 36px) 16px; border: 0; border-radius: 18px; background: var(--charcoal); }
.sheet.dark .eyebrow { color: var(--emerald); }
.sheet.dark .lead a { color: var(--offwhite); }
.sheet.dark .step-num { background: #1d252d; box-shadow: 0 0 0 8px var(--charcoal); }
.sheet.dark .who { background: var(--white); border: 1px solid var(--line-light); }
.sheet.dark .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F8F8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }


@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
html:not(.is-scrolled) .scroll-down span, html:not(.is-scrolled) .scroll-down svg { animation: hop 1.1s ease-in-out infinite; }


/* ===== v13: typed hero word, Our work card and case-study dialog ===== */
#typed.typing::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 4px; vertical-align: -.05em; background: currentColor; animation: blink 1s steps(1) infinite; }

.work { padding-block: 72px; }




/* ===== v14: the hero joins the same white background ===== */
:root { --emerald-ink: #087A55; }   /* darker emerald, readable as text on white */
body { background: var(--white); }
.hero.dark { background: var(--white); color: var(--charcoal); }
.hero .grid-bg { display: none; }
.hero .kicker, .hero .accent { color: var(--emerald-ink); }
.hero .hero-sub { color: var(--ink-soft); }
.hero .btn-ghost { border-color: rgba(14,19,24,.3); color: var(--charcoal); }
.hero .btn-ghost:hover { border-color: var(--emerald-ink); color: var(--emerald-ink); }
.hero .scroll-down { color: var(--ink-soft); }
.hero .scroll-down svg { color: var(--emerald-ink); }
.site-nav .nav { background: rgba(14,19,24,.92); }


/* ===== v15: stacked panels, split hero, left-aligned headings, four-point case ===== */
.hero-ctas { justify-content: flex-start; }

.stack .tile { padding: 24px 22px; }

.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.founder-text { flex: 1 1 420px; min-width: 0; max-width: 620px; }
.founder-text p { margin: 0 0 14px; color: rgba(248,248,248,.78); }
.founder-circle { flex: 0 0 auto; width: clamp(150px, 22vw, 240px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--emerald); background: rgba(19,201,138,.08); box-shadow: 0 0 0 12px rgba(19,201,138,.06); }
.founder-circle span { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.02em; }
.founder-sign { margin-top: 22px; padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; border-top: 1px solid rgba(248,248,248,.14); }
.founder-sign span { color: var(--emerald); font-size: 15px; }
.founder-sign a { color: var(--offwhite); font-size: 15px; text-underline-offset: 3px; text-decoration-color: var(--emerald); }
.founder-sign a:hover { color: var(--emerald); }


.contact-center { align-items: flex-start; text-align: left; }
.contact-center .eyebrow { justify-content: flex-start; }
.contact-center .lead { margin: 0; }
.contact-center .form .btn { align-self: flex-start; }


/* Solid top bar, no glass */
.site-nav .nav { background: var(--charcoal); -webkit-backdrop-filter: none; backdrop-filter: none; }

.sheet.dark .ask-card { background: var(--white); border: 1px solid var(--line-light); border-radius: 14px; }

/* Founder panel: plain white, MMT in a slightly darker circle, nothing underlined */
.founder-text p { color: var(--ink-soft); }
.founder-circle { border: 0; box-shadow: none; background: #DDE2E5; color: var(--charcoal); }
.founder-sign { margin-top: 24px; padding-top: 0; border-top: 0; }
.founder-sign span { color: var(--emerald-ink); }
.founder-sign a { color: var(--charcoal); font-weight: 600; text-decoration: none; }
.founder-sign a:hover { color: var(--emerald-ink); }


/* Panels and the first page move with the scroll (set from script.js) */
.sheet > .wrap, .hero-center { will-change: transform, opacity; }
/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Our work: the four workflow steps, one above the other on every screen size */
.case-stack { list-style: none; margin: 32px 0 0; padding: 0; max-width: 820px; }
.case-stack li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px; padding: 26px 0; border-top: 1px solid var(--line-light); }
.case-stack .step-num { margin-top: 2px; }
.case-stack .step-tag { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-ink); }
.case-stack h3 { margin: 4px 0 8px; font-size: 22px; }
.case-stack p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.case-note { max-width: 820px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-light); }
.case-note[hidden] { display: none; }
.case-note p { margin: 0 0 12px; font-size: 19px; line-height: 1.5; }
.case-note footer span { display: block; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 520px) { .case-stack li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; } .case-stack .step-num { width: 44px; height: 44px; font-size: 15px; } }

.founder-circle { text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.founder-circle:hover { background: #CBD3D8; transform: scale(1.03); }

/* Some pages sit straight on the white background with no panel; only a few use a dark panel */
.sheet.plain > .wrap { background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 0; padding-block: 56px; }
.sheet.plain + .sheet.plain > .wrap { border-top: 1px solid var(--line-light); }

/* Straight footer at the very bottom of the page */
.footer { margin: 24px 0 0; border: 0; border-radius: 0; }
.footer .wrap { padding-block: 26px 14px; }
.footer .footer-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.footer .btn { min-height: 40px; padding: 8px 18px; font-size: 14px; }

.sheet.dark .case-stack .step-tag { color: var(--emerald); }
.faq-wrap > .ask-card { flex: 1 1 100%; margin-top: 0; }
.founder-quote { margin: 20px 0 0; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -.02em; color: var(--charcoal); }
.founder-quote .accent { color: var(--emerald-ink); }
@media (max-width: 720px) { .founder-quote { font-size: 24px; } }

/* ===== v16: white panels, one dark card each for questions and contact, logo-only top bar ===== */
.sheet > .wrap { max-width: 1320px; }

.who { background: #F4F6F7; color: var(--charcoal); border: 1px solid var(--line-light); }
.who > div:not(.deco-slab) { border-top-color: var(--line-light); }
.who span { color: var(--ink-soft); }

.stack-head { display: block; }

.founder-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-inline: auto; text-align: center; }
.founder-card .founder-circle { width: clamp(96px, 10vw, 128px); margin: 0 0 12px; }
.founder-card .founder-circle span { font-size: clamp(36px, 4vw, 52px); }
.founder-card strong { font-family: var(--font-display); font-size: 18px; }
.founder-card > span { color: var(--emerald-ink); font-size: 15px; }

.footer .footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-block: 26px 18px; }
.footer .footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .footer-social { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-social a { color: rgba(248,248,248,.78); text-decoration: none; }
.footer-social a:hover { color: var(--emerald); }
.footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 14px 22px; border-top: 1px solid rgba(248,248,248,.1); font-size: 13px; color: rgba(248,248,248,.55); }
.sheet:not(.dark) .accent { color: var(--emerald-ink); }
.footer .footer-buttons { order: 3; flex-basis: 100%; justify-content: center; }
/* First page ends a little early so the next panel is already waiting at the bottom */
.hero { min-height: 86vh; }
.case-note { max-width: 960px; padding-top: 32px; }
.case-note p { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; letter-spacing: -.01em; color: var(--charcoal); margin-bottom: 18px; }
.case-note footer strong { font-size: 18px; }
.case-note footer span { font-size: 15px; }

/* ===== Dynamic island: glass bar with every page button; the current page is underlined ===== */
.site-nav .nav { display: flex; align-items: center; justify-content: center; gap: 18px; width: max-content; max-width: calc(100vw - 16px); margin: 0 auto;
  padding: 6px 10px 6px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(14,19,24,.58); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 12px 32px -14px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1); }
.site-nav .nav-links { display: flex; flex-wrap: nowrap; gap: 2px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
.site-nav .nav-links::-webkit-scrollbar { display: none; }
.site-nav .nav-links a { position: relative; padding: 10px 12px; white-space: nowrap; }
.site-nav .nav-links a::after { content: ""; display: block; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--emerald); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.site-nav .nav-links a.active { color: var(--offwhite); }
.site-nav .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .site-nav .nav { padding: 4px 6px 4px 14px; gap: 8px; }
  .site-nav .wordmark-link img { height: 13px; }
  .site-nav .nav-links { font-size: 13px; }
  .site-nav .nav-links a { padding: 10px 9px; }
  .site-nav .nav-links a::after { left: 9px; right: 9px; }
}
.site-nav .nav { flex-wrap: nowrap; }
.site-nav .nav-links { min-width: 0; }
.site-nav .nav-links a[href] { display: block; }
@media (max-width: 720px) { .site-nav .nav-links { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); } }
/* Footer page links: plain text */
.footer .footer-buttons { gap: 8px 26px; font-size: 14px; }
/* Island: Contact stands out as a green button */
.site-nav .nav-links a.nav-contact, .site-nav .nav-links a.nav-contact.active { margin-left: 6px; padding: 8px 16px; border-radius: 999px; background: var(--emerald); color: var(--charcoal); font-weight: 600; }
.site-nav .nav-links a.nav-contact::after { display: none; }
.site-nav .nav-links a.nav-contact:hover { background: #1fdc9a; color: var(--charcoal); }
/* Last page: everything centred */
.contact-center { align-items: center; text-align: center; }
.contact-center .lead { margin: 0 auto; }
.contact-center .form { margin-inline: auto; }
.contact-center .form .btn { align-self: center; }
/* Slightly bigger island */
.site-nav .nav { padding: 8px 12px 8px 28px; gap: 22px; }
.site-nav .wordmark-link img { height: 22px; }
.site-nav .nav-links { font-size: 15px; }
.site-nav .nav-links a { padding: 11px 14px; }
.site-nav .nav-links a::after { left: 14px; right: 14px; bottom: 5px; }
.site-nav .nav-links a.nav-contact, .site-nav .nav-links a.nav-contact.active { padding: 10px 20px; }
@media (max-width: 720px) {
  .site-nav .nav { padding: 5px 8px 5px 16px; gap: 10px; }
  .site-nav .wordmark-link img { height: 15px; }
  .site-nav .nav-links { font-size: 14px; }
  .site-nav .nav-links a { padding: 11px 10px; }
  .site-nav .nav-links a::after { left: 10px; right: 10px; }
}
/* Big screens: the Work case and the founder note sit in a centred column instead of hugging the left */
.work > * { width: 100%; max-width: 980px; margin-inline: auto; }
.founder { justify-content: center; }

/* ===== Phones, assembling boxes, customer note ===== */
/* Services boxes fly in from different sides, each as it scrolls into view (boxes in the same row follow each other) */
.js .assemble .tile { transition: transform .7s cubic-bezier(.2,.75,.25,1), opacity .5s ease, border-color .35s ease; transition-delay: calc(var(--c, 0) * 110ms); }
.assemble .tile:nth-child(4n+2) { --c: 1; } .assemble .tile:nth-child(4n+3) { --c: 2; } .assemble .tile:nth-child(4n+4) { --c: 3; }
.js .assemble .tile:not(.in) { opacity: 0; transition-delay: 0s; }
.js .assemble .tile:not(.in):nth-child(3n+1) { transform: translate(-140px, 40px) rotate(-6deg); }
.js .assemble .tile:not(.in):nth-child(3n+2) { transform: translateY(160px) scale(.85); }
.js .assemble .tile:not(.in):nth-child(3n) { transform: translate(140px, 40px) rotate(6deg); }
.js .assemble .tile:hover { transition-delay: 0s; }
/* Arab Foods steps rise in one by one */
.js .case-stack li { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .case-stack li:not(.in) { opacity: 0; transform: translateY(40px); }
@media (max-width: 720px) { .assemble .tile { --c: 0 !important; } }
@media (prefers-reduced-motion: reduce) { .js .assemble .tile, .js .case-stack li { opacity: 1 !important; transform: none !important; } }

/* Customer note: small "S" circle, then name and title */
.case-note footer { display: flex; align-items: center; gap: 14px; }
.case-note footer strong, .case-note footer span:not(.note-avatar) { display: block; }
.note-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #DDE2E5;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--charcoal); }

/* Phones: light rise instead of scroll-linked motion, smaller island, lighter glass */
@media (max-width: 720px) {
  .js .sheet > .wrap { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
  .js .page.sheet:not(.in-view) > .wrap { opacity: 0; transform: translateY(50px); }
  .sheet > .wrap, .hero-center { will-change: auto; }
  .site-nav { top: 6px; }
  .site-nav .nav { padding: 3px 5px 3px 12px; gap: 6px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .site-nav .wordmark-link img { height: 11px; }
  .site-nav .nav-links { font-size: 12px; }
  .site-nav .nav-links a { padding: 8px 7px; }
  .site-nav .nav-links a::after { left: 7px; right: 7px; bottom: 3px; }
  .site-nav .nav-links a.nav-contact, .site-nav .nav-links a.nav-contact.active { padding: 6px 12px; }
}
.site-nav .nav-links { justify-content: flex-start; }   /* centred overflow would hide the first buttons on phones */
.case-note footer .note-avatar { display: grid; place-items: center; font-size: 20px; color: var(--charcoal); }

/* Phones: the island is the logo plus the current page's name (the page buttons live in the footer) */
@keyframes islandUp { from { transform: translateY(80%); opacity: 0; } to { transform: none; opacity: 1; } }
.island-label { display: none; }
@media (max-width: 720px) {
  .site-nav .nav-links { display: none; }
  .site-nav .nav { padding: 9px 18px; gap: 0; }
  .site-nav .wordmark-link img { height: 13px; }
  .island-label { display: inline-block; overflow: hidden; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--offwhite); white-space: nowrap; }
  .island-label:not(:empty) { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); }
  .island-label.swap { animation: islandUp .4s cubic-bezier(.2,.7,.2,1); }
}
/* Phones: SOLVIQX on one side of the island, the page name on the other */
@media (max-width: 720px) {
  .site-nav .nav { width: calc(100vw - 24px); justify-content: space-between; padding: 10px 18px; }
  .island-label:not(:empty) { margin-left: 0; padding-left: 0; border-left: 0; }
}
/* Phones: SOLVIQX on the left, the page name in the middle, the green Contact button on the right */
@media (max-width: 720px) {
  .site-nav .nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; }
  .site-nav .wordmark-link { order: 1; }
  .island-label { order: 2; text-align: center; }
  .site-nav .nav-links { order: 3; display: flex; -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .site-nav .nav-links a[href]:not(.nav-contact) { display: none; }
  .site-nav .nav-links a.nav-contact, .site-nav .nav-links a.nav-contact.active { margin-left: 0; padding: 8px 14px; font-size: 13px; }
}

/* Founder note centred on every screen */
.founder { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.founder-text { max-width: 820px; }
.founder .eyebrow { justify-content: center; }

/* Phones: footer logo centred; email on one side, LinkedIn and Instagram on the other */
@media (max-width: 720px) {
  .footer .footer-top { flex-direction: column; align-items: stretch; }
  .footer .lockup { align-self: center; }
  .footer .footer-social { justify-content: flex-start; gap: 18px; }
  .footer .footer-social a:first-child { margin-right: auto; }
}
.founder-text { flex: none; }   /* in the centred column its old 420px basis became extra height */
/* Customer note centred: the quote, then the S circle with name and title as one centred group */
.case-note { text-align: center; margin-inline: auto; }
.case-note footer { justify-content: center; text-align: left; }

/* Quotes darken word by word; the good parts turn green */
.qw { color: #C5CBD0; transition: color .25s ease; }
.qw.on { color: var(--charcoal); }
.hl .qw.on, .founder-quote .accent .qw.on { color: var(--emerald-ink); }

/* Client note: a short line, then the S circle, the name and the title, stacked and centred */
.case-note footer { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.case-note footer .note-line { width: 56px; height: 2px; border-radius: 2px; background: var(--line-light); margin: 6px 0 18px; }
.case-note footer .note-avatar { margin-bottom: 8px; }
/* Phones: equal side columns so the page name sits in the true middle; everything on one vertical centre line */
@media (max-width: 720px) {
  .site-nav .nav { grid-template-columns: 1fr auto 1fr; padding: 6px; }
  .site-nav .wordmark-link { justify-self: start; display: flex; align-items: center; padding-left: 12px; }
  .island-label { justify-self: center; display: block; line-height: 1; }
  .site-nav .nav-links { justify-self: end; align-items: center; }
  .site-nav .nav-links a.nav-contact, .site-nav .nav-links a.nav-contact.active { line-height: 1.2; }
}
/* Phone footer: email on its own line, then LinkedIn, Instagram and Upwork centred together */
@media (max-width: 720px) {
  .footer .footer-social { justify-content: center; }
  .footer .footer-social a:first-child { flex-basis: 100%; margin-right: 0; text-align: center; }
}
