/* =========================================================
   TRUE TECH: site stylesheet (hand-written, no build step)
   Uses logical properties so dir="rtl" works unchanged.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --orange: #F16402;
  --orange-deep: #CF5400;
  --orange-soft: #FDE8D9;
  --purple: #5F1A90;
  --purple-deep: #420F66;
  --purple-soft: #EFE7F7;
  --graphite: #434245;
  --graphite-2: #525155;
  --ink: #1D1B22;
  --muted: #5E5A66;
  --steel: #EEF0F3;
  --line: #D8DBE1;
  --white: #FFFFFF;
  --ok: #1E7A4C;
  --warn: #9A5A00;

  --font-display: "Montserrat", "Alexandria", "Arial", sans-serif;
  --font-body: "Montserrat", "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); /* Montserrat is wide: keep big titles moderate */

  --radius-s: 4px;
  --radius-m: 8px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --slant: 14px; /* the logo's italic cut, reused for buttons/plates */
}

/* Brand identity font: Montserrat-Arabic. Latin = Montserrat; Arabic = Alexandria (free, closest geometric match).
   Arabic has no true italic: never slant it. */
:root[lang="ar"] {
  --font-display: "Alexandria", "Montserrat", sans-serif;
  --font-body: "Alexandria", "Montserrat", system-ui, sans-serif;
}
:root[lang="ar"] body { line-height: 1.75; }
:root[lang="ar"] :is(h1, h2, h3, .plate__type, .part-no, .btn, .process-step__num, .footer__title) { font-style: normal; letter-spacing: 0; }
:root[lang="ar"] .hero__title { font-weight: 700; line-height: 1.25; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); max-width: 17ch; }
:root[lang="ar"] .section__title { font-weight: 700; line-height: 1.3; }
:root[lang="ar"] .machine-card__name, :root[lang="ar"] .service-list h3, :root[lang="ar"] .process-step h3 { line-height: 1.35; font-weight: 600; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: 96px; /* anchors (#request-form…) land below the sticky header */ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border: 0; border-radius: var(--radius-s);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-deep); }
.btn--dark { background: var(--graphite); color: var(--white); }
.btn--dark:hover { background: var(--ink); }
.btn--lg { min-height: 56px; font-size: 1.25rem; padding-inline: 1.8em; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--purple); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.link-arrow:hover { border-bottom-color: currentColor; }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .plate__link .icon { transform: scaleX(-1); }

/* ---------- Utility bar ---------- */
.utility { background: var(--graphite); color: #D6D4DC; font-size: var(--step--1); }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility__contacts { display: flex; gap: 24px; align-items: center; }
.utility__contacts li { display: flex; align-items: center; gap: 6px; }
.utility__contacts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.utility__contacts a:hover, .utility__lang:hover { color: var(--white); }
.utility .icon { color: var(--orange); width: 14px; height: 14px; }
.utility__lang { font-family: "Alexandria", var(--font-body); font-weight: 600; text-decoration: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 16px; min-height: 80px; }
/* Brand: logo mark + company name (purple) + tagline (orange), both from admin, per language */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { display: block; height: 60px; width: auto; }
.brand__text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); line-height: 1.1; }
.brand__word { display: block; height: 32px; width: auto; }
:root[lang="ar"] .brand__word { height: 34px; }
.brand__tag { font-size: .62rem; font-weight: 600; letter-spacing: .03em; color: var(--orange); text-transform: uppercase; white-space: nowrap; }
:root[lang="ar"] .brand__tag { font-size: .74rem; letter-spacing: 0; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 0; }
.nav__list a { /* 8 links + logo + button must fit the 1200px container: keep links compact */
  display: block; padding: 10px 8px; font-weight: 600; font-size: .9rem; white-space: nowrap;
  text-decoration: none; color: var(--ink); border-radius: var(--radius-s);
}
.nav__list a:hover { background: var(--steel); }
.nav__list a[aria-current="page"] { color: var(--purple); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }

.header__actions { display: flex; align-items: center; gap: 8px; }
.quote-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 2px solid var(--purple); border-radius: var(--radius-s);
  background: var(--white); color: var(--purple); font-weight: 700; white-space: nowrap;
}
.quote-toggle:hover { background: var(--purple-soft); }
.quote-toggle__count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: var(--purple); color: var(--white); font-size: .8rem;
}
.quote-toggle__count.is-bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); background: var(--orange); color: var(--ink); } }

.nav-toggle, .icon-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: var(--radius-s);
}
.icon-btn { display: inline-flex; }
.nav-toggle .icon, .icon-btn .icon { width: 24px; height: 24px; }
.nav-toggle:hover, .icon-btn:hover { background: var(--steel); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: var(--step-4); line-height: .98; letter-spacing: -.005em;
  color: var(--ink); max-width: 15ch;
}
.hero__lead { margin-top: 20px; font-size: var(--step-1); color: var(--muted); max-width: 46ch; }

/* Finder: styled like a machine control panel */
.finder {
  margin-top: 32px; padding: 18px; border-radius: var(--radius-m);
  background: var(--graphite); color: var(--white);
  box-shadow: 0 1px 0 var(--graphite-2) inset, 0 18px 40px -24px rgba(29, 27, 34, .6);
}
.finder__tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.finder__tabs button {
  padding: 6px 14px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: #BAB7C2; font-weight: 600;
}
.finder__tabs button[aria-selected="true"] { background: var(--graphite-2); color: var(--white); box-shadow: inset 0 -2px 0 var(--orange); }
.finder__row { display: flex; gap: 8px; }
.finder__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  border: 2px solid transparent; border-radius: var(--radius-s);
  background: var(--white); color: var(--ink); font-size: 1.05rem;
}
.finder__input:focus { outline: none; border-color: var(--orange); }
.finder__submit { min-height: 52px; }
.finder__quick { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: var(--step--1); color: #BAB7C2; }
.finder__quick a { color: var(--white); text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.finder__quick a:hover { text-decoration-color: var(--orange); }

/* Visual: the logo's orange/purple "TT" split, cut on the logo's slant */
.hero__visual { position: relative; margin: 0; min-height: 480px; display: grid; place-items: center; padding-block: 40px 72px; }
.hero__split { position: absolute; inset: 0 0 14% 0; }
.hero__split::before, .hero__split::after { content: ""; position: absolute; top: 0; bottom: 0; }
.hero__split::before { inset-inline-start: 0; width: 52%; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); }
.hero__split::after  { inset-inline-end: 0; width: 46.5%; background: var(--purple); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
[dir="rtl"] .hero__split { transform: scaleX(-1); }
.hero__machine {
  position: relative; width: 78%;
  background: var(--white); border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -30px rgba(29,27,34,.55);
}

/* Spec plate: like a machine nameplate */
.plate {
  position: absolute; z-index: 2; inset-inline-start: 0; bottom: 0;
  width: min(300px, 80%); padding: 16px 18px;
  background: var(--white); border-radius: var(--radius-s);
  border-inline-start: 6px solid var(--orange);
  box-shadow: 0 16px 36px -18px rgba(29,27,34,.5);
}
.plate__type { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.plate__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 12px; }
.plate__specs dt { font-size: .78rem; color: var(--muted); }
.plate__specs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.plate__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--purple); text-decoration: none; }
.plate__link:hover { text-decoration: underline; }

/* Hero extras: technical-drawing overlay, rotating gear, signal lamp, floating chip */
.hero__frame { position: relative; z-index: 1; width: 72%; animation: rise .9s var(--ease-out) .4s both, float 7s ease-in-out 1.6s infinite; }
.hero__frame .hero__machine { width: 100%; animation: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero__gear {
  position: absolute; z-index: 0; width: 42%; aspect-ratio: 1; bottom: 2%; inset-inline-end: -9%;
  color: rgba(255, 255, 255, .3); pointer-events: none;
  animation: spin 40s linear infinite;
}
.hero__gear--small { width: 22%; top: -2%; bottom: auto; inset-inline-end: auto; inset-inline-start: -4%; color: rgba(255, 255, 255, .32); animation-duration: 22s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.hero__dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero__dims .dim-line { fill: none; stroke: var(--purple); stroke-width: 3; stroke-dasharray: 10 8; }
.hero__dims .dim-solid { fill: none; stroke: var(--purple); stroke-width: 3; }
.hero__dims .dim-draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s var(--ease-out) 1.2s forwards; }
.hero__dims .dim-tag { fill: var(--purple); }
.hero__dims text { fill: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 34px; }
.hero__dims .dim-group { opacity: 0; animation: fade-in .5s ease 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.hero__beacon {
  position: absolute; left: 62.8%; top: 10.8%; width: 2.6%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: #39FF7A; mix-blend-mode: screen;
  box-shadow: 0 0 12px 4px rgba(57, 255, 122, .8);
  animation: beacon 1.6s ease-in-out infinite;
}
@keyframes beacon { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hero__chip {
  position: absolute; z-index: 2; top: 2%; inset-inline-end: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-weight: 600; font-size: var(--step--1); white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(29, 27, 34, .45);
  animation: rise .7s var(--ease-out) 1s both, float 6s ease-in-out 2s infinite;
}
.hero__chip .live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1FA855; }
.hero__chip .live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1FA855; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
.plate__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plate .quote-btn { margin: 0; min-height: 38px; padding: 0 12px; font-size: .9rem; }

/* ---------- Disciplines bar ---------- */
.disciplines { background: var(--white); border-block: 1px solid var(--line); }
.disciplines__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.disciplines__list li + li { border-inline-start: 1px solid var(--line); }
.disciplines__list a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 22px 20px; text-decoration: none; color: var(--muted); font-size: var(--step--1); line-height: 1.35;
}
.disciplines__list a:hover { background: var(--steel); }
.disciplines__list a:hover svg { color: var(--orange); }
.disciplines__list svg { width: 40px; height: 40px; flex: none; color: var(--purple); }
.disciplines__list strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); letter-spacing: -.005em; }
.section__lead { margin-top: 10px; color: var(--muted); max-width: 58ch; }

/* Filter tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-tabs button {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--white); font-weight: 600; font-size: .95rem; color: var(--muted);
}
.filter-tabs button:hover { border-color: var(--purple); color: var(--purple); }
.filter-tabs button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ---------- Machine cards ---------- */
.machine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.machine-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
}
.machine-card[hidden] { display: none; }
.machine-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.machine-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.machine-card__media--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #9A97A3; font-size: var(--step--1); text-decoration: none;
  background: radial-gradient(circle at 50% 45%, #FFFFFF 0 30%, transparent 70%), repeating-linear-gradient(-60deg, var(--steel) 0 10px, #F6F7F9 10px 20px);
}
.machine-card__media--empty svg { width: 52px; height: 52px; color: #B4B1BC; }
.machine-card__badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px;
  padding: 3px 10px; border-radius: 3px; background: var(--graphite); color: var(--white);
  font-size: .78rem; font-weight: 600;
}
.machine-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.machine-card__type {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--orange-deep); font-weight: 600; letter-spacing: .02em;
}
.machine-card__type::before { content: ""; flex: none; width: 14px; height: 3px; background: var(--orange); transform: skewX(-20deg); }
.machine-card__name {
  margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.machine-card__name a { text-decoration: none; }
.machine-card__name a:hover { color: var(--purple); }
.machine-card__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .88rem; color: var(--muted); }
.machine-card__meta span + span::before { content: "·"; margin-inline-end: 10px; color: #B4B1BC; }
.machine-card__foot { display: flex; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 16px; }
.machine-card__more {
  display: inline-grid; place-items: center; flex: none; width: 44px; min-height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--purple); background: var(--white);
  transition: border-color .15s, background-color .15s;
}
.machine-card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.machine-card__more:hover { border-color: var(--purple); background: var(--purple-soft); }
.machine-card__more:hover .icon { transform: translateX(3px); }
[dir="rtl"] .machine-card__more .icon { transform: scaleX(-1); }
[dir="rtl"] .machine-card__more:hover .icon { transform: scaleX(-1) translateX(3px); }
.machine-card__foot form { flex: 1; min-width: 0; display: flex; }
.machine-card__foot .quote-btn { flex: 1; margin-top: 0; min-height: 42px; padding: 0 12px; font-size: .92rem; }
.machine-card__foot form.quote-direct { display: flex; }

.spec-list { margin: 14px 0 18px; font-size: var(--step--1); }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }

.quote-btn {
  margin-top: auto; display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-s);
  border: 2px solid var(--purple); background: var(--white); color: var(--purple); font-weight: 700;
  transition: background-color .15s, color .15s;
}
.quote-btn:hover { background: var(--purple); color: var(--white); }
.quote-btn.is-added { background: var(--purple); color: var(--white); }
.quote-btn--icon { width: 40px; min-height: 40px; padding: 0; }

/* ---------- Spare parts ---------- */
.parts { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.part-search { margin: 24px 0 20px; }
.part-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.part-search__row { display: flex; gap: 8px; }
.part-search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px;
  border: 1px solid #B9BCC4; border-radius: var(--radius-s); background: var(--white);
}
.part-search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.part-search .btn { width: 52px; padding: 0; }

.part-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
.part-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.part-table th {
  text-align: start; padding: 12px 16px; background: var(--steel);
  font-size: var(--step--1); font-weight: 600; color: var(--muted);
}
.part-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.part-table td:last-child { text-align: end; width: 1%; }
.part-table tbody tr:hover { background: #FAFAFB; }
.part-no {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.part-table td:first-child { color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock--in { color: var(--ok); }
.stock--order { color: var(--warn); }
.stock--ask { color: var(--muted); }

/* ---------- Process: how to get a quotation ---------- */
.process {
  position: relative; padding-block: var(--section-y); overflow: hidden;
  background-color: var(--white);
  /* faint engineering grid */
  background-image:
    linear-gradient(rgba(95, 26, 144, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 26, 144, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.process__head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.process__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--outline { background: var(--white); color: var(--purple); border: 2px solid var(--purple); }
.btn--outline:hover { background: var(--purple); color: var(--white); }

.process__steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* the track that links the steps, with a part travelling along it */
.process__track { position: absolute; top: 56px; inset-inline: 60px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #CFC6DB 0 10px, transparent 10px 18px); }
.process__track::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--orange)); transform-origin: left center; transform: scaleX(var(--progress, 1)); transition: transform 1.2s var(--ease-out) .3s; }
[dir="rtl"] .process__track::before { transform-origin: right center; background: linear-gradient(270deg, var(--purple), var(--orange)); }
.js .process__track.reveal::before { --progress: 0; }
.js .process__track.reveal.is-in::before { --progress: 1; }
.process__track::after {
  content: ""; position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--orange);
  box-shadow: 0 0 0 6px rgba(241, 100, 2, .18);
  animation: travel 4.5s cubic-bezier(.6, 0, .4, 1) 1.6s infinite;
}
@keyframes travel {
  0% { inset-inline-start: 0; opacity: 0; } 8% { opacity: 1; }
  45%, 55% { inset-inline-start: calc(50% - 8px); }
  92% { opacity: 1; } 100% { inset-inline-start: calc(100% - 16px); opacity: 0; }
}

.process-step {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  padding: 28px 26px 26px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 20px 40px -32px rgba(29, 27, 34, .45);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
  overflow: hidden;
}
.process-step:hover { transform: translateY(-6px); border-color: #C9BEDA; box-shadow: 0 28px 50px -30px rgba(95, 26, 144, .45); }
.process-step__icon {
  position: relative; width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 14px; background: var(--purple); color: var(--white);
  box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line);
}
.process-step__icon svg { width: 28px; height: 28px; transition: transform .35s var(--ease-out); }
.process-step:hover .process-step__icon svg { transform: scale(1.12) rotate(calc(-6deg * var(--dir))); }
.process-step__num {
  position: absolute; top: 6px; inset-inline-end: 16px; z-index: -1;
  font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 6.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px #E6E1EE; transition: -webkit-text-stroke-color .3s;
  font-variant-numeric: tabular-nums;
}
.process-step:hover .process-step__num { -webkit-text-stroke-color: var(--orange-soft); color: rgba(241, 100, 2, .06); }
.process-step h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.process-step p { margin-top: 8px; color: var(--muted); }
.process-step__meta { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; color: var(--purple); }
.process-step__meta svg { width: 18px; height: 18px; }
/* the last step is the payoff */
.process-step--final { background: var(--graphite); border-color: var(--graphite); color: #D6D4DC; }
.process-step--final h3 { color: var(--white); }
.process-step--final p { color: #BAB7C2; }
.process-step--final .process-step__icon { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 8px var(--graphite), 0 0 0 9px var(--graphite-2); }
.process-step--final .process-step__num { -webkit-text-stroke-color: #45434C; }
.process-step--final .process-step__meta { color: var(--orange); }
.process-step--final:hover { border-color: var(--orange); box-shadow: 0 28px 50px -30px rgba(241, 100, 2, .6); }

/* ---------- Services (dark) ---------- */
.services { background: var(--graphite); color: #D6D4DC; padding-block: var(--section-y); }
.services .section__title { color: var(--white); }
.services .section__lead { color: #BAB7C2; margin-bottom: 28px; }
.services__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--graphite-2); border: 1px solid var(--graphite-2); border-radius: var(--radius-m); overflow: hidden; }
.service-list li { background: var(--graphite); padding: 26px 24px; }
.service-list svg { width: 40px; height: 40px; color: var(--orange); margin-bottom: 14px; }
.service-list h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--white); }
.service-list p { margin-top: 6px; font-size: .95rem; }

/* ---------- Our work (project gallery) ---------- */
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(220px, auto)); gap: 20px; }
.work-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius-m); background: var(--graphite); color: var(--white); text-decoration: none; min-height: 220px; }
.work-grid > li { display: flex; }
.work-grid > li > .work-card { flex: 1; }
.work-grid > li:first-child { grid-row: span 2; }
.work-grid > li:first-child .work-card { min-height: 460px; }
.work-card__media { position: absolute; inset: 0; }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; }
.work-card__media--empty {
  display: grid; place-items: center; color: #6F6C78;
  background: repeating-linear-gradient(-60deg, #34333A 0 12px, #2F2E35 12px 24px);
}
.work-card__media--empty svg { width: 64px; height: 64px; }
.work-card__caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 48px 22px 20px;
  background: linear-gradient(to top, rgba(29,27,34,.92), rgba(29,27,34,0));
}
.work-card__sector { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: var(--radius-s); background: var(--orange); color: var(--ink); font-size: .8rem; font-weight: 700; }
.work-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.work-grid > li:first-child .work-card h3 { font-size: var(--step-2); }
.work-card p { margin-top: 4px; font-size: var(--step--1); color: #D6D4DC; }
.work-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.video-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--graphite); }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: var(--white); color: var(--white); }
.video-facade img { width: 100%; height: 100%; object-fit: contain; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,27,34,.75), rgba(29,27,34,0) 55%); }
.play {
  position: absolute; z-index: 1; top: 50%; left: 50%; translate: -50% -50%;
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transition: transform .15s;
}
.play svg { width: 30px; height: 30px; margin-inline-start: 4px; }
[dir="rtl"] .play svg { margin-inline-start: 0; margin-inline-end: 4px; } /* play triangle always points right */
.video-facade:hover .play { transform: scale(1.08); }
.video-facade__title { position: absolute; z-index: 1; inset-inline: 22px; bottom: 18px; text-align: start; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.2; }
.video-list { display: grid; gap: 12px; }
.video-item { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); text-align: start; }
.video-item:hover, .video-item[aria-current="true"] { border-color: var(--purple); }
.video-item[aria-current="true"] { box-shadow: inset 3px 0 0 var(--purple); }
[dir="rtl"] .video-item[aria-current="true"] { box-shadow: inset -3px 0 0 var(--purple); }
.video-item__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(-60deg, var(--steel) 0 8px, #F6F7F9 8px 16px); color: #9A97A3; }
.video-item__thumb svg { width: 26px; height: 26px; }
.video-item__thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.video-item__title { display: block; font-weight: 600; line-height: 1.35; }
.video-item__meta { display: block; margin-top: 2px; font-size: var(--step--1); color: var(--muted); }

/* ---------- Brands ---------- */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.brand-wall li { display: grid; place-items: center; min-height: 112px; padding: 20px; border-inline-start: 1px solid var(--line); }
.brand-wall li:first-child { border-inline-start: 0; }
.brand-wall a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; filter: grayscale(1); opacity: .75; transition: filter .15s, opacity .15s; }
.brand-wall a:hover { filter: none; opacity: 1; }
.brand-wall img { max-height: 48px; width: auto; }
.brand-logo-placeholder { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; color: #8B8894; border: 2px dashed #C9CCD3; border-radius: var(--radius-s); padding: 8px 14px; }
.brands__note { margin-top: 14px; font-size: var(--step--1); color: var(--muted); }

/* ---------- Quote request ---------- */
.request { padding-block: var(--section-y); position: relative; isolation: isolate; }
.request::before { /* slanted brand band behind the form */
  content: ""; position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 46%;
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--purple) 50% 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .1;
}
[dir="rtl"] .request::before { clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%); }
.request__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { margin-top: 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 22px; height: 22px; color: var(--orange-deep); margin-top: 3px; }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--purple); text-decoration: underline; }

.quote-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 24px 48px -32px rgba(29,27,34,.35);
}
.quote-form__items { margin: 0 0 20px; padding: 14px 16px; border: 1px dashed #B9BCC4; border-radius: var(--radius-s); background: var(--steel); }
.quote-form__items legend { padding: 0 6px; font-weight: 700; font-size: var(--step--1); }
.quote-items__empty { font-size: var(--step--1); color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #B9BCC4; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.field input[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 3px #FDE4E1; }
.field__error { margin-top: 6px; font-size: var(--step--1); color: #B42318; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }

/* Quote item rows (drawer + inline) */
.quote-items li {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.quote-items--compact li { padding: 8px 0; }
.quote-items--compact li:last-child { border-bottom: 0; }
.quote-item__kind { display: block; font-size: .78rem; color: var(--muted); }
.quote-item__name { font-weight: 600; line-height: 1.3; }
.quote-item__remove { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--muted); }
.quote-item__remove:hover { background: #FDE4E1; color: #B42318; }
.quote-item__remove .icon { width: 18px; height: 18px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(29,27,34,.45); }
.drawer {
  position: fixed; z-index: 61; inset-block: 0; inset-inline-end: 0;
  width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--white); box-shadow: -20px 0 50px -20px rgba(29,27,34,.4);
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.drawer .quote-items { flex: 1; overflow-y: auto; padding: 4px 20px; }
.drawer__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 32px; text-align: center; color: var(--muted); }
.drawer__empty svg { width: 48px; height: 48px; color: #B4B1BC; }
.drawer__empty[hidden], .quote-items__empty[hidden] { display: none; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
/* Footer: brand split bar on top (orange | purple, like the logo's TT), 4 columns, slim bottom bar */
.footer {
  position: relative; background: var(--ink); color: #B9B6C2; font-size: .95rem;
  padding-top: clamp(48px, 6vw, 72px);
  background-image: radial-gradient(120% 80% at 100% 0, rgba(95, 26, 144, .22), transparent 60%);
}
[dir="rtl"] .footer { background-image: radial-gradient(120% 80% at 0 0, rgba(95, 26, 144, .22), transparent 60%); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange) 0 50%, var(--purple) 50% 100%); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 56px); }
.footer a { text-decoration: none; }
.footer__logo { display: inline-block; padding: 14px; background: var(--white); border-radius: var(--radius-m); }
.footer__logo img { display: block; width: 130px; height: auto; }
.footer__brand > p { margin-top: 18px; max-width: 36ch; line-height: 1.7; }
.footer__label { margin-top: 22px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8F8C99; }
:root[lang="ar"] .footer__label { letter-spacing: 0; font-size: .9rem; }
.footer__label + .social-links--footer { margin-top: 10px; }
.footer__title { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 22px; padding-bottom: 12px; }
.footer__title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); transform: skewX(-20deg); }
.footer__links { display: grid; gap: 4px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; padding-block: 5px; color: #C9C6D1; transition: color .15s, transform .15s; }
.footer__links .icon { width: 14px; height: 14px; color: var(--orange); opacity: .55; transition: opacity .15s; }
[dir="rtl"] .footer__links .icon { transform: scaleX(-1); }
.footer__links a:hover { color: var(--white); transform: translateX(4px); }
[dir="rtl"] .footer__links a:hover { transform: translateX(-4px); }
.footer__links a:hover .icon { opacity: 1; }
.contact-list--footer { margin-top: 0; gap: 14px; }
.contact-list--footer .icon { width: 18px; height: 18px; color: var(--orange); margin-top: 4px; }
.contact-list--footer a { color: var(--white); font-weight: 600; }
.contact-list--footer a:hover { color: var(--orange); text-decoration: none; }
.footer__cta { margin-top: 24px; min-height: 46px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .18); font-size: var(--step--1); color: #8F8C99; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #C9C6D1; font-weight: 600; }
.footer__top .icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.footer__top:hover { color: var(--white); }

/* ---------- Floating WhatsApp & toast ---------- */
.wa-float {
  position: fixed; z-index: 50; inset-inline-end: 20px; bottom: 20px;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #1FA855; color: var(--white); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #178F47; }
.toast {
  position: fixed; z-index: 70; bottom: 24px; inset-inline-start: 50%; translate: -50% 0;
  padding: 12px 18px; border-radius: var(--radius-s);
  background: var(--ink); color: var(--white); font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateY(8px);
}
[dir="rtl"] .toast { translate: 50% 0; }
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* grid children may never force the page wider than the screen */
.hero__grid > *, .parts > *, .services__grid > *, .request__grid > *, .videos > *, .process__steps > * { min-width: 0; }
/* Header: 8 menu links need room; the menu collapses into the burger before anything could overflow. */
@media (max-width: 1100px) {
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Laptops (English is wider): logo text + 8 links leave no room for the button label; keep the icon (label stays for screen readers via title) */
@media (min-width: 1281px) and (max-width: 1500px) {
  :root[lang="en"] .quote-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root[lang="en"] .quote-toggle { position: relative; width: 46px; padding: 0; justify-content: center; }
  :root[lang="en"] .quote-toggle .quote-toggle__count { position: absolute; top: -8px; inset-inline-end: -8px; }
  :root[lang="en"] .nav__list a { padding-inline: 7px; }
}
@media (min-width: 1281px) and (max-width: 1366px) { /* Arabic is narrower: icon button only on small laptops */
  :root[lang="ar"] .quote-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  :root[lang="ar"] .quote-toggle { position: relative; width: 46px; padding: 0; justify-content: center; }
  :root[lang="ar"] .quote-toggle .quote-toggle__count { position: absolute; top: -8px; inset-inline-end: -8px; }
}
@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(29,27,34,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__list li + li { border-top: 1px solid var(--steel); }
  .nav__list a { padding: 14px 8px; font-size: 1.05rem; }
  .nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
  [dir="rtl"] .nav__list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--orange); }
  .header__actions { margin-inline-start: auto; }
}
@media (max-width: 980px) {
  .hero__grid, .parts, .services__grid, .request__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 0; padding-bottom: 72px; }
  .hero__title { max-width: 18ch; }
  .disciplines__list { grid-template-columns: repeat(2, 1fr); }
  .disciplines__list li:nth-child(3) { border-inline-start: 0; }
  .disciplines__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .request::before { width: 100%; height: 40%; inset-block: auto 0; }
  .videos { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .brand-wall li:nth-child(3n+1) { border-inline-start: 0; }
  .brand-wall li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hide-md { display: none !important; }
  .process__steps { grid-template-columns: 1fr; gap: 16px; padding-inline-start: 0; }
  .process__track { top: 40px; bottom: 40px; inset-inline: 29px auto; width: 4px; height: auto; background: repeating-linear-gradient(180deg, #CFC6DB 0 10px, transparent 10px 18px); }
  .process__track::before, [dir="rtl"] .process__track::before { background: linear-gradient(180deg, var(--purple), var(--orange)); transform-origin: center top; transform: scaleY(var(--progress, 1)); }
  .process__track::after { inset-inline-start: 50%; top: 0; margin: 0 0 0 -8px; animation-name: travel-y; }
  [dir="rtl"] .process__track::after { margin: 0 -8px 0 0; }
  @keyframes travel-y { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: calc(100% - 16px); opacity: 0; } }
  .process-step { padding: 22px 20px; display: grid; grid-template-columns: 60px 1fr; column-gap: 18px; }
  .process-step__icon { grid-row: span 3; margin: 0; }
  .process-step__meta { grid-column: 2; }
  .process-step__num { font-size: 4.5rem; }
  .service-list { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .work-grid > li:first-child { grid-row: auto; }
  .work-grid > li:first-child .work-card { min-height: 320px; }
  .video-item { grid-template-columns: 112px 1fr; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .brand-wall li:nth-child(3n+1) { border-inline-start: 1px solid var(--line); }
  .brand-wall li:nth-child(odd) { border-inline-start: 0; }
  .brand-wall li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section__head { flex-direction: column; align-items: start; }
  .part-table thead { display: none; }
  .part-table, .part-table tbody, .part-table tr, .part-table td { display: block; }
  .part-table tr { position: relative; padding: 14px 64px 14px 16px; border-top: 1px solid var(--line); }
  [dir="rtl"] .part-table tr { padding: 14px 16px 14px 64px; }
  .part-table tr:first-child { border-top: 0; }
  .part-table td { padding: 2px 0; border: 0; }
  .part-table td:last-child { position: absolute; top: 50%; inset-inline-end: 16px; translate: 0 -50%; width: auto; padding: 0; }
  .part-table-wrap { overflow: visible; }
  .stock { white-space: normal; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .quote-toggle__label { display: none; }
  .brand { gap: 8px; }
  .brand__text { padding-inline-start: 8px; }
  .brand__logo { height: 46px; }
  .brand__word { height: 24px; }
  :root[lang="ar"] .brand__word { height: 26px; }
  .brand__tag { font-size: .55rem; white-space: normal; max-width: 30ch; }
  :root[lang="ar"] .brand__tag { font-size: .66rem; }
  .hero__frame { width: 88%; }
  .hero__chip { top: 0; }
  .machine-grid { grid-template-columns: 1fr; }
  .disciplines__list { grid-template-columns: 1fr; }
  .disciplines__list li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .disciplines__list a { padding: 16px 4px; }
  .finder { padding: 14px; }
  .finder__row { flex-direction: column; }
  .field-grid { grid-template-columns: 1fr; }
  .plate { inset-inline-start: 0; width: 88%; }
  .footer__grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .footer__cta { width: 100%; }
  .btn--lg { width: 100%; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

/* =========================================================
   Motion
   1) Hero load sequence: the orange/purple "TT" panels slide in from
      opposite sides, the machine rises, the spec plate slides in.
   2) Scroll reveal: sections fade up once; groups stagger (JS adds
      .reveal + --i, then .is-in). Without JS nothing is hidden.
   3) Small hover feedback on cards, icons and buttons.
   ========================================================= */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --dir: 1; }
[dir="rtl"] { --dir: -1; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes panel-from-start { from { opacity: 0; transform: translateX(-56px); } to { opacity: 1; transform: none; } }
@keyframes panel-from-end { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateX(calc(-28px * var(--dir))); } to { opacity: 1; transform: none; } }

.hero__title  { animation: rise .7s var(--ease-out) both; }
.hero__lead   { animation: rise .7s var(--ease-out) .1s both; }
.finder       { animation: rise .7s var(--ease-out) .2s both; }
.hero__split::before { animation: panel-from-start .9s var(--ease-out) .15s both; }
.hero__split::after  { animation: panel-from-end .9s var(--ease-out) .28s both; }
.plate        { animation: plate-in .7s var(--ease-out) .75s both; }

/* Scroll reveal */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }


/* Hover feedback */
.machine-card { transition: border-color .2s, box-shadow .25s, transform .25s var(--ease-out); }
.machine-card:hover { border-color: #BDB4CC; box-shadow: 0 10px 28px -14px rgba(43, 42, 48, .35); transform: translateY(-3px); }
.machine-card__media img, .work-card__media img { transition: transform .5s var(--ease-out); }
.machine-card:hover .machine-card__media img { transform: scale(1.05); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.disciplines__list svg { transition: transform .35s var(--ease-out), color .2s; }
.disciplines__list a:hover svg { transform: scale(1.12) rotate(calc(-8deg * var(--dir))); }
.disciplines__list li:nth-child(3) a:hover svg { transform: rotate(90deg); } /* the gear turns */
.service-list svg { transition: transform .35s var(--ease-out); }
.service-list li:hover svg { transform: translateY(-3px); }
.link-arrow .icon, .plate__link .icon { transition: translate .2s var(--ease-out); }
.link-arrow:hover .icon, .plate__link:hover .icon { translate: calc(4px * var(--dir)) 0; }
.btn, .quote-btn, .quote-toggle { transition: background-color .15s, color .15s, transform .1s; }
.btn:active, .quote-btn:active, .quote-toggle:active { transform: translateY(1px) scale(.98); }
.quote-btn.is-added .icon { animation: pop .3s var(--ease-out); }
@keyframes pop { 50% { transform: scale(1.4); } }
.wa-float { animation: rise .6s var(--ease-out) 1.2s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__gear, .hero__beacon, .hero__chip, .hero__frame, .process__track::after { animation: none !important; }
}

/* =========================================================
   Page background pattern: chosen by the admin (Settings → Background
   pattern: none | logo | grid | dots | gears), rendered as <html data-bg="...">.
   No attribute = plain background. Only shows where a section has no
   background of its own (hero, machines, our work, brands, request).
   ========================================================= */
html[data-bg] body { background-attachment: fixed; }
/* 1. Blueprint: engineering paper, fine + major grid */
html[data-bg="grid"] body {
  background-image:
    linear-gradient(rgba(95, 26, 144, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 26, 144, .07) 1px, transparent 1px),
    linear-gradient(rgba(95, 26, 144, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 26, 144, .035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
}
/* 2. Perforated metal: dot matrix like a machine guard sheet */
html[data-bg="dots"] body {
  background-image: radial-gradient(rgba(43, 42, 48, .13) 1.3px, transparent 1.7px);
  background-size: 20px 20px;
}

/* 3. Logo: the TT mark (orange T + purple T, slanted outer edges), very low opacity */
html[data-bg="logo"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cpath fill='%23F16402' fill-opacity='.05' d='M10 25h55.5v55h-32V37.5H13z'/%3E%3Cpath fill='%235F1A90' fill-opacity='.045' d='M69.5 25H125l-3 12.5H101.5V80H69.5z'/%3E%3Cpath fill='%23F16402' fill-opacity='.05' d='M135 135h55.5v55h-32V147.5H138z'/%3E%3Cpath fill='%235F1A90' fill-opacity='.045' d='M194.5 135H250l-3 12.5H226.5V190H194.5z'/%3E%3C/svg%3E");
  background-size: 260px 220px;
}

/* 4. Gears: the brand identity sheet's pattern (gear + orange/purple split ring), staggered, very low opacity */
html[data-bg="gears"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132'%3E%3Cg opacity='.07'%3E%3Cpath fill='%23434245' fill-rule='evenodd' d='M54.2 29.4L58.9 30.9L58.9 35.1L54.2 36.6L53.2 40.4L56.5 44.1L54.4 47.8L49.5 46.7L46.7 49.5L47.8 54.4L44.1 56.5L40.4 53.2L36.6 54.2L35.1 58.9L30.9 58.9L29.4 54.2L25.6 53.2L21.9 56.5L18.2 54.4L19.3 49.5L16.5 46.7L11.6 47.8L9.5 44.1L12.8 40.4L11.8 36.6L7.1 35.1L7.1 30.9L11.8 29.4L12.8 25.6L9.5 21.9L11.6 18.2L16.5 19.3L19.3 16.5L18.2 11.6L21.9 9.5L25.6 12.8L29.4 11.8L30.9 7.1L35.1 7.1L36.6 11.8L40.4 12.8L44.1 9.5L47.8 11.6L46.7 16.5L49.5 19.3L54.4 18.2L56.5 21.9L53.2 25.6ZM18.0 33.0a15 15 0 1 0 30 0a15 15 0 1 0 -30 0Z'/%3E%3Cpath fill='none' stroke='%23F16402' stroke-width='2.4' d='M20.5 33a12.5 12.5 0 0 1 25 0'/%3E%3Cpath fill='none' stroke='%235F1A90' stroke-width='2.4' d='M45.5 33a12.5 12.5 0 0 1 -25 0'/%3E%3Cpath fill='%235F1A90' d='M25.5 33a7.5 7.5 0 0 1 15 0z'/%3E%3Cpath fill='%23F16402' d='M40.5 33a7.5 7.5 0 0 1 -15 0z'/%3E%3Cpath fill='%23434245' fill-rule='evenodd' d='M120.2 95.4L124.9 96.9L124.9 101.1L120.2 102.6L119.2 106.4L122.5 110.1L120.4 113.8L115.5 112.7L112.7 115.5L113.8 120.4L110.1 122.5L106.4 119.2L102.6 120.2L101.1 124.9L96.9 124.9L95.4 120.2L91.6 119.2L87.9 122.5L84.2 120.4L85.3 115.5L82.5 112.7L77.6 113.8L75.5 110.1L78.8 106.4L77.8 102.6L73.1 101.1L73.1 96.9L77.8 95.4L78.8 91.6L75.5 87.9L77.6 84.2L82.5 85.3L85.3 82.5L84.2 77.6L87.9 75.5L91.6 78.8L95.4 77.8L96.9 73.1L101.1 73.1L102.6 77.8L106.4 78.8L110.1 75.5L113.8 77.6L112.7 82.5L115.5 85.3L120.4 84.2L122.5 87.9L119.2 91.6ZM84.0 99.0a15 15 0 1 0 30 0a15 15 0 1 0 -30 0Z'/%3E%3Cpath fill='none' stroke='%23F16402' stroke-width='2.4' d='M86.5 99a12.5 12.5 0 0 1 25 0'/%3E%3Cpath fill='none' stroke='%235F1A90' stroke-width='2.4' d='M111.5 99a12.5 12.5 0 0 1 -25 0'/%3E%3Cpath fill='%235F1A90' d='M91.5 99a7.5 7.5 0 0 1 15 0z'/%3E%3Cpath fill='%23F16402' d='M106.5 99a7.5 7.5 0 0 1 -15 0z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 132px 132px;
}


/* Quote buttons are wrapped in small forms (no-JS fallback); keep the layout as if the button were there alone. */
form[data-quote-add-form] { display: contents; }
.form-status--block { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-s); background: #E6F4EC; }
.form-alert { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-s); background: #FDE4E1; color: #8A1C12; font-weight: 600; }
.cf-turnstile { margin-bottom: 18px; }
/* form notices are focused by main.js for screen readers; no focus ring needed */
.form-status:focus, .form-alert:focus { outline: none; }
.quote-form .btn.is-busy { opacity: .75; cursor: progress; }

/* =========================================================
   Inner pages: catalogue, item pages, content pages, contact
   ========================================================= */
/* Page head: white band, breadcrumb, big title; the logo's TT split as a slanted tab at the inline end */
.page-head { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 56px); }
.page-head::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: min(22vw, 260px);
  background: linear-gradient(90deg, var(--orange) 0 50%, var(--purple) 50% 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); opacity: .12;
}
[dir="rtl"] .page-head::after { clip-path: polygon(0 0, 62% 0, 100% 100%, 0 100%); background: linear-gradient(90deg, var(--purple) 0 50%, var(--orange) 50% 100%); }
.page-head .container { position: relative; z-index: 1; }
.page-head__title { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: var(--step-4); line-height: 1.02; max-width: 22ch; }
.page-head--compact .page-head__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
:root[lang="ar"] .page-head__title { font-style: normal; line-height: 1.3; }
.page-head__eyebrow { margin-top: 14px; font-weight: 600; color: var(--orange-deep); }
.page-head__eyebrow + .page-head__title { margin-top: 4px; }
.page-head__lead { margin-top: 14px; color: var(--muted); font-size: var(--step-1); max-width: 62ch; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step--1); color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline: 8px; color: #B4B1BC; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--purple); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section__title--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1px solid #B9BCC4; }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--ghost .icon { color: var(--orange-deep); }

/* Catalogue lists */
.catalogue { padding-block: 28px clamp(48px, 6vw, 80px); }
.catalogue__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none;
}
.chips a:hover { border-color: var(--purple); color: var(--purple); }
.chips a[aria-current="page"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.chips__count { font-size: .8rem; font-weight: 700; padding: 0 7px; border-radius: 10px; background: var(--steel); color: var(--muted); font-variant-numeric: tabular-nums; }
.chips a[aria-current="page"] .chips__count { background: rgba(255,255,255,.2); color: var(--white); }
.inline-search { display: flex; gap: 8px; flex: 0 1 380px; margin-inline-start: auto; }
.inline-search--wide { flex-basis: 560px; }
.inline-search input, .inline-search select {
  min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid #B9BCC4; border-radius: var(--radius-s); background: var(--white);
}
.inline-search { min-width: 0; max-width: 100%; } /* never wider than the screen on phones */
.inline-search input { flex: 1; min-width: 0; }
.inline-search select { flex: 0 0 auto; max-width: 46%; }
.inline-search input:focus, .inline-search select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.inline-search .btn { min-height: 44px; padding-inline: 14px; }
.catalogue__count { margin-bottom: 18px; color: var(--muted); font-size: var(--step--1); }
.catalogue__count a { color: var(--purple); font-weight: 600; }
.catalogue__help { margin-top: 24px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.result-group + .result-group { margin-top: 48px; }
.search-again { margin: 0 0 28px; max-width: 640px; }
.search-again .btn { padding-inline: 20px; }

.empty-state { display: grid; justify-items: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 24px; text-align: center; background: var(--white); border: 1px dashed #B9BCC4; border-radius: var(--radius-m); color: var(--muted); }
.empty-state svg { width: 56px; height: 56px; color: #B4B1BC; margin-bottom: 6px; }
.empty-state strong { color: var(--ink); font-size: var(--step-1); }
.empty-state .btn { margin-top: 10px; }

.part-link { display: block; text-decoration: none; }
.part-link:hover .part-no { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.parts__more { margin-top: 16px; }
.services__more { margin-top: 20px; }
.link-arrow--light { color: #E9DDF7; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager__page, .pager__step, .pager__gap {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pager__gap { border-color: transparent; background: none; }
.pager a:hover { border-color: var(--purple); color: var(--purple); }
.pager__page.is-current { background: var(--purple); border-color: var(--purple); color: var(--white); }
.pager__step.is-disabled { color: #B4B1BC; }
.pager__step:not(.pager__step--next) .icon { transform: scaleX(-1); }
[dir="rtl"] .pager__step:not(.pager__step--next) .icon { transform: none; }
[dir="rtl"] .pager__step--next .icon { transform: scaleX(-1); }

/* Closing call-to-action band */
.cta-band { background: var(--graphite); color: #D6D4DC; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 8px; background: linear-gradient(180deg, var(--orange) 0 50%, var(--purple) 50% 100%); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: clamp(32px, 5vw, 52px); }
.cta-band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--white); }
.cta-band p { margin-top: 6px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { background: transparent; color: var(--white); border-color: #6F6C78; }
.cta-band .btn--ghost:hover { border-color: var(--white); }

/* Item page (machine / part) */
.product { padding-block: clamp(28px, 4vw, 48px); }
.product__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.product__grid > * { min-width: 0; }
.gallery__main { aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: clamp(12px, 2vw, 24px); }
.gallery__main--cover img { object-fit: cover; padding: 0; }
.gallery__empty { display: grid; justify-items: center; gap: 10px; color: #9A97A3; width: 100%; height: 100%; place-content: center; background: repeating-linear-gradient(-60deg, var(--steel) 0 12px, #F6F7F9 12px 24px); }
.gallery__empty svg { width: 96px; height: 96px; color: #B4B1BC; }
.gallery__partno { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); color: var(--graphite); letter-spacing: .02em; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gallery__thumbs button { width: 88px; aspect-ratio: 4 / 3; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.gallery__thumbs button:hover { border-color: var(--purple); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd a { color: var(--purple); }
.facts--stacked div { grid-template-columns: 1fr; gap: 2px; }
.part-no--inline { display: inline-block; font-size: 1.35rem; }
.product__summary { margin-top: 20px; font-size: var(--step-1); }
.product__quote { margin-top: 24px; padding: 18px; border-radius: var(--radius-m); background: var(--purple-soft); }
.product__quote .quote-btn { width: 100%; min-height: 56px; font-size: 1.1rem; background: var(--purple); color: var(--white); }
.product__quote .quote-btn:hover { background: var(--purple-deep); }
.product__quote .quote-btn.is-added { background: var(--white); color: var(--purple); }
.product__hint { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.product__actions .btn { flex: 1 1 160px; min-height: 46px; font-size: 1.05rem; }
.product__pdf { margin-top: 20px; }
.product-details__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-details__grid > * { min-width: 0; }
.product-details__grid > :only-child { grid-column: 1 / -1; max-width: 860px; }
.spec-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { width: 48%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table tr:nth-child(odd) { background: var(--steel); }

/* Rich text from the admin editor */
.prose { margin-top: 18px; max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--purple); }
.prose img { border-radius: var(--radius-m); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

/* Services list */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); transition: border-color .2s; }
.service-card:hover { border-color: var(--purple); }
.service-card__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--radius-m); background: var(--orange-soft); color: var(--orange-deep); }
.service-card__icon svg { width: 34px; height: 34px; }
.service-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.service-card__title a { text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.service-card p { color: var(--muted); }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; }
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* Article layout (service, project) */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.article__image { width: 100%; border-radius: var(--radius-m); margin-bottom: 8px; }
.article__cta { margin-top: 32px; }
.article__aside { position: sticky; top: 100px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.aside-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: 12px; }
.aside-links { display: grid; }
.aside-links a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.aside-links li:first-child a { border-top: 0; }
.aside-links svg { width: 26px; height: 26px; color: var(--orange-deep); flex: none; }
.aside-links a:hover { color: var(--purple); }

/* Our work list */
.work-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-list > li { display: flex; }
.work-list .work-card { flex: 1; min-height: 300px; }

/* Videos page */
.video-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.video-card__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--graphite); }
.video-card__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .play { width: 60px; height: 60px; }
.video-card .play svg { width: 24px; height: 24px; }
.video-card .video-facade:hover .play { transform: scale(1.08); }
.video-card__title { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.video-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--step--1); color: var(--muted); }

/* Brands page */
.brand-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brand-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.brand-card__logo { display: grid; place-items: center; height: 96px; margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.brand-card__logo img { max-height: 64px; width: auto; }
.brand-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.brand-card__country { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.brand-card p { color: var(--muted); font-size: .95rem; }
.brand-card .link-arrow { margin-top: auto; }

/* Contact & quote pages */
.request--page { padding-block: clamp(32px, 5vw, 64px); }
.request--page .aside-title { margin-top: 0; }
.request--page .contact-list { margin-top: 8px; }
.request--page .contact-list + .aside-title { margin-top: 32px; }
.request__browse { display: grid; gap: 10px; margin-top: 32px; }
/* Social media icons (contact page + footer); each network's own colour on hover */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--purple);
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.social-links .icon { width: 22px; height: 22px; }
.social-links a:hover { color: var(--white); background: var(--hover, var(--purple)); border-color: var(--hover, var(--purple)); transform: translateY(-2px); }
.social-links__facebook { --hover: #1877F2; }
.social-links__instagram { --hover: #E1306C; }
.social-links__youtube { --hover: #FF0000; }
.social-links__linkedin { --hover: #0A66C2; }
.social-links__tiktok { --hover: #000000; }
.social-links__x { --hover: #000000; }
.social-links--footer { margin-top: 18px; }
.social-links--footer a { width: 40px; height: 40px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.map-band iframe { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: grayscale(.2); }

@media (max-width: 1100px) {
  .service-cards, .work-list, .video-cards { grid-template-columns: repeat(2, 1fr); }
  .brand-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .product__grid, .product-details__grid, .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .inline-search, .inline-search--wide { flex-basis: 100%; margin-inline-start: 0; }
}
@media (max-width: 720px) {
  .page-head::after { width: 90px; }
  .service-cards, .work-list, .video-cards { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .pager__step { padding-inline: 10px; }
}
@media (max-width: 560px) {
  .brand-cards { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; scrollbar-width: thin; }
  .chips a { flex: none; }
}
.part-table-wrap { background: var(--white); overflow-y: hidden; }

/* One-item quote mode (Settings → Quote options): direct "Request a price", no list/drawer */
form.quote-direct { display: contents; }
.quote-btn--direct { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.quote-btn--direct:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--ink); }
[dir="rtl"] .quote-btn--direct .icon { transform: scaleX(-1); }
.product__quote .quote-btn--direct { background: var(--orange); color: var(--ink); }
.product__quote .quote-btn--direct:hover { background: var(--orange-deep); }
.quote-toggle--link { text-decoration: none; }
.quote-selected {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  margin: 0 0 20px; padding: 14px 16px; border-radius: var(--radius-s);
  background: var(--orange-soft); border-inline-start: 4px solid var(--orange);
}
.quote-selected .icon { color: var(--orange-deep); width: 22px; height: 22px; }
.quote-selected__label { display: block; font-size: var(--step--1); color: var(--muted); }
.quote-selected strong { font-family: var(--font-display); font-size: 1.2rem; }
.quote-selected .quote-item__kind { margin-inline-start: 6px; }
.quote-selected__remove { border: 0; background: none; color: var(--purple); font-weight: 600; text-decoration: underline; padding: 6px; }
.product__quote:has(.quote-btn--direct) { background: var(--orange-soft); }

/* About us */
.about-story { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-story > * { min-width: 0; }
.prose--lead { font-size: var(--step-1); margin-top: 0; }
.about-story__media { margin: 0; }
.about-story__media > img { width: 100%; border-radius: var(--radius-m); }
.about-story__mark {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: var(--radius-m); overflow: hidden;
  background: var(--graphite);
}
.about-story__mark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange) 0 50%, var(--purple) 50% 100%); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); opacity: .9; }
.about-story__mark img { position: relative; width: 48%; height: auto; padding: 18px; background: var(--white); border-radius: var(--radius-m); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.facts-band { background: var(--purple); color: var(--white); }
.facts-band__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-block: clamp(28px, 4vw, 44px); }
.facts-band strong { display: block; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--orange); }
.facts-band span { display: block; margin-top: 6px; color: #E9DDF7; }
.about-reasons { margin-top: 28px; }
.aside-links--grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 22px; }
.aside-links--grid li:nth-child(2) a { border-top: 0; }
.brand-wall li > span { display: grid; place-items: center; width: 100%; height: 100%; filter: grayscale(1); opacity: .8; }
@media (max-width: 980px) { .about-story { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .aside-links--grid { grid-template-columns: 1fr; } .aside-links--grid li:nth-child(2) a { border-top: 1px solid var(--line); } }
