/* ==========================================================================
   NIVAD PHARMED SALAMAT — Design System 2.0  "Clinical Aurora"
   Persian RTL · Premium Biotech · Pure HTML / CSS / JS
   Author: full redesign — aurora meshes, glassmorphism, bento, motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   FONTS
   -------------------------------------------------------------------------- */
/* WOFF2 first (roughly half the bytes of the TTF), TTF kept as a fallback for
   very old browsers. Parastoo and Sahel are preloaded from each page's head. */
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel.woff2') format('woff2'),
       url('../fonts/Sahel.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Parastoo';
  src: url('../fonts/Parastoo.woff2') format('woff2'),
       url('../fonts/Parastoo.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Shabnam';
  src: url('../fonts/Shabnam-Light.woff2') format('woff2'),
       url('../fonts/Shabnam-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --petrol:        #14657E;
  --petrol-600:    #10586E;
  --petrol-700:    #0C4457;
  --teal:          #12A6A6;
  --cyan:          #1EC7C0;
  --cyan-400:      #22D3C5;
  --cyan-300:      #5CE6DA;
  --mint:          #86F0E4;

  /* Ink / dark surfaces */
  --ink-900:       #04121A;
  --ink-800:       #071E29;
  --ink-700:       #0B2C3A;

  /* Light surfaces */
  --bg:            #F3F8FA;
  --bg-2:          #E9F2F5;
  --surface:       #FFFFFF;
  --surface-2:     #F0F6F8;
  --line:          #E0EAEE;
  --line-2:        #D3E1E7;

  /* Text */
  --text:          #0D2731;
  --text-2:        #3E515D;
  --text-3:        #5A6E7A;
  --text-inv:      #EAF4F6;
  --text-inv-2:    rgba(234,244,246,.72);

  /* Effects */
  --shadow-xs:     0 1px 2px rgba(9,28,38,.05);
  --shadow-sm:     0 4px 16px rgba(9,28,38,.06);
  --shadow:        0 14px 40px rgba(9,28,38,.10);
  --shadow-lg:     0 30px 70px rgba(9,28,38,.16);
  --shadow-glow:   0 20px 50px rgba(18,166,166,.30);
  --ring:          0 0 0 1px rgba(20,101,126,.10);

  /* Radii */
  --r-xs:   10px;
  --r-sm:   14px;
  --r:      20px;
  --r-lg:   28px;
  --r-xl:   36px;
  --r-2xl:  48px;

  /* Motion */
  --e:      cubic-bezier(.22,.61,.36,1);
  --e-out:  cubic-bezier(.16,1,.3,1);
  --tr:     .4s var(--e);
  --tr-fast:.25s var(--e);

  --header-h: 82px;

  /* Gradients */
  --grad-brand:  linear-gradient(120deg, #14657E 0%, #12A6A6 55%, #22D3C5 100%);
  --grad-brand-2:linear-gradient(120deg, #1EC7C0 0%, #12A6A6 100%);
  --grad-ink:    linear-gradient(155deg, #04121A 0%, #072632 48%, #0E4A5C 120%);
  --grad-text:   linear-gradient(100deg, #5CE6DA 0%, #22D3C5 50%, #7FE6DE 100%);

  /* Fonts */
  --font-h: 'Sahel', 'Tahoma', sans-serif;
  --font-b: 'Parastoo', 'Tahoma', sans-serif;
  --font-l: 'Shabnam', 'Tahoma', sans-serif;
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  color: var(--text-2);
  background:
    radial-gradient(circle at 8% 14%, rgba(34,211,197,.10), transparent 26rem),
    radial-gradient(circle at 92% 34%, rgba(20,101,126,.10), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 46%, var(--bg));
  direction: rtl;
  text-align: right;
  line-height: 1.9;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(20,101,126,.12) 0 1px, transparent 1px),
    linear-gradient(120deg, rgba(34,211,197,.045) 1px, transparent 1px);
  background-size: 34px 34px, 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  opacity: .55;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--cyan-400); color: var(--ink-900); }
/* A two-tone ring so the indicator stays visible on both the dark surfaces
   and the white cards. The previous single translucent cyan ring measured
   1.5:1 against white — effectively invisible in light mode. */
:focus-visible {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(34, 211, 197, .34);
  border-radius: 12px;
}
[data-theme="dark"] :focus-visible {
  outline-color: var(--cyan-300);
  box-shadow: 0 0 0 6px rgba(4, 18, 26, .55);
}

/* --------------------------------------------------------------------------
   SKIP LINK
   Keyboard and screen-reader users otherwise have to tab through the whole
   header — six nav links, two tool buttons and the menu button — on every
   single page before reaching any content. Off-screen until focused.
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 5000;
  transform: translateY(-140%);
  padding: 13px 22px;
  background: var(--cyan-400);
  color: var(--ink-900);
  font-family: var(--font-h);
  font-size: 14.5px;
  font-weight: 700;
  border-end-end-radius: var(--r-xs);
  border-end-start-radius: var(--r-xs);
  transition: transform .2s var(--e);
}
.skip-link:focus {
  transform: translateY(0);
}

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px){ .container { width: min(1240px, 100% - 36px); } }

/* Utility: gradient text */
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-brand {
  background: linear-gradient(100deg, var(--petrol), var(--teal) 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   ATMOSPHERE — aurora blobs + grain
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(34,211,197,.55), transparent 62%); top: -12vw; right: -8vw; animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(20,101,126,.6), transparent 62%); bottom: -14vw; left: -6vw; animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { width: 30vw; height: 30vw; background: radial-gradient(circle, rgba(94,230,218,.4), transparent 60%); top: 30%; left: 30%; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-4vw,5vw) scale(1.12);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(5vw,-4vw) scale(1.08);} }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(3vw,-3vw) scale(.9);} }

.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   SCROLL PROGRESS
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0; inset-inline: 0;
  height: 4px;
  z-index: 2000;
  background: linear-gradient(90deg, var(--cyan-400), var(--teal), var(--cyan-300));
  box-shadow: 0 0 14px rgba(34,211,197,.5), 0 2px 10px rgba(18,166,166,.28);
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform .12s linear;
}
html[lang="en"] .progress { transform-origin: left center; }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  transition: background .35s var(--e-out), border-color .35s var(--e-out), box-shadow .35s var(--e-out), height .35s var(--e-out);
}
.header.transparent {
  background: linear-gradient(180deg, rgba(4,18,26,.62) 0%, rgba(4,18,26,.18) 100%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(94,230,218,.14);
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
}
.header.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(18,166,166,.22);
  box-shadow: 0 10px 40px rgba(7,30,41,.1), 0 1px 0 rgba(94,230,218,.08);
  height: 68px;
}
.header.scrolled::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,197,.75), rgba(18,166,166,.9), transparent);
  opacity: .85;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  height: 100%;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; transition: var(--tr); }
.header.scrolled .logo img { height: 40px; }
.header.transparent .logo img,
html[data-theme="dark"] .header.scrolled .logo img { filter: brightness(0) invert(1); }
.header.scrolled .logo img { filter: none; }

/* Desktop nav */
.nav { margin-inline-start: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--tr-fast);
}
.header.transparent .nav > ul > li > a { color: rgba(255,255,255,.92); }
.header.scrolled    .nav > ul > li > a { color: var(--text-2); }
.header.transparent .nav > ul > li > a:hover { background: rgba(255,255,255,.16); color: #fff; }
.header.scrolled    .nav > ul > li > a:hover { background: rgba(18,166,166,.1); color: var(--petrol); }
.nav > ul > li > a.active { color: var(--cyan-300) !important; }
.header.scrolled .nav > ul > li > a.active {
  color: var(--teal) !important;
  background: rgba(18,166,166,.1);
}
.nav > ul > li > a::after {
  content: '';
  position: absolute;
  inset-inline: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-brand-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--e-out), opacity .35s var(--e-out);
  opacity: .85;
}
.nav > ul > li > a:hover::after,
.nav > ul > li > a.active::after { transform: scaleX(1); }
.nav .chev { font-size: 8px; transition: var(--tr); opacity: .75; }
.has-dropdown:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 214px;
  padding: 10px;
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: var(--tr);
  z-index: 100;
}
.dropdown::before { content: ''; position: absolute; top: -16px; right: 0; left: 0; height: 16px; }
/* :focus-within matters as much as :hover here. The submenu is
   `visibility: hidden` when closed, which takes its links out of the tab
   order — so on hover-only, a keyboard user could not reach خط مشی کیفیت or
   تماس با ما from the main navigation at all. */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown li a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text) !important;
  border-radius: var(--r-xs);
  transition: var(--tr-fast);
  font-family: var(--font-b);
}
.dropdown li a i { color: var(--teal); font-size: 13px; width: 16px; text-align: center; }
.dropdown li a:hover { background: var(--surface-2) !important; color: var(--petrol) !important; padding-inline-end: 20px; }

/* Header tools */
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 12px; font-weight: 800; line-height: 1;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: var(--tr-fast);
}
#langToggle { width: 40px; padding: 0; border-radius: 50%; }
.tool-btn i { font-size: 15px; }
.header.transparent .tool-btn {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.header.transparent .tool-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }
.header.scrolled .tool-btn {
  color: var(--petrol);
  background: rgba(18,166,166,.08);
  border-color: rgba(18,166,166,.22);
}
.header.scrolled .tool-btn:hover { color: var(--teal); border-color: var(--teal); background: rgba(18,166,166,.14); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   VIEW SWITCH (automatic / mobile / desktop)

   The icons are inline SVG, not Font Awesome: assets/vendor/fontawesome is a
   hand-built subset with no phone or display glyph, and an icon outside the
   subset renders as a blank box.
   -------------------------------------------------------------------------- */
.view-switch { position: relative; display: inline-flex; }
/* Without JavaScript the menu can never open and the choice can never be
   stored, so the control would be a button that does nothing. The rest of the
   page degrades to the normal responsive layout, which is the right answer
   anyway. `no-js` is removed by the first statement of the head script. */
html.no-js .view-switch { display: none; }
.view-ico { width: 17px; height: 17px; display: block; }
/* The button carries all three glyphs and shows the one matching the mode.
   data-active is set by main.js from the stored choice; the markup ships with
   "auto" so the button is never iconless before scripts run. */
.view-ico-set { display: block; }
.view-ico-for { display: none; }
.view-switch[data-active="auto"]    .view-ico-for[data-for="auto"],
.view-switch[data-active="mobile"]  .view-ico-for[data-for="mobile"],
.view-switch[data-active="desktop"] .view-ico-for[data-for="desktop"] { display: block; }
.view-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.view-menu[hidden] { display: none; }
.view-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-b);
  font-size: 13.5px;
  line-height: 1;
  text-align: start;
  cursor: pointer;
  transition: var(--tr-fast);
}
.view-opt .view-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.view-opt:hover { background: rgba(18,166,166,.10); color: var(--text); }
.view-opt.is-active { background: rgba(18,166,166,.14); color: var(--petrol); font-weight: 700; }
.view-opt.is-active .view-ico { opacity: 1; }
.view-opt:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }


/* --------------------------------------------------------------------------
   "COMING SOON" PANEL
   Used where a feature is announced but not yet live — currently the online
   resume submission on the careers page, whose API is not deployed.
   -------------------------------------------------------------------------- */
.soon-panel { text-align: center; padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 32px); }
.soon-icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: var(--petrol);
  background: rgba(18,166,166,.10);
  border: 1px solid rgba(18,166,166,.24);
}
.soon-panel h2 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; }
.soon-lead { color: var(--text-2); max-width: 56ch; margin: 0 auto 18px; line-height: 2; }
.soon-alt { color: var(--text-3); max-width: 56ch; margin: 0 auto 24px; font-size: 14.5px; line-height: 2; }
.soon-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
html[data-theme="dark"] .soon-icon { background: rgba(94,230,218,.10); border-color: rgba(94,230,218,.22); color: var(--teal); }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: #fff;
  transition: var(--tr-fast);
}
.header.scrolled .menu-toggle { color: var(--petrol); background: var(--surface-2); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; inset-inline: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 92px 26px 40px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: 100dvh;
  overflow-y: auto;
  transform: translateY(-110%);
  transition: transform .5s var(--e-out), opacity .35s var(--e-out);
  opacity: .96;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav.open li { animation: mobileItemIn .42s var(--e-out) both; }
.mobile-nav.open li:nth-child(2) { animation-delay: .04s; }
.mobile-nav.open li:nth-child(3) { animation-delay: .08s; }
.mobile-nav.open li:nth-child(4) { animation-delay: .12s; }
.mobile-nav.open li:nth-child(5) { animation-delay: .16s; }
.mobile-nav.open li:nth-child(6) { animation-delay: .20s; }
.mobile-nav.open li:nth-child(7) { animation-delay: .24s; }
@keyframes mobileItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav ul li a {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 8px;
  font-family: var(--font-h);
  font-size: 16px; font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  transition: var(--tr-fast);
}
.mobile-nav ul li a i { color: var(--teal); width: 22px; text-align: center; font-size: 15px; }
.mobile-nav ul li a:hover { color: var(--petrol); padding-inline-end: 16px; }

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: var(--tr);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn i { font-size: 14px; }
.btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s var(--e);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn .ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  transform: translate(-50%, -50%) scale(0);
  animation: btnRipple .62s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes btnRipple {
  to { transform: translate(-50%, -50%) scale(18); opacity: 0; }
}

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 56px rgba(18,166,166,.42); }
.btn-accent { background: var(--cyan-400); color: var(--ink-900); box-shadow: 0 14px 34px rgba(34,211,197,.36); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(34,211,197,.5); }
.cta .btn-accent { animation: ctaGlow 4.2s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 14px 34px rgba(34,211,197,.36); }
  50% { box-shadow: 0 18px 52px rgba(34,211,197,.62), 0 0 0 8px rgba(34,211,197,.06); }
}
.btn-ghost { background: rgba(255,255,255,.08); color: var(--petrol); border-color: var(--line-2); backdrop-filter: blur(8px); }
.hero .btn-ghost,
.innovation .btn-ghost,
.cta .btn-ghost,
.page-hero .btn-ghost,
.facilities .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: #fff; color: var(--petrol); border-color: #fff; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--petrol); border-color: var(--line-2); }
.btn-outline:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-outline-primary { background: transparent; color: var(--petrol); border-color: rgba(20,101,126,.35); }
.btn-outline-primary:hover { background: var(--petrol); color: #fff; border-color: var(--petrol); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-sm { padding: 11px 22px; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   SECTION SYSTEM
   -------------------------------------------------------------------------- */
section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
section:not(.hero):not(.page-hero):not(.innovation)::before {
  content: '';
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18,166,166,.22), transparent);
  opacity: .7;
  pointer-events: none;
}
.section-head,
.section-header,
.page-hero-content {
  will-change: transform, opacity;
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(40px,6vw,66px); position: relative; z-index: 2; }
.section-head.section-head--hub {
  margin-top: 0;
  margin-bottom: clamp(12px, 2vh, 22px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, rgba(20,101,126,.09), rgba(34,211,197,.09));
  color: var(--petrol);
  font-family: var(--font-h);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 8px 17px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(20,101,126,.14);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: sectionLabelShine 3.4s ease-in-out infinite;
}
.eyebrow > * { position: relative; z-index: 1; }
.eyebrow::after {
  content: '';
  position: absolute;
  inset: -50% -70%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0) 44%,
    rgba(255,255,255,.65) 50%,
    rgba(94,230,218,.45) 52%,
    rgba(255,255,255,0) 56%,
    transparent 60%
  );
  transform: translateX(-130%) rotate(14deg);
  animation: sectionLabelSweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.eyebrow i {
  font-size: 11px;
  color: var(--teal);
  animation: sectionIconPulse 3.4s ease-in-out infinite;
}
.eyebrow.light {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.2);
  animation-name: sectionLabelShineLight;
}
.eyebrow.light::after {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0) 44%,
    rgba(255,255,255,.75) 50%,
    rgba(134,240,228,.5) 52%,
    rgba(255,255,255,0) 56%,
    transparent 60%
  );
}
.eyebrow.light i { color: var(--cyan-300); }
@keyframes sectionLabelShine {
  0%, 100% {
    box-shadow: 0 0 0 rgba(34,211,197,0), 0 0 10px rgba(34,211,197,.1);
    border-color: rgba(20,101,126,.14);
  }
  50% {
    box-shadow: 0 0 20px rgba(34,211,197,.32), 0 0 36px rgba(34,211,197,.12);
    border-color: rgba(34,211,197,.42);
  }
}
@keyframes sectionLabelShineLight {
  0%, 100% {
    box-shadow: 0 0 0 rgba(134,240,228,0), 0 0 12px rgba(134,240,228,.14);
    border-color: rgba(255,255,255,.2);
  }
  50% {
    box-shadow: 0 0 22px rgba(134,240,228,.38), 0 0 40px rgba(94,230,218,.16);
    border-color: rgba(134,240,228,.55);
  }
}
@keyframes sectionLabelSweep {
  0%, 70%, 100% { transform: translateX(-130%) rotate(14deg); opacity: 0; }
  76% { opacity: 1; }
  94% { transform: translateX(130%) rotate(14deg); opacity: 1; }
}
@keyframes sectionIconPulse {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); }
  50% { filter: brightness(1.4) drop-shadow(0 0 6px rgba(34,211,197,.55)); }
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.32;
  letter-spacing: -.5px;
}
.section-title span { color: var(--petrol); }
.section-title.light { color: #fff; }
.section-title.light span { color: var(--cyan-300); }
.section-lead {
  font-family: var(--font-l);
  font-size: clamp(15.5px, 1.7vw, 18px);
  color: var(--text-3);
  margin-top: 18px;
  line-height: 1.95;
}
.section-lead.light { color: var(--text-inv-2); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink-900);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 18%, rgba(34,211,197,.18), transparent 22rem),
    conic-gradient(from 180deg at 58% 42%, transparent, rgba(34,211,197,.11), transparent 34%);
  opacity: .78;
  mix-blend-mode: screen;
}
.hero:has(.hero-photo)::before { opacity: 0; }
/* Facility photo backdrop — dark by default, brightens in a soft radius
   around the cursor like a light being carried across the building. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo-base,
.hero-photo-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-photo-base {
  filter: grayscale(.04) brightness(.32) saturate(1.12) contrast(1.04);
}
.hero-photo-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,18,26,.68) 0%, rgba(4,18,26,.42) 42%, rgba(11,44,58,.3) 100%);
  pointer-events: none;
}
.hero-photo-glow {
  filter: brightness(1.02) saturate(1.08) contrast(1.02);
  opacity: 0;
  transition: opacity .3s var(--e-out);
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx,50%) var(--my,50%), #000 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.45) 62%, transparent 100%);
          mask-image: radial-gradient(circle 240px at var(--mx,50%) var(--my,50%), #000 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.45) 62%, transparent 100%);
}
.hero.hero-lit .hero-photo-glow { opacity: 1; }
.hero-veil::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.1) 0%, rgba(134,240,228,.14) 42%, transparent 100%);
  opacity: 0;
  transition: opacity .3s var(--e-out);
  pointer-events: none;
}
.hero.hero-lit .hero-veil::after { opacity: 1; }
@media (hover: none) and (pointer: coarse) {
  .hero-photo-glow { display: none; }
  .hero-photo-base { filter: grayscale(.06) brightness(.34) saturate(1.1) contrast(1.04); }
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .swiper, .hero-media .swiper-wrapper, .hero-media .swiper-slide { height: 100%; }
.hero-media .swiper-slide { overflow: hidden; }
.hero-media .swiper-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 8s ease;
  filter: saturate(1.05);
}
.hero-media .swiper-slide-active img { transform: scale(1); }
.hero-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,18,26,.62) 0%, rgba(7,38,50,.42) 40%, rgba(14,74,92,.14) 100%),
    radial-gradient(1200px 640px at 82% 8%, rgba(34,211,197,.06), transparent 58%);
}

.hero-inner { position: relative; z-index: 4; width: 100%; padding: var(--header-h) clamp(24px,5vw,72px) 0; }
.hero-content { max-width: 820px; color: #fff; transition: transform .45s var(--e-out); will-change: transform; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-family: var(--font-h);
  font-size: 12.5px; font-weight: 600;
  padding: 9px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: sectionLabelShineLight 3.4s ease-in-out infinite;
}
.hero-tag::after {
  content: '';
  position: absolute;
  inset: -50% -70%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0) 44%,
    rgba(255,255,255,.7) 50%,
    rgba(134,240,228,.45) 52%,
    rgba(255,255,255,0) 56%,
    transparent 60%
  );
  transform: translateX(-130%) rotate(14deg);
  animation: sectionLabelSweep 5.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-tag > * { position: relative; z-index: 1; }
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-400);
  animation: heroDotPulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(34,211,197,.65);
}
@keyframes heroDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,211,197,.55); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(34,211,197,0); }
}
.hero-content h1 {
  font-family: var(--font-h);
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 26px;
  letter-spacing: -1px;
  text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero-content h1 span { display: inline-block; }
.hero-content p {
  font-family: var(--font-l);
  font-size: clamp(15.5px, 1.8vw, 20px);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.95;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: clamp(24px,4vw,48px); flex-wrap: wrap;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-meta .hm-num { font-family: var(--font-h); font-size: clamp(26px,3vw,34px); font-weight: 700; color: #fff; line-height: 1; }
.hero-meta .hm-num span { color: var(--cyan-300); }
.hero-meta .hm-lbl { font-size: 13px; color: rgba(255,255,255,.68); margin-top: 8px; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  color: rgba(255,255,255,.6); font-size: 20px;
}

.hero .swiper-pagination { z-index: 6 !important; bottom: 28px !important; text-align: right; right: 24px !important; left: auto !important; width: auto; }
.hero .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255,255,255,.4); opacity: 1; transition: var(--tr); }
.hero .swiper-pagination-bullet-active { background: var(--cyan-400); width: 26px; border-radius: 5px; }

/* --------------------------------------------------------------------------
   MARQUEE (trust strip)
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: var(--ink-800);
  border-block: 1px solid rgba(255,255,255,.06);
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { right: 0; background: linear-gradient(to left, var(--ink-800), transparent); }
.marquee::after  { left: 0;  background: linear-gradient(to right, var(--ink-800), transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.62);
  font-family: var(--font-h); font-size: 16px; font-weight: 600;
  white-space: nowrap;
}
.marquee-item i { color: var(--cyan-400); font-size: 18px; }
@keyframes scrollx { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
html[lang="en"] .marquee-track { animation-name: scrollx-en; }
@keyframes scrollx-en { from{ transform: translateX(-50%);} to{ transform: translateX(0);} }

/* --------------------------------------------------------------------------
   BENTO FEATURES (home)
   -------------------------------------------------------------------------- */
.features {
  --hub-size: clamp(396px, min(48.4vw, 66vh), 616px);
  --hub-half: calc(var(--hub-size) / 2);
  --hub-head-gap: clamp(12px, 2vh, 22px);
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(34,211,197,.10), transparent 58%),
    radial-gradient(ellipse 65% 50% at 92% 82%, rgba(20,101,126,.10), transparent 60%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  height: 100dvh;
}
.features-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.features-mesh {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image:
    linear-gradient(120deg, rgba(20,101,126,.07) 1px, transparent 1px),
    linear-gradient(30deg, rgba(34,211,197,.06) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px;
  mask-image: radial-gradient(ellipse 88% 78% at 50% 50%, #000 18%, transparent 80%);
}
.features-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34,211,197,.08) 0%, rgba(34,211,197,.03) 42%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.features .features-aurora { opacity: .48; z-index: 0; }
.features > .container {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  z-index: 2;
  text-align: center;
}
.features .section-head.section-head--hub {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--hub-half) - var(--hub-head-gap));
  transform: translate(-50%, -100%);
  width: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  z-index: 2;
}
.features .hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.features .hub-ring {
  width: var(--hub-size);
  margin: 0;
}
.features-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.features-graphs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.features-graph {
  position: absolute;
  opacity: .42;
  color: var(--teal);
}
.features-graph-a {
  width: min(38vw, 420px);
  height: auto;
  top: 12%;
  inset-inline-start: 2%;
  animation: featuresGraphDrift 18s ease-in-out infinite;
}
.features-graph-b {
  width: min(30vw, 320px);
  height: auto;
  bottom: 10%;
  inset-inline-end: 3%;
  opacity: .36;
  animation: featuresGraphDrift 22s ease-in-out infinite reverse;
  animation-delay: -6s;
}
.features-graph-c {
  width: min(24vw, 260px);
  height: auto;
  top: 58%;
  inset-inline-start: 8%;
  opacity: .28;
  animation: featuresGraphDrift 26s ease-in-out infinite;
  animation-delay: -12s;
}
.fg-grid-x,
.fg-grid-y {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.2;
  opacity: .7;
}
.fg-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(18,166,166,.25));
}
.fg-line-soft {
  stroke: var(--cyan-400);
  stroke-width: 1.6;
  opacity: .75;
  stroke-dasharray: 4 5;
}
.fg-area {
  fill: rgba(18,166,166,.08);
  stroke: none;
}
.fg-bar {
  fill: rgba(20,101,126,.18);
  stroke: none;
}
.fg-bar:nth-child(even) { fill: rgba(34,211,197,.22); }
.fg-dot {
  fill: var(--cyan-400);
  filter: drop-shadow(0 0 4px rgba(34,211,197,.45));
}
@keyframes featuresGraphDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.2vw, -1.4vh); }
}
html[data-theme="dark"] .features {
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(42,192,188,.12), transparent 58%),
    radial-gradient(ellipse 65% 50% at 92% 82%, rgba(30,138,170,.14), transparent 60%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
}
html[data-theme="dark"] .features .features-aurora { opacity: .55; }
html[data-theme="dark"] .features-mesh { opacity: .24; }
html[data-theme="dark"] .features-glow {
  background: radial-gradient(circle, rgba(42,192,188,.16) 0%, rgba(42,192,188,.06) 42%, transparent 68%);
}
html[data-theme="dark"] .features-graph { opacity: .55; }
html[data-theme="dark"] .features-graph-b { opacity: .48; }
html[data-theme="dark"] .features-graph-c { opacity: .38; }
html[data-theme="dark"] .fg-area { fill: rgba(42,192,188,.10); }
html[data-theme="dark"] .fg-bar { fill: rgba(30,138,170,.28); }
html[data-theme="dark"] .fg-bar:nth-child(even) { fill: rgba(42,192,188,.32); }
html[data-theme="dark"] .fg-grid-x,
html[data-theme="dark"] .fg-grid-y { stroke: var(--line); opacity: .55; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.b-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: var(--tr);
  box-shadow: var(--shadow-xs);
  transform-style: preserve-3d;
  will-change: transform;
}
.b-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(340px 200px at var(--mx,50%) var(--my,0%), rgba(34,211,197,.12), transparent 70%);
  opacity: 0; transition: opacity var(--tr);
}
.b-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(34,211,197,.22), transparent 34%, rgba(20,101,126,.16));
  opacity: 0;
  transition: opacity var(--tr);
}
.b-card:hover { transform: translateY(-8px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); box-shadow: var(--shadow-lg); border-color: rgba(18,166,166,.38); }
.b-card:hover::before { opacity: 1; }
.b-card:hover::after { opacity: .55; }
.b-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
  margin-bottom: 20px;
}
.b-card h3 { font-family: var(--font-h); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.b-card p { font-size: 13.5px; color: var(--text-3); line-height: 1.8; }
.b-wide { grid-column: span 2; }
/* Feature hero tile */
.b-feature {
  grid-column: span 2; grid-row: span 2;
  background: var(--grad-ink);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px;
  padding: 0;
}
.b-feature-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: .92;
  z-index: 0;
}
.b-feature-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,18,26,.15) 0%, rgba(4,18,26,.45) 42%, rgba(4,18,26,.88) 100%),
    linear-gradient(135deg, rgba(4,18,26,.55) 0%, transparent 52%);
  pointer-events: none;
}
.b-feature-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
  padding: 32px 28px;
}
.b-feature h3 { color: #fff; font-size: clamp(20px,2.4vw,28px); position: relative; z-index: 2; }
.b-feature p { color: var(--text-inv-2); position: relative; z-index: 2; font-size: 15px; }
.b-feature .b-icon { position: relative; z-index: 2; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); box-shadow: none; }

/* --------------------------------------------------------------------------
   QUICK-ACCESS HUB (home)
   -------------------------------------------------------------------------- */
.hub { display: flex; justify-content: center; position: relative; z-index: 2; }
.hub-ring {
  position: relative;
  width: clamp(396px, min(48.4vw, 66vh), 616px);
  aspect-ratio: 1 / 1;
  margin: clamp(4px, 1vh, 12px) 0;
}
.hub-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-grad-a { stop-color: var(--teal); stop-opacity: 1; }
.hub-grad-b { stop-color: var(--cyan-400); stop-opacity: 1; }
.hub-orbit-track { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.hub-orbit-dashed {
  fill: none;
  stroke: url(#hubRingGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 13;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: hubOrbitSpin 46s linear infinite;
  filter: drop-shadow(0 0 6px rgba(34,211,197,.35));
}
.hub-orbit-link { stroke: rgba(20,101,126,.28); stroke-width: 1.5; stroke-dasharray: 3 5; animation: hubLinkPulse 3.2s ease-in-out infinite; }
.hub-orbit-link:nth-child(5) { animation-delay: .4s; }
.hub-orbit-link:nth-child(6) { animation-delay: .8s; }
.hub-orbit-link:nth-child(7) { animation-delay: 1.2s; }
@keyframes hubLinkPulse {
  0%, 100% { stroke: rgba(20,101,126,.22); stroke-width: 1.5; }
  50% { stroke: rgba(34,211,197,.55); stroke-width: 2; }
}
.hub-orbit-node { fill: var(--cyan-400); filter: drop-shadow(0 0 5px rgba(34,211,197,.6)); }
.hub-orbit-tick { fill: var(--petrol); opacity: .35; }
@keyframes hubOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hub-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64%; height: 64%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  border: 6px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(18,166,166,.14);
}
.hub-core::after {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(34,211,197,.22);
  pointer-events: none;
}
.hub-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-decoration: none;
}
.hub-node-tl { top: 16.2%; left: 16.2%; }
.hub-node-tr { top: 16.2%; left: 83.8%; }
.hub-node-bl { top: 86%; left: 16.2%; transform: translate(-50%, calc(-50% + clamp(22px, 4vh, 48px))); }
.hub-node-br { top: 86%; left: 83.8%; transform: translate(-50%, calc(-50% + clamp(22px, 4vh, 48px))); }
.hub-node-anim { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.hub-node-bubble {
  width: clamp(58px, 7.2vw, 86px);
  height: clamp(58px, 7.2vw, 86px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--shadow-glow);
  border: 3px solid var(--surface);
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out);
  position: relative;
}
.hub-node-bubble::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(34,211,197,.5);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .4s var(--e-out), transform .4s var(--e-out);
}
.hub-node-tl .hub-node-bubble { background: var(--grad-brand); }
.hub-node-tr .hub-node-bubble { background: linear-gradient(135deg, var(--teal), var(--cyan-400)); }
.hub-node-bl .hub-node-bubble { background: linear-gradient(135deg, var(--petrol), var(--petrol-600)); }
.hub-node-br .hub-node-bubble { background: linear-gradient(135deg, var(--cyan-400), var(--petrol-700)); }
.hub-node-label {
  font-family: var(--font-h);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: var(--tr-fast);
}
.hub-node:hover .hub-node-bubble,
.hub-node:focus-visible .hub-node-bubble { transform: translateY(-5px) scale(1.1); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(34,211,197,.14); }
.hub-node:hover .hub-node-bubble::after,
.hub-node:focus-visible .hub-node-bubble::after { opacity: 1; transform: scale(1); }
.hub-node:hover .hub-node-label,
.hub-node:focus-visible .hub-node-label { color: var(--petrol); border-color: rgba(18,166,166,.4); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   ABOUT PREVIEW (home)
   -------------------------------------------------------------------------- */
.about-preview { background: var(--surface); }
.split {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(40px,6vw,72px);
  align-items: center;
}
.split h2 {
  font-family: var(--font-h);
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 700; color: var(--text);
  line-height: 1.35; margin-bottom: 22px; letter-spacing: -.4px;
}
.split h2 span { color: var(--petrol); }
.split p { font-size: 15.5px; color: var(--text-2); line-height: 2; margin-bottom: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 38px; }
.stat-box {
  position: relative;
  background: var(--surface-2);
  padding: 26px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  transition: var(--tr);
}
.stat-box::before { content:''; position:absolute; top:0; right:0; width:100%; height:3px; background: var(--grad-brand-2); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--e); }
.stat-box::after {
  content: '';
  position: absolute;
  inset-inline: 18px;
  bottom: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--cyan-400));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.1s var(--e-out) .15s;
  opacity: .7;
}
.stat-box:hover { background: var(--surface); box-shadow: var(--shadow); transform: translateY(-5px); border-color: rgba(18,166,166,.3); }
.stat-box:hover::before { transform: scaleX(1); }
.stat-box.visible::after { transform: scaleX(1); }
.stat-num { display: block; font-family: var(--font-h); font-size: clamp(28px,3vw,36px); font-weight: 700; color: var(--petrol); line-height: 1.1; }
.stat-lbl { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }

.media-frame { position: relative; transform: translate3d(0, calc(var(--parallax-y, 0px) * .18), 0); }
.media-frame img {
  width: 100%; height: clamp(380px,46vw,520px);
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  transition: transform .85s var(--e-out), filter .85s var(--e-out);
}
.media-frame:hover img,
.about-img:hover img,
.product-img-wrap:hover img,
.quality-img-wrap:hover img { transform: scale(1.025); filter: saturate(1.08) contrast(1.03); }
.media-frame::before {
  content: ''; position: absolute;
  inset: 24px 24px auto auto;
  width: 62%; height: 62%;
  background: var(--grad-brand-2);
  border-radius: var(--r-xl);
  opacity: .18; z-index: 0;
  transform: translate(20px,-20px);
}
.media-badge {
  position: absolute; bottom: 26px; inset-inline-start: -18px;
  z-index: 2;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 15px;
}
.media-badge .mb-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.media-badge .mb-num { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }
.media-badge .mb-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* --------------------------------------------------------------------------
   PRODUCTS (home)
   -------------------------------------------------------------------------- */
.products {
  background:
    radial-gradient(ellipse 80% 60% at 18% 12%, rgba(34,211,197,.09), transparent 58%),
    radial-gradient(ellipse 70% 55% at 88% 78%, rgba(20,101,126,.11), transparent 62%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.products-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.products-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: productsOrbDrift 22s ease-in-out infinite;
}
.products-orb-a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(34,211,197,.42), transparent 68%);
}
.products-orb-b {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  bottom: -10%;
  left: -4%;
  background: radial-gradient(circle, rgba(20,101,126,.38), transparent 70%);
  animation-delay: -8s;
  animation-duration: 26s;
}
.products-orb-c {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  top: 42%;
  left: 46%;
  background: radial-gradient(circle, rgba(134,240,228,.22), transparent 72%);
  animation-delay: -14s;
  animation-duration: 30s;
}
.products-mesh {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(120deg, rgba(20,101,126,.06) 1px, transparent 1px),
    linear-gradient(30deg, rgba(34,211,197,.05) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 20%, transparent 78%);
}
@keyframes productsOrbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2vw, 2.5vh) scale(1.08); }
}
.products-inner { position: relative; z-index: 2; }
.section-head--products { margin-bottom: clamp(28px, 4vh, 44px); }
.section-head--products .eyebrow {
  font-size: 13px;
  letter-spacing: .02em;
  padding: 10px 22px;
  box-shadow: 0 8px 28px rgba(18,166,166,.12);
}
.prod-showcase {
  position: relative;
  padding: clamp(8px, 1.5vh, 16px) 0;
}
.prod-showcase::before {
  content: '';
  position: absolute;
  top: -18px;
  inset-inline: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,197,.45), rgba(20,101,126,.35), transparent);
  opacity: .7;
}
.prod-grid--art { gap: clamp(18px, 2.4vw, 28px); }
.prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.prod-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prod-card {
  position: relative;
  background: rgba(255,255,255,.72);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(18,166,166,.14);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: var(--tr);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}
.prod-grid--art .prod-card:nth-child(even) { transform: translateY(14px); }
.prod-grid--art .prod-card:nth-child(odd) { transform: translateY(-6px); }
.prod-num {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  z-index: 3;
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--teal);
  opacity: .55;
  pointer-events: none;
}
.prod-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.28) 0%, transparent 42%, rgba(34,211,197,.06) 100%);
  opacity: .85;
}
.prod-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(360px 220px at var(--mx, 50%) var(--my, 0%), rgba(34,211,197,.16), transparent 72%);
  opacity: 0;
  transition: opacity var(--tr);
}
.prod-card:hover {
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(34,211,197,.22), 0 24px 60px rgba(18,166,166,.14);
  transform: translateY(-12px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) !important;
  border-color: rgba(18,166,166,.42);
}
.prod-card:hover::before { opacity: 1; }
.prod-thumb {
  height: 210px;
  background:
    radial-gradient(circle at 50% 24%, rgba(34,211,197,.12), transparent 58%),
    radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 20px; position: relative;
}
.prod-body { position: relative; z-index: 2; }
.products-cta {
  text-align: center;
  margin-top: clamp(36px, 5vh, 54px);
  position: relative;
  z-index: 2;
}
.products-cta::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,197,.35), transparent);
}
.prod-thumb::after { content:''; position:absolute; inset:auto -30px -30px auto; width: 140px; height: 140px; border-radius:50%; background: var(--grad-brand-2); opacity:.1; }
.prod-thumb img { max-height: 156px; width: 100%; object-fit: contain; transition: transform .6s var(--e); position: relative; z-index: 1; }
.prod-thumb--logo {
  background:
    radial-gradient(circle at 30% 20%, rgba(34,211,197,.08), transparent 55%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
}
.prod-thumb--logo img { max-height: 72px; padding: 0 12px; }
.prod-card:hover .prod-thumb img { transform: scale(1.08) rotate(-1deg); }
.prod-card:hover .prod-thumb--logo img { transform: scale(1.06); }
.prod-badge {
  position: absolute; top: 14px; inset-inline-end: 14px;
  background: rgba(20,101,126,.9);
  color: #fff; font-size: 11px;
  font-family: var(--font-h); font-weight: 600;
  padding: 5px 13px; border-radius: 50px;
  backdrop-filter: blur(4px);
}
.prod-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.prod-body h3 { font-family: var(--font-h); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 9px; }
.prod-body p { font-size: 13.5px; color: var(--text-3); line-height: 1.85; flex: 1; margin-bottom: 18px; }
.prod-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal);
  font-family: var(--font-h); font-size: 13.5px; font-weight: 700;
  transition: var(--tr); align-self: flex-start;
}
.prod-link i { font-size: 11px; transition: var(--tr); }
.prod-link:hover { gap: 13px; color: var(--petrol); }

/* --------------------------------------------------------------------------
   INNOVATION / VIDEO (home)
   -------------------------------------------------------------------------- */
.innovation { position: relative; min-height: 580px; overflow: hidden; padding: 0; display: flex; align-items: center; }
.innovation video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, calc(var(--parallax-y, 0px) * .25), 0) scale(1.05); }
.innovation .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(4,18,26,.95) 0%, rgba(7,38,50,.74) 55%, rgba(14,74,92,.34) 100%);
}
.innovation .container { position: relative; z-index: 2; }
.innovation-text { color: #fff; max-width: 600px; transform: translate3d(0, calc(var(--parallax-y, 0px) * .18), 0); }
.innovation-text h2 { font-family: var(--font-h); font-size: clamp(26px,3.8vw,44px); font-weight: 700; line-height: 1.35; margin-bottom: 20px; }
.innovation-text h2 span { color: var(--cyan-300); }
.innovation-text p { font-family: var(--font-l); font-size: 16.5px; opacity: .9; line-height: 2; margin-bottom: 32px; }
.play-btn {
  position: absolute; top: 50%; inset-inline-start: 11%;
  transform: translateY(-50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  z-index: 3;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.play-btn { transform: translateY(-50%) translate3d(0, calc(var(--parallax-y, 0px) * .18), 0); }
.play-btn::before { content:''; position:absolute; inset:0; border-radius:50%; border: 2px solid rgba(255,255,255,.4); animation: ripple 2.4s ease-out infinite; }
.play-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 18px rgba(94,230,218,.55);
  animation: playPulse 2s ease-in-out infinite;
}
@keyframes playPulse { 0%, 100% { transform: scale(1); opacity: .82; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes ripple { 0%{ transform: scale(1); opacity:.8;} 100%{ transform: scale(1.6); opacity:0;} }

.svc-card,
.quality-item,
.contact-card,
.job-card,
.news-card,
.fac-item,
.product-img-wrap,
.about-img,
.quality-img-wrap {
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--e-out), box-shadow .4s var(--e-out), border-color .4s var(--e-out), filter .4s var(--e-out);
  will-change: transform;
}
.svc-card::before,
.quality-item::before,
.contact-card::before,
.job-card::before,
.news-card::before,
.fac-item::before,
.product-img-wrap::before,
.about-img::before,
.quality-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at var(--mx,50%) var(--my,0%), rgba(34,211,197,.13), transparent 72%);
  opacity: 0;
  transition: opacity var(--tr);
  pointer-events: none;
  z-index: 1;
}
.svc-card:hover,
.quality-item:hover,
.contact-card:hover,
.job-card:hover,
.news-card:hover,
.product-img-wrap:hover,
.about-img:hover,
.quality-img-wrap:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(18,166,166,.34);
}
.svc-card:hover::before,
.quality-item:hover::before,
.contact-card:hover::before,
.job-card:hover::before,
.news-card:hover::before,
.fac-item:hover::before,
.product-img-wrap:hover::before,
.about-img:hover::before,
.quality-img-wrap:hover::before { opacity: 1; }

/* --------------------------------------------------------------------------
   PARTNERS
   -------------------------------------------------------------------------- */
.partners {
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(34,211,197,.04), transparent 68%),
    var(--surface);
  position: relative;
  overflow: hidden;
}
.partners-hex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.partners-inner { position: relative; z-index: 2; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 22px;
}
.partner-row--four {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.partner-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(18,166,166,.12);
  border-radius: var(--r-lg);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--tr); min-width: 180px;
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
  position: relative;
}
.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 140px at var(--mx,50%) var(--my,50%), rgba(34,211,197,.13), transparent 70%);
  opacity: 0;
  transition: opacity var(--tr);
}
.partner-card:hover { box-shadow: var(--shadow); transform: translateY(-7px) scale(1.035); border-color: rgba(18,166,166,.38); }
.partner-card:hover::before { opacity: 1; }
.partner-card img {
  height: 96px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: var(--tr);
  position: relative;
  z-index: 1;
}
.partner-card:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */
.cta {
  background: var(--grad-ink);
  position: relative; overflow: hidden;
  text-align: center; color: #fff;
}
.cta .container { position: relative; z-index: 2; }
.cta--photo .cta-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.cta--photo .cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(4,18,26,.92) 0%, rgba(7,38,50,.88) 48%, rgba(14,74,92,.82) 120%);
}
.cta--photo .aurora { opacity: .5; }
.cta h2 { font-family: var(--font-h); font-size: clamp(26px,3.8vw,42px); font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.cta h2 span { color: var(--cyan-300); }
.cta p { font-family: var(--font-l); font-size: 17px; opacity: .84; max-width: 580px; margin: 0 auto 32px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink-900); color: var(--text-inv-2); padding: 84px 0 30px; position: relative; overflow: hidden; }
.footer::before { content:''; position:absolute; top:0; inset-inline:0; height:3px; background: var(--grad-brand-2); }
.footer .aurora { opacity: .2; }
.footer-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 2.3fr 1fr 1fr 1.7fr;
  gap: 50px; margin-bottom: 54px; padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { height: 58px; width: auto; margin-bottom: 22px; }
.footer-brand p { font-size: 14px; line-height: 2; opacity: .62; max-width: 320px; }
.footer-col h3 { font-family: var(--font-h); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer-col h3::after { content:''; position:absolute; bottom:0; right:0; width:30px; height:2px; background: var(--cyan-400); }
html[lang="en"] .footer-col h3::after { left: 0; right: auto; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 14px; opacity: .64; transition: var(--tr-fast); display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul li a::before { content:'\f104'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:10px; opacity:0; margin-inline-start:-14px; transition: var(--tr-fast); }
html[lang="en"] .footer-col ul li a::before { content:'\f105'; }
.footer-col ul li a:hover { opacity:1; color: var(--cyan-300); }
.footer-col ul li a:hover::before { opacity:1; margin-inline-start:0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 16px; font-size: 14px; }
.footer-contact li i { color: var(--cyan-400); margin-top: 5px; flex-shrink: 0; font-size: 15px; }
.footer-contact li span { opacity: .68; line-height: 1.8; }
.social-links { display: flex; gap: 11px; margin-top: 22px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255,255,255,.72);
  transition: var(--tr);
}
.social-link:hover { background: var(--cyan-400); color: var(--ink-900); border-color: var(--cyan-400); transform: translateY(-4px); }
.footer-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; opacity: .5; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   PAGE HERO (interior)
   -------------------------------------------------------------------------- */
.page-hero {
  min-height: 340px;
  background: var(--grad-ink);
  display: flex; align-items: flex-end;
  padding-bottom: 48px;
  padding-top: calc(var(--header-h) + 30px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 78% 28%, rgba(34,211,197,.20), transparent 22rem),
    radial-gradient(circle at 12% 70%, rgba(20,101,126,.30), transparent 26rem);
  transform: translate3d(0, calc(var(--parallax-y, 0px) * .22), 0);
  pointer-events: none;
}
.page-hero .aurora { opacity: .45; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Ccircle cx='32' cy='32' r='26'/%3E%3Ccircle cx='32' cy='32' r='15'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; color: #fff; transform: translate3d(0, calc(var(--parallax-y, 0px) * .14), 0); }
.page-hero-content h1 { font-family: var(--font-h); font-size: clamp(30px,4.8vw,50px); font-weight: 700; margin-bottom: 14px; letter-spacing: -.4px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; opacity: .82; font-family: var(--font-l); flex-wrap: wrap; }
.breadcrumb a { transition: var(--tr-fast); }
.breadcrumb a:hover { color: var(--cyan-300); }
.breadcrumb i { font-size: 9px; opacity: .7; }

/* --------------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------------- */
.about-main { background: var(--surface); padding: clamp(64px, 8vw, 100px) 0; }
.about-main .split img { width: 100%; height: clamp(360px,42vw,480px); object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.about-two-col .about-img { position: relative; }
.about-two-col .about-img img {
  width: 100%;
  height: clamp(320px, 42vw, 460px);
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.about-text-block h2,
.about-text h2 { font-family: var(--font-h); font-size: clamp(24px,3.4vw,38px); font-weight: 700; color: var(--text); margin-bottom: 22px; line-height: 1.35; }
.about-text-block h2 span,
.about-text h2 span { color: var(--petrol); }
.about-text-block p,
.about-text p { font-size: 15.5px; color: var(--text-2); line-height: 2; margin-bottom: 16px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, rgba(20,101,126,.09), rgba(34,211,197,.09));
  color: var(--petrol);
  font-size: 12.5px;
  font-family: var(--font-h);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(20,101,126,.14);
}
.section-tag i { color: var(--teal); font-size: 12px; }
.section-tag.light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.section-tag.light i { color: var(--cyan-300); }

.facilities,
.facilities-band {
  background: var(--grad-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 100px) 0;
}
.facilities .aurora { opacity: .4; }
.facilities .container,
.facilities-band .container { position: relative; z-index: 2; }
.facilities-band .section-header { margin-bottom: 40px; }
.facilities-band .section-title.light,
.facilities .section-title.light { color: #fff; }
.facilities-band .section-title.light span,
.facilities .section-title.light span { color: var(--cyan-300); }
.fac-grid,
.facilities-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.fac-item {
  padding: 34px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--tr);
  backdrop-filter: blur(6px);
  color: #fff;
}
.fac-item:hover { background: rgba(255,255,255,.1); transform: translateY(-6px); border-color: rgba(34,211,197,.4); }
.fac-num { font-family: var(--font-h); font-size: clamp(34px,4vw,48px); font-weight: 700; display: block; line-height: 1.1; color: var(--cyan-300); }
.fac-label { font-size: 14px; opacity: .9; margin-top: 10px; font-family: var(--font-l); color: rgba(255,255,255,.88); }

.services,
.services-section { background: var(--bg); padding: clamp(64px, 8vw, 100px) 0; }
.svc-grid,
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.svc-card,
.service-card {
  position: relative;
  background: var(--surface);
  padding: 36px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  display: flex; gap: 22px; align-items: flex-start;
  transition: var(--tr); overflow: hidden;
}
.svc-card::before { content:''; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px; background: var(--grad-brand-2); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--e); }
.svc-card:hover,
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-icon,
.service-icon { width: 60px; height: 60px; background: var(--grad-brand); border-radius: 17px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; flex-shrink: 0; box-shadow: var(--shadow-glow); }
.svc-card h3,
.service-content h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.svc-card p,
.service-content p { font-size: 14.5px; color: var(--text-3); line-height: 1.9; }

.cta-band {
  background: var(--grad-ink);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: clamp(64px, 8vw, 100px) 0;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-h); font-size: clamp(24px,3.6vw,38px); font-weight: 700; margin-bottom: 14px; }
.cta-band h2 span { color: var(--cyan-300); }
.cta-band p { font-family: var(--font-l); font-size: 17px; opacity: .85; max-width: 560px; margin: 0 auto 30px; }

/* --------------------------------------------------------------------------
   PRODUCTS PAGE
   -------------------------------------------------------------------------- */
.product-section { padding: clamp(64px, 8vw, 100px) 0; }
.product-section:nth-of-type(even) { background: var(--bg); }
.product-section:nth-of-type(odd) { background: var(--surface); }
.product-block { padding: clamp(64px,8vw,100px) 0; }
.product-block:nth-child(even) { background: var(--bg); }
.product-block:nth-child(odd) { background: var(--surface); }
.product-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px,6vw,68px); align-items: center; }
.product-row.reverse { direction: ltr; }
.product-row.reverse > * { direction: rtl; }
html[lang="en"] .product-row.reverse { direction: rtl; }
html[lang="en"] .product-row.reverse > * { direction: ltr; }
.product-img-wrap,
.product-visual {
  position: relative;
  background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface));
  border-radius: var(--r-2xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  min-height: 360px; overflow: hidden;
  border: 1px solid var(--line);
}
.product-img-wrap--logo {
  background:
    radial-gradient(circle at 28% 20%, rgba(34,211,197,.10), transparent 55%),
    linear-gradient(160deg, var(--surface), var(--surface-2));
}
.product-visual::before,
.product-img-wrap::before { content:''; position:absolute; top:-40px; inset-inline-end:-40px; width: 180px; height: 180px; border-radius: 50%; background: var(--grad-brand-2); opacity: .14; }
.product-visual::after { content:''; position:absolute; bottom:-50px; inset-inline-start:-50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(20,101,126,.16), transparent 70%); }
.product-visual img,
.product-img-wrap img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 20px 40px rgba(9,28,38,.2)); }
.product-img-wrap--logo img { max-height: 120px; filter: none; }
.prod-aka { font-size: .62em; font-weight: 500; color: var(--text-3); }
.prod-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, rgba(20,101,126,.09), rgba(34,211,197,.09));
  color: var(--petrol);
  font-size: 12.5px; font-family: var(--font-h); font-weight: 700;
  padding: 8px 17px; border-radius: 50px; margin-bottom: 18px;
  border: 1px solid rgba(20,101,126,.14);
}
.prod-tag i { color: var(--teal); }
.product-text h2 { font-family: var(--font-h); font-size: clamp(26px,3.8vw,42px); font-weight: 700; color: var(--text); margin-bottom: 20px; line-height: 1.3; }
.product-text p { font-size: 15px; color: var(--text-2); line-height: 2; margin-bottom: 14px; }
.product-text p strong { color: var(--petrol); }
.chips,
.product-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px;
  padding: 9px 16px; border-radius: 50px;
  box-shadow: var(--shadow-xs);
  transition: var(--tr-fast);
}
.chip:hover { border-color: var(--teal); transform: translateY(-2px); }
.chip i { color: var(--teal); font-size: 12px; }

html[lang="en"] .logo-img[data-logo-en] {
  filter: none !important;
  height: 88px;
}
html[lang="en"] .header.scrolled .logo-img[data-logo-en] { height: 76px; }
html[lang="en"] .header.transparent .logo-img[data-logo-en],
html[lang="en"][data-theme="dark"] .header.scrolled .logo-img[data-logo-en] {
  filter: brightness(1.4) contrast(1.05) !important;
}

/* --------------------------------------------------------------------------
   QUALITY PAGE
   -------------------------------------------------------------------------- */
.quality-intro { background: var(--surface); }
.quality-hero-img { position: relative; margin-bottom: 60px; }
.quality-hero-img img { width: 100%; max-width: 900px; margin-inline: auto; height: clamp(280px,36vw,420px); object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.quality-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.quality-item {
  position: relative;
  background: var(--surface-2);
  padding: 34px 32px 34px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex; gap: 22px; align-items: flex-start;
  transition: var(--tr); overflow: hidden;
}
.quality-item:hover { box-shadow: var(--shadow); border-color: rgba(18,166,166,.3); background: var(--surface); transform: translateY(-5px); }
.quality-num {
  width: 52px; height: 52px;
  background: var(--grad-brand); color: #fff;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 20px; font-weight: 700;
  flex-shrink: 0; box-shadow: var(--shadow-glow);
}
.quality-item p { font-size: 15px; color: var(--text-2); line-height: 1.95; }

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-main { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1.05fr 1.5fr; gap: clamp(36px,5vw,56px); align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--surface-2);
  padding: 26px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex; gap: 20px; align-items: flex-start;
  transition: var(--tr);
}
.contact-card:hover { box-shadow: var(--shadow); border-color: rgba(18,166,166,.3); background: var(--surface); transform: translateY(-4px); }
.cc-icon { width: 54px; height: 54px; background: var(--grad-brand); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; box-shadow: var(--shadow-glow); }
.cc-body h3 { font-family: var(--font-h); font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cc-body p, .cc-body a { font-size: 14.5px; color: var(--text-3); line-height: 1.8; }
.cc-body a:hover { color: var(--petrol); }
.map-wrap { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
/* The embed shows a plain pin, so the place is named here in real text —
   which also means the address is selectable, translatable and readable by a
   screen reader, none of which is true of pixels inside an iframe. */
.map-caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px; padding: 0 2px;
  font-size: 14px; line-height: 1.9; color: var(--text-2);
}
.map-caption i { color: var(--petrol); }
.map-caption a { color: var(--petrol); font-weight: 700; white-space: nowrap; }
.map-caption a:hover { color: var(--teal); text-decoration: underline; }

.map-wrap iframe { width: 100%; height: 500px; border: 0; display: block; filter: grayscale(.2); }

/* --------------------------------------------------------------------------
   CAREERS PAGE
   -------------------------------------------------------------------------- */
.careers-intro { background: var(--surface); }
.careers-intro .section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.careers-intro .section-title span { color: var(--petrol); }
.values-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.vtag {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--grad-brand); color: #fff;
  padding: 11px 24px; border-radius: 50px;
  font-family: var(--font-h); font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-glow);
}
.vtag i { font-size: 13px; opacity: .9; }
.careers-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,52px); align-items: center; margin-top: 58px; }
.careers-cols--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.careers-cols img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.careers-cols h3 {
  font-family: var(--font-h);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  text-align: center;
}
.career-list { display: flex; flex-direction: column; gap: 14px; }
.career-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.85;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}
.career-list li i { color: var(--teal); margin-top: 4px; flex-shrink: 0; font-size: 18px; }

.jobs-section { background: var(--bg); }
.jobs-section .section-header { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.jobs-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, rgba(20,101,126,.1), rgba(34,211,197,.1));
  color: var(--petrol);
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid rgba(20,101,126,.16);
}
.jobs-section .section-tag i { font-size: 12px; }
.jobvision-cta {
  text-align: center;
  padding: clamp(40px, 5vw, 52px) 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.jobvision-cta__icon {
  font-size: 48px;
  color: var(--teal);
  margin-bottom: 20px;
}
.jobvision-cta__title {
  font-family: var(--font-h);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.jobvision-cta__text {
  font-size: 16px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.9;
}
html[data-theme="dark"] .careers-intro .section-title span { color: var(--cyan-300); }
html[data-theme="dark"] .careers-cols h3 { color: var(--text-inv); }
html[data-theme="dark"] .career-list li {
  background: rgba(16,48,62,.72);
  border-color: rgba(94,230,218,.18);
  color: #E3EEF2;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
html[data-theme="dark"] .career-list li i { color: var(--cyan-300); }
html[data-theme="dark"] .jobs-section .section-tag {
  background: rgba(30,138,170,.2);
  border-color: rgba(42,192,188,.32);
  color: var(--cyan-300);
}
html[data-theme="dark"] .jobvision-cta {
  background: linear-gradient(180deg, rgba(16,48,62,.96), rgba(13,36,48,.98));
  border-color: rgba(94,230,218,.24);
  box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 0 1px rgba(94,230,218,.08);
}
html[data-theme="dark"] .jobvision-cta__title { color: var(--text-inv); }
html[data-theme="dark"] .jobvision-cta__text { color: #C5D6DE; }
html[data-theme="dark"] .jobvision-cta__icon {
  color: var(--cyan-300);
  filter: drop-shadow(0 0 14px rgba(94,230,218,.32));
}

.jobs { background: var(--bg); }
.jobs-list { display: flex; flex-direction: column; gap: 18px; max-width: 940px; margin: 0 auto; }
.job-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  display: grid; grid-template-columns: 78px 1fr auto; gap: 26px; align-items: center;
  transition: var(--tr);
}
.job-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(18,166,166,.3); transform: translateY(-4px); }
.job-thumb { width: 78px; height: 78px; border-radius: 18px; overflow: hidden; }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-info h3 { font-family: var(--font-h); font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.job-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.jmeta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.jmeta i { color: var(--teal); font-size: 12px; }

/* --------------------------------------------------------------------------
   NEWS PAGE
   -------------------------------------------------------------------------- */
.news-main { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 30px; }
.news-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
  transition: var(--tr);
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); border-color: rgba(18,166,166,.3); }
.news-img { height: 234px; overflow: hidden; position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--e); }
.news-card:hover .news-img img { transform: scale(1.08); }
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-date { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-h); font-size: 13px; color: var(--teal); margin-bottom: 14px; }
.news-body h3 { font-family: var(--font-h); font-size: 18.5px; font-weight: 700; color: var(--text); line-height: 1.6; margin-bottom: 12px; }
.news-body p { font-size: 14px; color: var(--text-3); line-height: 1.9; }

/* --------------------------------------------------------------------------
   EMPLOYMENT FORM
   -------------------------------------------------------------------------- */
.form-section { background: var(--bg); }
.form-wrap {
  max-width: 780px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(30px,5vw,58px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.form-wrap::before { content:''; position:absolute; top:0; inset-inline:0; height:4px; background: var(--grad-brand-2); }
.form-head { text-align: center; margin-bottom: 42px; }
.form-head h2 { font-family: var(--font-h); font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.form-head p { font-size: 15px; color: var(--text-3); }
.form-group { margin-bottom: 26px; }
/* .form-label is a <span>, not a <label>: the resume field's visible control
   is the .file-drop label, and a second <label> pointing at the same input
   would make the drag instruction part of the field's accessible name.
   The span is wired up with aria-labelledby instead, and styled identically. */
.form-group > label,
.form-group > .form-label { display: block; font-family: var(--font-h); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.req { color: #E5484D; margin-inline-start: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-xs);
  font-family: var(--font-b);
  font-size: 15px; color: var(--text);
  background: var(--surface);
  transition: var(--tr-fast); outline: none; direction: rtl;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,166,166,.12); }
.form-control::placeholder { color: var(--text-3); font-family: var(--font-l); }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M6 7L0 0h12z' fill='%236C808C'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px;
}
.radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14.5px; color: var(--text-2);
  padding: 11px 16px;
  border: 1.5px solid var(--line-2); border-radius: 50px;
  transition: var(--tr-fast);
}
.radio-item:hover { border-color: var(--teal); }
.radio-item input { accent-color: var(--teal); width: 16px; height: 16px; cursor: pointer; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 42px;
  border: 2px dashed var(--line-2); border-radius: var(--r);
  cursor: pointer; transition: var(--tr-fast); text-align: center;
}
.file-drop:hover { border-color: var(--teal); background: rgba(18,166,166,.04); }
.file-drop.is-dragover { border-color: var(--teal); background: rgba(18,166,166,.08); }
.file-drop.has-error { border-color: #E5484D; }
.file-drop i { font-size: 36px; color: var(--teal); }
.file-drop span { font-size: 14.5px; color: var(--text-3); }
.file-drop strong { color: var(--petrol); }
.file-drop .file-name:not(:empty) { color: var(--petrol); font-weight: 600; }
.file-hint { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; }
/* Visually removed but still focusable and still announced. `display:none`
   here made a required field unreachable by keyboard, so the resume could not
   be attached without a mouse. The visible control is the .file-drop label. */
input[type="file"].sr-file,
input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* The label is the control the user sees, so it must show the focus ring. */
.file-drop:focus-within {
  outline: 3px solid var(--petrol);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(34, 211, 197, .34);
}
[data-theme="dark"] .file-drop:focus-within { outline-color: var(--cyan-300); }
.form-submit { text-align: center; margin-top: 36px; }
.form-submit .btn.is-loading { opacity: .72; pointer-events: none; }
.form-note {
  margin-top: 22px; padding: 15px 18px; border-radius: var(--r-xs);
  background: rgba(34,211,197,.1); color: var(--petrol-700);
  font-size: 13.5px; display: none; align-items: center; gap: 10px;
}
.form-note.show { display: flex; }
.form-note i { color: var(--teal); }
.form-note.is-error { background: rgba(229,72,77,.1); color: #C42A2F; }
.form-note.is-error i { color: #E5484D; }
html[data-theme="dark"] .form-note.is-error { background: rgba(229,72,77,.14); color: #FF8A8E; }
html[data-theme="dark"] .form-note.is-error i { color: #FF8A8E; }

/* Field-level validation */
.form-group.has-error .form-control { border-color: #E5484D; }
.field-error { margin-top: 8px; font-size: 12.5px; color: #C2262B; font-weight: 600; }
[data-theme="dark"] .field-error { color: #FF8A8E; }

/* Honeypot — hidden from sighted users and screen readers, visible to bots
   that blindly fill every input */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  left: -9999px;
}

/* --------------------------------------------------------------------------
   SCROLL TO TOP
   -------------------------------------------------------------------------- */
.scroll-top {
  position: fixed; bottom: 28px; inset-inline-start: 28px;
  width: 50px; height: 50px;
  background: var(--grad-brand); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: var(--shadow-lg);
  cursor: pointer; transition: var(--tr);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 22px 46px rgba(18,166,166,.44); }

/* --------------------------------------------------------------------------
   PRELOADER
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-ink);
  transition: opacity .6s var(--e-out), visibility .6s var(--e-out);
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; }
.preloader-logo { width: 84px; height: auto; animation: preloaderPulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(34,211,197,.5)); }
.preloader-bar { width: 140px; height: 3px; margin-top: 24px; border-radius: 3px; background: rgba(234,244,246,.14); overflow: hidden; }
.preloader-bar span { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--grad-brand-2); animation: preloaderSlide 1.1s ease-in-out infinite; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading, html.is-loading body { overflow: hidden; height: 100%; }
@keyframes preloaderPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .75; } }
@keyframes preloaderSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

/* --------------------------------------------------------------------------
   AI ASSISTANT WIDGET
   -------------------------------------------------------------------------- */
.assist-widget {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  inset-inline-end: max(24px, env(safe-area-inset-right));
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  animation: assistEnter .7s var(--e-out) .6s both;
}
@keyframes assistEnter {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.assist-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--grad-brand);
  color: #fff;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 46px rgba(18,166,166,.36), 0 0 0 8px rgba(34,211,197,.08), 0 0 24px rgba(34,211,197,.22);
  cursor: pointer;
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out);
  animation: assistFloat 4.8s ease-in-out infinite, assistBtnGlow 2.6s ease-in-out infinite;
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.assist-btn i {
  position: relative;
  z-index: 1;
  animation: assistIconPulse 2.6s ease-in-out infinite;
}
.assist-btn::before {
  content: '';
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(34,211,197,.55), transparent, rgba(20,101,126,.5), transparent);
  filter: blur(10px);
  opacity: .82;
  animation: assistHaloSpin 7s linear infinite;
}
.assist-btn::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(134,240,228,.6);
  animation: assistRipple 2.6s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
.assist-btn:hover,
.assist-widget.panel-open .assist-btn {
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 24px 58px rgba(18,166,166,.46), 0 0 0 10px rgba(34,211,197,.14), 0 0 40px rgba(34,211,197,.4);
}
.assist-widget.panel-open .assist-btn::after { animation: none; opacity: 0; }
.assist-panel {
  position: absolute;
  bottom: 82px;
  inset-inline-end: 0;
  width: min(390px, calc(100vw - 28px));
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,251,252,.92)),
    radial-gradient(circle at 82% 8%, rgba(34,211,197,.18), transparent 13rem);
  border: 1px solid rgba(18,166,166,.18);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(7,30,41,.22);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.95);
  transform-origin: bottom left;
  transition: opacity .32s var(--e-out), transform .32s var(--e-out), visibility .32s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(76vh, 600px);
  overscroll-behavior: contain;
}
html[lang="en"] .assist-panel { transform-origin: bottom right; }
.assist-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.assist-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 20%, rgba(20,101,126,.10) 0 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.assist-panel-head {
  position: relative;
  padding: 8px 12px 4px !important;
  font-size: 12px !important;
  color: var(--text-3) !important;
  font-weight: 700 !important;
}
.assist-intro {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  margin-bottom: 8px;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(18,166,166,.12);
  flex-shrink: 0;
}
.assist-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}
.assist-greeting i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.assist-intro p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.8;
}
.assist-panel::-webkit-scrollbar { width: 0; height: 0; }
.assist-chat-scroll {
  flex: 1 1 auto;
  /* Not min-height:0. Every other child of .assist-panel is flex-shrink:0, so
     this is the only one that can absorb an overflow — and on a phone the
     intro, the one-column quick grid and five wrapped FAQ rows already exceed
     the panel's max-height. With a zero floor it collapsed to exactly 0px, so
     tapping a question appended the answer into a box with no height and the
     tap looked like it had done nothing at all. */
  min-height: 150px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 4px -4px 0;
  padding: 0 6px 0 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18,166,166,.35) transparent;
}
.assist-chat-scroll:not(:has(.assist-chat-log.has-messages)) {
  display: none;
}
.assist-chat-scroll::-webkit-scrollbar { width: 5px; }
.assist-chat-scroll::-webkit-scrollbar-track { background: transparent; }
.assist-chat-scroll::-webkit-scrollbar-thumb { background: rgba(18,166,166,.3); border-radius: 999px; }
.assist-chat-log {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  min-height: 0;
}
.assist-chat-log.has-messages { display: flex; margin: 0; }
.assist-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  animation: assistMsgIn .35s var(--e-out) both;
}
@keyframes assistMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.assist-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: var(--grad-brand);
}
.assist-msg.user .assist-msg-avatar { background: var(--ink-800); }
.assist-msg-bubble {
  position: relative;
  background: rgba(18,166,166,.07);
  border: 1px solid rgba(18,166,166,.12);
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}
.assist-msg-bubble p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.assist-msg.user .assist-msg-bubble { background: var(--grad-brand); border-color: transparent; }
.assist-msg.user .assist-msg-bubble p { color: #fff; }
.assist-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-h);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--petrol);
  padding: 0;
  transition: var(--tr-fast);
}
.assist-msg-link:hover { color: var(--petrol-700); gap: 8px; background: transparent; transform: none; }
.assist-msg-link i { font-size: 10px; }
.assist-faq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  flex-shrink: 0;
}
.assist-faq-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20,101,126,.07);
  border: 1px solid rgba(20,101,126,.14);
  color: var(--petrol);
  font-family: var(--font-h);
  font-size: 11.5px;
  font-weight: 700;
  transition: var(--tr-fast);
}
.assist-faq-chip:hover { background: rgba(18,166,166,.16); transform: translateY(-1px); }
.assist-quick {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 2px 0 10px;
  flex-shrink: 0;
}
.assist-quick .assist-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 16px;
  background: rgba(18,166,166,.08);
  transition: var(--tr-fast);
}
.assist-quick .assist-chip:hover {
  background: rgba(18,166,166,.16);
  transform: translateY(-2px);
}
.assist-quick .assist-chip i {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-glow);
}
.assist-chip-text { display: grid; gap: 1px; min-width: 0; }
.assist-chip-text [data-assist-chip-label] {
  font-family: var(--font-h);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assist-chip-text small {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.assist-panel a {
  position: relative;
  display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-2); transition: var(--tr-fast);
}
.assist-panel a:hover { background: rgba(18,166,166,.09); color: var(--petrol-700); transform: translateX(-3px); }
html[lang="en"] .assist-panel a:hover { transform: translateX(3px); }
.assist-panel a i { width: 20px; text-align: center; color: var(--teal); }
.assist-quick .assist-chip:hover { color: inherit; }
@keyframes assistFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes assistBtnGlow {
  0%, 100% {
    box-shadow: 0 18px 46px rgba(18,166,166,.36), 0 0 0 8px rgba(34,211,197,.1), 0 0 22px rgba(34,211,197,.25);
  }
  50% {
    box-shadow: 0 24px 56px rgba(18,166,166,.52), 0 0 0 16px rgba(34,211,197,.2), 0 0 42px rgba(34,211,197,.48);
  }
}
@keyframes assistRipple {
  0% { transform: scale(1); opacity: .9; }
  75% { transform: scale(1.42); opacity: 0; }
  100% { transform: scale(1.42); opacity: 0; }
}
@keyframes assistIconPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.25) drop-shadow(0 0 8px rgba(255,255,255,.65)); }
}
@keyframes assistHaloSpin { to { transform: rotate(360deg); } }
html[data-theme="dark"] .assist-panel { background: linear-gradient(180deg, rgba(13,36,48,.95), rgba(7,30,41,.92)); color: var(--text-inv); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(94,230,218,.08); }
html[data-theme="dark"] .assist-intro { background: rgba(94,230,218,.06); border-color: rgba(94,230,218,.12); }
html[data-theme="dark"] .assist-panel a { color: var(--text-inv-2); }
html[data-theme="dark"] .assist-panel a:hover { background: rgba(94,230,218,.08); color: var(--cyan-300); }
html[data-theme="dark"] .assist-quick .assist-chip { background: rgba(94,230,218,.08); }
html[data-theme="dark"] .assist-chip-text [data-assist-chip-label] { color: var(--text-inv); }
html[data-theme="dark"] .assist-msg-bubble { background: rgba(94,230,218,.06); border-color: rgba(94,230,218,.12); }
html[data-theme="dark"] .assist-msg-bubble p { color: var(--text-inv-2); }
html[data-theme="dark"] .assist-faq-chip { background: rgba(94,230,218,.06); border-color: rgba(94,230,218,.14); color: var(--cyan-300); }
html[data-theme="dark"] .assist-faq-chip:hover { background: rgba(94,230,218,.14); }

/* --------------------------------------------------------------------------
   HOME SCROLL SLIDESHOW + SECTION GUIDE
   -------------------------------------------------------------------------- */
.page-home { scroll-padding-top: 86px; }
.home-slide-section {
  scroll-margin-top: 82px;
}
/* Bare rail: nothing around it — just the icons and the wire running
   through them. Labels exist only as hover tooltips. Sits left in RTL
   (Farsi) and moves to the right edge in English mode. */
.section-guide {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 930;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  direction: ltr; /* fixed visual order: icon first, tooltip beside it */
  isolation: isolate;
  animation: guideEnter .7s var(--e-out) .4s both;
}
html[lang="en"] .section-guide {
  left: auto;
  right: 26px;
  direction: rtl; /* mirrors: icon stays on the edge, tooltip opens inward */
}
@keyframes guideEnter {
  from { opacity: 0; transform: translateY(-50%) translateX(-14px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.section-guide-track {
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(20,101,126,.14), rgba(20,101,126,.26));
  overflow: hidden;
  z-index: -1;
}
html[lang="en"] .section-guide-track { left: auto; right: 14px; }
.section-guide-fill {
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: calc(var(--progress, 0) * 100%);
  background: linear-gradient(180deg, var(--cyan-400), var(--teal));
  box-shadow: 0 0 10px rgba(34,211,197,.55);
  transition: height .45s var(--e-out);
}
.section-guide-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  transition: color .32s var(--e-out);
}
.section-guide-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  background: var(--surface); /* opaque so the wire passes behind, not through */
  border: 1px solid var(--line-2);
  color: var(--text-3);
  transition: transform .38s var(--e-out), background .38s var(--e-out), color .38s var(--e-out), box-shadow .38s var(--e-out), border-color .38s var(--e-out);
}
.section-guide-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(34,211,197,.55), transparent 40%, rgba(20,101,126,.4), transparent 82%);
  opacity: 0;
  filter: blur(6px);
  transition: opacity .38s var(--e-out);
  z-index: -1;
}
.section-guide-link:hover .section-guide-dot {
  transform: scale(1.12);
  color: var(--petrol);
  background: rgba(18,166,166,.14);
}
.section-guide-link.active .section-guide-dot {
  transform: scale(1.2);
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px rgba(18,166,166,.45);
}
.section-guide-link.active .section-guide-dot::before {
  opacity: 1;
  animation: guideSpin 5s linear infinite;
}
@keyframes guideSpin { to { transform: rotate(360deg); } }
.section-guide-link.passed .section-guide-dot {
  color: #fff;
  background: var(--grad-brand-2);
  box-shadow: 0 2px 8px rgba(18,166,166,.3);
}
/* Label = hover tooltip only. Never shown for the active dot by itself.
   Physical left/right per language: the label's own direction:rtl would
   flip logical inset-inline and open the tooltip off-screen. */
.section-guide-label {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  direction: rtl;
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  transition: opacity .22s var(--e-out), transform .22s var(--e-out), visibility .22s;
}
html[lang="en"] .section-guide-label {
  left: auto;
  right: calc(100% + 12px);
  direction: ltr;
  transform: translateY(-50%) translateX(6px);
}
.section-guide-link:hover .section-guide-label,
.section-guide-link:focus-visible .section-guide-label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
html[data-theme="dark"] .section-guide-dot { color: var(--text-inv-2); background: var(--ink-700); border-color: rgba(94,230,218,.18); }
html[data-theme="dark"] .section-guide-label { background: var(--ink-700); border-color: rgba(94,230,218,.18); color: var(--text-inv); }
html[data-theme="dark"] .section-guide-link:hover .section-guide-dot,
html[data-theme="dark"] .section-guide-link.active .section-guide-dot {
  color: var(--cyan-300);
}
html[data-theme="dark"] .section-guide-link.active .section-guide-dot { color: #04121A; }

/* --------------------------------------------------------------------------
   ANIMATIONS (reveal)
   -------------------------------------------------------------------------- */
.anim {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(0);
  transition: opacity .8s var(--e-out), transform .8s var(--e-out), filter .8s var(--e-out);
  will-change: opacity, transform;
}
.anim.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.anim.from-s,
.anim.reveal-left { transform: translateX(40px); }
.anim.from-s.visible,
.anim.reveal-left.visible { transform: translateX(0); }
.anim.reveal-right { transform: translateX(-40px); }
.anim.reveal-right.visible { transform: translateX(0); }
.anim.zoom,
.anim.reveal-zoom { transform: scale(.94); }
.anim.zoom.visible,
.anim.reveal-zoom.visible { transform: scale(1); }
.anim.reveal-scale { transform: translateY(18px) scale(.96); }
.anim.reveal-scale.visible { transform: translateY(0) scale(1); }
.anim.reveal-blur { filter: blur(12px); transform: translateY(18px); }
.anim.reveal-blur.visible { filter: blur(0); transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .4s; }
.page-hero-content.anim.visible,
.media-frame.anim.visible,
.innovation-text.anim.visible {
  transform: translate3d(0, calc(var(--parallax-y, 0px) * .16), 0);
}

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2,1fr); }
  .b-feature { grid-column: span 2; grid-row: auto; min-height: 200px; }
  .hub-ring { width: clamp(374px, 57.2vw, 550px); }
  .prod-grid,
  .prod-grid--five { grid-template-columns: repeat(2,1fr); }
  .prod-grid--art .prod-card:nth-child(even),
  .prod-grid--art .prod-card:nth-child(odd) { transform: none; }
  .partner-row,
  .partner-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .split,
  .about-two-col { grid-template-columns: 1fr; gap: 50px; }
  .media-frame { max-width: 560px; margin: 0 auto; width: 100%; }
  .fac-grid,
  .facilities-grid { grid-template-columns: repeat(2,1fr); }
  .careers-cols { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .svc-grid,
  .services-grid { grid-template-columns: 1fr; }
  .quality-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-row, .product-row.reverse { grid-template-columns: 1fr; gap: 40px; direction: rtl; }
  html[lang="en"] .product-row,
  html[lang="en"] .product-row.reverse { direction: ltr; }
  .map-wrap iframe { height: 340px; }
  .job-card { grid-template-columns: 64px 1fr; }
  .job-card .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .innovation { min-height: 500px; }
  .innovation .veil { background: linear-gradient(to top, rgba(4,18,26,.96), rgba(7,38,50,.72)); }
  .play-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .header-tools { margin-inline-start: auto; }
  .partner-row,
  .partner-row--four { grid-template-columns: 1fr; }
  .section-guide {
    top: auto;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 8px;
    animation: guideEnterUp .7s var(--e-out) .4s both;
  }
  .section-guide-track {
    left: 14px;
    right: 14px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .section-guide-fill {
    height: 100%;
    width: calc(var(--progress, 0) * 100%);
  }
  .section-guide-dot { width: 26px; height: 26px; font-size: 10px; }
  .section-guide-label { display: none; }
}
@keyframes guideEnterUp {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .b-feature { grid-column: auto; }
  .hub-ring { width: min(94vw, 440px); }
  .hub-node-label { font-size: 10.5px; padding: 4px 10px; }
  .prod-grid,
  .prod-grid--five { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .media-badge { inset-inline-start: 12px; }
  .assist-widget { bottom: 18px; inset-inline-end: 18px; }
  .assist-btn { width: 52px; height: 52px; font-size: 20px; }
  .assist-panel { width: min(360px, calc(100vw - 24px)); bottom: 68px; max-height: min(68vh, 480px); }
  .assist-quick { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   DARK MODE
   -------------------------------------------------------------------------- */
html[data-theme="dark"] {
  --petrol:     #1E8AAA;
  --petrol-600: #17789A;
  --petrol-700: #12617E;
  --teal:       #2AC0BC;
  --text:       #E7F1F4;
  --text-2:     #B7C8D1;
  --text-3:     #7F97A3;
  --text-inv:   #EAF4F6;
  --bg:         #061620;
  --bg-2:       #0A2029;
  --surface:    #0D2430;
  --surface-2:  #10303E;
  --line:       #1C3B49;
  --line-2:     #244A5A;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.4);
  --shadow-sm:  0 4px 16px rgba(0,0,0,.45);
  --shadow:     0 14px 40px rgba(0,0,0,.5);
  --shadow-lg:  0 30px 70px rgba(0,0,0,.6);
  --shadow-glow:0 20px 50px rgba(18,166,166,.28);
}
html[data-theme="dark"] body { background: var(--bg); }
html[data-theme="dark"] .header.transparent {
  background: linear-gradient(180deg, rgba(6,22,32,.78) 0%, rgba(6,22,32,.28) 100%);
  border-bottom-color: rgba(94,230,218,.16);
}
html[data-theme="dark"] .header.scrolled {
  background: rgba(6,22,32,.9);
  border-bottom: 1px solid rgba(42,192,188,.28);
  box-shadow: 0 12px 42px rgba(0,0,0,.35), 0 1px 0 rgba(94,230,218,.1);
}
html[data-theme="dark"] .header.transparent .menu-toggle { color: #fff; }
html[data-theme="dark"] .dropdown { background: rgba(13,36,48,.9); }
html[data-theme="dark"] .mobile-nav { background: rgba(6,22,32,.97); }
html[data-theme="dark"] .eyebrow { background: rgba(30,138,170,.14); border-color: rgba(42,192,188,.24); color: var(--teal); }
html[data-theme="dark"] .prod-tag { background: rgba(30,138,170,.14); border-color: rgba(42,192,188,.24); color: var(--teal); }
html[data-theme="dark"] .prod-thumb,
html[data-theme="dark"] .product-visual { background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface)); }
html[data-theme="dark"] .chip { background: var(--surface-2); }
html[data-theme="dark"] .media-badge { background: rgba(13,36,48,.85); }
html[data-theme="dark"] .hub-orbit-track { stroke: rgba(94,230,218,.16); }
html[data-theme="dark"] .hub-orbit-link { stroke: rgba(94,230,218,.22); }
html[data-theme="dark"] .hub-orbit-tick { fill: var(--teal); opacity: .5; }
html[data-theme="dark"] .hub-core { border-color: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(94,230,218,.16); }
html[data-theme="dark"] .hub-node-bubble { border-color: var(--surface); }
html[data-theme="dark"] .hub-node-label { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }
html[data-theme="dark"] .prod-card {
  background: rgba(13,36,48,.78);
  border-color: rgba(94,230,218,.14);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(94,230,218,.08);
}
html[data-theme="dark"] .prod-card::after {
  background: linear-gradient(145deg, rgba(94,230,218,.08) 0%, transparent 42%, rgba(34,211,197,.05) 100%);
}
html[data-theme="dark"] .prod-num { color: var(--cyan-300); opacity: .62; }
html[data-theme="dark"] .partner-card {
  background: rgba(13,36,48,.82);
  border-color: rgba(94,230,218,.12);
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(94,230,218,.06);
}
html[data-theme="dark"] .partners-hex-canvas { opacity: .92; }
html[data-theme="dark"] .stat-box:hover,
html[data-theme="dark"] .quality-item:hover,
html[data-theme="dark"] .contact-card:hover,
html[data-theme="dark"] .svc-card:hover { background: var(--surface-2); }
html[data-theme="dark"] .btn-ghost:hover { background: #fff; color: var(--petrol-700); border-color: #fff; }
html[data-theme="dark"] .partner-card img { filter: brightness(1.08) contrast(1.04); opacity: 1; }
html[data-theme="dark"] .partner-card:hover img { filter: brightness(1.12); opacity: 1; }
html[data-theme="dark"] .form-note { background: rgba(42,192,188,.12); color: var(--cyan-300); }
html[data-theme="dark"] .map-wrap iframe { filter: grayscale(.3) invert(.9) hue-rotate(180deg); }
html[data-theme="dark"] ::selection { background: var(--cyan-400); color: var(--ink-900); }

/* --------------------------------------------------------------------------
   ENGLISH (LTR)
   -------------------------------------------------------------------------- */
html[lang="en"] {
  --font-h: 'Sahel','Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-b: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-l: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html[lang="en"] body { direction: ltr; text-align: left; }
html[lang="en"] .form-control { direction: ltr; }
html[lang="en"] .hero .swiper-pagination { right: auto !important; left: 24px !important; text-align: left; }

/* --------------------------------------------------------------------------
   ENGLISH (LTR) DIRECTIONAL ICONS
   Forward/back glyphs are authored for the RTL (Farsi) reading direction;
   in English mode they must point the other way. Farsi mode is untouched.
   -------------------------------------------------------------------------- */
html[lang="en"] .fa-arrow-left,
html[lang="en"] .breadcrumb .fa-chevron-left,
html[lang="en"] .news-card .fa-chevron-left,
html[lang="en"] .job-card .fa-chevron-left {
  display: inline-block;
  transform: scaleX(-1);
}
