/* =========================================================
   Xtream Vision — modern rebuild
   ========================================================= */
:root {
  --red: #c30101;
  --red-deep: #7a0000;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* Light palette */
:root {
  color-scheme: light;
  --red-2: #dc1a1a;
  --bg: #f7f5f8;
  --bg-2: #efecf2;
  --surface: #ffffff;
  --surface-2: #faf9fb;
  --line: rgba(24, 18, 32, 0.1);
  --text: #1a1720;
  --fg: #121016;
  --soft: #3d3946;
  --muted: #605b69;
  --tint: rgba(24, 18, 32, 0.05);
  --tint-strong: rgba(24, 18, 32, 0.24);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-2: rgba(255, 255, 255, 0.97);
  --invert-bg: #121016;
  --invert-fg: #ffffff;
  --shadow: rgba(40, 20, 50, 0.22);
  --star: #b45309;
}

/* Sections that stay dark for contrast: footer, photo banners, ticker, partner CTA, badge, video modal */
:is(.footer, .promo, .partner, .ticker, .about__badge, .modal) {
  color-scheme: dark;
  color: var(--text);
  --red-2: #ff4040;
  --bg: #0a0a0c;
  --bg-2: #111013;
  --surface: #17161a;
  --surface-2: #1f1d23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f2f6;
  --fg: #ffffff;
  --soft: #cfcbd6;
  --muted: #a39fab;
  --tint: rgba(255, 255, 255, 0.06);
  --tint-strong: rgba(255, 255, 255, 0.3);
  --glass: rgba(10, 10, 12, 0.72);
  --glass-2: rgba(23, 22, 26, 0.96);
  --invert-bg: #ffffff;
  --invert-fg: #111111;
  --shadow: rgba(0, 0, 0, 0.75);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { text-align: center; }

.grad {
  background: linear-gradient(100deg, var(--red) 0%, var(--red-2) 60%, #ff8a9d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader img { width: 72px; animation: pulseLogo 1.2s var(--ease) infinite alternate; }
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes pulseLogo { from { transform: scale(0.85); opacity: 0.6; } to { transform: scale(1.05); opacity: 1; } }

/* ---------- Scroll progress & cursor glow ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--red-2));
  z-index: 200;
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(195, 1, 1, 0.12), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 28px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --pad: 10px 20px; font-size: 14px; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(195, 1, 1, 0.7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--red-2), var(--red));
  opacity: 0; transition: opacity 0.3s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(195, 1, 1, 0.9); }
.btn--ghost { border: 1px solid var(--tint-strong); color: var(--fg); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--invert-bg); color: var(--invert-fg); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5); }

.link-arrow { color: var(--red-2); font-weight: 600; display: inline-block; margin-top: 8px; transition: letter-spacing 0.3s; }
.link-arrow:hover { letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: height 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* the frosted background lives on a pseudo-element: backdrop-filter on the header itself
   would trap the fixed full-screen mobile menu inside the header's box */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; transition: opacity 0.4s;
}
.header.scrolled { --header-h: 70px; border-color: var(--line); }
.header.scrolled::before { opacity: 1; }
.header.hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 40px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 12px; }

.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover, .nav__link.active { color: var(--fg); background: var(--tint); }
.chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  padding: 8px; border-radius: 16px;
  background: var(--glass-2); border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s var(--ease);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: all 0.2s; }
.drop a:hover { background: rgba(195, 1, 1, 0.14); color: var(--fg); padding-left: 18px; }
/* grouped items, e.g. "LigoWave related" with its tools indented below */
.drop__label { padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-2); }
.drop__sub a { padding-left: 26px; }
.drop__sub a:hover { padding-left: 30px; }
.drop__sub + li:not(.drop__sub) { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav__social { display: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 36px;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

/* blueprint grid; a red copy of it is revealed under the cursor */
.hero__mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 55% 40%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 55% 40%, #000 25%, transparent 80%);
}
.hero__mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(195, 1, 1, 0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(195, 1, 1, 0.6) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
  mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 70%);
}

.hero__aurora span { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.hero__aurora span:nth-child(1) {
  width: 52vw; right: -12vw; top: -14vw;
  background: radial-gradient(closest-side, rgba(220, 26, 26, 0.32), transparent);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__aurora span:nth-child(2) {
  width: 40vw; left: -14vw; bottom: -18vw;
  background: radial-gradient(closest-side, rgba(255, 138, 157, 0.35), transparent);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
.hero__aurora span:nth-child(3) {
  width: 30vw; left: 38%; top: 18%;
  background: radial-gradient(closest-side, rgba(255, 176, 120, 0.22), transparent);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-5vw, 4vw) scale(1.18); } }

.hero__word {
  position: absolute; left: 50%; bottom: -0.2em; translate: -50% 0;
  font-size: clamp(120px, 25vw, 400px); font-weight: 800; line-height: 1; letter-spacing: -0.06em;
  white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1.5px rgba(24, 18, 32, 0.07);
  will-change: transform;
}

.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(195, 1, 1, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(195, 1, 1, 0); } 100% { box-shadow: 0 0 0 0 rgba(195, 1, 1, 0); } }

.hero__title {
  font-size: clamp(40px, 5.3vw, 80px);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 700;
  margin: 22px 0 20px;
}
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 520px; }
.typed { color: var(--fg); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--red); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.brands-btn { --pad: 9px 22px 9px 9px; gap: 12px; }
.brands-btn__logos { display: inline-flex; }
.brands-btn__logos img {
  width: 38px; height: 38px; border-radius: 50%; padding: 8px;
  object-fit: cover; object-position: left center; /* wordmark logos: show the icon at their left edge */
  background: #fff; border: 2px solid var(--bg); box-shadow: 0 2px 8px -2px var(--shadow);
  transition: margin 0.35s var(--ease), transform 0.35s var(--ease);
}
.brands-btn__logos img + img { margin-left: -12px; }
.brands-btn:hover .brands-btn__logos img + img { margin-left: -4px; }
.brands-btn:hover .brands-btn__logos img:nth-child(even) { transform: translateY(-3px); }

/* stage: flat distribution map + network card */
.hero__stage { position: relative; width: 100%; }
.map-wrap { position: relative; aspect-ratio: 1.3; }
.hmap { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hmap.is-dragging { cursor: grabbing; }

.hcard {
  position: relative;
  padding: 14px 18px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px var(--shadow);
}
.hcard small { color: var(--muted); font-size: 12px; }
.hcard--net { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.net__main { flex-shrink: 0; padding-right: 20px; border-right: 1px solid var(--line); }
.net__side { min-width: 0; flex: 1; }
.hcard__top { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.hcard--net strong { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 2px; }
.hcard--net strong small { font-size: 14px; font-weight: 600; }
.net__route { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.net__route svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.net__route b { color: var(--fg); }
.net__route span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); padding: 2px 8px; border-radius: 999px; background: rgba(195, 1, 1, 0.08); }
.net__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.net__chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.net__chip i { font-style: normal; opacity: 0.6; margin-left: 2px; }
.net__chip:hover { border-color: var(--red); color: var(--fg); }
.net__chip.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.net__chip.is-on i { opacity: 0.85; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: ping 2s infinite; }

/* bottom bar: stats + vendor logo strip */
.hero__bar {
  position: relative; margin-top: 44px; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-top: 1px solid var(--line);
}
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero__stats span { font-size: 13px; color: var(--muted); }
.hero__brands { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 0 1 520px; }
.hero__brands-label { flex-shrink: 0; font-size: 12px; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero__brands-track {
  display: flex; overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__brands-row { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex-shrink: 0; animation: logoRun 28s linear infinite; }
.hero__brands-row img { height: 26px; width: auto; filter: grayscale(1); opacity: 0.6; transition: filter 0.3s, opacity 0.3s; }
.hero__brands:hover .hero__brands-row { animation-play-state: paused; }
.hero__brands:hover img { filter: none; opacity: 1; }
@keyframes logoRun { to { transform: translateX(-100%); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: -10px 0; position: relative; z-index: 2; }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; }
.ticker span { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.ticker i { font-style: normal; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.subtitle {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-2);
}
.subtitle::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.section__title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; margin-top: 14px; }
.section__lead { max-width: 460px; color: var(--muted); font-size: 17px; }

/* ---------- Solutions ---------- */
.solutions { background: var(--bg-2); }
.sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.sc {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
/* .reveal sets its own transition, so the hover properties are added to it here */
.sc.reveal {
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s),
    translate 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s;
}
.sc:hover { translate: 0 -6px; border-color: rgba(195, 1, 1, 0.35); box-shadow: 0 40px 70px -40px var(--shadow); }
/* red line drawn along the top edge on hover */
.sc::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-2));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease);
}
.sc:hover::after { transform: scaleX(1); }
/* spotlight that follows the pointer (--mx / --my set in main.js) */
.sc__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(195, 1, 1, 0.12), transparent 60%);
}
.sc:hover .sc__glow { opacity: 1; }

.sc__top { display: flex; align-items: flex-start; justify-content: space-between; }
/* the industry glyphs are light, so they sit on a red tile */
.sc__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-2), var(--red-deep));
  box-shadow: 0 16px 30px -14px rgba(195, 1, 1, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--ease);
}
.sc__icon img { width: 62%; height: 62%; object-fit: contain; }
.sc:hover .sc__icon { transform: rotate(-8deg) scale(1.06); }
.sc__num {
  font-size: 46px; font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--tint-strong); transition: -webkit-text-stroke-color 0.4s;
}
.sc:hover .sc__num { -webkit-text-stroke-color: var(--red); }

.sc__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.sc__title { margin: 6px 0 4px; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.sc__tag { font-size: 14.5px; font-weight: 600; color: var(--soft); }
.sc__desc { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.sc__uses { display: none; }
.sc__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sc__tech li { padding: 5px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--soft); }

.sc__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 14.5px; font-weight: 600; color: inherit; transition: color 0.3s;
}
.sc:hover .sc__foot { color: var(--red); }
.sc__cta {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--invert-bg); color: var(--invert-fg);
  transition: background 0.3s, color 0.3s, rotate 0.5s var(--ease);
  rotate: -45deg;
}
.sc__cta svg { width: 18px; height: 18px; fill: currentColor; }
.sc:hover .sc__cta { rotate: 0deg; background: var(--red); color: #fff; }

/* featured cards: wide and dark */
.sc--wide {
  grid-column: span 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 32px; row-gap: 18px;
  grid-template-areas: "top top" "main uses" "tech tech" "foot foot";
  color: #fff; border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(195, 1, 1, 0.38), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #1d1118, #0d0a0f);
}
.sc--wide .sc__top { grid-area: top; }
.sc--wide .sc__main { grid-area: main; }
.sc--wide .sc__uses { grid-area: uses; }
.sc--wide .sc__tech { grid-area: tech; }
.sc--wide .sc__foot { grid-area: foot; border-color: rgba(255, 255, 255, 0.16); }
.sc--wide .sc__glow { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 64, 64, 0.2), transparent 60%); }
.sc--wide .sc__num { font-size: 64px; -webkit-text-stroke-color: rgba(255, 255, 255, 0.22); }
.sc--wide .sc__kicker { color: var(--red-2); }
.sc--wide .sc__title { font-size: clamp(22px, 2vw, 28px); color: #fff; }
.sc--wide .sc__tag { color: rgba(255, 255, 255, 0.85); }
.sc--wide .sc__desc { color: rgba(255, 255, 255, 0.62); }
.sc--wide .sc__uses {
  display: block; align-self: start; padding: 18px 20px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.sc--wide .sc__uses::before {
  content: "Typical projects"; display: block; margin-bottom: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}
.sc__uses li { display: flex; gap: 8px; font-size: 14.5px; color: rgba(255, 255, 255, 0.88); }
.sc__uses li + li { margin-top: 8px; }
.sc__uses svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--red-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sc--wide .sc__tech li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #fff; }
.sc--wide:hover .sc__foot { color: #fff; }
.sc--wide .sc__cta { background: #fff; color: #121016; }
.sc--wide:hover .sc__cta { background: var(--red); color: #fff; }

@media (max-width: 1100px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sc { padding: 22px; }
  .sc--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main" "uses" "tech" "foot"; }
  .sc--wide .sc__num { font-size: 52px; }
}

/* ---------- Promo split ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; }
.promo__panel { position: relative; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.promo__bg {
  position: absolute; inset: -15% 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: scale 1.2s var(--ease);
}
.promo__panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.1) 0%, rgba(10, 10, 12, 0.85) 100%);
  transition: background 0.5s;
}
.promo__panel:hover .promo__bg { scale: 1.08; }
/* the SCADA artwork has text baked in, so zoom in on the RipEX radios */
.promo__bg--scada { background-size: auto 170%; background-position: 100% 82%; }
.promo__panel--scada::after,
.promo__panel--scada:hover::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.6) 50%, rgba(10, 10, 12, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.75) 100%);
}
.promo__panel:hover::after { background: linear-gradient(180deg, rgba(195, 1, 1, 0.15) 0%, rgba(10, 10, 12, 0.9) 100%); }
.promo__content { padding: clamp(32px, 5vw, 72px); }
.promo__content h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.03em; margin: 14px 0 12px; }
.promo__content p { color: #d6d3db; margin-bottom: 24px; max-width: 380px; }
.promo__content .btn { margin-top: 12px; }

/* ---------- Why us ---------- */
.why { background: var(--bg); overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: 10%;
  border-radius: 50%; background: radial-gradient(circle, rgba(195, 1, 1, 0.12), transparent 65%);
}
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; position: relative; }
.why__intro { position: sticky; top: 120px; }
.big-count { margin: 10px 0 36px; }
.big-count strong {
  display: block; font-size: clamp(80px, 11vw, 160px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--fg) 30%, var(--tint-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-count span { font-size: 22px; font-weight: 500; color: var(--muted); }
.why__features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature {
  padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.feature:nth-child(even) { transform: translateY(40px); }
.feature:hover { border-color: rgba(195, 1, 1, 0.4); }
.feature__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-2); padding: 6px 12px; border-radius: 999px; background: rgba(195, 1, 1, 0.12); margin-bottom: 20px; }
.feature h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- About: who we are ---------- */
.about { background: var(--bg-2); overflow: hidden; }
.about__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.about__head .section__title { max-width: 640px; }
.about__head .section__lead { max-width: 500px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* photo collage */
.about__media { position: relative; padding-bottom: 12%; }
.about__shot { margin: 0; overflow: hidden; box-shadow: 0 40px 70px -40px var(--shadow); }
.about__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__shot--main { width: 80%; aspect-ratio: 4 / 4.5; border-radius: 28px; }
.about__shot--side {
  position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 3;
  border-radius: 22px; border: 6px solid var(--bg-2);
  rotate: 3deg; transition: rotate 0.6s var(--ease), translate 0.6s var(--ease);
}
.about__media:hover .about__shot--side { rotate: 0deg; translate: 0 -8px; }
.about__media:hover .about__shot img { transform: scale(1.05); }
.about__badge {
  position: absolute; left: -20px; top: 10%;
  padding: 20px 24px; border-radius: 22px;
  background: var(--red); box-shadow: 0 30px 60px -20px rgba(195, 1, 1, 0.7);
  animation: hFloat 6s ease-in-out infinite;
}
.about__badge strong { font-size: 44px; line-height: 1; display: block; }
.about__badge span { font-size: 14px; line-height: 1.35; opacity: 0.9; display: block; margin-top: 6px; }
@keyframes hFloat { 50% { transform: translateY(-10px); } }

/* mission / vision / values accordion */
.pillars { border-top: 1px solid var(--line); }
.pillar { position: relative; border-bottom: 1px solid var(--line); }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.pillar.is-open::after { transform: scaleX(1); }
.pillar__head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 0; text-align: left; }
.pillar__num { width: 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--red); font-variant-numeric: tabular-nums; }
.pillar__title { flex: 1; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.02em; color: var(--fg); transition: translate 0.35s var(--ease); }
.pillar__head:hover .pillar__title { translate: 6px 0; }
.pillar__icon {
  position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--tint-strong); transition: background 0.3s, border-color 0.3s;
}
.pillar__icon::before, .pillar__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  border-radius: 2px; background: var(--fg); transition: transform 0.4s var(--ease), background 0.3s;
}
.pillar__icon::after { transform: rotate(90deg); }
.pillar.is-open .pillar__icon { background: var(--red); border-color: var(--red); }
.pillar.is-open .pillar__icon::before, .pillar.is-open .pillar__icon::after { background: #fff; }
.pillar.is-open .pillar__icon::after { transform: rotate(0deg); }
.pillar__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.pillar__body > div { overflow: hidden; }
.pillar.is-open .pillar__body { grid-template-rows: 1fr; }
.pillar__body p { padding: 0 56px 24px 38px; font-size: 17px; line-height: 1.7; color: var(--soft); }
.values { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px 38px; }
.values li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.values li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.about__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.about__facts li {
  padding: 18px 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about__facts li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px var(--shadow); }
.about__facts strong { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.about__facts span { font-size: 13px; color: var(--muted); }

/* ---------- Vendors ---------- */
.vendors { padding-bottom: clamp(60px, 9vw, 110px); }
.logo-marquee {
  margin-top: 56px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-chip {
  width: 220px; height: 110px; flex-shrink: 0;
  display: grid; place-items: center; padding: 22px;
  border-radius: 18px; background: #fff; border: 1px solid var(--line);
  filter: grayscale(1); opacity: 0.75;
  transition: filter 0.4s, opacity 0.4s, transform 0.4s var(--ease);
}
.logo-chip:hover { filter: none; opacity: 1; transform: translateY(-6px); }
.logo-chip img { max-height: 60px; width: auto; object-fit: contain; }

/* ---------- Testimonials ---------- */
.testimonials { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.testi__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.testi__controls { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.round-btn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.round-btn svg { width: 22px; fill: var(--fg); transition: fill 0.3s; }
.round-btn:hover svg { fill: #fff; }
.round-btn:hover { background: var(--red); border-color: var(--red); }
.testi__dots { display: flex; gap: 8px; margin-left: 12px; }
.testi__dots button { width: 8px; height: 8px; border-radius: 999px; background: var(--tint-strong); transition: all 0.35s var(--ease); }
.testi__dots button.active { width: 28px; background: var(--red); }
.testi__slider { display: grid; position: relative; }
.testi {
  grid-area: 1 / 1;
  padding: clamp(32px, 4vw, 52px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateX(40px) scale(0.98);
  transition: all 0.6s var(--ease);
  position: relative;
}
.testi::before { content: "”"; position: absolute; top: -10px; right: 36px; font-size: 180px; line-height: 1; color: var(--red); opacity: 0.25; font-family: Georgia, serif; }
.testi.active { opacity: 1; visibility: visible; transform: none; }
.testi.leaving { transform: translateX(-40px) scale(0.98); }
.testi__tag { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-2); }
.testi blockquote { font-size: clamp(19px, 2vw, 25px); line-height: 1.5; margin: 18px 0 28px; letter-spacing: -0.01em; }
.testi figcaption { display: flex; align-items: center; gap: 14px; }
.testi figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.4s;
  transform-style: preserve-3d;
}
.post:hover { border-color: rgba(195, 1, 1, 0.4); box-shadow: 0 30px 60px -30px rgba(195, 1, 1, 0.5); }
.post__img { aspect-ratio: 1 / 1; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .post__img img { transform: scale(1.08); }
.post__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.post__meta span + span::before { content: "•"; margin-right: 16px; color: var(--red); }
.post h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 16px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.post__tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.post__more { margin-top: auto; font-weight: 600; color: var(--red-2); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact__card { padding: 36px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact__card h3 { font-size: 24px; margin: 14px 0 10px; letter-spacing: -0.01em; }
.contact__card p { color: var(--muted); }
.contact__big { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; transition: color 0.3s; }
.contact__big:hover { color: var(--red-2); }
.contact__mail { color: var(--muted); border-bottom: 1px solid var(--line); }
.contact__mail:hover { color: var(--fg); }
.clock { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.clock__time { display: block; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.clock small { color: var(--muted); }
.clock__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.clock__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.clock__status.open { color: #22c55e; }
.clock__status.closed { color: #f59e0b; }

.partner {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 40px; padding: clamp(40px, 6vw, 72px);
  border-radius: 32px;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.partner__glow {
  position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  right: -120px; top: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
  animation: floaty 9s ease-in-out infinite;
}
.partner .subtitle { color: #fff; opacity: 0.85; }
.partner h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.03em; line-height: 1.05; margin: 10px 0 12px; }
.partner p { max-width: 560px; opacity: 0.9; }

/* ---------- Footer ---------- */
.footer { background: #060607; border-top: 1px solid var(--line); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 60px; }
.footer h4 { font-size: 15px; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer h4.mt { margin-top: 28px; }
.footer p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.footer a:not(.link-arrow):not(.socials a) { color: #fff; transition: color 0.3s; }
.footer a:hover { color: var(--red-2); }
.footer__logo { width: 190px; height: auto; margin-bottom: 22px; }
.footer__map { display: block; width: fit-content; margin-top: 10px; }
.footer__brand p { max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: all 0.3s var(--ease); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.newsletter { display: flex; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 5px; margin-bottom: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 10px 16px; background: none; border: 0; color: #fff; font: inherit; outline: none; }
.newsletter button { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.newsletter button:hover { transform: rotate(-45deg); }
.newsletter svg { width: 20px; fill: #fff; }
.check { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.check input { accent-color: var(--red); margin-top: 3px; }
.newsletter__msg { font-size: 14px; margin-top: 10px; color: #22c55e !important; min-height: 1em; }
.newsletter__msg.is-error { color: #ff4d6a !important; }
.newsletter button:disabled { opacity: 0.6; cursor: progress; }
/* spam trap: hidden from people, filled in by bots */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__bottom a { color: var(--muted) !important; }
.footer__bottom a:hover { color: #fff !important; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: all 0.4s var(--ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.modal__box { position: relative; width: min(1000px, 100%); transform: scale(0.94); transition: transform 0.4s var(--ease); }
.modal.open .modal__box { transform: none; }
.modal__frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Project enquiry pop-up ---------- */
.enq {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 26px; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--fg);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.5);
}
.enq::backdrop { background: rgba(10, 8, 12, 0.6); backdrop-filter: blur(6px); }
.enq[open] { animation: enqIn 0.45s var(--ease); }
.enq[open]::backdrop { animation: enqFade 0.45s var(--ease); }
@keyframes enqIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes enqFade { from { opacity: 0; } }
/* red accent bar along the top */
.enq::before { content: ""; position: sticky; top: 0; display: block; height: 4px; background: linear-gradient(90deg, var(--red), var(--red-2)); z-index: 1; }
.enq__close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2); color: var(--fg); transition: background 0.3s, color 0.3s, rotate 0.4s var(--ease);
}
.enq__close:hover { background: var(--red); color: #fff; rotate: 90deg; }
.enq__close svg { width: 20px; height: 20px; fill: currentColor; }
.enq__form, .enq__done { padding: 34px 34px 32px; }
.enq__title { margin: 10px 0 6px; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.enq__lead { margin-bottom: 22px; font-size: 15px; color: var(--muted); }
.enq__field { display: block; margin-bottom: 14px; }
.enq__field > span:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.enq__field input {
  width: 100%; padding: 13px 16px; border-radius: 14px; font: inherit; font-size: 15.5px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); outline: none; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.enq__field input::placeholder { color: var(--muted); opacity: 0.7; }
.enq__field input:focus { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 4px rgba(195, 1, 1, 0.12); }
.enq__locked { position: relative; display: block; }
.enq__locked input { padding-right: 46px; font-weight: 600; cursor: not-allowed; background: var(--bg-2); border-style: dashed; }
.enq__locked input:focus { background: var(--bg-2); box-shadow: none; border-color: var(--line); }
.enq__locked svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: var(--red); }
.enq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.enq__msg { min-height: 1.4em; margin: 2px 0 14px; font-size: 14px; font-weight: 600; color: #e11d48; }
.enq__submit { width: 100%; justify-content: center; }
.enq__submit.is-busy { opacity: 0.75; cursor: progress; }
.enq__submit.is-busy span::after { content: "…"; }
.enq__submit.is-busy svg { animation: enqSpin 0.9s linear infinite; }
@keyframes enqSpin { to { rotate: 360deg; } }
.enq__done { text-align: center; padding-top: 48px; }
.enq__done .btn { margin-top: 6px; }
.enq__tick {
  width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-2), var(--red-deep)); box-shadow: 0 18px 36px -14px rgba(195, 1, 1, 0.7);
}
.enq__tick svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .enq__form, .enq__done { padding: 28px 22px 24px; }
  .enq__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.modal__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; font-size: 16px; }

/* ---------- Back to top ---------- */
.to-top {
  /* sits above the Zoho SalesIQ chat bubble, which takes the bottom-right corner */
  position: fixed; right: 24px; bottom: 100px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red);
  box-shadow: 0 14px 30px -10px rgba(195, 1, 1, 0.8);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s var(--ease);
}
.to-top svg { width: 22px; fill: #fff; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal.in:nth-child(even) { transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--header-h) + 20px) 24px 40px;
    background: var(--bg);
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: circle(0 at calc(100% - 46px) 42px);
    transition: clip-path 0.7s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav:not(.open) { visibility: hidden; transition: clip-path 0.7s var(--ease), visibility 0s 0.7s; }
  .nav.open { clip-path: circle(150% at calc(100% - 46px) 42px); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { font-size: 26px; font-weight: 600; color: var(--fg); padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav__link:hover, .nav__link.active { background: none; color: var(--red-2); }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; display: none; background: none; border: 0; box-shadow: none; padding: 6px 0 10px 12px; }
  .has-drop.open .drop { display: block; }
  .has-drop:hover .drop { opacity: 1; }
  .has-drop.open .chev { transform: rotate(-135deg); }
  .nav__social { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); }
  .nav .nav__list > li { opacity: 0; transform: translateY(16px); transition: all 0.5s var(--ease); }
  .nav.open .nav__list > li { opacity: 1; transform: none; }
  .nav.open .nav__list > li:nth-child(n) { transition-delay: calc(0.05s * var(--i, 1) + 0.15s); }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__stage { max-width: 680px; width: 100%; margin-inline: auto; }
  .hero__bar { flex-wrap: wrap; }
  .hero__brands { flex: 1 1 100%; }
  .why__grid, .about__grid, .testi__grid { grid-template-columns: 1fr; gap: 48px; }
  .why__intro { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .container { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  input, select, textarea { font-size: 16px; } /* below 16px iOS zooms the page on focus */
  .logo img { height: 34px; }
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 24px; }
  .hcard--net { flex-direction: column; align-items: stretch; gap: 12px; }
  .net__main { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hcard--net strong { font-size: 28px; }
  .hero__brands-label { display: none; }
  .promo { grid-template-columns: 1fr; }
  .promo__panel { min-height: 440px; }
  .why__features { grid-template-columns: 1fr; }
  .feature:nth-child(even), .feature.reveal.in:nth-child(even) { transform: none; }
  .about__badge { left: 8px; top: 6%; padding: 14px 18px; }
  .about__badge strong { font-size: 34px; }
  .about__head { margin-bottom: 36px; }
  .pillar__body p { padding: 0 0 22px 38px; }
  .about__facts { gap: 8px; }
  .about__facts li { padding: 14px 12px; }
  .about__facts strong { font-size: 22px; }
  .post-grid, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .ticker span { font-size: 17px; }
  .logo-chip { width: 170px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Motion & interaction layer
   ========================================================= */

/* ---------- Animated gradient text ---------- */
.grad {
  background-image: linear-gradient(100deg, var(--red) 0%, var(--red-2) 30%, #ff8a9d 50%, var(--red-2) 70%, var(--red) 100%);
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% center; } }

/* ---------- Word-by-word headline reveal ---------- */
.split.reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.12em; margin: 0 -0.04em -0.12em; }
.split .w__i {
  display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--wi, 0) * 70ms + 0.05s);
}
.split.in .w__i, .in .split .w__i { transform: none; }
.hero .split .w__i { transition-delay: calc(var(--wi, 0) * 90ms + 0.45s); }

/* ---------- Custom cursor ring ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid var(--red);
  display: grid; place-items: center;
  opacity: 0; transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(195, 1, 1, 0.12); }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--red); border-color: var(--red); }
.cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor__label { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; opacity: 0; transform: scale(0.6); transition: all 0.3s var(--ease); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Button ripple ---------- */
.ripple {
  position: absolute; z-index: 0; pointer-events: none;
  width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: ripple 0.7s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(18); opacity: 0; } }

/* ---------- Velocity marquees (JS-driven) ---------- */
[data-velocity] { animation: none !important; will-change: transform; }

/* ---------- Image wipe reveals ---------- */
.about__media.reveal img,
.post.reveal .post__img img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease) 0.15s, transform 0.8s var(--ease);
}
.about__media.reveal.in img,
.post.reveal.in .post__img img { clip-path: inset(0 0 0 0); }
.hero__stage.reveal { transform: none; }

/* ---------- Solution icon bob ---------- */
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }

/* ---------- Testimonial autoplay progress ---------- */
.testi__dots button { position: relative; overflow: hidden; }
.testi__dots button.active { background: var(--tint-strong); }
.testi__dots button.active::after {
  content: ""; position: absolute; inset: 0; background: var(--red);
  transform-origin: 0 50%; animation: dotFill 6s linear forwards;
}
@keyframes dotFill { from { transform: scaleX(0); } }

/* ---------- Brands: orbit ---------- */
.brands { overflow: hidden; }
.brands::before {
  content: ""; position: absolute; right: -10%; top: 0; width: 70%; height: 100%;
  background: radial-gradient(closest-side, rgba(195, 1, 1, 0.12), transparent);
  pointer-events: none;
}
.brands__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; position: relative; }
.brands__lead { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 440px; }

.brand-info {
  position: relative; display: flex; gap: 18px; align-items: center;
  padding: 18px; margin-bottom: 30px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px var(--shadow);
  min-height: 150px;
}
.brand-info__logo {
  width: 110px; height: 110px; flex-shrink: 0; border-radius: 16px;
  display: grid; place-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--line);
}
.brand-info__logo img { max-height: 70px; object-fit: contain; }
.brand-info__cat { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-2); }
.brand-info h3 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin: 4px 0 6px; }
.brand-info p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.brand-info .link-arrow { font-size: 14px; margin-top: 6px; }
.brand-info__index { position: absolute; top: 14px; right: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brand-info__index b { color: var(--fg); }
.brand-info.swap .brand-info__logo,
.brand-info.swap .brand-info__text { animation: infoSwap 0.55s var(--ease); }
@keyframes infoSwap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

.orbit {
  --dur1: 46s; --dur2: 74s;
  position: relative; width: min(620px, 100%); aspect-ratio: 1; margin-inline: auto;
  container-type: inline-size;
}
.orbit__core {
  position: absolute; left: 50%; top: 50%; width: 22cqw; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--red-2), var(--red) 50%, var(--red-deep));
  box-shadow: 0 0 0 10px rgba(195, 1, 1, 0.08), 0 30px 60px -10px rgba(195, 1, 1, 0.6);
}
.orbit__core img { width: 55%; filter: brightness(0) invert(1); }
.orbit__core::before, .orbit__core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--red); animation: corePulse 3.2s var(--ease) infinite;
}
.orbit__core::after { animation-delay: 1.6s; }
@keyframes corePulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }

.orbit__ring { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.orbit__ring::before {
  content: ""; position: absolute; inset: calc(50% - var(--r)); border-radius: 50%;
  border: 1px dashed var(--tint-strong);
}
.orbit__ring--1 { --n: 6; --r: 26cqw; --s: clamp(54px, 15cqw, 94px); --dur: var(--dur1); }
.orbit__ring--2 { --n: 10; --r: 43cqw; --s: clamp(46px, 12.5cqw, 80px); --dur: var(--dur2); animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit__comet {
  position: absolute; inset: 7cqw; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(195, 1, 1, 0.9) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: spin 5s linear infinite;
}

.orbit__node {
  position: absolute; left: 50%; top: 50%;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--r)) rotate(calc(-360deg / var(--n) * var(--i)));
  z-index: 1;
}
.orbit__chip {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 13%;
  border-radius: 50%; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -14px var(--shadow);
  animation: spin var(--dur) linear infinite reverse;
  transition: scale 0.45s var(--ease), box-shadow 0.35s;
}
.orbit__ring--2 .orbit__chip { animation-direction: normal; }
.orbit__chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.orbit__node.active { z-index: 3; }
.orbit__node.active .orbit__chip {
  scale: 1.22;
  box-shadow: 0 0 0 3px var(--red), 0 0 0 9px rgba(195, 1, 1, 0.18), 0 20px 40px -12px rgba(195, 1, 1, 0.6);
}
.orbit:hover .orbit__ring,
.orbit:hover .orbit__chip,
.orbit:focus-within .orbit__ring,
.orbit:focus-within .orbit__chip { animation-play-state: paused; }
.orbit__node:focus-visible { outline: none; }
.orbit__node:focus-visible .orbit__chip { box-shadow: 0 0 0 3px var(--fg); }

.brand-rows { margin-top: 72px; display: grid; gap: 16px; transform: rotate(-2deg) scale(1.04); }
.brand-rows .logo-marquee { margin-top: 0; }
.brand-rows .logo-chip { filter: none; opacity: 1; }

/* ---------- Footer wordmark ---------- */
.footer__mark {
  --mx: 50%; --my: 50%;
  font-size: clamp(80px, 22vw, 340px); font-weight: 800; line-height: 0.78; letter-spacing: -0.06em;
  text-align: center; white-space: nowrap; user-select: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--red), transparent 60%);
  -webkit-background-clip: text; background-clip: text;
  padding-top: 10px; margin-bottom: -0.06em; overflow: hidden;
  transform: translateY(40%); opacity: 0;
  transition: transform 1.4s var(--ease), opacity 1.4s var(--ease);
}
.footer__mark.in { transform: none; opacity: 1; }

@media (max-width: 1100px) {
  .brands__grid { grid-template-columns: 1fr; }
  .orbit { width: min(560px, 100%); }
}
@media (max-width: 760px) {
  .brand-info { flex-direction: column; align-items: flex-start; }
  .brand-info__logo { width: 100%; height: 100px; }
  .brand-rows { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w__i { transform: none; }
  .footer__mark { transform: none; opacity: 1; }
  .about__media.reveal img, .post.reveal .post__img img { clip-path: none; }
}

/* ---------- Shared: breadcrumbs & filter chips ---------- */
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--red-2); }
.chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.chip span { min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--tint); text-align: center; }
.chip:hover { color: var(--fg); border-color: var(--tint-strong); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.chip.active span { background: rgba(0, 0, 0, 0.22); }
