/* ============================================================
   BASAMAT TASMIM — Design System  v1.0
   Print-inspired: CMYK accents on deep ink
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink-900: #07080d;
  --ink-800: #0b0d14;
  --ink-700: #10131d;
  --ink-600: #161a28;
  --ink-500: #1d2233;

  --c-cyan: #2de2ff;
  --c-violet: #7c5cff;
  --c-magenta: #ff3d8a;
  --c-yellow: #ffd166;

  --grad-brand: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-violet) 48%, var(--c-magenta) 100%);
  --grad-soft: linear-gradient(135deg, rgba(45,226,255,.14), rgba(124,92,255,.14), rgba(255,61,138,.14));

  --text-1: #f2f5ff;
  --text-2: #aeb8d0;
  --text-3: #76829e;

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-display-ar: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-body-ar: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-display-en: "Space Grotesk", "Outfit", system-ui, sans-serif;
  --font-body-en: "Manrope", "Outfit", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.2rem);

  --shadow-1: 0 10px 40px -12px rgba(0, 0, 0, .55);
  --shadow-2: 0 30px 80px -20px rgba(0, 0, 0, .65);
  --glow-cyan: 0 0 40px -8px rgba(45, 226, 255, .4);
  --glow-magenta: 0 0 40px -8px rgba(255, 61, 138, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --header-h: 76px;
}

/* Arabic-first typography, switched by html[lang] */
html[lang="ar"] body { font-family: var(--font-body-ar); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .display, html[lang="ar"] .btn, html[lang="ar"] .nav-links a,
html[lang="ar"] .stat__num, html[lang="ar"] .chip, html[lang="ar"] .tab,
html[lang="ar"] .fstep__t, html[lang="ar"] .machine__name {
  font-family: var(--font-display-ar);
}
html[lang="en"] body { font-family: var(--font-body-en); }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] .display, html[lang="en"] .btn, html[lang="en"] .nav-links a,
html[lang="en"] .stat__num, html[lang="en"] .chip, html[lang="en"] .tab,
html[lang="en"] .fstep__t, html[lang="en"] .machine__name {
  font-family: var(--font-display-en);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink-500) var(--ink-900);
  overflow-x: clip; /* required together with body for correct RTL scroll origin */
}

body {
  background: var(--ink-900);
  color: var(--text-2);
  line-height: 1.75;
  font-size: clamp(.98rem, .92rem + .25vw, 1.06rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
html[dir="rtl"] .ic-flip { transform: scaleX(-1); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
strong { color: var(--text-1); font-weight: 600; }

::selection { background: rgba(124, 92, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-500); border-radius: 99px; border: 2px solid var(--ink-900); }
::-webkit-scrollbar-thumb:hover { background: #2a3147; }

/* skip link */
.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -100%;
  z-index: 300; background: var(--ink-600); color: var(--text-1);
  padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-strong);
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: clamp(4.2rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-cyan);
  padding: .42rem 1rem; border: 1px solid rgba(45, 226, 255, .25);
  border-radius: 99px; background: rgba(45, 226, 255, .06);
  margin-bottom: 1.2rem;
}
html[lang="ar"] .eyebrow { letter-spacing: .04em; }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px;
  background: var(--grad-brand); box-shadow: 0 0 12px var(--c-cyan);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }

.h2, h2.section-title, h1.section-title {
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem);
  font-weight: 800; line-height: 1.25; color: var(--text-1);
  letter-spacing: -.01em; text-wrap: balance;
}
.lead { font-size: clamp(1rem, .95rem + .35vw, 1.15rem); color: var(--text-2); max-width: 62ch; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 99px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease-spring), box-shadow .35s ease, background .3s ease, border-color .3s ease, color .3s ease;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary {
  background: var(--btn-bg); color: #fff;
  box-shadow: 0 12px 34px -10px rgba(124, 92, 255, .55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -10px rgba(255, 61, 138, .5); }
.btn--ghost {
  background: rgba(255, 255, 255, .04); color: var(--text-1);
  border-color: var(--line-strong); backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: rgba(45, 226, 255, .5); box-shadow: var(--glow-cyan); }
.btn--sm { padding: .6rem 1.25rem; font-size: .9rem; }
.btn--lg { padding: 1.1rem 2.4rem; font-size: 1.06rem; }

/* magnetic */
.magnetic { transform: translate3d(0, 0, 0); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--text-1);
  backdrop-filter: blur(10px);
}

/* ---------- Decorations ---------- */
.noise::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: .5;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.orb--cyan { background: rgba(45, 226, 255, .16); }
.orb--violet { background: rgba(124, 92, 255, .18); }
.orb--magenta { background: rgba(255, 61, 138, .13); }
@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3vw, -4vh, 0) scale(1.15); }
}

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}

/* Subtle site-wide grid — faint echo of the hero lines across all sections */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 25%, transparent 78%);
}
main#main, footer.site-footer { position: relative; z-index: 1; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--ink-900);
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader__mark { width: 84px; height: 84px; animation: pulse 1.4s var(--ease-out) infinite; }
.preloader__bar {
  width: 180px; height: 3px; border-radius: 99px; margin-top: 1.6rem;
  background: var(--ink-600); overflow: hidden; position: relative;
}
.preloader__bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--grad-brand); border-radius: 99px;
  animation: load 1.1s var(--ease-out) infinite;
}
@keyframes load { 0% { inset-inline-start: -40%; } 100% { inset-inline-start: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.92); } }
.preloader.is-done { opacity: 0; visibility: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  height: var(--header-h);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(9, 11, 17, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .6);
}
.nav { display: flex; align-items: center; gap: 1.4rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; }
.brand__mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 14px rgba(124, 92, 255, .45)); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.18rem; color: var(--text-1); letter-spacing: -.01em; }
html[lang="en"] .brand__name { font-family: var(--font-display-en); letter-spacing: .02em; font-size: 1.06rem; }
.brand__sub { font-size: .68rem; color: var(--text-3); letter-spacing: .12em; }
html[lang="en"] .brand__sub { letter-spacing: .18em; font-family: var(--font-body-en); }

.nav-links {
  display: flex; align-items: center; gap: .35rem;
  margin-inline: auto; padding: .4rem;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(12px);
}
.nav-links a {
  padding: .5rem 1.05rem; border-radius: 99px;
  font-size: .93rem; font-weight: 600; color: var(--text-2);
  transition: color .25s ease, background .25s ease;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a.is-active { color: #fff; background: rgba(124, 92, 255, .22); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .35); }

.nav-cta { display: flex; align-items: center; gap: .7rem; flex: none; }

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 99px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  font-size: .85rem; font-weight: 700; color: var(--text-1);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-spring);
}
.lang-toggle:hover { border-color: rgba(45, 226, 255, .5); box-shadow: var(--glow-cyan); transform: translateY(-1px); }
.lang-toggle svg { width: 15px; height: 15px; }

/* burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); position: relative; }
.burger span {
  position: absolute; inset-inline: 11px; height: 2px; border-radius: 2px;
  background: var(--text-1); transition: transform .35s var(--ease-out), opacity .25s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; display: grid; place-items: center;
  background: rgba(7, 8, 13, .92); backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { display: grid; gap: .4rem; text-align: center; padding: 0; }
.mobile-menu a {
  display: inline-block; padding: .7rem 1.6rem; border-radius: 14px;
  font-size: 1.5rem; font-weight: 800; color: var(--text-2);
  transition: color .25s ease, background .25s ease;
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: #fff; background: rgba(124, 92, 255, .18); }
.mobile-menu .btn { margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + clamp(2rem, 6vh, 4rem)) clamp(3rem, 8vh, 5rem);
  overflow: clip;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; position: relative; z-index: 2;
}
.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 4.6rem);
  font-weight: 900; line-height: 1.18; color: var(--text-1);
  letter-spacing: -.015em; text-wrap: balance;
  margin-bottom: 1.3rem;
}
.hero__title .grad-text { display: inline-block; }
.hero__lead { max-width: 54ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.6rem); }
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat__num {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800;
  color: var(--text-1); line-height: 1.15; letter-spacing: -.01em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { font-size: .85rem; color: var(--text-3); font-weight: 500; }

/* hero collage */
.hero__visual { position: relative; min-height: clamp(380px, 52vw, 560px); }
.hcard {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
  will-change: transform;
}
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(45, 226, 255, .12), transparent 40%, rgba(255, 61, 138, .16));
  mix-blend-mode: overlay;
}
.hcard--a { inset: 6% 4% 14% 0; z-index: 1; }
.hcard--b {
  width: 46%; aspect-ratio: 4 / 3; inset-inline-end: 0; bottom: 0; z-index: 3;
  border-radius: var(--radius-md);
}
.hcard--c {
  width: 34%; aspect-ratio: 1; top: 0; inset-inline-start: 8%; z-index: 4;
  border-radius: var(--radius-md);
}
.hfloat {
  position: absolute; z-index: 5;
  background: rgba(13, 16, 25, .78); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 16px;
  padding: .7rem 1.1rem; display: flex; align-items: center; gap: .6rem;
  font-size: .85rem; font-weight: 600; color: var(--text-1);
  box-shadow: var(--shadow-1);
  animation: floaty 5s ease-in-out infinite alternate;
}
.hfloat svg { width: 18px; height: 18px; flex: none; }
.hfloat--1 { top: 22%; inset-inline-end: -2%; animation-delay: .5s; }
.hfloat--2 { bottom: 26%; inset-inline-start: -3%; animation-delay: 1.2s; }
.hfloat small { display: block; font-weight: 500; color: var(--text-3); font-size: .72rem; }
@keyframes floaty { from { transform: translateY(-7px); } to { transform: translateY(9px); } }

/* hero badge avatars row */
.hero__trust {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
  font-size: .85rem; color: var(--text-3);
}
.hero__trust .dots { display: flex; }
.hero__trust .dots span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ink-900); margin-inline-start: -9px;
  background: var(--grad-brand); opacity: .9;
}
.hero__trust .dots span:first-child { margin-inline-start: 0; }
.hero__trust .dots span:nth-child(2) { background: linear-gradient(135deg, var(--c-cyan), var(--c-violet)); }
.hero__trust .dots span:nth-child(3) { background: linear-gradient(135deg, var(--c-violet), var(--c-magenta)); }
.hero__trust .dots span:nth-child(4) { background: linear-gradient(135deg, var(--c-magenta), var(--c-yellow)); }
.hero__trust strong { color: var(--text-1); }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; inset-inline-start: 50%; translate: -50% 0; z-index: 3;
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 99px;
  display: none; place-items: center;
}
.scroll-cue::before {
  content: ""; width: 4px; height: 8px; border-radius: 99px;
  background: var(--c-cyan); animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(-6px); opacity: 1; } 70% { transform: translateY(8px); opacity: .2; } }

/* ---------- Marquee ---------- */
.marquee-section { padding-block: clamp(1.6rem, 4vw, 2.6rem); border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); overflow: clip; }
.marquee { display: flex; gap: .75rem; overflow: hidden; user-select: none; }
.marquee + .marquee { margin-top: .75rem; }
.marquee__track {
  display: flex; gap: .75rem; flex: none; align-items: center;
  animation: marq 36s linear infinite;
  padding-inline-end: .75rem;
}
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-100% - .75rem)); } }
html[dir="rtl"] .marquee__track { animation-name: marq-rtl; }
@keyframes marq-rtl { to { transform: translateX(calc(100% + .75rem)); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.15rem; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 600; color: var(--text-2);
}
.marquee__item svg { width: 14px; height: 14px; opacity: .8; }
.marquee__item .k-cyan { color: var(--c-cyan); }
.marquee__item .k-mag { color: var(--c-magenta); }
.marquee__item .k-yel { color: var(--c-yellow); }

/* ---------- Bento services ---------- */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.2rem);
}
.bcell {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  transition: transform .5s var(--ease-out), border-color .4s ease, background .4s ease;
  display: flex; flex-direction: column; gap: .9rem;
}
.bcell:hover { transform: translateY(-6px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(124, 92, 255, .08), rgba(255, 255, 255, .02)); }
.bcell::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, .16), transparent 60%);
  pointer-events: none;
}
.bcell:hover::before { opacity: 1; }
.bcell--wide, .bcell--6 { grid-column: span 6; }
.bcell--12 { grid-column: span 12; }
.bcell--tall { grid-column: span 3; grid-row: span 2; }
.bcell--4 { grid-column: span 4; }
.bcell--8 { grid-column: span 8; }

.bcell__icon {
  width: 52px; height: 52px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong);
  color: var(--c-cyan);
  transition: transform .5s var(--ease-spring), color .4s ease;
}
.bcell__icon svg { width: 26px; height: 26px; }
.bcell:hover .bcell__icon { transform: rotate(-6deg) scale(1.08); color: var(--c-magenta); }
.bcell h3 { font-size: 1.22rem; font-weight: 700; color: var(--text-1); }
.bcell p { font-size: .95rem; color: var(--text-2); }
.bcell__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .4rem; }
.bcell__tags span {
  font-size: .74rem; padding: .3rem .7rem; border-radius: 99px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-3);
}
.bcell--feature .bcell__img { margin: 0 -.5rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.bcell--feature .bcell__img img { width: 100%; height: 220px; object-fit: cover; transition: transform .8s var(--ease-out); }
.bcell--feature:hover .bcell__img img { transform: scale(1.06); }

/* ---------- Coming-soon service ---------- */
.soon-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .06em;
  color: #0b0d14; padding: .35rem .9rem; border-radius: 99px;
  background: linear-gradient(135deg, var(--c-yellow), #ffb703);
  box-shadow: 0 8px 22px -8px rgba(255, 209, 102, .6);
  width: fit-content;
}
.soon-badge--float {
  position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 3;
}
.bcell--soon { border-style: dashed; border-color: rgba(255, 209, 102, .4); background: linear-gradient(180deg, rgba(255,209,102,.06), rgba(255,255,255,.015)); }
.svc-soon { opacity: 1; }
.svc-soon .svc-media img { filter: saturate(.85); }
.soon-inline { font-size: .85em; color: var(--c-yellow); font-weight: 700; white-space: nowrap; }

/* ---------- Showcase strip ---------- */
.showcase { overflow: clip; }
.showcase__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.2rem);
}
.shot {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.shot:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.shot:hover img { transform: scale(1.07); }
.shot__cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.6rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(7, 8, 13, .88));
  font-size: .88rem; font-weight: 600; color: var(--text-1);
}
.shot--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Machines ---------- */
.machines { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.9rem, 2vw, 1.4rem); }
.machine {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-700);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.machine:hover { transform: translateY(-6px); border-color: rgba(45, 226, 255, .4); }
.machine__media { aspect-ratio: 4 / 3; overflow: hidden; }
.machine__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.machine:hover .machine__media img { transform: scale(1.06); }
.machine__body { padding: 1.4rem 1.5rem 1.6rem; }
.machine__name { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: .35rem; }
.machine__desc { font-size: .9rem; color: var(--text-2); margin-bottom: 1rem; }
.machine__spec {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; color: var(--c-cyan);
  padding: .42rem .85rem; border-radius: 99px; width: fit-content;
  background: rgba(45, 226, 255, .07); border: 1px solid rgba(45, 226, 255, .22);
}

/* ---------- Numbers ---------- */
.numbers {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(124, 92, 255, .10), transparent),
    radial-gradient(600px 300px at 85% 100%, rgba(45, 226, 255, .08), transparent);
}
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; text-align: center; }
.number { padding: clamp(1.4rem, 3vw, 2.2rem) .8rem; border-inline-start: 1px solid var(--line); }
.number:first-child { border-inline-start: 0; }
.number__val {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="en"] .number__val { font-family: var(--font-display-en); }
.number__label { margin-top: .4rem; color: var(--text-2); font-size: .95rem; font-weight: 500; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.why__media { position: relative; }
.why__media img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2); aspect-ratio: 4 / 3.4; object-fit: cover;
}
.why__media .badge-float {
  position: absolute; bottom: -1.2rem; inset-inline-end: -1rem;
  background: rgba(13, 16, 25, .85); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: 1rem 1.4rem; box-shadow: var(--shadow-1);
}
.why__media .badge-float b { color: var(--text-1); font-size: 1.15rem; display: block; line-height: 1.3; }
.why__media .badge-float span { font-size: .8rem; color: var(--text-3); }
.feat-list { display: grid; gap: 1rem; margin-top: 1.8rem; }
.feat {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .35s ease, transform .4s var(--ease-out), background .35s ease;
}
.feat:hover { border-color: rgba(45, 226, 255, .35); transform: translateX(0) translateY(-3px); background: rgba(45, 226, 255, .045); }
.feat__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--c-cyan);
}
.feat__icon svg { width: 22px; height: 22px; }
.feat b { color: var(--text-1); font-size: 1.02rem; display: block; margin-bottom: .15rem; }
.feat p { font-size: .92rem; color: var(--text-2); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.fstep {
  position: relative; padding: 1.8rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: transform .5s var(--ease-out), border-color .4s ease;
}
.fstep:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .45); }
.fstep::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display-en);
  font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; opacity: .9;
  display: block; margin-bottom: 1rem;
}
.fstep__t { font-size: 1.12rem; font-weight: 700; color: var(--text-1); margin-bottom: .4rem; }
.fstep p { font-size: .92rem; color: var(--text-2); }
.fstep::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: 100%;
  width: clamp(.6rem, 2vw, 1.5rem); height: 1px;
  background: linear-gradient(90deg, rgba(124, 92, 255, .5), transparent);
}
.fstep:last-child::after { display: none; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 340px at 80% -10%, rgba(124, 92, 255, .28), transparent 60%),
    radial-gradient(560px 300px at 10% 110%, rgba(45, 226, 255, .18), transparent 60%),
    var(--ink-700);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: .9rem; }
.cta-band .lead { margin-inline: auto; margin-bottom: 2rem; }
.cta-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative; padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) clamp(2.4rem, 5vw, 4rem);
  overflow: clip;
}
.page-hero .crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-3); margin-bottom: 1.1rem;
}
.crumbs a { color: var(--text-3); transition: color .25s ease; }
.crumbs a:hover { color: var(--c-cyan); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--text-2); }

/* ---------- Projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.2rem; }
.tab {
  padding: .55rem 1.25rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  font-size: .9rem; font-weight: 600; color: var(--text-2);
  transition: all .3s ease;
}
.tab:hover { color: var(--text-1); border-color: var(--line-strong); }
.tab.is-active {
  color: #fff; background: rgba(124, 92, 255, .2);
  border-color: rgba(124, 92, 255, .45); box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .4);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); }
.gitem {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line); cursor: zoom-in; background: var(--ink-700);
  transition: opacity .4s ease, transform .5s var(--ease-out), border-color .4s ease;
}
.gitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease-out); }
.gitem:hover { border-color: var(--line-strong); }
.gitem:hover img { transform: scale(1.06); }
.gitem.is-hidden { display: none; }
.gitem__cap {
  position: absolute; inset-inline: .8rem; bottom: .8rem;
  padding: .5rem .9rem; border-radius: 12px;
  background: rgba(9, 11, 17, .72); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--text-1);
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s var(--ease-out);
}
.gitem:hover .gitem__cap { opacity: 1; transform: translateY(0); }
.gitem__cat {
  position: absolute; top: .8rem; inset-inline-start: .8rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 99px;
  background: rgba(45, 226, 255, .12); color: var(--c-cyan);
  border: 1px solid rgba(45, 226, 255, .3); backdrop-filter: blur(8px);
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(5, 6, 10, .9); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1000px, 100%); max-height: 82vh; border-radius: var(--radius-md);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.lightbox__close {
  position: absolute; top: 1.2rem; inset-inline-end: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--text-1);
  transition: background .3s ease, transform .3s var(--ease-spring);
}
.lightbox__close:hover { background: rgba(255, 61, 138, .25); transform: rotate(90deg); }
.lightbox__close svg { width: 20px; height: 20px; }

/* ---------- Services detail ---------- */
.svc-block {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center; padding-block: clamp(2.4rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.svc-block:last-child { border-bottom: 0; }
.svc-block:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1);
}
.svc-media .svc-num {
  position: absolute; top: -1.1rem; inset-inline-start: 1.4rem;
  font-family: var(--font-display-en);
  font-size: 1rem; font-weight: 700; color: #fff;
  padding: .45rem 1rem; border-radius: 99px; background: var(--grad-brand);
  box-shadow: 0 10px 24px -6px rgba(124, 92, 255, .55);
}
.svc-body h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; color: var(--text-1); margin-bottom: .8rem; }
.svc-body p { margin-bottom: 1.1rem; }
.svc-body ul { display: grid; gap: .55rem; }
.svc-body li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; }
.svc-body li svg { width: 17px; height: 17px; flex: none; margin-top: .35rem; color: var(--c-cyan); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 840px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .02); overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.faq details[open] { border-color: rgba(124, 92, 255, .4); background: rgba(124, 92, 255, .05); }
.faq summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 600; color: var(--text-1); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--c-cyan);
  transition: transform .35s var(--ease-out); line-height: 1; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--text-2); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.c-cards { display: grid; gap: 1rem; }
.c-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  transition: border-color .35s ease, transform .4s var(--ease-out);
}
.c-card:hover { border-color: rgba(45, 226, 255, .4); transform: translateY(-3px); }
a.c-card:hover { border-color: rgba(45, 226, 255, .55); }
.c-card__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: var(--c-cyan);
  background: var(--grad-soft); border: 1px solid var(--line-strong);
}
.c-card__icon svg { width: 22px; height: 22px; }
.c-card b { color: var(--text-1); display: block; font-size: 1rem; margin-bottom: .1rem; }
.c-card p, .c-card .val { font-size: .93rem; color: var(--text-2); }
a.c-card:hover .val { color: var(--c-cyan); }
.c-card .pending { color: var(--text-3); font-style: italic; }

.form-card {
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: var(--shadow-1);
}
.form-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--text-1); margin-bottom: .4rem; }
.form-card > p { font-size: .92rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-1); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1.05rem; border-radius: 12px;
  background: rgba(7, 8, 13, .6); border: 1px solid var(--line-strong);
  color: var(--text-1); font-size: .95rem; transition: border-color .3s ease, box-shadow .3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(45, 226, 255, .55); box-shadow: 0 0 0 3px rgba(45, 226, 255, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2376829e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.6rem; }
html[dir="rtl"] .field select { background-position: left 1rem center; }
.form-note { font-size: .78rem; color: var(--text-3); margin-top: .9rem; }

.map-wrap {
  margin-top: clamp(2rem, 5vw, 3.4rem); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); position: relative;
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) hue-rotate(180deg); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900), #05060a);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: clip;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); padding-bottom: 3rem; }
.footer-brand p { font-size: .92rem; margin-top: 1rem; max-width: 34ch; }
.fcol h4 { font-size: .95rem; font-weight: 700; color: var(--text-1); margin-bottom: 1.1rem; }
.fcol ul { display: grid; gap: .55rem; }
.fcol a, .fcol li span { font-size: .92rem; color: var(--text-2); transition: color .25s ease, padding .25s ease; }
.fcol a:hover { color: var(--c-cyan); }
.fcol .f-contact { display: flex; flex-direction: column; gap: .8rem; }
.f-contact .frow { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.f-contact svg { width: 17px; height: 17px; flex: none; margin-top: .28rem; color: var(--c-cyan); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--c-cyan); }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
[data-reveal="left"] { transform: translateX(-26px); }
html[dir="rtl"] [data-reveal="left"] { transform: translateX(26px); }
[data-reveal="right"] { transform: translateX(26px); }
html[dir="rtl"] [data-reveal="right"] { transform: translateX(-26px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- View transitions (progressive) ---------- */
@view-transition { navigation: auto; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16, 19, 29, .8); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); color: var(--text-1);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease, visibility .35s ease, transform .35s var(--ease-out), border-color .3s ease;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: rgba(45, 226, 255, .5); box-shadow: var(--glow-cyan); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 1.4rem; inset-inline-start: 1.4rem; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .5);
  transition: transform .35s var(--ease-spring);
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- 404 ---------- */
.err-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; position: relative; padding: 2rem; }
.err-code {
  font-family: var(--font-display-en); font-size: clamp(5rem, 20vw, 9rem); font-weight: 700; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { min-height: 0; height: clamp(320px, 56vw, 460px); }
  .bcell--tall { grid-row: auto; }
  .bcell--wide, .bcell--tall, .bcell--4, .bcell--8, .bcell--6, .bcell--12 { grid-column: span 6; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 0; }
  .number:nth-child(3) { border-inline-start: 0; }
  .why { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .shot--tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .machines { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .fstep::after { display: none; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bcell--wide, .bcell--tall, .bcell--4, .bcell--8, .bcell--6, .bcell--12 { grid-column: span 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .showcase__grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr; }
  .number { border-inline-start: 0; border-top: 1px solid var(--line); }
  .number:first-child { border-top: 0; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hfloat--2 { display: none; }
  .hcard--c { display: none; }
  .hcard--a { inset: 0 0 18% 0; }
  .hcard--b { width: 52%; }
  .scroll-cue { display: none; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .nav-cta .btn { display: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .to-top, .preloader, .noise::after { display: none !important; }
  body { background: #fff; color: #111; }
}
