/* Fioreva Tech · base styles
   Tokens, type, layout and every static section. Live demos style themselves in css/modules/. */

@font-face {
  font-family: "Source Code Pro";
  src: url("../fonts/source-code-pro-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  /* brand palette (Digital Direction 2026) */
  --black: #000;
  --red: #ff0025;
  --red-deep: #7a0011;
  --red-mid: #c4001d;
  --white: #f4f4f2;
  --pure: #fff;
  --mint: #00ffc2;
  --cream: #ffecbb;
  --gray: #e2e2e2;

  /* text on black: all pass WCAG AA at body sizes */
  --fg: var(--white);
  --fg-2: #ababa8;
  --fg-3: #82827e;

  /* hairlines and surfaces */
  --line: #1a1a1a;
  --line-2: #2a2a2a;
  --line-3: #3e3e3e;
  --surface: rgba(255, 255, 255, .018);

  --mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --arabic: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;

  /* side insets keep content out of the notch on a phone held sideways (viewport-fit=cover) */
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --maxw: 1320px;
  --nav-h: 72px;
  --r-s: 3px;
  --r-m: 6px;
  --r-l: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* hero headline scales with width and height so five lines always fit the first screen */
  --step-h1: clamp(2.75rem, min(6vw, 9.2svh), 6rem);
  --step-h2: clamp(2.125rem, 1.35rem + 3.1vw, 4rem);
  --step-h3: clamp(1.375rem, 1.15rem + .9vw, 2rem);

  interpolate-size: allow-keywords;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--black);
  color-scheme: dark;
}
/* instant until the demos have started, so a link to #estimate lands in one jump */
html.js:not(.is-settled) { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--fg);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #000; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 16px;
  background: var(--pure); color: #000;
  font: 600 .875rem/1 var(--mono);
  text-decoration: none;
  border-radius: var(--r-s);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font: 600 .875rem/1 var(--mono);
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-position .32s steps(6), color .2s, border-color .2s, background-color .2s;
}
.btn-lg { min-height: 54px; padding: 0 22px; font-size: .9375rem; }
.btn-flag { width: 8px; height: 18px; flex: none; fill: currentColor; transition: transform .35s var(--ease); }
.btn:focus-visible .btn-flag { transform: translateX(4px); }

/* stepped pixel wipe: red to white, black text stays readable on both (5.3:1 and 21:1) */
.btn-red {
  color: #000;
  background: linear-gradient(90deg, var(--pure) 50%, var(--red) 50%) right / 201% 100% no-repeat;
}
.btn-red:focus-visible { background-position: left; }
.btn-ghost { color: var(--fg); border-color: var(--line-3); background: rgba(0, 0, 0, .4); }
.btn-ghost:focus-visible { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
.btn-ink {
  color: var(--pure);
  background: linear-gradient(90deg, var(--pure) 50%, #000 50%) right / 201% 100% no-repeat;
}
.btn-ink:focus-visible { color: #000; background-position: left; }
.btn-ink-ghost { color: #000; border-color: #000; }
.btn-ink-ghost:focus-visible { background: rgba(0, 0, 0, .12); }
/* hover only where a pointer can hover: on touch screens a tapped button would stay white */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-flag { transform: translateX(4px); }
  .btn-red:hover { background-position: left; }
  .btn-ghost:hover { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
  .btn-ink:hover { color: #000; background-position: left; }
  .btn-ink-ghost:hover { background: rgba(0, 0, 0, .12); }
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(0, 0, 0, .84);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-inner {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  height: var(--nav-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo { flex: none; width: 128px; border-radius: var(--r-s); }
.nav-logo svg { width: 100%; height: auto; }
.logo-mark { fill: var(--red); }
.logo-word { fill: var(--pure); }
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  background: rgba(0, 0, 0, .5);
  font: 500 .8125rem/1 var(--mono);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-s);
  color: var(--fg-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav-links a[aria-current="true"] { color: var(--fg); }
.nav-links a::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  display: none;
}
.nav-links a[aria-current="true"]::before { display: block; }
.nav-cta { margin-left: 6px; }

/* pause control: two bars while motion runs, a play triangle once paused */
.nav-motion {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  background: rgba(0, 0, 0, .5);
  color: var(--fg-2);
  transition: color .2s, border-color .2s;
}
.nav-motion:hover { color: var(--fg); border-color: var(--line-3); }
.nav-motion-icon {
  width: 10px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat;
}
.nav-motion[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.nav-motion[aria-pressed="true"] .nav-motion-icon {
  width: 10px; height: 12px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.menu-motion {
  justify-self: start;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-s);
  background: transparent;
  font: 600 .8125rem/1 var(--mono);
}
.menu-motion[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  margin-left: 8px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-s);
  background: transparent;
  font: 600 .8125rem/1 var(--mono);
}
.nav-toggle-icon { display: grid; gap: 5px; width: 16px; }
.nav-toggle-icon i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav.is-open .nav-toggle-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-toggle-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: #000;
  overflow-y: auto;
}
.menu nav { display: grid; }
.menu nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 700 clamp(1.625rem, 1.2rem + 2vw, 2.25rem)/1.1 var(--mono);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu nav a:hover { color: var(--red); }
.menu-foot { display: grid; gap: 6px; color: var(--fg-2); font: 500 .875rem/1.5 var(--mono); }
.menu-foot a { color: var(--fg); }
.menu.is-entering { animation: menu-in .42s steps(7) both; }
@keyframes menu-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-motion { margin-left: auto; }
  .nav-cta { margin-left: 8px; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-motion { margin-left: auto; }
  .nav-logo { width: 112px; }
}
/* 320px phones and foldable cover screens: tighter spacing keeps the Menu button inside the gutter */
@media (max-width: 359px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { margin-left: 0; padding: 0 12px; }
}
/* under 304px the button keeps its icon (the open state's "Close" is wider than "Menu");
   the word stays for screen readers */
@media (max-width: 303px) {
  .nav-toggle { min-width: 44px; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 36px) 0 56px;
  overflow: clip;
}
.hero-field { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .65);
  font: 500 .8125rem/1 var(--mono);
  color: var(--fg-2);
}
/* the ping is a scaled ring on its own layer: animating box-shadow repainted every frame, even off-screen */
.status-dot {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 255, 194, .55);
  animation: ping 2.4s var(--ease) infinite;
}
.status-clock {
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.status-clock:empty { display: none; }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(3.25); opacity: 0; }
}

.hero-title {
  margin: 28px 0;
  font-size: var(--step-h1);
  line-height: .98;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero-line { display: block; white-space: nowrap; }
.caret {
  display: inline-block;
  width: .52em;
  height: .8em;
  margin-left: .06em;
  vertical-align: -0.02em;
  background: var(--red);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-lede {
  max-width: 47ch;
  font-size: clamp(1rem, .94rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fg-2);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 44px;
  font: 500 .75rem/1 var(--mono);
  color: var(--fg-3);
}
.hero-meta .slogan { color: var(--fg); letter-spacing: .14em; text-transform: uppercase; }
.hero-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  margin-right: 18px;
  vertical-align: middle;
  background: var(--line-3);
}

/* The hero boot fades the terminal in. Keep it hidden until modules start so it can't flash first;
   the headline stays visible because it is the page's largest paint. Failsafe if scripts never run. */
html.js:not(.is-ready) .terminal { opacity: 0; animation: reveal-failsafe 0s linear 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; } }

/* terminal chrome (behaviour lives in modules/hero.js) */
.terminal {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background: rgba(0, 0, 0, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 140px -30px rgba(255, 0, 37, .42), 0 0 0 1px rgba(0, 0, 0, .6);
  font: 400 .78125rem/1.55 var(--mono);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg-3);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-3); }
.term-dots i:first-child { background: var(--red); }
.term-title { color: var(--fg-2); }
.term-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.term-log {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: calc(8 * 1.55em + 24px);
  padding: 12px 14px;
  overflow: hidden;
}
.term-log li {
  display: grid;
  grid-template-columns: 8.5ch 4.5ch minmax(0, 1fr);
  gap: 1.3ch;
  white-space: nowrap;
}
.term-log time { color: var(--fg-3); font-variant-numeric: tabular-nums; }
.term-log b { font-weight: 600; }
.term-log span { overflow: hidden; text-overflow: ellipsis; color: var(--fg); }
.t-pay { color: var(--red); }
.t-ship { color: var(--mint); }
.t-crm { color: var(--cream); }
.t-erp { color: var(--gray); }
.t-app, .t-web { color: var(--pure); }
.t-ai { color: #000; background: var(--mint); padding: 0 .35ch; justify-self: start; }
.t-sys { color: var(--fg-3); }
.term-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.term-stats div { display: grid; gap: 6px; padding: 12px 14px; }
.term-stats div + div { border-left: 1px solid var(--line-2); }
.term-stats span { color: var(--fg-3); font-size: .6875rem; }
.term-stats b { font-size: 1.125rem; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.term-cap {
  padding: 9px 14px;
  border-top: 1px solid var(--line-2);
  color: var(--fg-3);
  font-size: .6875rem;
}

/* laptop screens are shorter than they are wide: tighten the rhythm so the slogan row and the
   terminal caption stay on the first screen */
@media (min-width: 1001px) and (max-height: 860px) {
  .hero { padding: calc(var(--nav-h) + 20px) 0 28px; }
  .hero-title { margin: 20px 0; }
  .hero-ctas { margin-top: 28px; }
  .hero-meta { margin-top: 28px; }
}
/* 720px-tall laptops and browsers with tall toolbars: drop the 760px floor and set the headline a little smaller */
@media (min-width: 1001px) and (max-height: 760px) {
  :root { --step-h1: clamp(2.75rem, min(6vw, 8.6svh), 6rem); }
  .hero { min-height: 100svh; padding-top: calc(var(--nav-h) + 12px); }
  .hero-title { margin: 14px 0; }
  .hero-ctas { margin-top: 22px; }
  .hero-meta { margin-top: 20px; }
}
@media (max-width: 1000px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .terminal { justify-self: stretch; max-width: none; }
  .term-log { height: calc(7 * 1.55em + 24px); }
}
@media (max-width: 480px) {
  .terminal { font-size: .6875rem; }
  .term-log li { grid-template-columns: 4.5ch minmax(0, 1fr); }
  .term-log time { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
/* 320px phones: one size down so a 39-character feed line still fits without an ellipsis */
@media (max-width: 359px) {
  .terminal { font-size: .625rem; }
  .term-log { padding-inline: 10px; }
}

/* ---------- ticker ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 24px 0 var(--gutter);
  border-right: 1px solid var(--line);
  font: 500 .8125rem/1 var(--mono);
  color: var(--fg-3);
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-list { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0 20px 28px;
  font: 500 .9375rem/1 var(--mono);
  color: var(--fg-2);
  white-space: nowrap;
}
.ticker-list li::after { content: ""; width: 6px; height: 6px; background: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(96px, 11vw, 168px); }
.section-head {
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.section-head-split {
  max-width: none;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: end;
  gap: 20px 64px;
}
.section-head-split > div { display: grid; gap: 20px; }
.section-head h2 { font-size: var(--step-h2); line-height: 1.02; letter-spacing: -0.04em; }
.route { font: 500 .8125rem/1 var(--mono); color: var(--red); letter-spacing: .01em; }
.lede { max-width: 54ch; font-size: 1.0625rem; line-height: 1.65; color: var(--fg-2); }
.dc { color: var(--red); }
.sys-fallback { padding: 24px; color: var(--fg-2); }
/* the estimator's fallback asks for JavaScript, so it stays hidden while the demos boot. It shows after
   boot if the estimator failed to start, and after 8 s if the scripts never finished (core.js blocked). */
html.js:not(.is-settled) .es-root > .sys-fallback { visibility: hidden; animation: fallback-failsafe 0s linear 8s forwards; }
@keyframes fallback-failsafe { to { visibility: visible; } }

@media (max-width: 900px) {
  .section-head-split { grid-template-columns: 1fr; }
}

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.svc-col { padding: 32px 32px 0 0; }
.svc-col + .svc-col { padding-left: 32px; border-left: 1px solid var(--line-2); }
.svc-col:last-child { padding-right: 0; }
.svc-stage { display: grid; gap: 12px; margin-bottom: 28px; }
/* clearly under the section's H2, so the three stages read as its parts */
.svc-stage-word {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  line-height: .95;
  letter-spacing: -0.05em;
}
.svc-stage-word::after { content: "."; color: var(--red); }
.svc-stage-note {
  font: 400 1rem/1.5 var(--sans);
  letter-spacing: 0;
  color: var(--fg-2);
}
.svc {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.svc .pxicon { grid-row: span 2; width: 44px; height: 44px; }
.svc h4 { font: 600 1.0625rem/1.3 var(--mono); letter-spacing: -0.01em; }
.svc p { font-size: .9375rem; line-height: 1.6; color: var(--fg-2); }

.pxicon svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.pxicon rect { fill: var(--red); }
.pxicon rect.w { fill: var(--pure); }
.svc:hover .pxicon rect { animation: px-bloom .5s steps(1) both; animation-delay: var(--d, 0s); }
@keyframes px-bloom {
  0% { opacity: 0; }
  60% { opacity: 1; fill: var(--pure); }
}

@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-col { padding-right: 0; }
  .svc-col + .svc-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); }
}

/* ---------- pixel seams ---------- */
.seam { height: 64px; overflow: hidden; }
.seam svg { width: 100%; height: 100%; shape-rendering: crispEdges; }
.seam rect { fill: var(--red); }
.seam rect.d { fill: var(--red-deep); }
.seam.is-armed rect { opacity: 0; }
/* a zero-length delayed transition keeps the stagger, and unlike a filled animation it leaves
   nothing composited once every pixel is on */
.seam.is-in rect { opacity: 1; transition: opacity 0s linear var(--d, 0s); }

/* ---------- live systems ---------- */
.brand-try {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface);
}
.brand-try-label { font: 600 .875rem/1.4 var(--mono); color: var(--fg); }
.brand-try-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line-3);
  border-radius: var(--r-s);
  background: #000;
  font: 500 .9375rem/1 var(--mono);
}
/* the ring wraps the whole field, like every other control's focus ring */
.brand-try-row:focus-within { border-color: var(--red); outline: 2px solid var(--mint); outline-offset: 3px; }
.brand-try-prompt { color: var(--red); }
.brand-try-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--fg);
  outline: none;
}
.brand-try-input::placeholder { color: var(--fg-3); }
/* iOS zooms into any field under 16px and stays zoomed */
@media (pointer: coarse) { .brand-try-input { font-size: 16px; } }
.brand-try-domain {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mint);
  font-size: .8125rem;
}
.brand-try-note { grid-column: 2; font-size: .75rem; color: var(--fg-3); }
@media (max-width: 760px) {
  .brand-try { grid-template-columns: 1fr; }
  .brand-try-note { grid-column: 1; }
}
@media (max-width: 359px) {
  .brand-try-row { flex-wrap: wrap; }
  .brand-try-domain { max-width: none; flex-basis: 100%; padding-bottom: 10px; }
}

.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sys {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .6s var(--ease);
}
.sys.is-hit { border-color: var(--red); transition-duration: .1s; }
.sys-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-2);
  font: 500 .8125rem/1 var(--mono);
}
.sys-bar h3 { flex: none; font: 600 .875rem/1 var(--mono); letter-spacing: 0; white-space: nowrap; }
.sys-led {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(0, 255, 194, .7);
}
/* a long company name shortens the address, never the panel title */
.sys-addr { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); }
.sys-body { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* below about 1240px a half-width panel is too narrow for the CRM board and the ERP columns */
@media (max-width: 1239px) {
  .sys-grid { grid-template-columns: 1fr; }
  .sys { min-height: 0; }
}

/* ---------- AI section (static part) ---------- */
.ai-uses {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 2fr);
  gap: 32px 64px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}
.ai-uses-title { font-size: var(--step-h3); line-height: 1.15; letter-spacing: -0.03em; }
.ai-uses ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ai-uses li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: .9375rem; }
.ai-uses li b { display: block; margin-bottom: 4px; font: 600 1rem/1.35 var(--mono); color: var(--fg); }
@media (max-width: 900px) {
  .ai-uses, .ai-uses ul { grid-template-columns: 1fr; }
}

/* ---------- Qatar ---------- */
.qatar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.qatar .section-head { margin-bottom: 40px; }
.qatar-list { border-top: 1px solid var(--line-2); }
.qatar-list div {
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.qatar-list dt { font: 600 .8125rem/1.6 var(--mono); color: var(--fg); }
.qatar-list dd { font-size: .9375rem; line-height: 1.6; color: var(--fg-2); }
.qatar-map { position: relative; min-height: 640px; }
@media (max-width: 1000px) {
  .qatar-grid { grid-template-columns: 1fr; }
  .qatar-map { min-height: 520px; }
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
}
.process-head { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; margin-bottom: 0; }
.steps { position: relative; padding-left: 64px; --progress: 0; }
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  width: 2px;
}
.steps::before { bottom: 10px; background: var(--line-2); }
.steps::after { height: calc((100% - 20px) * var(--progress)); background: var(--red); }
.step { position: relative; padding-bottom: 56px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: -56px;
  top: 4px;
  width: 18px; height: 18px;
  background: #000;
  border: 2px solid var(--line-3);
  transition: background-color .3s, border-color .3s;
}
.step.is-active::before { background: var(--red); border-color: var(--red); }
.step-num { font: 500 .8125rem/1 var(--mono); color: var(--fg-3); transition: color .3s; }
.step.is-active .step-num { color: var(--red); }
.step h3 { margin: 12px 0 10px; font-size: var(--step-h3); letter-spacing: -0.03em; }
.step p { max-width: 48ch; color: var(--fg-2); }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .steps { padding-left: 48px; }
  .step::before { left: -40px; }
  .steps::before, .steps::after { left: 7px; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}
.faq .section-head { align-self: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  position: relative;
  padding: 24px 56px 24px 0;
  list-style: none;
  cursor: pointer;
  font: 600 1.0625rem/1.4 var(--mono);
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--red), var(--red)) center / 14px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--pure); }
.faq-list details p { padding: 0 56px 26px 0; max-width: 66ch; color: var(--fg-2); }
.faq-list details::details-content {
  height: 0;
  overflow: clip;
  transition: height .4s var(--ease), content-visibility .4s allow-discrete;
}
.faq-list details[open]::details-content { height: auto; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- contact band ---------- */
.contact {
  position: relative;
  isolation: isolate;
  padding-block: max(160px, 12vw) clamp(104px, 12vw, 184px);
  background: var(--red);
  color: #000;
  overflow: clip;
}
/* both pixel layers are drawn at 1:1 on a 40px grid in core.js and pinned to the right edge,
   so their cells line up; the 120px top band always clears the label below it */
.contact-pixels { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.contact-pixels svg { position: absolute; top: 0; right: 0; max-width: none; shape-rendering: crispEdges; }
.contact-pixels rect { fill: #000; }
.contact-pixels rect.d { fill: var(--red-deep); }
.contact-grid { display: grid; gap: 56px; }
.contact-copy { max-width: 780px; }
.route-ink { color: #000; margin-bottom: 24px; }
.contact-title {
  max-width: 13ch;
  font-size: clamp(2.75rem, 1.4rem + 5.2vw, 6.25rem);
  line-height: .98;
  letter-spacing: -0.05em;
  color: var(--pure);
}
.contact-lede { max-width: 46ch; margin-top: 28px; font-size: 1.125rem; line-height: 1.6; color: #000; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  max-width: 780px;
  padding-top: 18px;
  border-top: 2px solid #000;
  font: 500 .9375rem/1.5 var(--mono);
}
.contact-facts div { display: grid; gap: 4px; }
.contact-facts dt { color: #000; font-size: .75rem; }
.contact-facts dd { color: #000; }
.contact-facts a { color: #000; text-underline-offset: 3px; }
.contact :focus-visible { outline-color: #000; }
@media (max-width: 900px) {
  .contact-pixels .cp-side { display: none; }
  .contact-ctas .btn { white-space: normal; text-align: left; }
}
/* touch: links in running text become 44px tall targets */
@media (pointer: coarse) {
  .contact-facts a, .menu-foot a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- footer ---------- */
.footer { padding: 88px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-mark { width: 54px; height: 58px; fill: var(--red); }
.footer-slogan {
  margin-top: 28px;
  font: 700 clamp(2rem, 1.4rem + 2.2vw, 3.25rem)/1 var(--mono);
  letter-spacing: -0.04em;
}
.footer-ar { margin-top: 18px; font: 600 1.25rem/1.4 var(--arabic); color: var(--fg-2); text-align: left; }
.footer-col h2 { margin-bottom: 18px; font: 500 .8125rem/1 var(--mono); color: var(--fg-3); letter-spacing: .01em; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--fg-2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
@media (pointer: coarse) {
  .footer-col li + li { margin-top: 0; }
  .footer-col a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 400 .8125rem/1.5 var(--mono);
  color: var(--fg-3);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- route prompt and toasts ---------- */
/* the current route sits in the nav, next to the logo, so it never covers content */
.prompt {
  display: flex;
  align-items: center;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
  font: 500 .75rem/1 var(--mono);
  color: var(--fg-3);
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s;
}
.prompt.is-on { opacity: 1; }
.prompt-host { color: var(--red); }
.prompt-host::after { content: ":"; color: var(--fg-3); }
.prompt-path { color: var(--fg); }
.prompt-path::after { content: " $"; margin-right: 6px; color: var(--fg-3); white-space: pre; }
.prompt-caret { width: 7px; height: 13px; background: var(--red); animation: blink 1.1s steps(1) infinite; }
/* the prompt needs about 1320px next to the six links; 1365 leaves room for font fallback */
@media (max-width: 1365px) { .prompt { display: none; } }

.toasts {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}
.toast {
  max-width: min(380px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid var(--line-3);
  border-left: 3px solid var(--red);
  border-radius: var(--r-s);
  background: #000;
  font: 500 .8125rem/1.45 var(--mono);
  color: var(--fg);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9);
  animation: toast-in .45s var(--ease) both;
}
.toast.is-out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------- paused by the visitor ----------
   Carets stay solid and the ping stops. The ticker becomes a scroller that keeps its height,
   so every name can still be reached by swiping, scrolling or the keyboard (core.js makes it focusable). */
[data-motion="paused"] .caret,
[data-motion="paused"] .prompt-caret,
[data-motion="paused"] .status-dot::after,
[data-motion="paused"] .ticker-list { animation: none; }
[data-motion="paused"] .ticker-list li[aria-hidden="true"] { display: none; }
[data-motion="paused"] .sys { transition: none; } /* the order flash on panel borders lands at once */
[data-motion="paused"] .ticker-viewport {
  overflow-x: auto;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-list { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-list li[aria-hidden="true"] { display: none; }
  .caret, .prompt-caret { animation: none; }
  .status-dot::after { display: none; }
}
