/* ==========================================================
   AL-SHAHEEN — Siemens-inspired stylesheet (Arabic / RTL + EN)
   Uses logical properties so the same CSS works for RTL & LTR.
   ========================================================== */

:root {
  --petrol: #009999;
  --petrol-dark: #007575;
  --petrol-light: #e6f5f5;
  --accent: #00ffb9;
  --ink: #000028;
  --ink-soft: #1a1a3a;
  --gray-900: #23233c;
  --gray-700: #4a4a6a;
  --gray-500: #6e6e8a;
  --gray-300: #c7c7d1;
  --gray-100: #f2f2f5;
  --gray-50:  #f8f8fa;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 40, 0.15);
  --radius: 2px;
  --max-w: 1280px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-ar: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="en"] body { font-family: var(--font-en); }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4 { font-family: var(--font-en); letter-spacing: -0.015em; }

body {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  animation: bodyFade 0.6s var(--ease-out);
}
@keyframes bodyFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

img { max-width: 100%; display: block; }

a { color: var(--petrol); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--petrol-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-ar);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; }
h1 strong { font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 300; margin-bottom: 1.2rem; }
h2 strong { font-weight: 700; color: var(--petrol); }
h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }

p { color: var(--gray-700); margin-bottom: 1rem; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.topbar a { color: var(--gray-300); transition: color var(--transition), letter-spacing var(--transition); }
.topbar a:hover { color: var(--accent); letter-spacing: 0.02em; }
.topbar .info span { margin-inline-end: 1.5rem; }
.topbar .info i { color: var(--petrol); margin-inline-end: 0.4rem; }

/* ===== HEADER / NAV ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.02); }
.logo-mark {
  width: 50px;
  height: 50px;
  background: var(--petrol);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background var(--transition), transform 0.6s var(--ease-out);
}
.logo:hover .logo-mark { background: var(--petrol-dark); transform: rotate(360deg); }
.logo-text { line-height: 1.1; }
.logo-text .name { font-size: 1.3rem; color: var(--ink); display: block; }
.logo-text .since { font-size: 0.75rem; color: var(--petrol); font-weight: 600; }

.nav { display: flex; gap: 0.3rem; align-items: center; }
.nav a {
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
}
.nav a:hover { color: var(--petrol); }
.nav a.active { color: var(--petrol); }
.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  inset-inline: 1rem;
  height: 3px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  background: var(--petrol);
  color: var(--white) !important;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn:hover {
  background: var(--petrol-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 153, 153, 0.3);
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--petrol) !important;
  border: 2px solid var(--petrol);
}
.btn-outline:hover { background: var(--petrol); color: var(--white) !important; }
.btn-light {
  background: var(--white);
  color: var(--petrol) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  font-family: var(--font-en);
  min-width: 50px;
}
.lang-toggle:hover {
  border-color: var(--petrol);
  color: var(--petrol);
  background: var(--petrol-light);
  transform: translateY(-1px);
}

/* Smooth language switch */
[data-en] {
  transition: opacity 0.25s ease;
}
.switching [data-en] { opacity: 0; }

/* ===== HERO ===== */
.hero {
  color: var(--white);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,0,40,0.88) 0%, rgba(26,58,92,0.82) 55%, rgba(0,153,153,0.62) 100%),
    url('https://images.unsplash.com/photo-1565043666747-69f6646db940?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  animation: kenBurns 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 185, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 153, 0.22) 0%, transparent 50%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
  z-index: 1;
}

/* Decorative floating hexagons — match SH shield shape */
.hero .hex {
  position: absolute;
  background: rgba(0, 255, 185, 0.08);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border: 1px solid rgba(0, 255, 185, 0.15);
}
.hero .hex--1 { width: 140px; height: 140px; top: 8%;  inset-inline-start: 6%;  animation-delay: 0s; }
.hero .hex--2 { width: 80px;  height: 80px;  top: 60%; inset-inline-start: 12%; animation-delay: -3s; opacity: 0.6; }
.hero .hex--3 { width: 200px; height: 200px; top: 12%; inset-inline-end: 8%;   animation-delay: -1.5s; opacity: 0.4; }
.hero .hex--4 { width: 60px;  height: 60px;  top: 70%; inset-inline-end: 18%;  animation-delay: -5s; opacity: 0.7; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-22px) rotate(8deg); }
}
@keyframes heroPulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.1s forwards;
}
.hero h1 strong { color: var(--accent); }
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.3s forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero-meta {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero-meta div .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}
.hero-meta div .lbl {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  background:
    linear-gradient(135deg, rgba(0,0,40,0.92) 0%, rgba(26,58,92,0.85) 100%),
    url('https://images.unsplash.com/photo-1565043666747-69f6646db940?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(0,153,153,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}
.page-header .crumbs {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0s forwards;
}
.page-header > .container > p {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
  color: rgba(255, 255, 255, 0.85);
}
.page-header .crumbs a { color: var(--accent); }

/* ===== SECTIONS ===== */
section { padding: 5rem 0; }
.section-tag {
  display: inline-block;
  color: var(--petrol);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-tag::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--petrol);
  vertical-align: middle;
  margin-inline-end: 0.7rem;
  transition: width 0.5s var(--ease-out);
}
.reveal.in-view .section-tag::before { width: 45px; }

.section-head { margin-bottom: 3rem; max-width: 800px; }
.section-head p { font-size: 1.1rem; }

.bg-light { background: var(--gray-50); }

/* ===== REVEAL ANIMATIONS (scroll-triggered) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-right.in-view {
  transform: translateX(0);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-left.in-view {
  transform: translateX(0);
}
.reveal-scale {
  transform: scale(0.92);
}
.reveal-scale.in-view {
  transform: scale(1);
}
.reveal-fade {
  transform: none;
}

/* Stagger via children */
.stagger > .reveal { transition-delay: 0s; }
.stagger > .reveal:nth-child(2)  { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3)  { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4)  { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5)  { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6)  { transition-delay: 0.40s; }
.stagger > .reveal:nth-child(7)  { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8)  { transition-delay: 0.56s; }
.stagger > .reveal:nth-child(9)  { transition-delay: 0.64s; }

/* ===== GRID / CARDS ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: var(--petrol);
  transition: width 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--petrol-light);
}
.card:hover::after { width: 100%; }
.card .ico {
  width: 56px;
  height: 56px;
  background: var(--petrol-light);
  color: var(--petrol);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  transition: all 0.4s var(--ease-out);
}
.card:hover .ico {
  background: var(--petrol);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}
.card h3 { color: var(--ink); }
.card p { font-size: 0.95rem; }

/* ===== FEATURE / SPLIT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.split-img {
  background: linear-gradient(135deg, var(--petrol) 0%, var(--ink) 100%);
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.split-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 12px);
  z-index: 1;
}
.split-img.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.split-img.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,40,0.4) 0%, rgba(0,153,153,0.55) 100%);
  z-index: 1;
  transition: opacity 0.5s var(--ease-out);
}
.split-img.has-photo:hover::after { opacity: 0.7; }
.split-img .ico {
  font-size: 5rem;
  position: relative;
  z-index: 2;
  opacity: 0.95;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
.split-img .badge {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

ul.bullets { list-style: none; padding: 0; margin: 1.5rem 0; }
ul.bullets li {
  padding-block: 0.6rem;
  padding-inline-start: 1.8rem;
  position: relative;
  color: var(--gray-700);
  transition: padding-inline-start 0.3s var(--ease-out);
}
ul.bullets li:hover {
  padding-inline-start: 2.2rem;
  color: var(--ink);
}
ul.bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  background: var(--petrol);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
ul.bullets li:hover::before {
  transform: rotate(45deg) scale(1.2);
}

/* ===== PROCESS STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--petrol);
  position: relative;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
html[dir="rtl"] .step::after { transform-origin: right; }
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.step:hover::after { transform: scaleX(1); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--petrol-light);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: color 0.4s var(--ease-out);
}
.step:hover::before { color: var(--petrol); }
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; margin: 0; }

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--petrol) 0%, var(--petrol-dark) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,255,185,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: heroPulse 6s ease-in-out infinite alternate;
}
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--white); font-weight: 400; }
.cta-strip h2 strong { color: var(--accent); }
.cta-strip p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== INDUSTRIES / VISUAL CARDS ===== */
.industry-card {
  background: var(--white);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}
.industry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.industry-card .top {
  height: 200px;
  background: linear-gradient(135deg, var(--petrol) 0%, var(--ink) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.industry-card .top::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
  transition: transform 0.6s var(--ease-out);
  z-index: 1;
}
.industry-card .top.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.industry-card .top.has-photo::before {
  background:
    linear-gradient(135deg, rgba(0,0,40,0.45) 0%, rgba(0,153,153,0.55) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px);
  z-index: 1;
}
.industry-card:hover .top::before { transform: scale(1.1); }
.industry-card .top > * { position: relative; z-index: 2; }
.industry-card .top span {
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
  transition: transform 0.5s var(--ease-out);
}
.industry-card:hover .top span { transform: scale(1.15); }
.industry-card .body { padding: 1.8rem; }
.industry-card h3 { margin-bottom: 0.5rem; transition: color var(--transition); }
.industry-card:hover h3 { color: var(--petrol); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--gray-50);
  padding: 2rem;
  border-inline-start: 4px solid var(--petrol);
  margin-bottom: 1rem;
  transition: transform var(--transition), background var(--transition);
}
.info-card:hover {
  transform: translateX(4px);
  background: var(--petrol-light);
}
html[dir="rtl"] .info-card:hover { transform: translateX(-4px); }
.info-card h4 { color: var(--petrol); margin-bottom: 0.3rem; }
.info-card p { margin: 0; color: var(--gray-700); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }

form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
form input, form select, form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
form input:hover, form select:hover, form textarea:hover {
  border-color: var(--petrol);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 4px var(--petrol-light);
  transform: translateY(-1px);
}
form textarea { min-height: 140px; resize: vertical; }
form button { margin-top: 1.5rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--petrol) 0%, var(--accent) 50%, var(--petrol) 100%);
}
.footer .grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 1100px) { .footer .grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px)  { .footer .grid { grid-template-columns: 1fr; } }

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--petrol);
  display: inline-block;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { padding: 0.35rem 0; }
.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition), padding-inline-start var(--transition);
}
.footer ul a:hover {
  color: var(--accent);
  padding-inline-start: 0.5rem;
}
.footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer .logo .name { color: var(--white); }
.footer .logo .since { color: var(--accent); }

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  width: 48px;
  height: 48px;
  background: var(--petrol);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--petrol-dark);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 88px;
    inset-inline: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 2rem 2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition);
    gap: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--gray-100); }
  .nav .btn { margin-top: 1rem; text-align: center; }
  .menu-toggle { display: block; }
  .topbar .info span:first-child { display: none; }
}

/* ===== ACCESSIBILITY: REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   SAUDI EDITION — premium animation overlays
   ========================================================== */

/* ===== LENIS smooth-scroll required CSS ===== */
html.has-lenis,
html.has-lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
html.has-lenis { scroll-behavior: auto; }

/* ===== HEADER — floating transparent over hero ===== */
.header.header--floating {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.header.header--floating:not(.header--solid) .logo-text .name { color: var(--white); }
.header.header--floating:not(.header--solid) .logo-text .since { color: var(--accent); }
/* Floating-header nav-link colors apply ONLY on desktop. On mobile the
   nav becomes a separate fixed white panel (.nav.open) and links must
   stay dark for legibility. */
@media (min-width: 961px) {
  .header.header--floating:not(.header--solid) .nav a {
    color: rgba(255, 255, 255, 0.92);
  }
  .header.header--floating:not(.header--solid) .nav a:hover { color: var(--accent); }
  .header.header--floating:not(.header--solid) .nav a.active { color: var(--accent); }
  .header.header--floating:not(.header--solid) .nav a.active::after { background: var(--accent); }
}
/* Mobile open panel — force dark text regardless of header state */
@media (max-width: 960px) {
  .nav.open a { color: var(--ink); }
  .nav.open a:hover { color: var(--petrol); }
  .nav.open a.active { color: var(--petrol); }
  .nav.open a.active::after { background: var(--petrol); }
  .nav.open .lang-toggle {
    /* The mobile menu panel is always white, so the toggle must stay dark even
       when the header is transparent. !important beats the higher-specificity
       floating-header rule (.header--floating:not(.header--solid) .lang-toggle). */
    color: var(--ink) !important;
    border-color: var(--gray-300) !important;
    margin-top: 1rem;
    align-self: center;
    min-width: 84px;
  }
}
.header.header--floating:not(.header--solid) .menu-toggle { color: var(--white); }
.header.header--floating:not(.header--solid) .lang-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.header.header--floating:not(.header--solid) .lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.header.header--floating:not(.header--solid) .btn {
  background: var(--white);
  color: var(--ink) !important;
}
.header.header--floating:not(.header--solid) .btn:hover {
  background: var(--accent);
  color: var(--ink) !important;
  box-shadow: 0 12px 30px rgba(0, 255, 185, 0.35);
}

.header.header--solid,
.header.header--floating.header--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header.header--floating.header--solid .logo-text .name { color: var(--ink); }
.header.header--floating.header--solid .logo-text .since { color: var(--petrol); }
.header.header--floating.header--solid .nav a { color: var(--ink); }
.header.header--floating.header--solid .nav a.active { color: var(--petrol); }
.header.header--floating.header--solid .nav a.active::after { background: var(--petrol); }
.header.header--floating.header--solid .menu-toggle { color: var(--ink); }
.header.header--floating.header--solid .lang-toggle {
  color: var(--ink);
  border-color: var(--gray-300);
}
.header.header--floating.header--solid .btn {
  background: var(--petrol);
  color: var(--white) !important;
}

/* Push the topbar up off-screen when header floats */
.header--floating + .hero,
.has-lenis .hero { /* hero overlap so header sits on photo */
  margin-top: -88px;
  padding-top: calc(6rem + 88px);
}
/* Topbar always keeps its dark navy background, on every page.
   It sits above the floating header — not over the hero — so making it
   transparent left a blank white strip at the top on mobile. */

/* ===== WORD-BY-WORD reveal ===== */
.words-ready .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.words-ready .word__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.95s var(--ease-out),
    opacity 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.words-ready.words-in .word__inner {
  transform: translateY(0);
  opacity: 1;
}

/* When wrapping is applied, disable the older fadeUp on hero h1 to avoid double animation */
.hero h1.words-ready { opacity: 1; animation: none; }
.page-header h1.words-ready { opacity: 1; animation: none; }

/* ===== MASK-REVEAL H2 wipe ===== */
.mask-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
  isolation: isolate;
}
.mask-reveal .mask-inner {
  display: inline-block;
  opacity: 0;
  transition: opacity 0s linear 0.42s;
}
.mask-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--petrol);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 2;
  pointer-events: none;
}
.mask-reveal.mask-in .mask-inner { opacity: 1; }
.mask-reveal.mask-in::after {
  animation: maskWipe 1.05s var(--ease-out) forwards;
}
@keyframes maskWipe {
  0%   { transform-origin: left center;  transform: scaleX(0); }
  45%  { transform-origin: left center;  transform: scaleX(1); }
  55%  { transform-origin: right center; transform: scaleX(1); }
  100% { transform-origin: right center; transform: scaleX(0); }
}
/* RTL flip — wipe goes right→left */
html[dir="rtl"] .mask-reveal::after { transform-origin: right center; }
html[dir="rtl"] .mask-reveal.mask-in::after {
  animation: maskWipeRTL 1.05s var(--ease-out) forwards;
}
@keyframes maskWipeRTL {
  0%   { transform-origin: right center; transform: scaleX(0); }
  45%  { transform-origin: right center; transform: scaleX(1); }
  55%  { transform-origin: left center;  transform: scaleX(1); }
  100% { transform-origin: left center;  transform: scaleX(0); }
}
/* Hero/CTA strip H2 — wipe in white instead of petrol */
.hero .mask-reveal::after,
.cta-strip .mask-reveal::after { background: var(--accent); }

/* ===== SHARPER CARD HOVER ===== */
.industry-card .top.has-photo {
  background-size: 110% auto;
  background-position: center;
  transition: background-size 0.8s var(--ease-out), background-position 0.8s var(--ease-out);
}
.industry-card:hover .top.has-photo {
  background-size: 130% auto;
}
.industry-card .top.has-photo::before {
  background:
    linear-gradient(135deg, rgba(0,0,40,0.55) 0%, rgba(0,153,153,0.55) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px);
  transition: opacity 0.6s var(--ease-out), background 0.6s var(--ease-out);
  opacity: 1;
}
.industry-card:hover .top.has-photo::before {
  background:
    linear-gradient(135deg, rgba(0,0,40,0.18) 0%, rgba(0,153,153,0.22) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}
.industry-card:hover .top span {
  transform: scale(1.18) translateY(-4px);
}

/* ===== MARQUEE STRIP ===== */
.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  white-space: nowrap;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--ink), transparent); }
.marquee__track {
  display: inline-flex;
  gap: 4rem;
  align-items: center;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}
/* The marquee track is inline-flex, which RTL anchors to the right edge; the
   translateX(-50%) loop then slides the whole track off-screen left, leaving a
   blank strip. Render the strip LTR so the loop stays on-screen and scrolls like
   the English version (the item labels are bilingual, so LTR layout is fine). */
html[dir="rtl"] .marquee { direction: ltr; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s var(--ease-out);
  font-family: var(--font-en);
}
.marquee__item:hover { color: var(--accent); }
.marquee__item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--petrol);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== PINNED SCROLL SECTION ===== */
.pin-section {
  height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--ink) 0%, var(--petrol-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pin-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 185, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 153, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.pin-section .container { position: relative; z-index: 1; text-align: center; }
.pin-section .pin-stage {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.pin-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.pin-slide .pin-num {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-en);
  letter-spacing: -0.03em;
}
.pin-slide h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.8rem;
  font-weight: 300;
}
.pin-slide h3 strong { color: var(--accent); font-weight: 700; }
.pin-slide p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
.pin-progress {
  position: absolute;
  bottom: 4rem;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 2;
}
.pin-progress span {
  width: 28px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: background 0.4s var(--ease-out);
}
.pin-progress span.active { background: var(--accent); }

/* ===== CURSOR BLOB ===== */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  background: rgba(0, 153, 153, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background 0.35s, opacity 0.3s;
  will-change: transform;
}
.cursor-blob--big {
  width: 72px; height: 72px;
  background: rgba(0, 153, 153, 0.18);
}
@media (pointer: coarse) {
  .cursor-blob { display: none; }
}

/* ===== PAGE TRANSITION OVERLAY ===== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--ink) 0%, var(--petrol) 100%);
  transform: translateY(100%);
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  display: grid;
  place-items: center;
}
.page-transition--in {
  transform: translateY(0);
}
.page-transition--out {
  transform: translateY(0);
  animation: pageOut 0.85s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pageOut {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
.page-transition__mark {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.05em;
  font-family: var(--font-en);
  opacity: 0;
  animation: markPulse 0.85s var(--ease-out);
}
.page-transition--in .page-transition__mark {
  animation: markPulseIn 0.55s var(--ease-out) forwards;
}
@keyframes markPulse {
  0%   { opacity: 0; transform: scale(0.6); }
  50%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}
@keyframes markPulseIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== KEEP CURSOR-BLOB OFF FOR FORM CONTROLS ===== */
.cursor-blob { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-blob { display: block; }
}

/* ===== HERO VIDEO BG ===== */
.hero-bg.is-video {
  /* Poster is the reliable base layer: it shows instantly on every device and
     stays as a clean fallback whenever the video can't autoplay (iOS Low Power
     Mode, Data Saver, slow link). The video fades in over it once it really
     starts playing — so the hero looks identical everywhere. */
  background: #00142a url('../img/hero/hero-fallback.jpg') center/cover no-repeat !important;
  animation: none !important;
}
.hero-bg.is-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
  opacity: 0;                    /* hidden until it truly plays — this also hides
                                    the iOS "tap to play" button when autoplay
                                    is blocked, leaving just the poster */
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-bg.is-video.video-playing video { opacity: 1; }
.hero-bg.is-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,40,0.88) 0%, rgba(26,58,92,0.72) 55%, rgba(0,153,153,0.50) 100%);
  pointer-events: none;
}

/* ===== MANUFACTURING STAGES STRIP ===== */
.stages-strip {
  background: var(--gray-50);
  padding: 6rem 0 5rem;
}
.stages-strip .container { max-width: 1280px; }
.stages-strip .section-head { text-align: center; margin-inline: auto; max-width: 760px; }
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .stages-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stages-grid { grid-template-columns: 1fr; } }

.stage-tile {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: default;
  background: var(--ink);
}
.stage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out);
  filter: brightness(0.75) saturate(1.05);
}
.stage-tile:hover img {
  transform: scale(1.08);
  filter: brightness(0.95) saturate(1.1);
}
.stage-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,40,0.85) 100%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.stage-tile:hover::after { opacity: 0.7; }
.stage-tile__caption {
  position: absolute;
  inset-inline: 1.4rem;
  bottom: 1.2rem;
  color: var(--white);
  z-index: 2;
}
.stage-tile__num {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
}
.stage-tile__label {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--white);
}

/* ===== CERTIFICATIONS STRIP ===== */
.certs-strip {
  background: var(--white);
  padding: 4rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.certs-strip .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
}
@media (max-width: 800px) {
  .certs-strip .container { grid-template-columns: 1fr; text-align: center; }
}
.certs-strip h3 {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--ink);
  margin: 0;
}
.certs-strip h3 strong { color: var(--petrol); font-weight: 700; }
.certs-strip .iso-badges {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.certs-strip .iso-badges img {
  max-height: 90px;
  width: auto;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  inset-inline-start: 2rem;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff !important;
  display: grid;
  place-items: center;
  border-radius: 50%;
  z-index: 95;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
  color: #fff !important;
}
.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 600px) {
  .whatsapp-fab { width: 52px; height: 52px; bottom: 1.2rem; inset-inline-start: 1.2rem; }
}

/* ==========================================================
   MAGAZINE-STYLE PRODUCTS PAGE
   ========================================================== */

/* ---- Sticky scroll-spy side nav ---- */
.catalog-nav {
  position: fixed;
  top: 50%;
  inset-inline-end: 1.5rem;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
.catalog-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.catalog-nav__dot {
  position: relative;
  display: block;
  width: 28px;
  height: 6px;
  border-radius: 2px;
  background: rgba(0, 0, 40, 0.18);
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), width 0.35s var(--ease-out);
  padding: 0;
}
.catalog-nav__dot.is-active {
  background: var(--petrol);
  width: 44px;
}
.catalog-nav__dot:hover {
  background: var(--petrol);
}
.catalog-nav__dot::before {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  inset-inline-end: calc(100% + 0.8rem);
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--white);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.catalog-nav__dot:hover::before,
.catalog-nav__dot.is-active::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html[dir="rtl"] .catalog-nav__dot::before { transform: translateY(-50%) translateX(0); }
@media (max-width: 960px) { .catalog-nav { display: none; } }

/* ---- Division header (big numbered chapter) ---- */
.division-header {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.division-header.dark {
  background: var(--ink);
  color: var(--white);
}
.division-header.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 255, 185, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 153, 0.20) 0%, transparent 55%);
  pointer-events: none;
}
.division-header .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 700px) {
  .division-header .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.division-num {
  font-family: var(--font-en);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--petrol);
  opacity: 0.95;
}
.division-header.dark .division-num { color: var(--accent); }
.division-meta .section-tag { margin-bottom: 0.8rem; }
.division-header.dark .section-tag { color: var(--accent); }
.division-header.dark .section-tag::before { background: var(--accent); }
.division-meta h2 {
  margin-bottom: 0.4rem;
}
.division-header.dark h2,
.division-header.dark h2 strong { color: var(--white); }
.division-header.dark h2 strong { color: var(--accent); }
.division-meta p {
  max-width: 700px;
  font-size: 1.05rem;
  margin: 0;
  color: var(--gray-700);
}
.division-header.dark .division-meta p { color: rgba(255,255,255,0.8); }

/* ---- Product index pill ---- */
.product-index {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--petrol);
  margin-bottom: 1.2rem;
}
.product-index .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--petrol-light);
  border-radius: 50%;
  color: var(--petrol);
  font-size: 0.95rem;
  font-weight: 800;
}
.product-index .name {
  text-transform: uppercase;
}

/* ---- Pattern A: FEATURED HERO ---- */
.product-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--petrol-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 185, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(0, 153, 153, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.product-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
html[dir="ltr"] .product-hero .container { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) {
  .product-hero .container { grid-template-columns: 1fr; }
}
.product-hero .product-index { color: var(--accent); }
.product-hero .product-index .num { background: rgba(0, 255, 185, 0.15); color: var(--accent); }
.product-hero h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.2;
}
.product-hero h3 strong { color: var(--accent); font-weight: 700; }
.product-hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.product-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
}
.product-stats li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.product-stats li strong { color: var(--accent); font-weight: 700; margin-inline-end: 0.3rem; }
.product-hero .product-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 255, 185, 0.35);
  padding-bottom: 0.2rem;
  transition: gap 0.3s var(--ease-out), border-color 0.3s;
}
.product-hero .product-cta:hover {
  gap: 1rem;
  border-color: var(--accent);
}
.product-hero .spec-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.product-hero .spec-frame img { width: 100%; height: auto; display: block; }
.product-hero .spec-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0,0,0,0.55);
}

/* ---- Pattern B: TWO-UP CARDS ---- */
.product-two-up {
  padding: 5rem 0;
}
.product-two-up.bg-light { background: var(--gray-50); }
.product-two-up .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 800px) {
  .product-two-up .container { grid-template-columns: 1fr; gap: 2rem; }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card__media {
  position: relative;
  background: var(--gray-50);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
}
.product-card__body .product-index { margin-bottom: 0.8rem; }
.product-card__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.product-card__body p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.product-card__specs li {
  background: var(--petrol-light);
  color: var(--petrol);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-en);
  letter-spacing: 0.03em;
}

/* ---- Pattern C: WIDE single (full-width media, text below) ---- */
.product-wide {
  padding: 5rem 0;
}
.product-wide.bg-light { background: var(--gray-50); }
.product-wide .container { max-width: 1240px; }
.product-wide__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .product-wide__header { grid-template-columns: 1fr; gap: 0.6rem; }
}
.product-wide__header h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 300;
  margin: 0;
}
.product-wide__header h3 strong { font-weight: 700; color: var(--petrol); }
.product-wide__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.product-wide__media img { width: 100%; height: auto; display: block; }
.product-wide__meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .product-wide__meta { grid-template-columns: 1fr; gap: 1rem; }
}
.product-wide__meta p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.75;
}

/* ---- Pattern D: SPOTLIGHT (dark moody, image left, text floats) ---- */
.product-spotlight {
  background: var(--ink);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.product-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(0, 153, 153, 0.22) 0%, transparent 55%);
  pointer-events: none;
}
.product-spotlight .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
html[dir="ltr"] .product-spotlight .container { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 900px) {
  .product-spotlight .container { grid-template-columns: 1fr; gap: 2rem; }
}
.product-spotlight h3 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-spotlight h3 strong { color: var(--accent); font-weight: 700; }
.product-spotlight p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.product-spotlight .spec-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transition: transform 0.7s var(--ease-out);
}
.product-spotlight .spec-frame:hover { transform: scale(1.02); }
.product-spotlight .spec-frame img { width: 100%; height: auto; display: block; }

/* ---- Visual catalog BENTO grid ---- */
.bento-section { padding: 6rem 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
.bento-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.bento-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(1.05);
}
.bento-tile:hover img { transform: scale(1.06); filter: saturate(1.15); }
.bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,40,0.8) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.bento-tile:hover::after { opacity: 1; }
.bento-tile__caption {
  position: absolute;
  inset-inline: 1.2rem;
  bottom: 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.bento-tile:hover .bento-tile__caption { opacity: 1; transform: translateY(0); }
.bento--wide  { grid-column: span 2; }
.bento--tall  { grid-row: span 2; }
.bento--big   { grid-column: span 2; grid-row: span 2; }
@media (max-width: 600px) {
  .bento--wide, .bento--tall, .bento--big { grid-column: span 2; grid-row: auto; }
}

/* ==========================================================
   ABOUT PAGE — LIVE INTERACTIVE TIMELINE
   ========================================================== */

/* ---- Story hero KPI band (4-up) ---- */
.story-kpis {
  padding: 5rem 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.story-kpis::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(0, 255, 185, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 82% 70%, rgba(0, 153, 153, 0.20) 0%, transparent 55%);
  pointer-events: none;
}
.story-kpis .container { position: relative; z-index: 1; }
.story-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 800px) { .story-kpis-grid { grid-template-columns: repeat(2, 1fr); } }
.story-kpi {
  padding: 1.5rem 2rem;
  border-inline-end: 1px solid rgba(255,255,255,0.10);
  transition: background 0.4s var(--ease-out);
}
.story-kpi:last-child { border-inline-end: none; }
@media (max-width: 800px) {
  .story-kpi:nth-child(2n) { border-inline-end: none; }
  .story-kpi:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.10); }
}
.story-kpi:hover { background: rgba(0,255,185,0.04); }
.story-kpi__value {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.story-kpi__label {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ==========================================================
   ABOUT — GSAP HORIZONTAL PIN-SCROLL TIMELINE (FILMSTRIP)
   ========================================================== */
.timeline-pin {
  position: relative;
  background: var(--ink);
  color: var(--white);
  height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  --hue-a: 32;   /* warm sepia, 1970s */
  --hue-b: 184;  /* cool petrol, 2020s */
  --hue: var(--hue-a);
}
.timeline-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, hsla(var(--hue), 65%, 50%, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 82% 70%, hsla(var(--hue), 70%, 45%, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s linear;
}

/* =====  LIVING DASHBOARD  (fills the empty bottom strip with a HUD
   that morphs in sync with the horizontal filmstrip)  ===== */
.timeline-pin__hud {
  position: absolute;
  bottom: 3.5vh;
  inset-inline: 6vw;
  z-index: 6;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.3rem 2rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.timeline-pin__hud.is-visible { opacity: 1; transform: translateY(0); }

.hud-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.hud-col--counter { align-items: center; text-align: center; border-inline: 1px solid rgba(255,255,255,0.10); padding-inline: 1.5rem; }
.hud-col--year { align-items: flex-end; text-align: end; }
.hud-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.hud-decade {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.hud-decade__num {
  position: relative;
  display: inline-block;
  overflow: hidden;
  min-width: 4ch;
}
.hud-decade__num::after {
  /* Subtle bottom underline accent */
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.hud-decade__s {
  font-size: 0.55em;
  opacity: 0.65;
  margin-inline-start: 0.1em;
}

.hud-counter {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.hud-counter__num {
  font-variant-numeric: tabular-nums;
  min-width: 1.6ch;
  display: inline-block;
  text-align: end;
}
.hud-counter__suffix { color: var(--accent); font-size: 0.55em; margin-inline-start: 0.15em; opacity: 0.8; }

.hud-year {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.hud-year::before {
  content: "·";
  color: var(--accent);
  margin-inline-end: 0.4rem;
  font-weight: 800;
}

/* =====  MOBILE TIMELINE — native horizontal swipe + snap  ===== */
@media (max-width: 820px) {
  /* Section reverts to natural-flow height; GSAP pinning is bypassed in JS */
  .timeline-pin {
    height: auto;
    min-height: auto;
    padding: 3.5rem 0 1.5rem;
    overflow: visible;
  }

  /* Intro and progress bar sit at the top in normal flow */
  .timeline-pin__progress {
    position: sticky;
    top: 0;
    z-index: 8;
  }
  .timeline-pin__intro {
    position: relative;
    top: auto;
    inset-inline: auto;
    padding: 0 1.2rem 1.4rem;
    text-align: start;
  }
  .timeline-pin__intro h2 { font-size: 1.6rem; }
  .timeline-pin__hint { display: none; }

  /* The killer change: native horizontal scroller with snap.
     The desktop base rule (.timeline-track { position:absolute; ... })
     appears AFTER this media block in source order, so we force the
     critical mobile values with !important to win the cascade. */
  .timeline-track {
    position: relative !important;
    top: auto !important;
    inset-inline-start: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    display: flex;
    overflow-x: auto !important;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6vw;
    padding: 0.5rem 6vw 1rem !important;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    will-change: scroll-position;
  }
  .timeline-track::-webkit-scrollbar { display: none; }

  /* Slides are now snap targets sized to fit on phones */
  .timeline-slide {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    width: 82vw;
    min-width: 260px;
    max-width: 380px;
    height: 60vh;
    min-height: 420px;
    flex-shrink: 0;
  }

  /* HUD now lives in normal flow below the track, full-width */
  .timeline-pin__hud {
    position: relative;
    bottom: auto;
    inset-inline: 0;
    margin: 1.2rem 1rem 0;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
  }
  .hud-col { gap: 0.25rem; }
  .hud-col--counter { padding-inline: 0.4rem; }
  .hud-col--year { align-items: flex-end; text-align: end; }
  .hud-label { font-size: 0.55rem; letter-spacing: 0.15em; }
  .hud-decade, .hud-counter, .hud-year { font-size: 1.55rem; }
  .hud-year::before { display: none; }

  /* Subtle "swipe →" affordance shown on the first slide only */
  .timeline-slide:first-child::after {
    content: "›››";
    position: absolute;
    bottom: 1rem;
    inset-inline-end: 1.2rem;
    color: rgba(255,255,255,0.55);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    z-index: 3;
    animation: swipeHint 1.6s ease-in-out infinite;
    pointer-events: none;
  }
  html[dir="rtl"] .timeline-slide:first-child::after { content: "‹‹‹"; }
  @keyframes swipeHint {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50%      { opacity: 1;   transform: translateX(-6px); }
  }
  @keyframes swipeHintRtl {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50%      { opacity: 1;   transform: translateX(6px); }
  }
  html[dir="rtl"] .timeline-slide:first-child::after { animation-name: swipeHintRtl; }
}

/* Top progress bar */
.timeline-pin__progress {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 6;
}
.timeline-pin__progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: var(--prog, 0%);
  background: linear-gradient(90deg, var(--petrol), var(--accent));
  transition: width 0.1s linear;
}
html[dir="rtl"] .timeline-pin__progress-fill {
  background: linear-gradient(-90deg, var(--petrol), var(--accent));
}

/* Intro overlay fixed at the top while pinned */
.timeline-pin__intro {
  position: absolute;
  top: 4vh;
  inset-inline: 0;
  z-index: 5;
  text-align: center;
  padding: 0 2rem;
  pointer-events: none;
}
.timeline-pin__intro .section-tag { color: var(--accent); }
.timeline-pin__intro .section-tag::before { background: var(--accent); }
.timeline-pin__intro h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0.4rem 0 0;
}
.timeline-pin__intro h2 strong { color: var(--accent); }

/* Hint chip at bottom */
.timeline-pin__hint {
  position: absolute;
  bottom: 4vh;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}
html[dir="rtl"] .timeline-pin__hint { transform: translateX(50%); }
.timeline-pin__hint .arrows {
  display: inline-flex;
  gap: 4px;
  color: var(--accent);
}
.timeline-pin__hint .arrows span {
  display: inline-block;
  animation: hintBounce 1.8s ease-in-out infinite;
}
.timeline-pin__hint .arrows span:nth-child(2) { animation-delay: 0.15s; }
.timeline-pin__hint .arrows span:nth-child(3) { animation-delay: 0.30s; }
@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(3px); opacity: 1; }
}

/* Year strip at bottom */
.timeline-pin__strip {
  position: absolute;
  bottom: 8vh;
  inset-inline: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  pointer-events: none;
  font-family: var(--font-en);
  flex-wrap: wrap;
  padding: 0 1rem;
}
.timeline-pin__strip span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  letter-spacing: 0.05em;
  transition: color 0.35s var(--ease-out), background 0.35s, transform 0.35s var(--ease-out);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.timeline-pin__strip span.is-active {
  color: var(--ink);
  background: var(--accent);
  transform: scale(1.08);
}

/* The scrolling track */
.timeline-track {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-inline: 8vw 12vw;
  z-index: 1;
  will-change: transform;
}

.timeline-slide {
  flex-shrink: 0;
  width: 36vw;
  min-width: 360px;
  max-width: 540px;
  height: 64vh;
  min-height: 480px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.timeline-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
}
.timeline-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) saturate(1.1);
  transform: scale(1.05);
  transition: filter 0.6s var(--ease-out), transform 1.2s var(--ease-out);
}
.timeline-slide:hover .timeline-slide__bg {
  filter: brightness(0.62) saturate(1.18);
  transform: scale(1.1);
}
.timeline-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0,0,40,0.55) 60%, rgba(0,0,40,0.92) 100%);
  z-index: 1;
}
.timeline-slide__body {
  position: absolute;
  inset: 0;
  padding: 2.2rem 1.8rem 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
}
.timeline-slide__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.timeline-slide__tag {
  display: inline-block;
  background: rgba(0,255,185,0.12);
  border: 1px solid rgba(0,255,185,0.30);
  color: var(--accent);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.7rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.timeline-slide__year {
  font-family: var(--font-en);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.4rem;
}
.timeline-slide--major .timeline-slide__year {
  background: linear-gradient(135deg, var(--accent) 0%, var(--white) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.timeline-slide__head {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.7rem;
  line-height: 1.4;
  font-family: var(--font-ar);
}
html[lang="en"] .timeline-slide__head { font-family: var(--font-en); }
.timeline-slide__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-slide__list li {
  position: relative;
  padding-inline-start: 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 0.3rem;
}
.timeline-slide__list li:last-child { margin-bottom: 0; }
.timeline-slide__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* Major year additional treatment */
.timeline-slide--major {
  border-color: rgba(0, 255, 185, 0.22);
  box-shadow: 0 25px 60px rgba(0, 153, 153, 0.25);
}
.timeline-slide--major .timeline-slide__bg { filter: brightness(0.50) saturate(1.15); }

/* Decade chapter card — a slim card between decades */
.timeline-chapter {
  flex-shrink: 0;
  width: 18vw;
  min-width: 200px;
  max-width: 300px;
  height: 64vh;
  min-height: 480px;
  position: relative;
  display: grid;
  place-items: center;
  border-inline-start: 1px solid rgba(255,255,255,0.08);
  border-inline-end: 1px solid rgba(255,255,255,0.08);
}
.timeline-chapter__body {
  text-align: center;
  color: var(--white);
}
.timeline-chapter__num {
  font-family: var(--font-en);
  font-size: clamp(6rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.18;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.timeline-chapter__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
}

/* Mobile: reduce slide width so 1.2 cards visible at a time */
@media (max-width: 800px) {
  .timeline-slide { width: 78vw; min-width: 280px; height: 60vh; min-height: 420px; }
  .timeline-track { gap: 1.2rem; padding-inline: 11vw 14vw; }
  .timeline-slide__year { font-size: 3.5rem; }
  .timeline-chapter { display: none; }
  .timeline-pin__strip { font-size: 0.65rem; }
}

/* When reduced motion: convert to a normal horizontal scroll */
@media (prefers-reduced-motion: reduce) {
  .timeline-pin { height: auto; overflow-x: auto; overflow-y: hidden; }
  .timeline-track { position: relative; top: auto; transform: none; padding-block: 4rem; }
}

/* ---- (LEGACY) vertical timeline retained for fallback only ---- */
.timeline-section {
  padding: 6rem 0 8rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.timeline-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 153, 153, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 153, 153, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.timeline-section .container { position: relative; z-index: 1; }
.timeline-section .section-head {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
  margin-bottom: 4rem;
}

.timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline__axis {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 3px;
  background: var(--gray-100);
  transform: translateX(-50%);
  border-radius: 999px;
}
html[dir="rtl"] .timeline__axis { transform: translateX(50%); }
.timeline__progress {
  position: absolute;
  top: 0;
  inset-inline: 0;
  width: 100%;
  height: var(--prog, 0%);
  background: linear-gradient(180deg, var(--petrol) 0%, var(--accent) 100%);
  border-radius: inherit;
  transition: height 0.18s linear;
  pointer-events: none;
}

.timeline__events {
  position: relative;
  z-index: 1;
  padding: 1rem 0;
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  margin-bottom: 4.5rem;
  min-height: 140px;
}
.timeline-event:last-child { margin-bottom: 0; }

.timeline-event__node {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--gray-300);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--gray-700);
  letter-spacing: 0;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out),
              color 0.4s var(--ease-out), transform 0.5s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  z-index: 2;
  cursor: default;
}
.timeline-event__node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--petrol);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.timeline-event.is-active .timeline-event__node {
  border-color: var(--petrol);
  background: var(--petrol);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 153, 153, 0.35);
}
.timeline-event.is-active .timeline-event__node::after {
  opacity: 1;
  transform: scale(1);
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.18); }
}
.timeline-event--major .timeline-event__node {
  width: 80px;
  height: 80px;
  font-size: 0.85rem;
}

.timeline-event__card {
  background: var(--white);
  padding: 2rem 2rem 1.75rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.6s var(--ease-out),
              border-color 0.4s;
  position: relative;
}
.timeline-event__card::before {
  /* connector line from card to node */
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gray-300);
  transition: background 0.4s var(--ease-out);
}
.timeline-event--right .timeline-event__card { grid-column: 3; }
.timeline-event--right .timeline-event__card::before { inset-inline-start: -30px; }
.timeline-event--left  .timeline-event__card { grid-column: 1; }
.timeline-event--left  .timeline-event__card::before { inset-inline-end: -30px; }
.timeline-event.is-active .timeline-event__card {
  border-color: var(--petrol-light);
  box-shadow: var(--shadow-md);
}
.timeline-event.is-active .timeline-event__card::before { background: var(--petrol); }
.timeline-event__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-event__year-big {
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--petrol);
  line-height: 0.85;
  margin-bottom: 0.4rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.timeline-event--major .timeline-event__year-big { color: var(--ink); }
.timeline-event--major .timeline-event__year-big strong { color: var(--petrol); }
.timeline-event__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.8rem;
  line-height: 1.35;
}
.timeline-event__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-event__list li {
  position: relative;
  padding-inline-start: 1.25rem;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.timeline-event__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--petrol);
  border-radius: 50%;
}
.timeline-event__photo {
  margin-top: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.timeline-event__photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease-out);
  filter: saturate(1.05);
}
.timeline-event__card:hover .timeline-event__photo img {
  transform: scale(1.06);
  filter: saturate(1.15);
}
.timeline-event__photo__caption {
  position: absolute;
  bottom: 0.5rem;
  inset-inline-start: 0.8rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Mobile timeline collapses to single column with axis on the start edge */
@media (max-width: 800px) {
  .timeline__axis { inset-inline-start: 30px; transform: translateX(-50%); }
  html[dir="rtl"] .timeline__axis { inset-inline-start: auto; inset-inline-end: 30px; transform: translateX(50%); }
  .timeline-event {
    grid-template-columns: 60px 1fr;
    margin-bottom: 3rem;
  }
  .timeline-event__node { width: 50px; height: 50px; font-size: 0.75rem; }
  .timeline-event--major .timeline-event__node { width: 60px; height: 60px; font-size: 0.8rem; }
  .timeline-event--left .timeline-event__card,
  .timeline-event--right .timeline-event__card { grid-column: 2; }
  .timeline-event__card::before { display: none; }
  .timeline-event__card { padding: 1.4rem 1.2rem; }
  .timeline-event__year-big { font-size: 2rem; }
}

/* ---- Plants tour cards (3-up with photo + label) ---- */
.plants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .plants-grid { grid-template-columns: 1fr; } }
.plant-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}
.plant-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s var(--ease-out);
  filter: brightness(0.78) saturate(1.05);
}
.plant-card:hover img { transform: scale(1.06); filter: brightness(0.92); }
.plant-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,40,0.9) 100%);
  pointer-events: none;
}
.plant-card__body {
  position: absolute;
  inset-inline: 1.4rem;
  bottom: 1.6rem;
  color: var(--white);
  z-index: 2;
}
.plant-card__tag {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.8rem;
}
.plant-card__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.plant-card__location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}

/* ==========================================================
   PROCESS — SCROLLYTELLING WITH HORIZONTAL STAGE PROGRESS
   ========================================================== */

/* ---- Top-anchored sticky progress bar ---- */
.process-progress {
  position: fixed;
  top: 88px;
  inset-inline: 0;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
  z-index: 79;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}
.process-progress.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.process-progress__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .process-progress__inner { gap: 0.6rem; padding: 0 1rem; }
}
.process-progress__label {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gray-700);
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .process-progress__label { display: none; }
}
.process-progress__track {
  position: relative;
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: visible;
}
.process-progress__fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--petrol) 0%, var(--accent) 100%);
  border-radius: inherit;
  transition: width 0.25s var(--ease-out);
}
html[dir="rtl"] .process-progress__fill {
  /* The base inset-inline-start:0 already anchors the fill to the RIGHT in RTL
     (inline-start = right), so it grows leftward in step with the marker. The
     old inset-inline-end:0 wrongly anchored it to the LEFT (inline-end = left
     in RTL), which detached the marker. Only flip the gradient direction. */
  background: linear-gradient(-90deg, var(--petrol) 0%, var(--accent) 100%);
}
.process-progress__marker {
  position: absolute;
  top: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(0,153,153,0.45);
  transition: inset-inline-start 0.25s var(--ease-out);
  transform: translateX(-50%);
}
html[dir="rtl"] .process-progress__marker { transform: translateX(50%); }
.process-progress__count {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.process-progress__count .current { color: var(--petrol); font-size: 1.15rem; }
.process-progress__count .sep { color: var(--gray-300); margin: 0 0.25rem; }

/* When the floating header is solid, push the progress bar down to sit
   right against the header bottom. When floating transparent over hero,
   the progress bar is hidden anyway (the page header has no stages). */
.header.header--solid ~ .process-progress { top: 88px; }

/* ---- Stage card refinements within the act sections ---- */
.process-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--petrol-light);
  color: var(--petrol);
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease-out), background 0.4s, color 0.4s;
}
.product-card:hover .process-stage-num {
  background: var(--petrol);
  color: var(--white);
  transform: rotate(-8deg);
}
.product-spotlight .process-stage-num,
.product-hero .process-stage-num {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--accent);
}

/* ---- Quality KPIs grid (variation on market-bars) ---- */
.quality-kpis {
  padding: 6rem 0;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.quality-kpis::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0, 255, 185, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(0, 153, 153, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.quality-kpis .container { position: relative; z-index: 1; }
.quality-kpis .section-head { text-align: center; margin-inline: auto; max-width: 720px; }
.quality-kpis .section-head .section-tag { color: var(--accent); }
.quality-kpis .section-head .section-tag::before { background: var(--accent); }
.quality-kpis .section-head h2,
.quality-kpis .section-head h2 strong { color: var(--white); }
.quality-kpis .section-head h2 strong { color: var(--accent); }
.quality-kpis .section-head p { color: rgba(255,255,255,0.85); }
.kpi-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: background 0.4s var(--ease-out), border-color 0.4s, transform 0.4s var(--ease-out);
}
.kpi-tile:hover {
  background: rgba(0, 255, 185, 0.06);
  border-color: rgba(0, 255, 185, 0.30);
  transform: translateY(-4px);
}
.kpi-tile__value {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.kpi-tile__unit {
  font-family: var(--font-en);
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-inline-start: 0.3rem;
  font-weight: 600;
}
.kpi-tile__label {
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.kpi-tile__desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================
   INDUSTRIES — SAUDI CULTURAL SHOWCASE + MARKET STATS
   ========================================================== */

/* ---- Saudi cultural showcase ---- */
.saudi-showcase {
  background: var(--ink);
  color: var(--white);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.saudi-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 185, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(0, 153, 153, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.saudi-showcase .container { position: relative; z-index: 1; }
.saudi-showcase .section-head { max-width: 800px; }
.saudi-showcase .section-head .section-tag { color: var(--accent); }
.saudi-showcase .section-head .section-tag::before { background: var(--accent); }
.saudi-showcase .section-head h2,
.saudi-showcase .section-head h2 strong { color: var(--white); }
.saudi-showcase .section-head h2 strong { color: var(--accent); }
.saudi-showcase .section-head p { color: rgba(255,255,255,0.85); }

.saudi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}
@media (max-width: 1000px) { .saudi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .saudi-grid { grid-template-columns: 1fr; } }

.saudi-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
  cursor: default;
  isolation: isolate;
}
.saudi-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease-out);
  filter: brightness(0.62) saturate(1.05);
}
.saudi-card:hover .saudi-card__bg {
  transform: scale(1.08);
  filter: brightness(0.78) saturate(1.15);
}
.saudi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,40,0.92) 95%);
  pointer-events: none;
  z-index: 1;
}
.saudi-card__body {
  position: absolute;
  inset-inline: 1.4rem;
  bottom: 1.5rem;
  z-index: 2;
  color: var(--white);
  transition: transform 0.5s var(--ease-out);
}
.saudi-card:hover .saudi-card__body { transform: translateY(-4px); }
.saudi-card__ar {
  font-family: var(--font-ar);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: 0;
}
html[lang="en"] .saudi-card__ar {
  font-size: 0.9rem;
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.saudi-card__en {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: var(--font-en);
}
html[lang="ar"] .saudi-card__en {
  font-family: var(--font-ar);
  font-size: 1.05rem;
}
.saudi-card__desc {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out) 0.05s;
}
.saudi-card:hover .saudi-card__desc {
  max-height: 6rem;
  opacity: 1;
}
.saudi-card__corner {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(0, 255, 185, 0.12);
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 255, 185, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Market stats — horizontal bars ---- */
.market-stats {
  padding: 6rem 0;
  background: var(--gray-50);
}
.market-stats .container { max-width: 980px; }
.market-stats .section-head { text-align: center; margin-inline: auto; max-width: 700px; }
.market-bars {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.market-bar {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .market-bar {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .market-bar .market-bar__track { grid-column: 1 / -1; }
}
.market-bar__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.market-bar__label .ico {
  font-size: 1.4rem;
  line-height: 1;
}
.market-bar__track {
  position: relative;
  height: 10px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.market-bar__fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--petrol) 0%, var(--accent) 100%);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-out);
}
html[dir="rtl"] .market-bar__fill {
  /* Base inset-inline-start:0 already anchors to the RIGHT in RTL; the old
     inset-inline-end:0 wrongly re-anchored it to the LEFT (inline-end = left in
     RTL), so the bar filled from the wrong side. Keep only the gradient flip and
     right-origin growth. */
  background: linear-gradient(-90deg, var(--petrol) 0%, var(--accent) 100%);
  transform-origin: right center;
}
.market-bar.in-view .market-bar__fill { transform: scaleX(1); }
.market-bar__pct {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--petrol);
  letter-spacing: -0.02em;
  min-width: 48px;
  text-align: end;
}

/* ===== PRODUCT SPEC SHEETS (Saudi) ===== */
.product-spec {
  padding: 4rem 0;
}
.product-spec .container {
  max-width: 1100px;
}
.product-spec__head {
  margin-bottom: 2rem;
}
.product-spec__head h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 300;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.product-spec__head p {
  color: var(--gray-700);
  font-size: 1.05rem;
  max-width: 780px;
  line-height: 1.7;
}
.spec-sheet {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  background: var(--gray-50);
}
.spec-sheet:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================
   LEGAL PAGES (Privacy, Terms) — readable long-form prose
   ========================================================== */
.legal-page { padding: 4rem 0 5rem; background: var(--white); }
.legal-page .container { max-width: 800px; }
.legal-updated {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--gray-100);
}
.legal-prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 0.8rem;
  padding-inline-start: 0.6rem;
  border-inline-start: 4px solid var(--petrol);
  line-height: 1.3;
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray-700);
  margin-bottom: 1.1rem;
}
.legal-prose p strong { color: var(--ink); font-weight: 700; }
.legal-prose .legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.legal-prose .legal-list li {
  position: relative;
  padding-inline-start: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--gray-700);
}
.legal-prose .legal-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7rem;
  width: 7px;
  height: 7px;
  background: var(--petrol);
  border-radius: 50%;
}
.legal-prose a {
  color: var(--petrol);
  border-bottom: 1px solid var(--petrol-light);
}
.legal-prose a:hover { color: var(--petrol-dark); border-color: var(--petrol); }

/* ==========================================================
   404 PAGE — branded with floating hexagons + accent number
   ========================================================== */
.error-404 {
  min-height: calc(100vh - 88px);
  background: linear-gradient(135deg, var(--ink) 0%, var(--petrol-dark) 100%);
  color: var(--white);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-404::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(0,255,185,0.10) 0%, transparent 50%),
    radial-gradient(circle at 82% 70%, rgba(0,153,153,0.20) 0%, transparent 55%);
  pointer-events: none;
}
.error-404 .container { position: relative; z-index: 2; max-width: 700px; }
.error-404 .hex { z-index: 1; }
.error-404__code {
  font-family: var(--font-en);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-shadow: 0 6px 30px rgba(0,255,185,0.18);
}
.error-404__title {
  color: var(--white);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.error-404__title strong { color: var(--accent); font-weight: 700; }
.error-404__lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}
.error-404__cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.error-404__quick {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.error-404__quick-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}
.error-404__quick a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.error-404__quick a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================
   COOKIE CONSENT BANNER — bottom-fixed, PDPL-compliant
   ========================================================== */
.cookie-banner {
  position: fixed;
  inset-inline: 1rem;
  bottom: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,40,0.55);
  padding: 1.3rem 1.5rem;
  max-width: 720px;
  margin-inline: auto;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.cookie-banner__ico {
  font-size: 1.6rem;
  line-height: 1;
}
.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.cookie-banner__body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.cookie-banner__body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(0,255,185,0.4);
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  flex: 1 1 auto;
  font: inherit;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--white);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.cookie-banner__btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.30);
}
.cookie-banner__btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.cookie-banner__btn--primary:hover {
  background: #00f0b0;
  border-color: #00f0b0;
  color: var(--ink);
  transform: translateY(-1px);
}
@media (max-width: 540px) {
  .cookie-banner { padding: 1rem 1.1rem; }
  .cookie-banner__actions { flex-direction: column; }
}

/* ==========================================================
   CONTACT PAGE — editorial sections
   ========================================================== */

/* page-header on contact has floating hexagons → deeper backdrop */
.contact-page-header { isolation: isolate; }
.contact-page-header .hex {
  position: absolute;
  background: rgba(0, 255, 185, 0.06);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border: 1px solid rgba(0, 255, 185, 0.10);
}
.contact-page-header .hex--1 { width: 110px; height: 110px; top:  10%; inset-inline-start: 5%;  animation-delay: 0s; }
.contact-page-header .hex--2 { width: 70px;  height: 70px;  top:  62%; inset-inline-start: 12%; animation-delay: -3s; opacity: 0.55; }
.contact-page-header .hex--3 { width: 160px; height: 160px; top:  18%; inset-inline-end: 7%;   animation-delay: -1.5s; opacity: 0.4; }
.contact-page-header .hex--4 { width: 55px;  height: 55px;  top:  70%; inset-inline-end: 20%;  animation-delay: -5s; opacity: 0.65; }
.contact-page-header > .container { position: relative; z-index: 2; }

/* "What happens next" — numbered flow with connecting line */
.next-steps {
  padding: 5rem 0 6rem;
  background: var(--white);
}
.next-steps .section-head {
  text-align: center;
  margin-inline: auto;
  max-width: 760px;
  margin-bottom: 3rem;
}
.next-steps__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
  counter-reset: nstep;
}
.next-steps__list::before {
  content: "";
  position: absolute;
  top: 28px;
  inset-inline: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--petrol-light), var(--petrol), var(--petrol-light));
  z-index: 0;
}
html[dir="rtl"] .next-steps__list::before {
  background: linear-gradient(-90deg, var(--petrol-light), var(--petrol), var(--petrol-light));
}
@media (max-width: 800px) {
  .next-steps__list { grid-template-columns: 1fr; gap: 1.5rem; }
  .next-steps__list::before { display: none; }
}
.next-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 0;
}
.next-step__num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--petrol);
  color: var(--petrol);
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 153, 153, 0.18);
  margin-bottom: 1rem;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.next-step:hover .next-step__num {
  background: var(--petrol);
  color: var(--white);
  transform: scale(1.06);
}
.next-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.next-step p {
  color: var(--gray-700);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
}
