/* ==========================================================================
   DESUEN — Water & Energy
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --dir: 1; /* -1 in right-to-left languages, used to mirror arrows and movements */

  /* Brand */
  --red: #d30000;
  --red-hover: #b50000;
  --red-light: #ff6b6b;   /* red text on blue backgrounds */
  --red-soft: #fdeeee;
  --blue: #41557a;        /* DESUEN blue-gray */
  --blue-600: #374a6c;
  --blue-700: #2e3e5c;
  --blue-800: #26344e;
  --blue-soft: #edf1f7;
  --blue-softer: #f5f7fb;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: var(--blue-softer);
  --text: #1c2840;
  --text-2: #4b5872;
  --text-3: #7b879c;
  --line: #e2e7ef;
  --line-strong: #cdd5e2;
  --shadow-sm: 0 1px 2px rgba(38, 52, 78, 0.06);
  --shadow-md: 0 14px 34px -16px rgba(38, 52, 78, 0.28);
  --shadow-lg: 0 28px 60px -24px rgba(38, 52, 78, 0.38);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Languages ---------- */
[dir="rtl"] { --dir: -1; }
html[lang="bg"] { --font-display: "Inter", ui-sans-serif, system-ui, sans-serif; } /* Space Grotesk has no Cyrillic */
html[lang="ar"] {
  --font-sans: "Cairo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cairo", "Inter", ui-sans-serif, system-ui, sans-serif;
}
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; } /* letter-spacing breaks Arabic joining */
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.3; font-weight: 700; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px; background: var(--red); color: #fff;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--line { border-top: 1px solid var(--line); }
.section > .container { position: relative; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.text-gradient {
  background: linear-gradient(100deg, var(--red) 0%, #b2213b 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.center-link { display: flex; justify-content: center; margin-top: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--dir { --flip: var(--dir); transform: scaleX(var(--flip)); }

/* ---------- Dark (blue) context: hero, page heroes, CTA, footer ---------- */
.on-dark { color: #fff; }
.on-dark .lead, .on-dark .muted { color: rgba(234, 239, 247, 0.86); }
.on-dark .eyebrow { color: var(--red-light); }
.on-dark .text-gradient { background-image: linear-gradient(100deg, #ffffff 0%, #ffd3d3 40%, var(--red-light) 100%); }

/* ---------- Background textures ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(65, 85, 122, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 85, 122, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
}
.on-dark .grid-bg, .on-dark.grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}
.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  background: radial-gradient(circle, var(--red) 0%, transparent 65%);
}

/* ---------- Buttons, tags, chips ---------- */
.btn {
  --btn-bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; background: var(--btn-bg);
  font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(calc(3px * var(--dir))) scaleX(var(--flip, 1)); }
.btn-primary { --btn-bg: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(211, 0, 0, 0.7); }
.btn-primary:hover { --btn-bg: var(--red-hover); box-shadow: 0 14px 30px -12px rgba(211, 0, 0, 0.75); transform: translateY(-1px); }
.btn-ghost { color: var(--blue); border-color: var(--line-strong); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.16); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--blue);
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--red); transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(calc(4px * var(--dir))) scaleX(var(--flip, 1)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--blue-softer);
  font-size: 0.88rem; color: var(--blue-600);
}

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list .icon { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--red); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s, color 0.35s;
}
.site-header::before { /* soft shade so white text stays readable over bright video frames */
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26, 36, 56, 0.45), transparent);
  transition: opacity 0.35s;
}
.site-header.is-scrolled, body.nav-open .site-header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(38, 52, 78, 0.35);
}
.site-header.is-scrolled::before, body.nav-open .site-header::before { opacity: 0; }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
}
/* backdrop-filter would become the containing block of the fixed mobile menu, so drop it while the menu is open */
body.nav-open .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { position: relative; display: block; flex: none; }
.logo img { width: 148px; height: auto; transition: opacity 0.3s; }
.logo .logo-on-light { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .logo-on-dark, body.nav-open .site-header .logo-on-dark { opacity: 0; }
.site-header.is-scrolled .logo-on-light, body.nav-open .site-header .logo-on-light { opacity: 1; }

.main-nav { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-row { display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.97rem; font-weight: 500;
  color: inherit; opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { opacity: 1; }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--red);
}
.has-mega > .nav-row .nav-link { padding-inline-end: 4px; }
.has-mega > .nav-row .nav-link[aria-current="page"]::after { inset-inline-end: 4px; }
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: inherit; opacity: 0.75; cursor: pointer;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.sub-toggle .icon { width: 16px; height: 16px; }
.has-mega:hover .sub-toggle, .has-mega.is-open .sub-toggle { opacity: 1; }
.has-mega.is-open .sub-toggle { transform: rotate(180deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  width: min(680px, 90vw); padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; } /* hover bridge */
.mega::after { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.mega--tech { width: min(640px, 90vw); }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1181px) {
  .has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-label {
  margin: 6px 12px 8px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.mega-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  color: var(--text); transition: background 0.2s, color 0.2s;
}
.mega-item:hover { background: var(--blue-softer); }
.mega-item--compact { padding: 8px 12px; }
.mega-icon {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--blue-soft); color: var(--blue); transition: background 0.2s, color 0.2s;
}
.mega-item:hover .mega-icon { background: var(--blue); color: #fff; }
.mega-title { font-size: 0.93rem; line-height: 1.3; }
.mega-abbr {
  display: inline-block; min-width: 52px; font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--red);
}
.mega-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 12px 14px;
  border-top: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--blue);
}
.mega-all .icon { color: var(--red); transition: transform 0.25s var(--ease); }
.mega-all:hover .icon { transform: translateX(calc(4px * var(--dir))) scaleX(var(--flip, 1)); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }

.lang-switch { position: relative; }
.lang-toggle.sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; width: auto; height: 38px; padding: 0 11px;
  border: 1px solid currentColor; border-radius: 999px; opacity: 0.85;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em;
}
.lang-toggle .icon { width: 16px; height: 16px; }
.lang-chevron { transition: transform 0.25s var(--ease); }
.lang-switch.is-open .lang-toggle { transform: none; }
.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }
.mega--lang { width: 230px; padding: 10px; }
.lang-list { display: grid; gap: 2px; }
.lang-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 0.95rem; transition: background 0.2s; }
.lang-link:hover { background: var(--blue-softer); }
.lang-link[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.lang-code { min-width: 26px; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--red); }

.menu-toggle {
  display: none; margin-inline-start: auto; width: 46px; height: 46px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: 0.9;
}
.menu-toggle-bars { position: relative; display: block; width: 18px; height: 10px; margin: 0 auto; }
.menu-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 1.8px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 8.2px; }
body.nav-open .menu-toggle-bars span:first-child { top: 4.1px; transform: rotate(45deg); }
body.nav-open .menu-toggle-bars span:last-child { top: 4.1px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 1;
    display: flex; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    background: #fff; color: var(--text);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-row { justify-content: space-between; }
  .nav-link { padding: 16px 4px; font-size: 1.3rem; opacity: 1; }
  .nav-link[aria-current="page"] { color: var(--red); }
  .nav-link[aria-current="page"]::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; border: 1px solid var(--line); opacity: 1; }
  .mega, .mega--tech {
    position: static; width: auto; padding: 0 0 16px; border: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .mega::before, .mega::after { display: none; }
  .has-mega.is-open .mega { display: block; transform: none; }
  .mega-grid, .mega-cols { grid-template-columns: 1fr; }
  .nav-cta { min-height: 54px; font-size: 1rem; }
  .lang-toggle.sub-toggle { display: none; }
  .lang-switch .mega--lang { display: block; padding: 0; }
  .mega--lang .mega-label { margin: 0 0 10px; }
  .lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .lang-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 72px; overflow: hidden; isolation: isolate;
  background: var(--blue-800);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 43, 66, 0.92) 0%, rgba(55, 74, 108, 0.72) 45%, rgba(65, 85, 122, 0.3) 100%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(211, 0, 0, 0.35), transparent 70%);
}
.hero .grid-bg { z-index: -1; opacity: 0.6; }
.hero-inner { position: relative; }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero .lead { max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) 0 clamp(56px, 7vw, 88px);
  background: linear-gradient(120deg, var(--blue-800) 0%, var(--blue) 60%, #4d6491 100%);
}
.page-hero .grid-bg { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.page-hero .glow { width: 560px; height: 560px; right: -160px; top: -240px; z-index: -1; opacity: 0.45; }
.page-hero::after { /* red accent line */
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: min(420px, 40%); height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(31, 43, 66, 0.95) 0%, rgba(55, 74, 108, 0.82) 45%, rgba(65, 85, 122, 0.45) 100%);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: 16px;
  background: var(--red); color: #fff; box-shadow: 0 14px 30px -12px rgba(211, 0, 0, 0.8);
}
.page-hero-icon .icon { width: 28px; height: 28px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; font-size: 0.86rem; color: rgba(234, 239, 247, 0.7); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; opacity: 0.6; }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------- Intro / who we are ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro-copy h2 { margin-bottom: 22px; }
.intro-copy .lead { margin-bottom: 30px; }
.who-box {
  position: relative; padding: 24px 26px; margin-bottom: 32px;
  border-inline-start: 3px solid var(--red); border-radius: 0;
  border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm);
  background: var(--blue-softer);
}
.who-box h3 { font-size: 1.08rem; letter-spacing: 0; margin-bottom: 8px; color: var(--blue); }
.who-box p { margin: 0; color: var(--text-2); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 9vw, 128px); gap: 12px; }
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--blue-soft); box-shadow: var(--shadow-sm); }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.bento figure:hover img { transform: scale(1.05); }
.bento .b1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.bento .b2 { grid-column: 5 / 7; grid-row: 1 / 2; }
.bento .b3 { grid-column: 5 / 7; grid-row: 2 / 4; }
.bento .b4 { grid-column: 1 / 3; grid-row: 3 / 4; }
.bento .b5 { grid-column: 3 / 5; grid-row: 3 / 4; }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card::before { /* gradient edge highlight */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, var(--red), transparent 40%, transparent 65%, var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
a.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-lg); }
a.card:hover::before { opacity: 1; }

.solution-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.solution-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.solution-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.solution-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 52, 78, 0.25), transparent 40%); }
a.card:hover .solution-card-media img { transform: scale(1.06); }
.solution-card-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.solution-card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(38, 52, 78, 0.8);
  transition: background 0.3s;
}
a.card:hover .solution-card-icon { background: var(--red); }
.solution-card-index {
  padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; color: var(--blue);
}
.solution-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.solution-card-body h3 { margin-bottom: 10px; font-size: 1.18rem; letter-spacing: -0.015em; color: var(--text); }
.solution-card-body p { margin-bottom: 20px; font-size: 0.95rem; color: var(--text-2); }
.solution-card-body .link-arrow { margin-top: auto; font-size: 0.93rem; }

/* ---------- Next-gen technology cards ---------- */
.ng-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ng-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue); }
.ng-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ng-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 52, 78, 0.1) 30%, rgba(38, 52, 78, 0.88)); }
a.card:hover .ng-card-media img { transform: scale(1.07); }
.ng-card-media .ng-abbr { position: absolute; z-index: 1; inset-inline-start: 18px; bottom: 12px; color: #fff; }
.ng-abbr {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.01em;
}
.ng-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.ng-card-body h3 { font-size: 1.02rem; letter-spacing: 0; margin-bottom: 10px; }
.ng-card-body p { font-size: 0.89rem; color: var(--text-2); margin-bottom: 18px; }
.ng-card-body .link-arrow { margin-top: auto; font-size: 0.9rem; }
.ng-card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--red); color: #fff;
}
.ng-card-icon .icon { width: 22px; height: 22px; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 22px 0;
  background: linear-gradient(90deg, var(--blue-700), var(--blue) 50%, var(--blue-700));
}
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--blue-700), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--blue-700), transparent); }
.ticker-track { display: flex; width: max-content; direction: ltr; animation: ticker 70s linear infinite; }
.ticker-item span { unicode-bidi: plaintext; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px; padding: 0 26px; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.02rem; color: rgba(234, 239, 247, 0.85);
}
.ticker-item b { color: #fff; font-weight: 700; }
.ticker-item::after { content: ""; width: 7px; height: 7px; margin-left: 26px; border-radius: 2px; background: var(--red-light); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Offices (contact page) ---------- */
.office-list { display: grid; gap: 16px; }
.office-card { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.office-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.office-head h3 { margin: 0; font-size: 1.3rem; color: var(--blue-700); }
.location-code {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--blue);
}
.office-card:first-child .location-code { background: var(--red); }
.office-details { display: grid; gap: 12px; }
.office-details li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); }
.office-details .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--red); }
.office-details address { font-style: normal; line-height: 1.55; }
.office-details a { color: var(--blue); font-weight: 500; transition: color 0.2s; }
.office-details a:hover { color: var(--red); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(56px, 7vw, 96px) 0; }
.cta-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
  padding: clamp(32px, 6vw, 68px); border-radius: calc(var(--radius) + 6px); overflow: hidden; isolation: isolate;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(125deg, var(--blue-700) 0%, var(--blue) 60%, #50678f 100%);
  box-shadow: var(--shadow-lg);
}
.cta-glow { position: absolute; z-index: -1; width: 600px; height: 600px; right: -200px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(211, 0, 0, 0.55), transparent 65%); filter: blur(30px); }
.cta-copy h2 { max-width: 20ch; font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
.cta-copy .lead { max-width: 560px; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(60px, 8vw, 88px) 0 0; background: var(--blue-800); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--blue) 60%); }
.footer-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 0.8fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .logo img { width: 160px; margin-bottom: 22px; }
.footer-tagline { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.footer-text { color: rgba(234, 239, 247, 0.72); font-size: 0.93rem; max-width: 340px; }
.footer-heading { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(234, 239, 247, 0.55); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.93rem; color: rgba(234, 239, 247, 0.85); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; color: rgba(234, 239, 247, 0.6);
}
.footer-bottom p { margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 0.86rem; }
.link-button:hover { color: #fff; }

/* ---------- Solution detail ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.prose p:not(.eyebrow) { color: var(--text-2); font-size: 1.06rem; line-height: 1.75; }
.side-panel {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 26px;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--blue-softer);
  border-top: 4px solid var(--blue);
}
.side-panel h3 { font-size: 0.76rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }

.systems-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.system-card { aspect-ratio: 4 / 3; justify-content: flex-end; color: #fff; }
.system-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.system-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(38, 52, 78, 0.9)); }
.system-card:hover img { transform: scale(1.05); }
.system-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px; }
.system-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.system-card .num { padding: 3px 9px; border-radius: 999px; background: var(--red); font-family: var(--font-display); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stage-media { aspect-ratio: 16 / 11; overflow: hidden; }
.stage-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.stage:hover .stage-media img { transform: scale(1.05); }
.stage-body { padding: 22px 22px 24px; }
.stage-num {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; color: var(--red);
}
.stage-num::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.stage h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.stage p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

.related-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related-tech a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.related-tech a:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-tech .abbr { display: inline-flex; min-width: 58px; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.03em; color: var(--red); }
.related-tech .name { flex: 1; font-size: 0.93rem; line-height: 1.35; color: var(--text); }
.related-tech .icon { width: 16px; height: 16px; color: var(--blue); }

.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-prev a { padding: 24px 26px; }
.next-prev small { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.next-prev strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--blue-700); }
.next-prev .is-next { text-align: end; }

/* ---------- Technologies page ---------- */
.tech-tabs-wrap {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tech-tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.tech-tabs::-webkit-scrollbar { display: none; }
.tech-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.tech-tab .icon { width: 16px; height: 16px; color: var(--red); }
.tech-tab:hover { color: var(--blue); border-color: var(--blue); }
.tech-tab.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.tech-tab.is-active .icon { color: #fff; }

.ng-detail-grid { display: grid; gap: 22px; }
.ng-detail { display: grid; grid-template-columns: 320px minmax(0, 1fr); scroll-margin-top: calc(var(--header-h) + 90px); }
.ng-detail-aside { position: relative; display: flex; align-items: flex-end; min-height: 280px; overflow: hidden; color: #fff; background: var(--blue); }
.ng-detail-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ng-detail-aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 52, 78, 0.15) 10%, rgba(38, 52, 78, 0.92)); }
.ng-detail-aside-text { position: relative; z-index: 1; padding: 26px 26px 24px; }
.ng-detail-aside .ng-card-icon { margin-bottom: 16px; }
.ng-detail-aside .ng-abbr { font-size: clamp(2.4rem, 3.6vw, 3.1rem); }
.ng-detail-aside h3 { font-size: 1.12rem; letter-spacing: 0; margin: 8px 0 0; }
.ng-detail-main { padding: 30px clamp(24px, 3vw, 40px); }
.ng-detail-main .summary { font-size: 1.12rem; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.ng-detail-main .body { color: var(--text-2); margin-bottom: 24px; }
.ng-detail-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px; }
.ng-detail-cols h4, .ng-processes-title { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; font-weight: 600; }
.products.ng-processes { margin: 0 0 28px; }
.ng-processes .product:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ng-detail-cols .check-list li { font-size: 0.94rem; }
.ng-detail-cols .chip { font-size: 0.84rem; }

.tech-category { scroll-margin-top: calc(var(--header-h) + 70px); }
.tech-cat-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tech-cat-head { position: sticky; top: calc(var(--header-h) + 90px); }
.tech-cat-media { position: relative; aspect-ratio: 4 / 3; margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.tech-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.tech-cat-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--blue)); }
.tech-cat-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; color: var(--blue-700); }
.tech-cat-head p { color: var(--text-2); margin: 0; }

.tech-list { display: grid; gap: 14px; }
.tech-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 18px; scroll-margin-top: calc(var(--header-h) + 90px);
}
.tech-row:target, .tech-row.is-target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft), var(--shadow-md); }
.tech-row-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--blue-soft); }
.tech-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tech-row-num {
  position: absolute; inset-inline-start: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue);
}
.tech-row-text { padding-top: 4px; }
.tech-row h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.tech-row h3 .abbr { color: var(--red); }
.tech-row p { margin: 0; color: var(--text-2); font-size: 0.96rem; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.product { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--blue-softer); }
.product strong { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--blue-700); }
.product strong::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--red); }
.product p { font-size: 0.88rem; }

/* ---------- About ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px 24px; }
.step .icon-wrap { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: var(--blue); color: #fff; }
.step:nth-child(odd) .icon-wrap { background: var(--red); }
.step .icon-wrap .icon { width: 24px; height: 24px; }
.step .step-index { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-3); }
.step h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { margin: 0; font-size: 0.93rem; color: var(--text-2); }

.about-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about-media figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.about-media figure:not(:first-child) { aspect-ratio: 1; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 30px; }
.form-card { padding: clamp(24px, 4vw, 44px); border-top: 4px solid var(--red); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; color: var(--blue-700); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2341557a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(65, 85, 122, 0.15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { font-size: 0.85rem; color: var(--red); }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot p { margin: 0; font-size: 0.84rem; color: var(--text-3); max-width: 340px; }
.form-foot a { text-decoration: underline; text-underline-offset: 3px; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 24px; border-radius: 12px; border: 1px solid; font-size: 0.95rem; }
.alert .icon { margin-top: 2px; }
.alert--success { border-color: #a7dcbc; background: #ecf8f1; color: #1d6b3e; }
.alert--error { border-color: #f3b4b4; background: var(--red-soft); color: #9b1111; }
.alert p { margin: 0; }

/* ---------- Generic page bits ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 44px; color: var(--blue-700); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal a, .legal .link-button { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.error-page {
  position: relative; overflow: hidden; isolation: isolate; min-height: 80vh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: linear-gradient(120deg, var(--blue-800) 0%, var(--blue) 70%);
}
.error-page .grid-bg { z-index: -1; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 20vw, 13rem); line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--red-light); margin-bottom: 12px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 640px; margin: 0 auto; padding: 16px 18px;
  border-radius: 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue);
  background: #fff; box-shadow: var(--shadow-lg);
  font-size: 0.9rem; color: var(--text-2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 280px; }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(270deg, rgba(31, 43, 66, 0.92) 0%, rgba(55, 74, 108, 0.72) 45%, rgba(65, 85, 122, 0.3) 100%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(211, 0, 0, 0.35), transparent 70%);
}
[dir="rtl"] .page-hero-media::after { background: linear-gradient(270deg, rgba(31, 43, 66, 0.95) 0%, rgba(55, 74, 108, 0.82) 45%, rgba(65, 85, 122, 0.45) 100%); }
[dir="rtl"] .page-hero .grid-bg { -webkit-mask-image: linear-gradient(270deg, transparent, #000 40%); mask-image: linear-gradient(270deg, transparent, #000 40%); }
[dir="rtl"] .page-hero::after { background: linear-gradient(270deg, var(--red), transparent); }
[dir="rtl"] .stage-num::after { background: linear-gradient(270deg, var(--line-strong), transparent); }
[dir="rtl"] .field select { background-position: left 14px center; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.hero-anim > * { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
.hero-anim > *:nth-child(2) { animation-delay: 0.1s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.2s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.3s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ng-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stages, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .content-grid, .tech-cat-grid { grid-template-columns: 1fr; }
  .side-panel, .tech-cat-head { position: static; }
  .tech-cat-media { aspect-ratio: 16 / 7; }
  .ng-detail { grid-template-columns: 1fr; }
  .ng-detail-aside { min-height: 240px; }
}
@media (max-width: 960px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ng-detail-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .logo img { width: 128px; }
  .solution-grid, .ng-grid, .systems-grid, .stages, .steps, .next-prev, .footer-grid, .form-grid, .products { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 80px; gap: 10px; }
  .bento .b1 { grid-column: 1 / -1; grid-row: span 3; }
  .bento .b2, .bento .b3, .bento .b4, .bento .b5 { grid-column: span 3; grid-row: span 2; }
  .tech-row { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .tech-row-thumb { aspect-ratio: 16 / 9; }
  .next-prev .is-next { text-align: start; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .hero-anim > * { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

/* Contact page: make the form card as tall as the office cards (desktop only) */
@media (min-width: 961px) {
  .contact-grid { align-items: stretch; }
  .form-card form { flex: 1; display: flex; flex-direction: column; }
  .form-card .form-grid { flex: 1; grid-template-rows: auto auto 1fr; }
  .form-card .field--full { grid-template-rows: auto 1fr; }
  .form-card .field--full textarea { height: 100%; }
}
