/*
  ENVENOX landing page: everything below the hero.
  Visual language after the reference the client chose (ambalait.com): centred section titles,
  icon service cards, industry grid, step tabs, logo grids, FAQ accordion, contact form and a
  multi-column footer; in ENVENOX's own brand (the "Forge" palette, one red, Inter Tight + Inter).
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #3a3f47;
  --muted-2: #5a6068;
  --line: #e6e8ec;
  --red: #e11d2e;
  --red-dark: #b5121f;
  --red-soft: #fdecee;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(15 17 19 / 0.05), 0 2px 8px rgb(15 17 19 / 0.04);
  --shadow-lg: 0 18px 40px -18px rgb(15 17 19 / 0.28), 0 4px 12px rgb(15 17 19 / 0.06);
  --icons: "https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/";

  /* dark surfaces: ONE base, ONE red, ONE set of greys, shared by the numbers band, the
     Adversary Loop and the contact band, so the dark sections read as one family */
  --red-on-ink: #ff5a4e;            /* the brand's own on-ink red (hero.css --accent-on-ink) */
  --on-ink: #fafafa;
  --on-ink-2: #c9ccd1;              /* secondary text on ink: 11:1 */
  --on-ink-3: #9aa1aa;              /* muted text on ink: 7.4:1 */
  --ink-line: rgb(255 255 255 / 0.1);
  --ink-surface:
    radial-gradient(85% 110% at 100% 100%, rgb(225 29 46 / 0.2), transparent 60%),
    radial-gradient(60% 80% at 0% 0%, rgb(225 29 46 / 0.07), transparent 70%),
    #0f1113;

  /* motion: one rhythm for the whole page */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* arriving: fast, then a long settle */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* a small overshoot for icons */
  --ease-hover: cubic-bezier(0.33, 1, 0.68, 1);      /* ease-out-cubic: even, unhurried */
  --ease-ink: cubic-bezier(0.65, 0, 0.35, 1);         /* ease-in-out: the fill rises deliberately */
  --dur-enter: 0.9s;
  --stagger: 50ms;
}

body { background: var(--bg); color: var(--text); font-size: 17px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(880px, 100% - 48px); }
.section { padding: clamp(80px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }

/* ------------------------------------------------------------------ type */

.label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font: 600 13px/1 var(--f-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transform-origin: left; transition: transform 0.8s var(--ease-out) 0.2s; }
.label--light { color: var(--red-on-ink); }
.section--alt .label { color: var(--red-dark); }   /* #e11d2e on #f6f7f9 is 4.44:1, under AA */
.h2 {
  font: 700 clamp(30px, 3.3vw, 46px)/1.12 var(--f-display);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.sub { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted-2); max-width: 62ch; }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--text); max-width: 60ch; }
.section__head { text-align: center; margin: 0 auto clamp(40px, 5vw, 64px); max-width: 760px; }
.section__head .sub { margin-inline: auto; }

/* ------------------------------------------------------------------ icons (Lucide, recoloured by CSS masks) */

.ico {
  display: inline-block; flex: none;
  width: 1.15em; height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
  vertical-align: -0.2em;
}
.i-arrow-right { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/arrow-right.svg"); }
.i-circle-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/circle-check.svg"); }
.i-calendar-clock { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/calendar-clock.svg"); }
.i-code-xml { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/code-xml.svg"); }
.i-shield-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/shield-check.svg"); }
.i-globe { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/globe.svg"); }
.i-server-cog { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/server-cog.svg"); }
.i-boxes { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/boxes.svg"); }
.i-users-round { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/users-round.svg"); }
.i-id-card { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/id-card.svg"); }
.i-graduation-cap { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/graduation-cap.svg"); }
.i-flask-conical { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/flask-conical.svg"); }
.i-bug { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/bug.svg"); }
.i-lock-keyhole { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/lock-keyhole.svg"); }
.i-cloud-cog { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/cloud-cog.svg"); }
.i-file-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/file-check.svg"); }
.i-radar { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/radar.svg"); }
.i-siren { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/siren.svg"); }
.i-crosshair { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/crosshair.svg"); }
.i-briefcase-business { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/briefcase-business.svg"); }
.i-landmark { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/landmark.svg"); }
.i-heart-pulse { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/heart-pulse.svg"); }
.i-cloud { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/cloud.svg"); }
.i-truck { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/truck.svg"); }
.i-building-2 { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/building-2.svg"); }
.i-shopping-cart { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/shopping-cart.svg"); }
.i-scan-search { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/scan-search.svg"); }
.i-hammer { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/hammer.svg"); }
.i-swords { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/swords.svg"); }
.i-eye { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/eye.svg"); }
.i-refresh-cw { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/refresh-cw.svg"); }
.i-package-check { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/package-check.svg"); }
.i-layers { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/layers.svg"); }
.i-shield-half { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/shield-half.svg"); }
.i-shield { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/shield.svg"); }
.i-users { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/users.svg"); }
.i-message-square-text { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/message-square-text.svg"); }
.i-file-code-2 { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/file-code-2.svg"); }
.i-zap { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/zap.svg"); }
.i-pause { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/pause.svg"); }
.i-play { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/play.svg"); }
.i-rotate-ccw { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/rotate-ccw.svg"); }
.i-mail { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/mail.svg"); }
.i-clock { --i: url("https://cdn.jsdelivr.net/npm/lucide-static@0.468.0/icons/clock.svg"); }

/* brand logos (Simple Icons), drawn in each brand's own colour --c */
.si {
  display: inline-block; flex: none;
  width: 40px; height: 40px;
  background: var(--c, var(--ink));
  -webkit-mask: var(--s) center / contain no-repeat;
          mask: var(--s) center / contain no-repeat;
}
.si.ico { --s: var(--i); }
.si-typescript { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/typescript.svg"); }
.si-react { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/react.svg"); }
.si-nextdotjs { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/nextdotjs.svg"); }
.si-nodedotjs { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/nodedotjs.svg"); }
.si-python { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/python.svg"); }
.si-go { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/go.svg"); }
.si-postgresql { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/postgresql.svg"); }
.si-redis { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/redis.svg"); }
.si-kubernetes { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/kubernetes.svg"); }
.si-terraform { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/terraform.svg"); }
.si-googlecloud { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/googlecloud.svg"); }
.si-githubactions { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/githubactions.svg"); }
.si-argo { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/argo.svg"); }
.si-vitest { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/vitest.svg"); }
.si-k6 { --s: url("https://cdn.jsdelivr.net/npm/simple-icons@13.21.0/icons/k6.svg"); }

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--red); border-radius: 10px;
  background: var(--red); color: #fff;
  font: 600 16px/1 var(--f-display); text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgb(225 29 46 / 0.65);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgb(225 29 46 / 0.7); }
.button:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.button .ico { transition: transform 0.25s var(--ease); }
.button:hover .ico { transform: translateX(3px); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.button--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.button--block { width: 100%; }

/* ------------------------------------------------------------------ sticky header */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
          backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgb(15 17 19 / 0.25);
  transform: translateY(-110%); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.nav.is-shown { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.nav__inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.nav__logo { font: 800 26px/1 var(--f-display); letter-spacing: -0.045em; color: var(--ink); text-decoration: none; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { position: relative; color: var(--ink); text-decoration: none; font: 500 15px/1 var(--f-text); padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ about */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.checks { margin-top: 26px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks .ico { color: var(--red); width: 22px; height: 22px; margin-top: 1px; }
.checks--sm { margin-top: 20px; gap: 10px; }
.checks--sm li { font-size: 16px; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.showcase { position: relative; padding: 24px 0 40px 24px; }
.showcase::before {
  content: ""; position: absolute; inset: 0 0 18px 0;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 85% 15%, #ffe3e6 0, #f6f7f9 55%);
  z-index: -1;
}
.ui {
  background: var(--ink); color: #f1f2f4;
  border-radius: 12px; overflow: hidden;
  font: 400 14px/1.5 var(--f-text);
  box-shadow: var(--shadow-lg);
}
.ui--ticket { width: 88%; margin: 18px 0 0 18px; }
.ui--pr { width: 78%; margin: -46px 0 0 auto; position: relative; }
.ui__bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #1a1d21; color: #9aa1aa; font-size: 13px; }
.ui__body { padding: 16px 16px 4px; }
.ui__title { font: 600 17px/1.3 var(--f-display); color: #fff; margin-bottom: 12px; }
.ui__meta { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; margin: 0 0 12px; }
.ui__meta dt { color: #9aa1aa; }
.ui__meta dd { margin: 0; }
.ui__sev { color: var(--red-on-ink); font-weight: 600; }
.ui pre { margin: 0; padding: 14px 16px; background: #0a0b0d; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, Consolas, monospace; color: #cfd3d8; }
.ui code { font: inherit; }
.ui .del { color: #ff8a80; }
.ui .add { color: #7ee2a0; }
.ui__foot { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 16px; background: #1a1d21; color: #9aa1aa; font-size: 13px; }
.ui .ok { color: #6fcf8a; font-weight: 600; }
.badge-float {
  position: absolute; left: 0; bottom: 64px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.badge-float div { display: grid; line-height: 1.25; }
.badge-float strong { font: 700 18px/1.2 var(--f-display); color: var(--ink); }
.badge-float div > span { font-size: 14px; color: var(--muted-2); }
.badge-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--red); color: #fff; }
.badge-icon .ico { width: 24px; height: 24px; }
.showcase__note { margin-top: 16px; text-align: right; font-size: 13px; color: var(--muted-2); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------------ tools marquee */

.strip { padding: 34px 0 40px; border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.strip__title { text-align: center; font: 600 14px/1.4 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; }
.js .marquee__track { animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.strip { position: relative; }
.marquee__toggle { position: absolute; right: max(24px, calc((100% - 1200px) / 2)); top: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted-2); font: 600 13px/1 var(--f-display); cursor: pointer; }
.marquee__toggle:hover { color: var(--ink); border-color: #c9ccd1; }
.marquee__toggle .ico { width: 14px; height: 14px; }
.logo { display: flex; align-items: center; gap: 12px; font: 600 17px/1 var(--f-display); color: var(--ink); white-space: nowrap; }
.logo .si { width: 30px; height: 30px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ tabs + service cards */

.tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 40px; padding: 6px; width: max-content; max-width: 100%; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
  font: 600 15px/1 var(--f-display); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tab:hover { color: var(--red); }
.tab.is-active { background: var(--red); color: #fff; box-shadow: 0 8px 18px -10px rgb(225 29 46 / 0.8); }
.js [role="tabpanel"][hidden] { display: none; }

.cards { display: grid; gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease-hover), box-shadow 0.55s var(--ease-hover), border-color 0.55s var(--ease-hover);
}
.card::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--red), #ff5a4e);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-hover);
}
.card h3 { margin-top: 20px; font: 700 19px/1.3 var(--f-display); color: var(--ink); letter-spacing: -0.01em; }
.card p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted-2); flex: 1; }
.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--red-soft); color: var(--red);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease-hover), box-shadow 0.55s var(--ease-hover);
}
.card__icon::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(160deg, #ff3b47, var(--red) 55%, var(--red-dark));
  transform: translateY(102%);
  transition: transform 0.55s var(--ease-ink);
}
.card__icon .ico { transition: transform 0.55s var(--ease-hover); }
.card__icon .ico { width: 26px; height: 26px; }
.card__link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-display); color: var(--red); text-decoration: none; }
.card__link .ico { transition: transform 0.25s var(--ease); }
.card__link:hover .ico { transform: translateX(4px); }

/* ------------------------------------------------------------------ numbers band */

.band {
  padding: clamp(56px, 7vw, 84px) 0;
  background: var(--ink-surface);
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 rgb(255 90 78 / 0.14);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats li { padding: 8px 24px; border-left: 1px solid var(--ink-line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: flex; align-items: baseline; gap: 6px; font: 800 clamp(40px, 4.4vw, 60px)/1 var(--f-display); letter-spacing: -0.03em; }
.stats strong small { font-size: 0.38em; font-weight: 600; color: var(--red-on-ink); letter-spacing: 0; }
.stats li > span { display: block; margin-top: 10px; color: var(--on-ink-2); font-size: 16px; line-height: 1.45; max-width: 24ch; }

/* ------------------------------------------------------------------ industries */

.industries { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.industries li {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  padding: 28px 12px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 600 16px/1.3 var(--f-display); color: var(--ink);
  transition: transform 0.55s var(--ease-hover), box-shadow 0.55s var(--ease-hover), border-color 0.55s var(--ease-hover);
}

/* ------------------------------------------------------------------ the Adversary Loop
   Ported from envenox.com (components/story/AdversaryLoop.tsx). The finished picture is the
   default: rail fully drawn, every dot lit, every step at full contrast. Only once site.js adds
   .is-live (scripts on, motion allowed) does the band dim and let the scroll draw it back in:
   the red rail follows the reader, a glowing head rides its tip, each dot lights and glows as the
   fill reaches it, and when the rail completes the return bracket glows to close the loop. */

.loop {
  --l-bg: #0f1113; --l-surface: #16181b; --l-fg: var(--on-ink); --l-accent: var(--red-on-ink);
  --l-glow: 255 90 78;
  --l-border: var(--ink-line); --l-border-strong: #343840; --l-muted: var(--on-ink-3); --l-muted-strong: var(--on-ink-2);
  --rail: 2.25rem; --bracket: 0.65rem; --inset: 24px;
  position: relative; isolation: isolate;
  padding: clamp(88px, 10vw, 136px) 0;
  background: var(--ink-surface); color: var(--l-fg);
  box-shadow: inset 0 1px 0 rgb(255 90 78 / 0.14);
}
/* film grain, as on the original band */
.loop::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
.loop__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .loop { --bracket: 1.75rem; }
  .loop__grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 80px; align-items: start; }
  /* the heading holds while the steps move under it */
  .loop__aside { position: sticky; top: calc(68px + 48px); }
}
.loop__aside { min-width: 0; }
.loop__eyebrow { font: 500 12px/1 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--l-muted); }
.loop__title { margin-top: 2px; font: 700 clamp(28px, 2.5vw, 36px)/1.12 var(--f-display); letter-spacing: -0.035em; color: var(--l-fg); text-wrap: balance; }
.loop__lede { margin-top: 24px; max-width: 38ch; font-size: 17px; line-height: 1.6; color: var(--l-muted-strong); }
.loop__cta {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border: 1px solid var(--l-border-strong); border-radius: 6px;
  color: var(--l-fg); text-decoration: none; font: 600 15px/1 var(--f-display); letter-spacing: -0.01em;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.loop__cta:hover { border-color: var(--l-fg); background: var(--l-surface); }
.loop__cta .ico { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.loop__cta:hover .ico { transform: translateX(3px); }

/* ---- the rail: track and fill share one geometry, first dot to last dot */
.loop__cycle { position: relative; }
.loop__steps { position: relative; --p: 1; }
.loop__steps::before, .loop__steps::after {
  content: ""; position: absolute; left: calc(var(--rail) / 2);
  top: var(--inset); bottom: var(--inset);
}
.loop__steps::before { width: 1px; transform: translateX(-0.5px); background: var(--l-border-strong); }
.loop__steps::after {
  width: 2px; transform: translateX(-1px) scaleY(var(--p)); transform-origin: top;
  background: linear-gradient(to bottom, rgb(var(--l-glow) / 0.85), var(--l-accent));
  box-shadow: 0 0 10px 1px rgb(var(--l-glow) / 0.55), 0 0 22px 2px rgb(var(--l-glow) / 0.22);
  border-radius: 2px;
}
/* the glowing head that rides the tip of the fill */
.loop__head {
  position: absolute; z-index: 2; left: calc(var(--rail) / 2); top: var(--inset);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--l-accent) 45%, rgb(var(--l-glow) / 0) 72%);
  box-shadow: 0 0 14px 5px rgb(var(--l-glow) / 0.6), 0 0 34px 12px rgb(var(--l-glow) / 0.22);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.loop__step {
  position: relative; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 16px;
  padding: var(--inset) 0;
}
.loop__step + .loop__step { border-top: 1px solid var(--l-border); }
/* the dot sits ON the rail; a ring of the band's own colour makes the line pass behind it */
.loop__marker { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 4px; }
.loop__dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--l-accent);
  box-shadow: 0 0 0 5px var(--l-bg), 0 0 12px 3px rgb(var(--l-glow) / 0.5);
}
.loop__n { display: block; font: 500 12px/1 "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.16em; color: var(--l-muted); }
.loop__name { margin-top: 10px; font: 700 22px/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--l-fg); transition: color 0.15s var(--ease); }
.loop__step:hover .loop__name { color: var(--l-accent); }
.loop__body { margin-top: 12px; max-width: 60ch; font-size: 16.5px; line-height: 1.65; color: var(--l-muted); }

/* ---- the cycle bracket: leaves the rail at the return mark, runs up outside the list, re-enters at 01 */
.loop__cycle::before {
  content: ""; position: absolute; pointer-events: none;
  left: calc(var(--rail) / 2 - var(--bracket)); width: var(--bracket);
  top: calc(var(--inset) + 6px); bottom: 0.95rem;
  border: 1px dashed var(--l-accent); border-right: 0; border-radius: 8px 0 0 8px;
  opacity: 0.55; transition: opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
/* ---- the return path: dashed, because it is not another stage you work through */
.loop__return {
  position: relative; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 16px;
  align-items: center; margin-top: calc(var(--inset) * -1); padding-top: 48px;
}
.loop__return::before {
  content: ""; position: absolute; left: calc(var(--rail) / 2); top: 0; height: calc(100% - 0.9rem);
  width: 1px; transform: translateX(-0.5px);
  background: linear-gradient(var(--l-accent) 50%, transparent 0) 0 0 / 1px 7px repeat-y; opacity: 0.7;
}
.loop__returnMark { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--l-bg); color: var(--l-accent); }
.loop__returnMark .ico { width: 18px; height: 18px; }
.loop__returnText { max-width: 52ch; font-size: 14.5px; line-height: 1.6; color: var(--l-muted-strong); }
.loop__returnText b { color: var(--l-fg); font-weight: 600; }

/* ---- scroll-driven state: only with the script running and motion allowed */
.loop.is-live .loop__dot {
  background: var(--l-border-strong); box-shadow: 0 0 0 5px var(--l-bg);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.loop.is-live .loop__step.is-lit .loop__dot {
  background: var(--l-accent);
  box-shadow: 0 0 0 5px var(--l-bg), 0 0 14px 4px rgb(var(--l-glow) / 0.6);
  animation: loop-pulse 0.7s var(--ease);
}
@keyframes loop-pulse {
  40% { box-shadow: 0 0 0 5px var(--l-bg), 0 0 26px 10px rgb(var(--l-glow) / 0.75); transform: scale(1.35); }
}
.loop.is-live .loop__content, .loop.is-live .loop__returnText, .loop.is-live .loop__returnMark { opacity: 0.4; transition: opacity 0.5s var(--ease); }
.loop.is-live .loop__step.is-awake .loop__content { opacity: 1; }
.loop.is-live .loop__head.is-on { opacity: 1; }
.loop.is-live .loop__cycle::before { opacity: 0.3; }
.loop.is-live .is-closed::before { opacity: 0.95; filter: drop-shadow(0 0 4px rgb(var(--l-glow) / 0.8)); }
.loop.is-live .is-closed .loop__returnText, .loop.is-live .is-closed .loop__returnMark { opacity: 1; }
.loop.is-live .is-closed .loop__returnMark .ico { filter: drop-shadow(0 0 5px rgb(var(--l-glow) / 0.9)); }

@media print {
  .loop__aside { position: static; }
  .loop__steps::after, .loop__head { display: none; }
}

/* ------------------------------------------------------------------ engagement */

.card--model { text-align: left; }
.timeline { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); opacity: 0.45; }
.timeline li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.timeline__dot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); margin-bottom: 8px; }
.timeline__dot .ico { width: 24px; height: 24px; }
.timeline strong { font: 700 17px/1.3 var(--f-display); color: var(--ink); }
.timeline li > span:last-child { color: var(--muted-2); font-size: 15px; }

/* ------------------------------------------------------------------ technology */

.tech { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tech li {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 10px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  font: 600 14.5px/1.25 var(--f-display); color: var(--ink); text-align: center;
  transition: transform 0.55s var(--ease-hover), box-shadow 0.55s var(--ease-hover), border-color 0.55s var(--ease-hover);
}
.tech li .si, .tech li > .ico { transition: transform 0.55s var(--ease-hover); }
.tech .si.ico { width: 38px; height: 38px; }

/* ------------------------------------------------------------------ faq */

.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.faq details[open] { border-color: #f3c5ca; box-shadow: var(--shadow-lg); }
.faq summary {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font: 600 18px/1.35 var(--f-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); color: var(--red-dark); font: 700 13px/1 var(--f-display); }
.faq__icon { margin-left: auto; flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--red); transition: transform 0.3s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: #fff; border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq details p { padding: 0 22px 22px 76px; line-height: 1.65; color: var(--text); }

/* ------------------------------------------------------------------ contact */

.contact {
  padding: clamp(80px, 9vw, 120px) 0;
  background: var(--ink-surface);
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 rgb(255 90 78 / 0.14);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact .h2 { color: #fff; }
.contact .lead { color: var(--on-ink-2); }
.contact__list { margin-top: 34px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgb(255 255 255 / 0.08); color: var(--red-on-ink); }
.contact__ico .ico { width: 22px; height: 22px; }
.contact__list div { display: grid; gap: 2px; color: #fff; font-weight: 500; }
.contact__list div > span { font-size: 13px; color: #9aa1aa; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact__list a { color: #fff; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form { padding: clamp(26px, 3vw, 40px); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6); display: grid; gap: 16px; }
.form h3 { font: 700 22px/1.25 var(--f-display); margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font: 600 14px/1.3 var(--f-display); color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg-alt); color: var(--ink);
  font: 400 16px/1.4 var(--f-text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgb(225 29 46 / 0.12); }
.form .is-invalid { border-color: var(--red); background: #fff6f7; }
.form__note { font-size: 13.5px; color: var(--muted-2); text-align: center; }

/* ------------------------------------------------------------------ footer */

.footer { background: #0b0c0e; color: #b7bcc3; padding-top: clamp(64px, 7vw, 96px); font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__logo { font: 800 34px/1 var(--f-display); letter-spacing: -0.045em; color: #fff; text-decoration: none; }
.footer__logo .x { color: var(--red); }
.footer__brand p { margin-top: 16px; line-height: 1.65; max-width: 38ch; }
.footer__mail { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.footer__mail .ico { color: var(--red-on-ink); }
.footer__mail:hover { color: var(--red-on-ink); }
.footer h3 { font: 700 16px/1.3 var(--f-display); color: #fff; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: #b7bcc3; text-decoration: none; transition: color 0.2s var(--ease), padding 0.2s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer__bar { border-top: 1px solid rgb(255 255 255 / 0.08); padding: 22px 0; font-size: 14px; }
.footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer__bar a { color: #d6d9dd; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgb(225 29 46 / 0.9);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s, visibility 0s linear 0.3s;
}
.to-top .ico { transform: rotate(-90deg); width: 22px; height: 22px; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s; }
.to-top:hover { background: var(--red-dark); }

/* ------------------------------------------------------------------ hover (cards, tiles, icons)
   Enter slowly, leave a little faster. The icon tile fills with red from the bottom while the glyph
   turns white and lifts; the card rises; the underline draws left to right. */

@media (hover: hover) {
  .card:hover, .industries li:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #f3c5ca;
    transition-duration: 0.75s; transition-timing-function: var(--ease-hover);
  }
  .card:hover::after { transform: scaleX(1); transform-origin: left; transition: transform 0.8s var(--ease-ink) 0.1s; }
  .card:hover .card__icon, .industries li:hover .card__icon {
    color: #fff; box-shadow: 0 12px 22px -12px rgb(225 29 46 / 0.75);
    transition-duration: 0.6s; transition-delay: 0.15s;
  }
  .card:hover .card__icon::before, .industries li:hover .card__icon::before { transform: translateY(0); transition: transform 0.75s var(--ease-ink); }
  .card:hover .card__icon .ico, .industries li:hover .card__icon .ico { transform: translateY(-2px) scale(1.08); transition: transform 0.8s var(--ease-hover) 0.1s; }
  .tech li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #f3c5ca; transition-duration: 0.75s; transition-timing-function: var(--ease-hover); }
  .tech li:hover .si, .tech li:hover > .ico { transform: scale(1.1); transition: transform 0.8s var(--ease-hover); }
}

/* ------------------------------------------------------------------ reveal on scroll */

.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in:not(.is-done) {
  transition: opacity calc(var(--dur-enter) * 0.8) var(--ease-out), transform var(--dur-enter) var(--ease-out);
  transition-delay: calc(var(--d, 0) * var(--stagger) * 1.6);
}

/* heading words rise out of their own line, one after another (site.js wraps them) */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js .w > span { display: inline-block; transition: transform var(--dur-enter) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger) + 120ms); }
.js [data-reveal]:not(.is-in) .w > span { transform: translateY(110%); }

/* the small rule before each label draws in from the left */
.js [data-reveal]:not(.is-in) .label::before { transform: scaleX(0); }

/* icons pop in just after their card lands, then hand back to their own hover transition */
.js [data-reveal]:not(.is-in) .card__icon, .js [data-reveal]:not(.is-in) .timeline__dot { transform: scale(0.55) rotate(-14deg); opacity: 0; }
.js [data-reveal].is-in:not(.is-done) .card__icon, .js [data-reveal].is-in:not(.is-done) .timeline__dot {
  transition: transform 0.75s var(--ease-spring), opacity 0.35s var(--ease-out);
  transition-delay: calc(var(--d, 0) * var(--stagger) * 1.6 + 220ms);
}
.js [data-reveal].is-in:not(.is-done) .timeline__dot { transition-delay: calc(var(--d, 0) * 120ms + 200ms); }

/* page progress: a thin red rule along the bottom of the sticky header */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-on-ink));
  box-shadow: 0 0 10px rgb(225 29 46 / 0.45);
  transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* Lenis (smooth scrolling), from lenis@1.1.13/dist/lenis.css */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis { scroll-behavior: auto !important; }   /* Lenis does the easing; CSS smooth scrolling on top of it doubles the lag */
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* without the script: the header and button never appear, and the tab lists would be dead buttons */
html:not(.js) .nav, html:not(.js) .to-top, html:not(.js) .tabs { display: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .js .marquee__track, .badge-float { animation: none; }
  .marquee { -webkit-mask: none; mask: none; }
  .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; gap: 22px 40px; padding-inline: 24px; }
  .marquee__track > [aria-hidden="true"], .marquee__toggle { display: none; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .w > span, .js .label::before, .js .card__icon, .js .timeline__dot { transform: none !important; opacity: 1 !important; transition: none !important; }
  .nav::after { display: none; }
  .card__icon::before { transform: none; opacity: 0; transition: opacity 0.3s; }
  .card:hover .card__icon::before, .industries li:hover .card__icon::before { opacity: 1; }
  .card:hover .card__icon .ico, .industries li:hover .card__icon .ico, .tech li:hover .si { transform: none; }
  .card:hover, .industries li:hover, .tech li:hover { transform: none; }
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav__links { display: none; }
  .nav .button { margin-left: auto; }
}
@media (max-width: 860px) {
  .split, .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stats li:nth-child(3) { border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .timeline::before { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .container--narrow { width: calc(100% - 40px); }
  .cards--4 { grid-template-columns: 1fr; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 12px 10px; font-size: 14px; }
  .form__row { grid-template-columns: 1fr; }
  .stats li { padding: 0 0 0 16px; }
  .faq details p { padding-left: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase { padding-left: 0; }
  .ui--ticket, .ui--pr { width: 100%; margin-left: 0; }
  .ui--pr { margin-top: 16px; }
  .badge-float { position: static; margin-top: 16px; width: max-content; animation: none; }
  .nav .button { display: none; }
}
