/* Intelliconz website.
   Layout: each section's heading sits in a narrow column at the start, its content in the wide
   column beside it; a hairline divides sections. Text is start-aligned (left in English, right in
   Arabic). The hero network is the page's only spectacle; everything else is type and hairlines. */

:root {
  /* colour: the logo's two blues, a navy-grey for reading, a pale blue for the few filled areas */
  --navy: #194F92;
  --cyan: #109FD1;
  --ink: #1E2B3C;
  --slate: #5B6B7E;
  --line: #DCE4EC;
  --mist: #EFF4F9;
  --paper: #FFFFFF;

  /* type: one family for both scripts, so English and Arabic read as one brand */
  --font: "Readex Pro", "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif;
  --t-hero: clamp(36px, 4.4vw, 60px);
  --t-sec: clamp(24px, 2.3vw, 32px);
  --t-item: 20px;
  --t-lead: clamp(17px, 1.3vw, 19px);
  --t-body: 16px;
  --t-small: 14px;

  /* space: an 8-point scale and one rhythm between sections */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --sec: clamp(40px, 4.5vw, 64px);
  --col: clamp(180px, 22%, 270px);
  --wrap: 1200px;
  --r: 8px;
  --r-media: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.85; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--cyan); color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * max(24px, env(safe-area-inset-left, 0px)));
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 var(--s5);
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--r);
  font-weight: 500; font-size: var(--t-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #123B6E; border-color: #123B6E; }
.btn.quiet { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--navy); background: transparent; }
.link { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--cyan); }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: var(--s6); height: 68px; }
.logo { display: block; flex: none; }
.logo img { display: block; width: 200px; height: auto; }
.nav { display: flex; gap: var(--s5); margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--slate); font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--navy); }
.top-actions { display: flex; align-items: center; gap: var(--s3); }
.lang {
  min-width: 40px; height: 40px; padding: 0 var(--s2); border-radius: var(--r);
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  font-weight: 500; font-size: 15px; color: var(--ink); transition: border-color .2s;
}
.lang:hover { border-color: var(--navy); }
.menu { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); position: relative; cursor: pointer; }
.menu i { position: absolute; inset-inline: 11px; height: 2px; background: var(--navy); transition: transform .25s, top .25s; }
.menu i:nth-child(1) { top: 14px; } .menu i:nth-child(2) { top: 22px; }
.menu[aria-expanded="true"] i:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:nth-child(2) { top: 18px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .menu { display: inline-block; }
  .top-actions { margin-inline-start: auto; }
  .top-actions .btn { display: none; }
  .nav {
    position: absolute; inset-inline: 0; top: 68px; margin: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--s2) max(16px, env(safe-area-inset-right, 0px)) var(--s4) max(16px, env(safe-area-inset-left, 0px));
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .3s, visibility 0s .3s;
  }
  .nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .3s; }
  .nav a { padding: var(--s4) 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 4vw, 56px) var(--sec); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s7); align-items: center; }
.hero-copy { display: grid; gap: var(--s5); justify-items: start; }
.hero h1 { font-size: var(--t-hero); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; color: var(--navy); }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--slate); max-width: 52ch; }
.status {
  display: inline-flex; align-items: center; gap: var(--s3);
  padding: 5px 14px 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--t-small); color: var(--ink);
}
html[dir="rtl"] .status { padding: 5px 10px 5px 14px; }
.status .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.status .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* the network: the client's ERP in the middle, data moving along the lines */
/* ---------- sections: heading at the start, content beside it ---------- */
.sec { border-top: 1px solid var(--line); padding-block: var(--sec); }
.sec-grid { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: var(--s5) var(--s8); }
.sec h2 { font-size: var(--t-sec); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--navy); }
html[lang="ar"] .sec h2 { letter-spacing: 0; line-height: 1.4; }
.sec-body { display: grid; gap: var(--s6); min-width: 0; }
.sec-body > .lead { color: var(--ink); }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; gap: var(--s4); } }


/* services: four cards, each with a small live scene of what the service does */
/* the cards take the full width under the section's head row, wide and narrow in turn */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.cards .card:nth-child(1), .cards .card:nth-child(4) { grid-column: span 7; }
.cards .card:nth-child(2), .cards .card:nth-child(3) { grid-column: span 5; }
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transform: translateY(var(--rise, 0px));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .45s;
}
/* a soft light that follows the pointer across the card */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--cyan) 12%, transparent), transparent 70%);
}
.card:hover { --rise: -4px; border-color: color-mix(in srgb, var(--navy) 40%, var(--line)); box-shadow: 0 24px 44px -30px rgba(25, 79, 146, .5); }
.card:hover::before { opacity: 1; }
/* cards settle in one after another when the section arrives; they are never hidden */
.cards.pre .card { --rise: 18px; }
.cards .card:nth-child(2) { transition-delay: .06s, 0s, 0s; }
.cards .card:nth-child(3) { transition-delay: .12s, 0s, 0s; }
.cards .card:nth-child(4) { transition-delay: .18s, 0s, 0s; }

.stage {
  height: clamp(170px, 15vw, 210px); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, #C9D6E4 1px, transparent 0) 0 0 / 16px 16px,
    var(--mist);
}
.stage svg { display: block; width: 100%; height: 100%; direction: ltr; overflow: visible; }
.body { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; flex: 1; }
.body h3 { font-size: var(--t-item); font-weight: 600; line-height: 1.3; }
.body p { color: var(--slate); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s1); }
.tags li { font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--mist); color: var(--ink); transition: background .25s, color .25s; }
.card:hover .tags li { background: color-mix(in srgb, var(--navy) 9%, var(--mist)); }
.body .link { justify-self: start; margin-top: var(--s2); }
@media (max-width: 1000px) { .cards .card:nth-child(n) { grid-column: span 6; } }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } .cards .card:nth-child(n) { grid-column: auto; } }

/* ---- the scenes ---- */
.scene text { font: 500 13px var(--font); text-anchor: middle; fill: var(--ink); }
html[lang="ar"] .scene text { direction: rtl; }
.scene .wire { fill: none; stroke: var(--navy); stroke-width: 2.5; opacity: .28; }
.scene .bead.in { fill: var(--navy); }
.scene .bead.out { fill: var(--cyan); }
.scene .node rect { fill: var(--paper); stroke: var(--line); }
.scene .core rect { fill: var(--navy); }
.scene .core text { fill: #fff; font-weight: 600; font-size: 15px; }
.card:hover .scene .wire { opacity: .5; }

/* AI: a scan line reads the document, the draft fills in */
.scene .doc > rect:first-child { fill: var(--paper); stroke: var(--line); }
.scene .doc .ln { fill: #DCE5EF; }
.scene .doc .ln.hi { fill: color-mix(in srgb, var(--cyan) 45%, #fff); }
.scene .scan { animation: scan 2.6s ease-in-out infinite alternate; }
.scene .scan rect { fill: var(--cyan); opacity: .14; }
.scene .scan line { stroke: var(--cyan); stroke-width: 2; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(110px); } }
.scene .spark { fill: var(--cyan); transform-box: fill-box; transform-origin: center; animation: spark 2.6s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.scene .form > rect:first-child { fill: var(--paper); stroke: var(--line); }
.scene .form .bar { fill: var(--navy); }
.scene .form .cap { fill: #fff; font-size: 11px; font-weight: 600; }
.scene .form .lbl { fill: #DCE5EF; }
.scene .form .fill { fill: var(--navy); transform-box: fill-box; transform-origin: left center; animation: fillin 4.2s ease-out infinite; }
.scene .form .f2 { animation-delay: .5s; }
.scene .form .f3 { animation-delay: 1s; fill: var(--cyan); }
@keyframes fillin { 0% { transform: scaleX(0); } 22%, 82% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* products: the tiles light up in turn */
.scene .tile rect { fill: var(--paper); stroke: var(--line); animation: tile 4.8s ease-in-out infinite; }
.scene .tile text { animation: tiletext 4.8s ease-in-out infinite; }
.scene .t2 rect, .scene .t2 text { animation-delay: .8s; }
.scene .t3 rect, .scene .t3 text { animation-delay: 1.6s; }
.scene .t4 rect, .scene .t4 text { animation-delay: 2.4s; }
.scene .t5 rect, .scene .t5 text { animation-delay: 3.2s; }
.scene .t6 rect, .scene .t6 text { animation-delay: 4s; }
@keyframes tile { 0%, 24%, 100% { fill: var(--paper); stroke: var(--line); } 6%, 16% { fill: var(--navy); stroke: var(--navy); } }
@keyframes tiletext { 0%, 24%, 100% { fill: var(--ink); } 6%, 16% { fill: #fff; } }

/* consulting and support: one dot goes round the four steps, each lights as it passes */
.scene .ring { fill: none; stroke: var(--navy); stroke-width: 3; opacity: .35; }
.scene .stop circle { fill: var(--paper); stroke: var(--navy); stroke-width: 3; animation: stop 6s linear infinite; }
.scene .stop text { fill: var(--navy); font-weight: 600; animation: stoptext 6s linear infinite; }
.scene .s2 circle, .scene .s2 text { animation-delay: 1.5s; }
.scene .s3 circle, .scene .s3 text { animation-delay: 3s; }
.scene .s4 circle, .scene .s4 text { animation-delay: 4.5s; }
@keyframes stop { 0%, 14%, 100% { fill: var(--paper); } 1%, 12% { fill: var(--navy); } }
@keyframes stoptext { 0%, 14%, 100% { fill: var(--navy); } 1%, 12% { fill: #fff; } }
.scene .runner { fill: var(--cyan); }
.scene .say { fill: var(--slate); font-size: 11.5px; }
.scene .mid { fill: var(--navy); font-weight: 600; font-size: 12.5px; }

/* off screen or asked not to move: everything holds still */
.cards.paused .scene *, .cards.paused .scene { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .scene *, .card { animation: none !important; transition: none !important; }
  .cards.pre .card { --rise: 0px; }
}

/* products: like the services, they take the full width under the head row.
   The two lead products sit side by side; the rest sit in a catalogue that new products and solutions join */
.prod { display: grid; gap: var(--s7); margin-top: var(--s6); }
.tagline { color: var(--navy); font-weight: 500; }
.screen { aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden; background: #F3F6FA; border: 1px solid var(--line); }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); gap: 0 var(--s5); }
/* each product is one framed card; its rows line up with its neighbour's: logo, line, words, screen, features, link */
.flagship {
  grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: var(--s3);
  padding: var(--s6); background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
/* both kits ask for clear space under the logo: the height of "Ask", the height of the "S" */
.flag-name { padding-bottom: var(--s5); }
.flag-name img { display: block; height: 40px; width: auto; }
.flagship .tagline { font-size: 18px; line-height: 1.4; }
.flag-desc { color: var(--slate); font-size: 15px; line-height: 1.6; }
.flagship .screen { aspect-ratio: 16 / 9; border-radius: 10px; margin-top: var(--s2); }
.flag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); align-content: start; margin-top: var(--s2); }
.flag-list li { position: relative; padding-inline-start: 16px; color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.flag-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.flag-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line); }
.flag-note { color: var(--slate); font-size: 13px; }

/* under the two lead products: the other products and the integrations we run, as two matching cards */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.panel { display: flex; flex-direction: column; padding: var(--s6); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.panel h3 { font-size: var(--t-item); font-weight: 600; line-height: 1.3; color: var(--navy); }
.panel-sub { margin-top: var(--s1); color: var(--slate); font-size: 15px; }
.rows { margin-block: var(--s4); }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); padding-block: 14px; border-top: 1px solid var(--line); }
.rows .nm { font-weight: 500; color: var(--ink); }
.rows .tag { font-size: 12.5px; line-height: 1; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--navy); }
.rows .tag.soon { color: var(--slate); }
.rows .ds { flex-basis: 100%; color: var(--slate); font-size: 14.5px; line-height: 1.55; }
/* the link sits on its own line at the foot, like the demo links above, and stretches only its rule */
.panel-link { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); }

/* an integration: two systems and the data going both ways between them */
.pair { display: inline-flex; align-items: center; }
.sys { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
/* the first system has a set width so every connector starts in the same place */
.pair > .sys:first-child { min-width: 104px; text-align: center; }
.pair .wire { position: relative; width: 48px; height: 2px; margin-inline: 6px; background: color-mix(in srgb, var(--navy) 22%, transparent); }
.pair .wire i { position: absolute; top: -2.5px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); animation: hop 2.4s ease-in-out infinite; }
.pair .wire i + i { background: var(--cyan); animation-name: hopback; animation-delay: -1.2s; }
@keyframes hop { 0% { inset-inline-start: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { inset-inline-start: calc(100% - 7px); opacity: 0; } }
@keyframes hopback { 0% { inset-inline-start: calc(100% - 7px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { inset-inline-start: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pair .wire i { animation: none; } .pair .wire i + i { display: none; } }


@media (max-width: 860px) {
  .duo, .shelf { grid-template-columns: 1fr; }
  .duo { grid-template-rows: none; row-gap: var(--s5); }
  .flagship, .panel { padding: var(--s5); }
  .flagship { grid-row: auto; grid-template-rows: none; }
}

/* how we work: the four phases on one plan sheet, each with a small live scene of what you get from it,
   and under them the same three people all the way across. When the sheet arrives, a line runs through
   the phases and lights each one as it passes; the team bars fill with it. */
.flow {
  --run: 4s; --step: 1s;
  position: relative; margin-top: var(--s6);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ph { position: relative; display: grid; align-content: start; gap: var(--s3); padding: var(--s6) var(--s5) var(--s5); }
.ph + .ph { border-inline-start: 1px solid var(--line); }
.ph .no {
  position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--navy); background: var(--navy); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .35s, color .35s; transition-delay: calc(var(--i) * var(--step));
}
.ph h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.ph > p { color: var(--slate); font-size: 15px; line-height: 1.55; }
.rail { position: absolute; top: calc(var(--s6) + 16px); inset-inline: calc(var(--s5) + 17px) 0; height: 2px; background: color-mix(in srgb, var(--navy) 16%, transparent); }
.rail-fill, .segs { transform-origin: left center; transition: transform var(--run) linear; }
[dir="rtl"] .rail-fill, [dir="rtl"] .segs { transform-origin: right center; }
.rail-fill { position: absolute; inset: 0; background: var(--cyan); }
/* before the sheet arrives (only when scripts run): line empty, phases unlit, bars empty */
.flow.pre .rail-fill, .flow.pre .segs { transform: scaleX(0); }
.flow.pre .ph .no { background: var(--paper); color: var(--navy); }

/* the scenes share one stage */
.viz {
  position: relative; height: 108px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding-inline: 12px;
  background: radial-gradient(circle at 1px 1px, #C9D6E4 1px, transparent 0) 0 0 / 14px 14px, var(--mist);
}
.viz .chip, .viz .sys {
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
/* 1 understand: the process, and the step where work piles up */
.v-map .ln { flex: none; width: 12px; height: 2px; background: color-mix(in srgb, var(--navy) 30%, transparent); }
.v-map .stuck { position: relative; }
.v-map .hot { border-color: var(--cyan); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(16, 159, 209, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(16, 159, 209, 0); } }
.v-map .queue { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; display: flex; gap: 3px; }
.v-map .queue i { width: 10px; height: 13px; border-radius: 2px; background: var(--paper); border: 1px solid #B6C6D8; animation: pile 2.4s ease-in-out infinite; }
.v-map .queue i:nth-child(2) { animation-delay: .2s; }
.v-map .queue i:nth-child(3) { animation-delay: .4s; }
@keyframes pile { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* 2 plan: the phases laid out on a timeline, ending at go-live */
.v-plan .ticks { position: absolute; inset: 14px 8%; display: flex; justify-content: space-between; }
.v-plan .ticks i { width: 1px; background: #D3DEEA; }
.v-plan .bar { position: absolute; height: 10px; border-radius: 5px; transform-origin: left center; animation: grow 4.8s ease-in-out infinite; }
[dir="rtl"] .v-plan .bar { transform-origin: right center; }
.v-plan .b1 { top: 24px; inset-inline-start: 8%; width: 36%; background: var(--navy); }
.v-plan .b2 { top: 46px; inset-inline-start: 32%; width: 34%; background: color-mix(in srgb, var(--navy) 60%, #fff); animation-delay: .4s; }
.v-plan .b3 { top: 68px; inset-inline-start: 54%; width: 32%; background: var(--cyan); animation-delay: .8s; }
.v-plan .mile { position: absolute; top: 66px; inset-inline-start: calc(86% + 6px); width: 13px; height: 13px; border-radius: 2px; background: var(--navy); rotate: 45deg; }
@keyframes grow { 0% { transform: scaleX(0); } 30%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
/* 3 build: the connection running, and the phases signed off one by one */
.v-build { flex-direction: column; gap: 14px; }
.v-build .pair > .sys:first-child { min-width: 0; }
.v-build .pair .wire { width: 40px; }
.v-build .checks { display: flex; gap: 6px; }
.v-build .ck { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--slate); font-size: 11.5px; line-height: 1.3; white-space: nowrap; animation: 4.8s ease-in-out infinite; }
.v-build .ck::before { content: "\2713"; margin-inline-end: 4px; color: #C3D1E0; }
.v-build .c1 { animation-name: tick1; }
.v-build .c2 { animation-name: tick2; }
.v-build .c3 { animation-name: tick3; }
@keyframes tick1 { 0%, 12%, 92%, 100% { background: var(--paper); color: var(--slate); } 18%, 86% { background: var(--navy); color: #fff; } }
@keyframes tick2 { 0%, 32%, 92%, 100% { background: var(--paper); color: var(--slate); } 38%, 86% { background: var(--navy); color: #fff; } }
@keyframes tick3 { 0%, 52%, 92%, 100% { background: var(--paper); color: var(--slate); } 58%, 86% { background: var(--navy); color: #fff; } }
/* 4 support: a question, the same team's answer, resolved */
.v-help { flex-direction: column; align-items: stretch; gap: 6px; padding-inline: 20px; }
.v-help .bub { display: grid; gap: 4px; width: 64%; padding: 7px 10px; border-radius: 10px; animation: 4.8s ease-out infinite; }
.v-help .bub i { height: 4px; border-radius: 2px; background: currentColor; opacity: .55; }
.v-help .bub i:last-child { width: 60%; }
.v-help .ask { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: #9FB2C6; border-end-start-radius: 3px; animation-name: say1; }
.v-help .ans { align-self: flex-end; background: var(--navy); color: #fff; border-end-end-radius: 3px; animation-name: say2; }
.v-help .done { align-self: flex-end; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--cyan) 14%, #fff); color: var(--navy); font-size: 11.5px; font-weight: 500; animation: say3 4.8s ease-out infinite; }
.v-help .done::before { content: "\2713"; margin-inline-end: 4px; }
@keyframes say1 { 0% { opacity: 0; transform: translateY(4px); } 8%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes say2 { 0%, 25% { opacity: 0; transform: translateY(4px); } 33%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes say3 { 0%, 50% { opacity: 0; transform: scale(.9); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* the team lane: three people, present in every phase; who leads changes, nobody hands off */
.lane { padding-block: var(--s5); border-top: 1px solid var(--line); background: #F7FAFD; }
.lane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding-inline: var(--s5); margin-bottom: var(--s2); }
.lane-head h3 { font-size: 16px; font-weight: 600; color: var(--navy); }
.key { display: flex; gap: var(--s4); color: var(--slate); font-size: 13px; }
.key > span { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 18px; height: 6px; border-radius: 3px; background: #C6D6E8; }
.key i.lead { height: 10px; border-radius: 2px; background: var(--navy); }
.role { margin-top: var(--s3); }
.who { display: block; padding-inline: var(--s5); margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 500; }
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; height: 10px; }
.segs i { height: 6px; background: #C6D6E8; }
.segs i.lead { height: 10px; background: var(--navy); }

.flow.paused .viz * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .viz * { animation: none !important; }
  .rail-fill, .segs, .ph .no { transition: none; }
}
@media (max-width: 960px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph + .ph { border-inline-start: 0; }
  .ph:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .ph:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail { display: none; }
}
@media (max-width: 560px) {
  .phases { grid-template-columns: 1fr; }
  .ph:nth-child(even) { border-inline-start: 0; }
  .ph + .ph { border-top: 1px solid var(--line); }
}

/* selected work: rows */
.work { border-top: 1px solid var(--line); }
.work li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.work .client { font-weight: 500; }
.work .route { display: block; color: var(--navy); font-size: 15px; }
.work p { color: var(--slate); font-size: 15px; }
@media (max-width: 640px) { .work li { grid-template-columns: 1fr; gap: var(--s1); } }

/* about */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s7); }
.facts li { position: relative; padding-inline-start: var(--s5); color: var(--ink); }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 12px; height: 2px; background: var(--cyan); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: var(--s2); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  background: var(--mist); border: 1px solid transparent; border-radius: var(--r); font-size: 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; background: var(--paper); border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #B42318; background: var(--paper); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.form-msg { font-size: var(--t-small); color: var(--slate); }
.form-msg.err { color: #B42318; font-weight: 500; }
.details { display: grid; gap: var(--s5); }
.details dt { font-size: var(--t-small); color: var(--slate); }
.details dd { margin-top: var(--s1); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.mail span { font-weight: 500; font-size: 17px; user-select: all; }
.copy { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 4px 10px; font-size: 13px; cursor: pointer; }
.copy:hover { border-color: var(--navy); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); padding-block: var(--s6); color: var(--slate); font-size: var(--t-small); }
.foot img { width: 150px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot a { text-decoration: none; color: var(--slate); }
.foot a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .status .dot::after { animation: none; }
}
