/* =====================================================================
   KOBALT — luxury industrial theme
   ===================================================================== */
:root {
  --ink: #0c0e11;
  --ink-2: #111418;
  --surface: #161a1f;
  --surface-2: #1d2228;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f2f3f5;
  --muted: #8a919b;
  --accent: #14a39a;
  --accent-2: #5fd6cc;
  --accent-3: #0b7f78;
  --cobalt: #14a39a;
  --cobalt-2: #7d9bff;
  --ivory: #e8e7e3;
  --ivory-2: #d9d8d3;
  --ivory-ink: #0f1114;
  --ivory-muted: #575d66;

  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-scale: .8;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 6px;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
html[lang="ar"] {
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", "Inter", sans-serif;
  --f-mono: "Readex Pro", sans-serif;
  --display-scale: .7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1rem/1.7 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.center { text-align: center; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Typography ---------- */
.display { font-family: var(--f-display); font-weight: 700; font-stretch: 115%; letter-spacing: -.02em; line-height: .98; text-transform: uppercase; }
html[lang="ar"] .display { font-weight: 600; font-stretch: normal; letter-spacing: 0; line-height: 1.35; text-transform: none; }
.h2 { font-size: calc(clamp(2rem, 3.6vw, 3.5rem) * var(--display-scale)); margin-bottom: .5em; }
.accent {
  color: var(--accent);
}
html[lang="ar"] .accent { font-style: normal; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px;
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow i { width: 10px; height: 10px; background: currentColor; display: block; clip-path: polygon(0 0, 100% 50%, 0 100%); }
html[dir="rtl"] .eyebrow i { transform: scaleX(-1); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.eyebrow--dark { color: var(--accent-3); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: var(--line-2); --fill: var(--text); --fill-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 1.15em 2em; border-radius: 3px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 .82rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
html[lang="ar"] .btn { letter-spacing: 0; font-size: .98rem; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--fill-fg); border-color: var(--fill); }
.btn span { position: relative; display: inline-block; }
.btn--accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); --fill: var(--text); }
.btn--line { --bd: var(--line-2); }
.btn--sm { padding: .8em 1.5em; font-size: .74rem; }
.btn--block { width: 100%; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
html[dir="rtl"] .ulink { background-position: 100% 100%; }
.ulink:hover { background-size: 100% 1px; }

/* ---------- Loader / progress / cursor / grain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center;
  transition: transform 1s var(--ease-io) .1s, visibility 0s 1.2s;
}
.loader.is-done { transform: translateY(-100%); visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; color: var(--accent); }
.loader .logo__mark { width: 54px; height: 54px; }
.loader .logo__mark path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.4s var(--ease) forwards; }
.loader__word { font: 800 1.1rem/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: .3em; color: var(--text); padding-inline-start: .6em; }
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: load 1.3s var(--ease) forwards; }
html[dir="rtl"] .loader__bar i { transform-origin: right; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress { transform-origin: right; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 150; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
  .cursor__ring {
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(20, 163, 154, .6);
    display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
  }
  .cursor__ring em { font: 600 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
  .cursor.is-label .cursor__ring em { opacity: 1; }
  .cursor.is-label .cursor__dot, .cursor.is-hidden { opacity: 0; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  transition: transform .6s var(--ease), background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(7, 9, 13, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.logo__mark { width: 34px; height: 34px; color: var(--accent); }
.logo__text { font: 800 1.15rem/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: .14em; }
.logo__img { height: 40px; width: auto; }

.nav { display: flex; gap: 34px; margin-inline: auto; }
.nav__link { position: relative; font-size: .88rem; font-weight: 500; color: rgba(238, 240, 244, .78); overflow: hidden; display: block; height: 1.7em; }
.nav__link span { display: block; transition: transform .5s var(--ease); }
.nav__link span::after { content: attr(data-text); position: absolute; inset-inline-start: 0; top: 100%; color: var(--accent); }
.nav__link:hover span, .nav__link.is-active span { transform: translateY(-100%); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 4px; border: 1px solid var(--line); }
.lang a { min-width: 34px; padding: .55em .7em; border-radius: 2px; text-align: center; font: 600 .72rem/1 "JetBrains Mono", monospace; letter-spacing: .06em; color: var(--muted); transition: color .3s, background .3s; }
.lang a[data-lang="ar"] { font: 600 .9rem/.8 "IBM Plex Sans Arabic", "Noto Kufi Arabic", sans-serif; }
.lang a:hover { color: var(--text); }
.lang a.is-active { background: var(--accent); color: #fff; }

.burger { display: none; width: 46px; height: 46px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline-start: 13px; width: 18px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.menu__bg { position: absolute; inset: 0; background: var(--ink-2); clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease-io); }
html[dir="rtl"] .menu__bg { clip-path: circle(0% at 40px 40px); }
.menu__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: var(--header-h); }
.menu__nav { display: grid; gap: 4px; }
.menu__nav a {
  font: 700 calc(clamp(2rem, 8vw, 3.4rem) * var(--display-scale))/1.15 var(--f-display); text-transform: uppercase; font-stretch: 110%; display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease), color .3s;
}
.menu__nav a small { font: 500 .75rem var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.menu__nav a:hover { color: var(--accent); }
.menu__info { display: grid; gap: 6px; color: var(--muted); font-size: .92rem; opacity: 0; transition: opacity .6s .5s; }
.menu-open .menu { visibility: visible; pointer-events: auto; }
.menu-open .menu__bg { clip-path: circle(150% at calc(100% - 40px) 40px); }
html[dir="rtl"].menu-open .menu__bg { clip-path: circle(150% at 40px 40px); }
.menu-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .06s); }
.menu-open .menu__info { opacity: 1; }
.menu-open body { overflow: hidden; }

/* ---------- Reveal animations ---------- */
.js .reveal-up { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal-up.is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform .85s var(--ease); transition-delay: calc(var(--d) * 40ms); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(1000px 700px at 78% 45%, rgba(20, 163, 154, .10), transparent 60%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 100% 80px, linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 80px 100%, var(--ink); }
.hero__globe { position: absolute; top: 50%; inset-inline-end: -6vw; width: min(64vw, 980px); aspect-ratio: 1; transform: translateY(-50%); cursor: grab; }
.hero__globe:active { cursor: grabbing; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink) 18%, transparent 62%), linear-gradient(0deg, var(--ink) 2%, transparent 30%); }
html[dir="rtl"] .hero__veil { background: linear-gradient(-90deg, var(--ink) 18%, transparent 62%), linear-gradient(0deg, var(--ink) 2%, transparent 30%); }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; pointer-events: none; }
.hero__inner a, .hero__inner p { pointer-events: auto; }
.hero__title { font-size: calc(clamp(2.5rem, 4.7vw, 5.2rem) * var(--display-scale)); max-width: 18ch; margin-bottom: 40px; }
html[lang="ar"] .hero__title { max-width: 15ch; }
html[lang="fr"] .hero__title { font-size: calc(clamp(2.2rem, 3.9vw, 4.3rem) * var(--display-scale)); max-width: 21ch; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 64px; }
.hero__lead { max-width: 470px; color: var(--muted); font-size: 1.04rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__eyebrow, .hero__bottom { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .25s, transform .8s var(--ease) .25s; }
.is-ready .hero__eyebrow, .is-ready .hero__bottom { opacity: 1; transform: none; }
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.hero__hub { display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(20, 163, 154, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(20, 163, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 163, 154, 0); } }
.hero__scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .24em; font-size: .68rem; }
html[lang="ar"] .hero__scroll { letter-spacing: 0; font-size: .82rem; }
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Ticker & marquees ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 22px 0; }
.ticker__track, .marquee__track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { font: 500 .82rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
html[lang="ar"] .ticker span { letter-spacing: 0; font-size: 1rem; }
.ticker b, .marquee b { color: var(--accent); font-weight: 400; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker__track, html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(96px, 13vw, 180px); }
.section--tight { padding-block: 72px 140px; }
.section--surface { background: var(--ink-2); }
.section--ivory { background: var(--ivory); color: var(--ivory-ink); }
.section--ivory ::selection { background: var(--ivory-ink); color: var(--ivory); }
.section--ivory .accent { color: var(--accent-3); }
.head { max-width: 900px; margin-bottom: clamp(56px, 7vw, 96px); }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head--row .h2 { margin-bottom: 0; }
.head__lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }

/* About */
.statement { font-size: calc(clamp(1.8rem, 3.4vw, 3.2rem) * var(--display-scale)); line-height: 1.08; max-width: 26ch; margin-bottom: clamp(72px, 10vw, 140px); }
html[lang="ar"] .statement { line-height: 1.6; max-width: 26ch; }
.js .statement .word { opacity: .14; transition: opacity .4s; }
.js .statement .word.is-lit { opacity: 1; }
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: 64px; border-top: 1px solid rgba(21, 23, 28, .14); }
.about .h2 { font-size: calc(clamp(1.9rem, 3vw, 2.8rem) * var(--display-scale)); }
.about__text p { color: var(--ivory-muted); font-size: 1.06rem; margin-top: 1.1em; }
.about__cards { display: grid; gap: 20px; perspective: 1000px; }
.vm { position: relative; padding: 36px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(21, 23, 28, .07); box-shadow: 0 30px 60px -40px rgba(21, 23, 28, .35); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.vm__icon { width: 52px; height: 52px; border-radius: 4px; display: grid; place-items: center; background: var(--ivory-ink); margin-bottom: 22px; }
.vm__icon svg { width: 22px; height: 22px; fill: var(--accent); }
.vm h3 { font: 700 1.35rem/1.25 var(--f-display); margin-bottom: 10px; }
.vm p { color: var(--ivory-muted); }

/* Stats */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 64px 32px; display: grid; gap: 10px; min-width: 0; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat strong { font-size: calc(clamp(2.8rem, 5vw, 4.6rem) * var(--display-scale)); color: var(--text); }
.stat strong::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-top: 18px; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Services list */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 70px 60px minmax(0, 1.1fr) minmax(0, 1fr) 56px; align-items: center; gap: 28px;
  padding: 40px 12px; border-bottom: 1px solid var(--line); isolation: isolate; transition: padding .6s var(--ease);
}
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 163, 154, .10), transparent 70%); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
html[dir="rtl"] .svc::before { background: linear-gradient(-90deg, rgba(20, 163, 154, .10), transparent 70%); }
.svc:hover::before { transform: none; }
.svc:hover { padding-inline: 32px; }
.svc__num { font: 500 .8rem var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.svc__icon { width: 60px; height: 60px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .5s, border-color .5s; }
.svc__icon svg { width: 22px; height: 22px; fill: var(--text); transition: fill .5s; }
.svc:hover .svc__icon { background: var(--accent); border-color: var(--accent); }
.svc:hover .svc__icon svg { fill: #fff; }
.svc__title { font: 700 clamp(1.3rem, 2vw, 1.9rem)/1.2 var(--f-display); transition: color .4s; }
.svc:hover .svc__title { color: var(--accent); }
.svc__body { color: var(--muted); font-size: .95rem; }
.svc__arrow { width: 56px; height: 56px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .6s var(--ease), background .4s; }
.svc__arrow svg { width: 22px; height: 22px; }
.svc:hover .svc__arrow { background: var(--text); color: var(--ink); transform: rotate(45deg); }
html[dir="rtl"] .svc:hover .svc__arrow { transform: rotate(-45deg); }
.svc-float {
  position: fixed; top: 0; left: 0; z-index: 60; width: 280px; height: 200px; margin: -100px 0 0 -140px; pointer-events: none;
  border-radius: 16px; overflow: hidden; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease);
  background: radial-gradient(circle at 30% 20%, #0f3a38, #0e131c 70%); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.svc-float.is-on { opacity: 1; transform: scale(1); }
.svc-float__item { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .35s; }
.svc-float__item.is-on { opacity: 1; }
.svc-float__item img { width: 100%; height: 100%; object-fit: cover; }
.svc-float__item svg { width: 90px; height: 90px; fill: var(--accent); }

/* Product cards & rail */
.rail { overflow-x: auto; scrollbar-width: none; cursor: grab; padding-block: 10px 40px; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; }
.rail.is-drag .card { pointer-events: none; }
.rail__track { display: flex; gap: 24px; width: max-content; padding-inline: var(--gutter); }
.rail .card { width: clamp(280px, 30vw, 420px); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .5s;
}
.card:hover { border-color: rgba(20, 163, 154, .55); }
.card__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); user-select: none; }
.card:hover .card__media img { transform: scale(1.07); }
.card__placeholder {
  width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center;
  background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 100% 28px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 28px 100%, radial-gradient(circle at 70% 30%, rgba(20, 163, 154, .28), transparent 55%), #15191e;
}
.card__placeholder svg { width: 34%; max-width: 120px; fill: #e9ebee; transition: transform 1s var(--ease); }
.card:hover .card__placeholder svg { transform: scale(1.08) rotate(-4deg); }
.card__num { position: absolute; top: 16px; inset-inline-start: 16px; font: 500 .72rem var(--f-mono); letter-spacing: .1em; color: #fff; background: var(--accent); padding: 5px 9px; border-radius: 2px; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font: 700 1.3rem/1.25 var(--f-display); }
.card__body p { color: var(--muted); font-size: .94rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font: 500 .76rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
html[lang="ar"] .card__more { letter-spacing: 0; font-size: .92rem; }
.card__more svg { width: 18px; transition: transform .5s var(--ease); }
.card:hover .card__more svg { transform: translateX(6px); }
html[dir="rtl"] .card:hover .card__more svg { transform: scaleX(-1) translateX(6px); }
.card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), transparent 40%); }
.card:hover .card__glare { opacity: 1; }

/* Pillars with spotlight */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { position: relative; padding: 48px 34px 56px; background: var(--ink); min-height: 360px; display: flex; flex-direction: column; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 163, 154, .16), transparent 45%); }
.pillars:hover .pillar::before { opacity: 1; }
.pillar__num { font: 500 .85rem/1 var(--f-mono); color: var(--accent); margin-bottom: auto; letter-spacing: .1em; }
.pillar__num::before { content: "["; }
.pillar__num::after { content: "]"; }
.pillar h3 { position: relative; font: 700 1.55rem/1.2 var(--f-display); margin: 80px 0 12px; }
.pillar p { position: relative; color: var(--muted); font-size: .95rem; }

/* Process timeline */
.process { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 140px); }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.process__head p { color: var(--ivory-muted); max-width: 420px; font-size: 1.06rem; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.timeline__line { position: absolute; top: 30px; bottom: 30px; inset-inline-start: 29px; width: 1px; background: rgba(21, 23, 28, .14); }
.timeline__line i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--accent-3), var(--accent)); transform-origin: top; transform: scaleY(0); }
.tstep { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 28px; padding: 30px 0; }
.tstep__dot {
  position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory); border: 1px solid rgba(21, 23, 28, .22); border-radius: 4px; font: 500 1rem var(--f-mono); transition: background .5s, color .5s, border-color .5s;
}
.tstep.is-active .tstep__dot { background: var(--accent); color: #fff; border-color: var(--accent); }
.tstep h3 { font: 700 1.5rem/1.25 var(--f-display); margin-bottom: 8px; padding-top: 10px; }
.tstep p { color: var(--ivory-muted); }

/* Sectors marquee */
.sectors { overflow: hidden; padding-bottom: clamp(80px, 10vw, 140px); }
.marquee { padding-block: 10px; }
.marquee__track { gap: 40px; animation-duration: 60s; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee span { font-size: calc(clamp(2.2rem, 4.6vw, 4.2rem) * var(--display-scale)); white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(242, 243, 245, .28); transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* Quote */
.quote { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 200px); background: radial-gradient(900px 500px at 50% 130%, rgba(20, 163, 154, .35), transparent 65%), linear-gradient(180deg, var(--ink), #08201f); border-block: 1px solid var(--line); }
.quote__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 48px; }
.quote__mark { position: absolute; top: 50%; left: 50%; width: min(70vw, 640px); transform: translate(-50%, -50%); color: rgba(20, 163, 154, .16); animation: spin 80s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.quote h2 { position: relative; font-size: calc(clamp(1.9rem, 3.8vw, 3.6rem) * var(--display-scale)); max-width: 22ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.06rem; max-width: 460px; }
.contact__list { margin: 56px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { color: var(--muted); font: 500 .76rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .contact__list dt { letter-spacing: 0; font-size: .92rem; }
.contact__list dd { margin: 0; font-size: 1.06rem; }
.form { display: grid; gap: 8px; padding: clamp(28px, 4vw, 56px); border-radius: 6px; background: linear-gradient(160deg, var(--surface), var(--ink-2)); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.fl { position: relative; display: block; padding-top: 22px; margin-bottom: 18px; }
.fl input, .fl textarea, .fl select {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: 400 1.02rem var(--f-body); border-radius: 0; transition: border-color .4s;
}
.fl textarea { resize: vertical; min-height: 110px; }
.fl select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2314a39a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center / 18px; cursor: pointer; }
html[dir="rtl"] .fl select { background-position: left center; }
.fl select option { background: var(--surface); color: var(--text); }
html[dir="rtl"] .fl input[dir="ltr"] { text-align: right; }
.fl input:focus, .fl textarea:focus, .fl select:focus { outline: none; border-color: var(--accent); }
.fl > span { position: absolute; inset-inline-start: 0; top: 34px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease), color .4s; }
html[dir="rtl"] .fl > span { transform-origin: right top; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span,
.fl--select > span { transform: translateY(-30px) scale(.78); color: var(--accent); }
.fl--select > span { top: 34px; }
.form .btn { margin-top: 18px; }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 14px; font-size: .95rem; }
.alert--ok { background: rgba(34, 197, 94, .1); color: #86efac; border: 1px solid rgba(34, 197, 94, .35); }
.alert--error { background: rgba(239, 68, 68, .1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Footer */
.footer { position: relative; background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-bottom: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.footer__cta h2 { font-size: calc(clamp(2.2rem, 4.8vw, 4.8rem) * var(--display-scale)); max-width: 14ch; }
.circle-btn {
  flex: none; width: 180px; height: 180px; border-radius: 4px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  background: var(--accent); color: #fff; font: 600 .8rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  transition: transform .6s var(--ease); padding: 20px;
}
html[lang="ar"] .circle-btn { letter-spacing: 0; font-size: .95rem; }
.circle-btn svg { width: 28px; transition: transform .6s var(--ease); }
.circle-btn:hover svg { transform: translateX(6px); }
html[dir="rtl"] .circle-btn:hover svg { transform: scaleX(-1) translateX(6px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-block: 72px; }
.footer__brand p { color: var(--muted); max-width: 360px; margin-top: 22px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: .95rem; }
.footer__col h4 { color: var(--accent); font: 500 .74rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
html[lang="ar"] .footer__col h4 { letter-spacing: 0; font-size: .92rem; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials a:hover svg { fill: #fff; }
.socials svg { width: 16px; height: 16px; fill: var(--text); }
.footer__word {
  font: 900 clamp(4.4rem, 18vw, 19rem)/.8 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: -.03em; text-align: center; user-select: none;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 163, 154, .35);
  background: linear-gradient(180deg, rgba(20, 163, 154, .16), transparent 80%); -webkit-background-clip: text; background-clip: text;
  margin-bottom: -.06em; direction: ltr;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.to-top:hover { color: var(--accent); }

.wa { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .6); transition: transform .4s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Inner pages ---------- */
.phero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.phero__glow { position: absolute; width: 900px; height: 900px; top: -520px; inset-inline-end: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 163, 154, .22), transparent 65%); pointer-events: none; }
.phero h1 { font-size: calc(clamp(2.4rem, 5vw, 4.8rem) * var(--display-scale)); max-width: 18ch; position: relative; }
.phero__lead { color: var(--muted); max-width: 560px; font-size: 1.08rem; margin-top: 30px; position: relative; }
.phero--sm { padding-bottom: 36px; }
.phero--full { min-height: 100svh; display: grid; place-items: center; }
.phero--full h1 { margin-inline: auto; }
.phero--full .phero__lead { margin: 24px auto 40px; }
.big404 { display: block; font-size: clamp(7rem, 22vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.back { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); position: relative; }
.back svg { width: 20px; }
.back:hover { color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filters a { padding: .8em 1.4em; border-radius: 3px; font-family: var(--f-mono); border: 1px solid var(--line-2); font-size: .88rem; color: var(--muted); transition: all .35s var(--ease); }
.filters a:hover { color: var(--text); border-color: var(--text); }
.filters a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty { color: var(--muted); padding: 80px 0; text-align: center; }
.pdetail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.pdetail__media { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; position: sticky; top: calc(var(--header-h) + 24px); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.pdetail__media img { width: 100%; height: 100%; object-fit: cover; }
.pdetail h1 { font-size: calc(clamp(2rem, 3.6vw, 3.4rem) * var(--display-scale)); margin-bottom: 24px; }
.pdetail__lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; }
.pdetail .btn { margin-top: 36px; }
.prose { color: #c3c8d2; font-size: 1.04rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--f-display); color: var(--text); font-weight: 700; margin-top: 1.6em; }
.prose h2 { font-size: calc(2.4rem * var(--display-scale)); }
.prose h3 { font-size: calc(1.8rem * var(--display-scale)); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; }
.prose blockquote { margin-inline: 0; padding: .4em 1.4em; border-inline-start: 3px solid var(--accent); font: 600 1.3rem/1.5 var(--f-display); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 24px; }
  .svc { grid-template-columns: 50px 52px 1fr 56px; }
  .svc__body { grid-column: 3 / 4; grid-row: 2; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__actions { margin-inline-start: auto; }
  .hero__globe { width: 120vw; inset-inline-end: -40vw; top: 44%; opacity: .55; }
  .about, .process, .contact, .pdetail { grid-template-columns: 1fr; }
  .process__head, .pdetail__media { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 44px 24px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .svc-float { display: none; }
}
@media (max-width: 680px) {
  :root { --header-h: 72px; }
  .lang a { min-width: 30px; padding-inline: .5em; }
  .hero__foot { justify-content: center; }
  .hero__hub, .hero__badges { display: none; }
  .display { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .hero__title { max-width: none !important; }
  html[lang="fr"] .display { font-stretch: 100%; }
  html[lang="fr"] .h2 { font-size: 1.75rem; }
  .stat { padding: 34px 16px; }
  .stat strong { font-size: calc(2.1rem * var(--display-scale) / .8); overflow-wrap: anywhere; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .logo { gap: 8px; }
  .logo__text { font-size: .98rem; letter-spacing: .1em; }
  .logo__mark { width: 30px; height: 30px; }
  .burger { width: 42px; height: 42px; }
  .burger span { inset-inline-start: 11px; }
  .burger span:first-child { top: 17px; }
  .burger span:last-child { top: 23px; }
  .menu-open .burger span:first-child, .menu-open .burger span:last-child { top: 20px; }
  html[lang="fr"] .hero__title { font-size: 1.85rem; font-stretch: 100%; }
  .js [data-split] .w, .js [data-split] .w > span { max-width: 100%; }
  .hero__buttons { width: 100%; }
  .hero__buttons .btn { flex: 1 1 100%; white-space: nowrap; }
  .hero__globe { opacity: .7; top: 58%; }
  .svc { grid-template-columns: 40px 1fr 44px; gap: 14px 16px; padding: 30px 0; }
  .svc:hover { padding-inline: 0; }
  .svc__icon { display: none; }
  .svc__title { grid-column: 2; }
  .svc__body { grid-column: 2 / 4; grid-row: 2; }
  .svc__arrow { width: 44px; height: 44px; grid-column: 3; grid-row: 1; }
  .pillars, .grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar h3 { margin-top: 30px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .circle-btn { width: 140px; height: 140px; }
  .tstep { grid-template-columns: 48px 1fr; gap: 18px; }
  .tstep__dot { width: 48px; height: 48px; font-size: 1.15rem; }
  .timeline__line { inset-inline-start: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal-up, .js [data-split] .w > span { opacity: 1; transform: none; }
  .js .statement .word { opacity: 1; }
  .hero__eyebrow, .hero__bottom { opacity: 1; transform: none; }
}

/* ---------- Industrial details ---------- */
.ticker { position: relative; }
.ticker::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, transparent 10px 20px); opacity: .9; }
.section--ivory { background: linear-gradient(rgba(15,17,20,.045) 1px, transparent 1px) 0 0 / 100% 64px, linear-gradient(90deg, rgba(15,17,20,.045) 1px, transparent 1px) 0 0 / 64px 100%, var(--ivory); }
.vm { border-radius: 6px; box-shadow: none; border: 1px solid rgba(15, 17, 20, .1); }
.vm::before, .card::before { content: ""; position: absolute; top: -1px; inset-inline-start: -1px; width: 22px; height: 22px; border-top: 2px solid var(--accent); border-inline-start: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.card::before { opacity: 0; transition: opacity .4s; }
.card:hover::before { opacity: 1; }
.pillar { border-top: 3px solid transparent; transition: border-color .4s; }
.pillar:hover { border-top-color: var(--accent); }
.head .h2, .phero h1 { text-wrap: balance; }
.hero__lead, .head__lead, .about__text p { text-wrap: pretty; }

.about > *, .process > *, .contact > *, .pdetail > *, .head--row > * { min-width: 0; }

/* ---------- Line icons ---------- */
.ico { display: block; }
.ico g { transition: stroke-width .3s; }
.vm__icon, .svc__icon { position: relative; background: linear-gradient(145deg, rgba(20, 163, 154, .16), rgba(20, 163, 154, .03)); border: 1px solid rgba(20, 163, 154, .35); }
.vm__icon { width: 58px; height: 58px; background: var(--ivory-ink); border-color: var(--ivory-ink); }
.vm__icon .ico { width: 32px; height: 32px; color: var(--accent-2); }
.svc__icon .ico { width: 30px; height: 30px; color: var(--accent-2); }
.svc:hover .svc__icon { background: var(--accent); border-color: var(--accent); }
.svc:hover .svc__icon .ico { color: #fff; }
.svc-float__item .ico { width: 96px; height: 96px; color: var(--accent-2); }
.svc-float__item .ico g, .card__placeholder .ico g { stroke-width: 1; }
.card__placeholder .ico { width: 38%; max-width: 130px; height: auto; color: #dfe6f5; }
.card:hover .card__placeholder .ico { color: var(--accent-2); }
.vm__icon::after, .svc__icon::after { content: ""; position: absolute; top: -1px; inset-inline-end: -1px; width: 6px; height: 6px; background: var(--accent); }

/* Product photos: unified industrial grade */
.card__media img, .pdetail__media img { filter: saturate(.82) contrast(1.05); }
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(12, 14, 17, .55)); }
.card:hover .card__media img { filter: saturate(1) contrast(1.05); }
.card__num { z-index: 1; }

@media (max-width: 1024px), (hover: none) { .grain { display: none; } }
