/* =========================================================
   MDD — مدد لخدمات النفط والغاز
   Design system built from MDD Brand Guidelines V1.0
   ========================================================= */

/* Brand fonts — self-hosted from the MDD font package (assets/fonts) */
@font-face { font-family: "itf Qomra Arabic"; src: url("../fonts/Qomra-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "itf Qomra Arabic"; src: url("../fonts/Qomra-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "itf Qomra Arabic"; src: url("../fonts/Qomra-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/Cairo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Core brand colors (guide p.15) */
  --petroleum: #003E51;
  --gold: #BD9B60;
  --black6: #101820;
  --ivory: #F1EEE6;

  /* Derived tones */
  --deep: #04212C;          /* dark section ground, between Petroleum and Black 6 */
  --deep-2: #0B3445;        /* watermark segments on deep */
  --sand: #E6DFD1;          /* cards / panels on ivory */
  --sand-line: #D8CEBB;
  --gold-ink: #9C7A3F;      /* gold for titles on light grounds (contrast-safe) */
  --gold-soft: #D9C29A;
  --ink: #101820;
  --ink-2: #3D4A55;
  --ink-3: #6B7782;
  --on-dark: #F1EEE6;
  --on-dark-2: #A9B8C0;
  --rule-dark: rgba(241, 238, 230, .14);
  --rule-light: rgba(0, 62, 81, .16);

  /* Type */
  --f-title: "itf Qomra Arabic", "Cairo", sans-serif;
  --f-body: "Cairo", "Inter", system-ui, sans-serif;
  --f-num: "Poppins", "Inter", sans-serif;

  /* Scale (1.25 modular, fluid) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --t-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  --t-2xl: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  --t-3xl: clamp(2.8rem, 1.6rem + 4.6vw, 5.6rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(72px, 9vw, 140px);
  --maxw: 1320px;

  /* Radii — pill for imagery, soft for panels */
  --r-pill: 999px;
  --r-lg: 28px;
  --r-md: 16px;
  --r-sm: 10px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[lang="en"] {
  --f-title: "itf Qomra Arabic", "Inter", sans-serif;
  --f-body: "Inter", "Cairo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.75;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-title);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}
html[lang="en"] :is(h1, h2, h3) { letter-spacing: -.03em; }
p { margin: 0; }
.num { font-family: var(--f-num); font-feature-settings: "tnum"; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.6em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 700; font-size: var(--t-sm);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold { background: var(--gold); color: var(--black6); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--line-light { border-color: var(--rule-dark); color: var(--on-dark); }
.btn--line-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--petrol { background: var(--petroleum); color: var(--ivory); }
.btn--petrol:hover { background: var(--deep); }
.btn--line-dark { border-color: var(--rule-light); color: var(--petroleum); }
.btn--line-dark:hover { border-color: var(--petroleum); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
  border-bottom: 1px solid var(--rule-dark);
  transition: height .35s var(--ease), border-color .35s var(--ease);
}
.brand-link { display: flex; align-items: center; }
.brand-link img { height: 66px; width: auto; transition: height .35s var(--ease); }
.brand-link .logo-light { display: none; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  position: relative; font-size: var(--t-sm); font-weight: 600; color: var(--on-dark);
  padding-block: 6px;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: var(--origin, right);
  transition: transform .3s var(--ease);
}
html[dir="ltr"] .nav a::after { --origin: left; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--rule-dark); background: none; color: var(--on-dark);
  border-radius: var(--r-pill); padding: .45em 1em; font-size: var(--t-xs); font-weight: 700;
  font-family: var(--f-num);
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: currentColor; margin-block: 6px; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn { color: var(--on-dark); }

/* scrolled / light pages */
.site-header.is-solid { background: rgba(241, 238, 230, .94); backdrop-filter: blur(12px); }
.site-header.is-solid .bar { height: 72px; border-color: var(--rule-light); }
.site-header.is-solid .brand-link img { height: 56px; }
.site-header.is-solid .logo-dark { display: none; }
.site-header.is-solid .logo-light { display: block; }
.site-header.is-solid .nav a, .site-header.is-solid .menu-btn { color: var(--petroleum); }
.site-header.is-solid .lang-toggle { color: var(--petroleum); border-color: var(--rule-light); }
.site-header.is-solid .header-cta { background: var(--petroleum); color: var(--ivory); }

/* ---------- Supergraphic (the 8-element symbol) ---------- */
.symbol-graphic .seg { fill: var(--deep-2); }
.symbol-graphic .ring { fill: var(--gold); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--deep); color: var(--on-dark);
  display: grid; align-items: center;
  padding-block: 140px 64px;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__copy { max-width: 680px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold); font-weight: 700; font-size: var(--t-sm); margin-bottom: 28px;
}
.hero__kicker::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.5rem, 1.3rem + 3.4vw, 4.4rem); line-height: 1.08; }
.hero h1 span { display: block; white-space: nowrap; }
html[lang="ar"] .hero h1 { line-height: 1.4; }
.hero__lead { margin-top: 28px; font-size: var(--t-lg); color: var(--on-dark-2); max-width: 52ch; line-height: 1.8; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art {
  position: relative; aspect-ratio: 1; width: min(760px, 58vw);
  margin-inline-end: calc(var(--gutter) * -2.2);
  justify-self: end;
}
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.hero__art .seg { fill: #0D3D50; }
.hero__art .seg-edge { fill: none; stroke: rgba(189, 155, 96, .0); }
.hero__art .ring { fill: var(--gold); }

/* assembly — the one orchestrated moment */
.hero__art .seg { transform-box: view-box; transform-origin: 259px 259px; animation: seg-in 1.4s var(--ease) both; }
.hero__art .seg:nth-of-type(1) { animation-delay: .10s; --dx: 60px;  --dy: 60px; }
.hero__art .seg:nth-of-type(2) { animation-delay: .18s; --dx: 0;     --dy: 80px; }
.hero__art .seg:nth-of-type(3) { animation-delay: .26s; --dx: -60px; --dy: 60px; }
.hero__art .seg:nth-of-type(4) { animation-delay: .34s; --dx: -80px; --dy: 0; }
.hero__art .seg:nth-of-type(5) { animation-delay: .42s; --dx: -60px; --dy: -60px; }
.hero__art .seg:nth-of-type(6) { animation-delay: .50s; --dx: 0;     --dy: -80px; }
.hero__art .seg:nth-of-type(7) { animation-delay: .58s; --dx: 60px;  --dy: -60px; }
.hero__art .seg:nth-of-type(8) { animation-delay: .66s; --dx: 80px;  --dy: 0; }
@keyframes seg-in {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(-22deg); }
  to   { opacity: 1; transform: none; }
}
.hero__art .ring-group { transform-box: view-box; transform-origin: 259px 259px; animation: ring-in 1.2s .9s var(--ease) both; }
@keyframes ring-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.hero__art .porthole { animation: fade-in 1.4s 1.3s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero__art .spin { transform-box: view-box; transform-origin: 259px 259px; animation: slow-spin 120s linear 2.2s infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }

.hero__caption {
  position: absolute; inset-inline-start: 6%; bottom: 8%;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--t-xs); color: var(--on-dark-2);
  animation: fade-in 1s 1.8s both;
}
.hero__caption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero__foot {
  position: relative; z-index: 2; margin-top: 72px;
  border-top: 1px solid var(--rule-dark);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero__foot > div { padding: 24px 0; padding-inline-end: 32px; }
.hero__foot > div + div { padding-inline-start: 32px; border-inline-start: 1px solid var(--rule-dark); }
.hero__foot h3 { font-size: var(--t-lg); color: var(--ivory); margin-bottom: 6px; }
.hero__foot p { font-size: var(--t-sm); color: var(--on-dark-2); line-height: 1.7; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--deep { background: var(--deep); color: var(--on-dark); overflow: hidden; }
.section--sand { background: var(--sand); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { font-size: var(--t-2xl); color: var(--gold-ink); }
html[lang="ar"] .sec-head h2 { line-height: 1.3; }
.section--deep .sec-head h2 { color: var(--gold); }
.sec-head p { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.8; max-width: 56ch; }
.section--deep .sec-head p { color: var(--on-dark-2); }
.sec-tag { display: block; font-size: var(--t-sm); font-weight: 700; color: var(--petroleum); margin-bottom: 14px; }
.section--deep .sec-tag { color: var(--on-dark-2); }

/* ---------- About / pill collage ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy h2 { font-size: var(--t-2xl); color: var(--gold-ink); margin-bottom: 28px; }
html[lang="ar"] .about-copy h2 { line-height: 1.3; }
.about-copy p { color: var(--ink-2); margin-bottom: 18px; max-width: 60ch; }
.about-copy .btn { margin-top: 18px; }

.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(84px, 9vw, 130px); gap: 14px; }
.collage > * { border-radius: var(--r-pill); overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-column: 1 / 5; }
.collage .c2 { grid-column: 5 / 7; aspect-ratio: 1; display: grid; place-items: center; background: var(--gold); }
.collage .c3 { grid-column: 1 / 3; display: grid; place-items: center; background: var(--petroleum); }
.collage .c4 { grid-column: 3 / 7; }
.collage .c5 { grid-column: 1 / 4; }
.collage .c6 { grid-column: 4 / 7; }
.collage .badge img { width: 58%; height: auto; object-fit: contain; }

/* ---------- Services dial (signature) ---------- */
.dial-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dial { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dial svg { width: 100%; height: 100%; overflow: visible; }

/* the whole gear turns; a slight overshoot gives it mechanical weight */
.dial-rotor {
  transform-box: view-box; transform-origin: 259.05px 259.05px;
  transition: transform .8s cubic-bezier(.32, 1.12, .42, 1);
  will-change: transform;
}
.dial .seg {
  fill: #114A60; cursor: pointer;
  transition: fill .6s var(--ease), opacity .6s var(--ease), transform .7s cubic-bezier(.3, 1.25, .45, 1);
}
.dial-wrap.has-active .seg:not(.is-active) { opacity: .62; }
.dial .seg:hover { fill: #1A5D77; opacity: 1; }
.dial .seg.is-active { fill: var(--gold); opacity: 1; }
.dial .seg:focus-visible { outline: none; fill: #1F6B88; opacity: 1; }
.dial .seg.is-active:focus-visible { fill: var(--gold-soft); }

.dial-pointer { fill: var(--gold); }
.dial-track { fill: none; stroke: rgba(189, 155, 96, .16); stroke-width: 1.5; }
.dial-arc {
  fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: .875;
  transition: stroke-dashoffset .7s cubic-bezier(.3, .9, .3, 1);
}
.dial-timer { fill: none; stroke: rgba(241, 238, 230, .38); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dial-timer.is-running { animation: dial-timer 3.5s linear forwards; }
.dial-wrap.is-paused .dial-timer { animation-play-state: paused; }
.dial-wrap.is-stopped .dial-timer { opacity: 0; }
@keyframes dial-timer { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.dial__center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.dial__num {
  display: grid; overflow: hidden; height: 1.05em; padding-inline: .05em;
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; color: var(--gold); line-height: 1.05;
}
.dial__num > span { grid-area: 1 / 1; }
.dial__center small { display: block; font-size: var(--t-xs); color: var(--on-dark-2); margin-top: 6px; font-family: var(--f-num); direction: ltr; }

.dial-toggle {
  position: absolute; bottom: 2%; inset-inline-end: 2%;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--rule-dark); color: var(--on-dark-2);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.dial-toggle:hover { color: var(--gold); border-color: var(--gold); }
.dial-toggle svg { width: 16px; height: 16px; fill: currentColor; }

.svc-panel { min-height: 380px; }
.svc-panel h3 { font-size: var(--t-xl); color: var(--ivory); margin-bottom: 18px; }
.svc-panel p { color: var(--on-dark-2); max-width: 52ch; }
.svc-panel ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.svc-panel li { display: flex; gap: 12px; align-items: baseline; color: var(--on-dark); font-size: var(--t-sm); }
.svc-panel li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
.svc-panel .svc-more { margin-top: 28px; }

/* pills share one gold indicator that slides to the active service */
.svc-list { position: relative; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-indicator {
  position: absolute; left: 0; top: 0; z-index: 0;
  border-radius: var(--r-pill); background: var(--gold); pointer-events: none;
  transition: transform .6s cubic-bezier(.3, 1.1, .4, 1), width .6s cubic-bezier(.3, 1.1, .4, 1), height .6s var(--ease);
}
.svc-list button {
  position: relative; z-index: 1;
  border: 1px solid var(--rule-dark); background: none; color: var(--on-dark-2);
  border-radius: var(--r-pill); padding: .5em 1.05em; font-size: var(--t-xs); font-weight: 600;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.svc-list button:hover { color: var(--ivory); border-color: rgba(241,238,230,.4); }
.svc-list button[aria-pressed="true"] { color: var(--black6); border-color: transparent; }

.watermark {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(900px, 90vw); aspect-ratio: 1;
  background: url("../img/gear-watermark-dark.svg") center / contain no-repeat;
}
.watermark--light { background-image: url("../img/gear-watermark-light.svg"); }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Gear & flower duality ---------- */
.duality { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.duality__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.duality__imgs figure { margin: 0; }
.duality__imgs .frame { border-radius: 200px 200px var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.duality__imgs figure:nth-child(2) { margin-top: 80px; }
.duality__imgs .frame--down { border-radius: var(--r-lg) var(--r-lg) 200px 200px; }
.duality__imgs img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.duality__imgs figcaption { margin-top: 14px; }
.duality__imgs figcaption b { display: block; font-family: var(--f-title); font-size: var(--t-lg); color: var(--petroleum); }
.duality__imgs figcaption span { font-size: var(--t-sm); color: var(--gold-ink); font-weight: 600; }
.duality blockquote { margin: 0; font-family: var(--f-title); font-weight: 700; font-size: var(--t-2xl); line-height: 1.25; color: var(--gold-ink); }
html[lang="ar"] .duality blockquote { line-height: 1.45; }
.duality blockquote + p { margin-top: 28px; color: var(--ink-2); max-width: 56ch; }
.eight-note { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule-light); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.eight-note .num { font-size: 4.5rem; font-weight: 600; line-height: .9; color: var(--petroleum); }
.eight-note p { font-size: var(--t-sm); color: var(--ink-2); }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--rule-light); }
.steps li { position: relative; padding: 32px 0 0; padding-inline-end: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--f-num); font-weight: 500;
  font-size: var(--t-sm); color: var(--gold-ink); display: block; margin-bottom: 18px;
}
.steps li::after { content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--petroleum); }
.steps h3 { font-size: var(--t-lg); color: var(--petroleum); margin-bottom: 10px; }
.steps p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.75; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--petroleum); color: var(--ivory); border-radius: var(--r-lg); padding: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; }
.cta h2 { font-size: var(--t-2xl); max-width: 18ch; }
html[lang="ar"] .cta h2 { line-height: 1.3; }
.cta p { margin-top: 18px; color: var(--on-dark-2); max-width: 50ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .watermark { width: 520px; inset-inline-end: -160px; top: -160px; opacity: .55; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black6); color: var(--on-dark-2); padding-block: 80px 32px; margin-top: var(--section); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--rule-dark); }
.site-footer .f-logo { height: 76px; width: auto; margin-bottom: 22px; }
.site-footer p { font-size: var(--t-sm); max-width: 38ch; line-height: 1.8; }
.site-footer h4 { font-family: var(--f-body); font-size: var(--t-sm); color: var(--ivory); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--t-sm); }
.site-footer a:hover { color: var(--gold); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: var(--t-xs); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--deep); color: var(--on-dark); padding-block: 190px 96px; }
.page-hero .watermark { inset-inline-end: -220px; bottom: -360px; width: 760px; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--t-3xl); max-width: 16ch; }
html[lang="ar"] .page-hero h1 { line-height: 1.25; }
.page-hero p { margin-top: 24px; font-size: var(--t-lg); color: var(--on-dark-2); max-width: 60ch; }
.crumbs { display: flex; gap: 10px; font-size: var(--t-xs); color: var(--on-dark-2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- About page ---------- */
.essence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.essence article:nth-child(2) { margin-top: 64px; }
.essence .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 22px; }
.essence img { width: 100%; height: 100%; object-fit: cover; }
.essence h3 { font-size: var(--t-xl); color: var(--petroleum); margin-bottom: 8px; }
.essence p { color: var(--ink-2); font-size: var(--t-sm); }

.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.story h2 { font-size: var(--t-2xl); color: var(--gold-ink); position: sticky; top: 120px; align-self: start; }
html[lang="ar"] .story h2 { line-height: 1.3; }
.story .body p { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.9; }
.story .body p + p { margin-top: 24px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-dark); }
.values > div { padding: 32px 28px 8px 0; padding-inline: 0 28px; }
.values > div + div { border-inline-start: 1px solid var(--rule-dark); padding-inline-start: 28px; }
.values h3 { font-size: var(--t-lg); color: var(--gold); margin-bottom: 10px; }
.values p { font-size: var(--t-sm); color: var(--on-dark-2); }

/* ---------- Services page ---------- */
.svc-rows { border-top: 1px solid var(--rule-light); }
.svc-row { scroll-margin-top: 96px; display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr) 280px; gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--rule-light); align-items: start; }
.svc-row .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; color: var(--petroleum); }
.svc-row .ico svg { width: 28px; height: 28px; }
.svc-row h3 { font-size: var(--t-xl); color: var(--petroleum); }
html[lang="ar"] .svc-row h3 { line-height: 1.35; }
.svc-row p { color: var(--ink-2); }
.svc-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.svc-row ul li::before { content: "—"; color: var(--gold-ink); margin-inline-end: 8px; }
.svc-row .thumb { border-radius: var(--r-pill); overflow: hidden; aspect-ratio: 16 / 9; }
.svc-row .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-size: var(--t-xl); color: var(--gold-ink); margin-bottom: 24px; }
.contact-info dl { margin: 0; display: grid; gap: 22px; }
.contact-info dt { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: var(--t-lg); color: var(--petroleum); font-weight: 600; }
.contact-info .map { margin-top: 36px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); position: relative; }
.contact-info .map img { width: 100%; height: 100%; object-fit: cover; }

.form { background: #FBFAF6; border: 1px solid var(--sand-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.form h2 { font-size: var(--t-xl); color: var(--petroleum); margin-bottom: 8px; }
.form > p { color: var(--ink-3); font-size: var(--t-sm); margin-bottom: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-md); color: var(--ink);
  background: var(--ivory); border: 1px solid var(--sand-line); border-radius: var(--r-sm);
  padding: .8em 1em; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--petroleum); background: #fff; }
.field .err { font-size: var(--t-xs); color: #A1361F; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #A1361F; }
.field.is-invalid .err { display: block; }
.form-status { margin-top: 16px; font-size: var(--t-sm); color: var(--petroleum); font-weight: 600; min-height: 1.5em; }

/* =========================================================
   Signature sections (home)
   ========================================================= */

/* ---------- Operations: expanding cinematic panels ---------- */
.opx { display: flex; gap: 12px; height: clamp(460px, 64vh, 640px); }
.opx__item {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); color: var(--ivory); cursor: pointer; outline-offset: 4px;
  transition: flex-grow .95s cubic-bezier(.65, 0, .2, 1);
}
.opx__item.is-active { flex-grow: 5.4; cursor: default; }
.opx__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.12); filter: saturate(.55) brightness(.8);
  transition: transform 1.4s cubic-bezier(.2, .7, .1, 1), filter .9s var(--ease);
}
.opx__item.is-active img { transform: scale(1); filter: none; }
.opx__item::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(4, 33, 44, .92) 0%, rgba(4, 33, 44, .35) 45%, rgba(4, 33, 44, .55) 100%);
  transition: background .9s var(--ease);
}
.opx__item.is-active::after { background: linear-gradient(to top, rgba(4, 33, 44, .92) 0%, rgba(4, 33, 44, .2) 50%, rgba(4, 33, 44, 0) 100%); }
.opx__item:not(.is-active):hover img { filter: saturate(.8) brightness(.9); }

.opx__label {
  position: absolute; left: 50%; bottom: 32px;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-family: var(--f-title); font-weight: 700; font-size: var(--t-lg); white-space: nowrap;
  transition: opacity .35s var(--ease);
}
.opx__label::after {
  content: ""; display: inline-block; width: 2px; height: 28px; margin-block-start: 14px;
  background: var(--gold); vertical-align: middle;
}
.opx__item.is-active .opx__label { opacity: 0; }

.opx__body {
  position: absolute; inset-inline-start: 0; bottom: 0;
  width: clamp(280px, 38vw, 560px); padding: clamp(24px, 3vw, 44px);
  opacity: 0; transform: translateY(18px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.opx__item.is-active .opx__body {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .7s .45s var(--ease), transform .8s .45s cubic-bezier(.2, .7, .1, 1);
}
.opx__body h3 { font-size: var(--t-xl); margin-bottom: 10px; }
.opx__body p { color: rgba(241, 238, 230, .8); max-width: 44ch; font-size: var(--t-md); }
.opx__link {
  display: inline-flex; margin-top: 20px; padding-bottom: 4px;
  font-size: var(--t-sm); font-weight: 700; color: var(--gold);
  border-bottom: 1px solid rgba(189, 155, 96, .5);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.opx__link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- How we work: scroll-driven pipeline ---------- */
.flow { position: relative; --p: 0; }
.flow__track { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--rule-light); }
.flow__fill {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(var(--p)); transform-origin: left center;
}
html[dir="rtl"] .flow__fill { transform-origin: right center; }
.flow .steps { border-top: 0; }
.flow .steps li { padding-top: 40px; }
.flow .steps li::after {
  top: -7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--sand-line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease);
}
.flow .steps li::before { transition: color .5s var(--ease); color: var(--ink-3); }
.flow .steps h3, .flow .steps p { transition: opacity .6s var(--ease); opacity: .42; }
.flow .steps li.is-lit::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 7px rgba(189, 155, 96, .18); }
.flow .steps li.is-lit::before { color: var(--gold-ink); }
.flow .steps li.is-lit h3, .flow .steps li.is-lit p { opacity: 1; }

/* ---------- Gear & flower: split symbol ---------- */
.split-wrap { width: 100%; max-width: 540px; justify-self: center; }
.split { position: relative; aspect-ratio: 1; width: 100%; }
.split svg { width: 100%; height: 100%; overflow: visible; display: block; }
.split .split__base { fill: var(--petroleum); }
.split .split__line { stroke: var(--gold); stroke-width: 2.4; }
.split .split__knob { fill: var(--gold); }
.split .split__arrows { fill: none; stroke: var(--black6); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.split .split__ghost { fill: none; stroke: rgba(0, 62, 81, .14); stroke-width: 1.2; }
.split__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.split:has(.split__range:focus-visible) { outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 50%; }
.split__tags { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.split__tag { display: grid; gap: 2px; text-align: left; }
.split__tag--end { text-align: right; }
.split__tag b { font-family: var(--f-title); font-size: var(--t-lg); color: var(--petroleum); }
.split__tag small { font-size: var(--t-sm); color: var(--gold-ink); font-weight: 600; }

/* ---------- Closing band ---------- */
.closing {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: var(--section);
  padding-block: clamp(96px, 12vw, 180px) clamp(56px, 7vw, 96px);
  background: var(--black6); color: var(--ivory);
}
.closing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(16, 24, 32, .55) 0%, rgba(16, 24, 32, .75) 50%, var(--black6) 94%),
    linear-gradient(to var(--fade-dir, left), rgba(4, 33, 44, .92) 0%, rgba(4, 33, 44, .35) 70%);
}
html[dir="ltr"] .closing::before { --fade-dir: right; }
.closing .watermark { width: 760px; inset-inline-end: -220px; top: -200px; opacity: .45; z-index: -1; }
.closing__inner { position: relative; }
.closing h2 { font-size: var(--t-3xl); max-width: 14ch; line-height: 1.12; }
html[lang="ar"] .closing h2 { line-height: 1.35; }
.closing__inner > p { margin-top: 24px; font-size: var(--t-lg); color: var(--on-dark-2); max-width: 46ch; }
.closing__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.closing__facts {
  margin: clamp(64px, 8vw, 120px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-dark);
}
.closing__facts > div { padding: 24px 0 0; padding-inline-end: 24px; }
.closing__facts > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--rule-dark); }
.closing__facts dt { font-size: var(--t-xs); color: var(--on-dark-2); margin-bottom: 6px; }
.closing__facts dd { margin: 0; font-size: var(--t-lg); font-weight: 600; color: var(--ivory); }
.closing__facts a:hover { color: var(--gold); }
.has-closing .site-footer { margin-top: 0; padding-top: 56px; }

/* ---------- Footer (all pages) ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.site-footer .f-mark {
  position: absolute; z-index: -1; width: 560px; aspect-ratio: 1;
  inset-inline-start: -180px; bottom: -260px; opacity: .35;
  background: url("../img/gear-watermark-dark.svg") center / contain no-repeat;
}
.f-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 48px; margin-bottom: 56px; border-bottom: 1px solid var(--rule-dark);
}
.f-hero p {
  font-family: var(--f-title); font-weight: 700; color: var(--ivory);
  font-size: var(--t-2xl); line-height: 1.2; max-width: 24ch;
}
html[lang="ar"] .f-hero p { line-height: 1.4; }
.to-top {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--rule-dark); color: var(--on-dark-2);
  border-radius: var(--r-pill); padding: .7em 1.3em; font-size: var(--t-sm); font-weight: 600;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.to-top svg { width: 16px; height: 16px; }
.to-top:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Signature sections: responsive ---------- */
@media (max-width: 960px) {
  .opx {
    height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .opx::-webkit-scrollbar { display: none; }
  .opx__item, .opx__item.is-active { flex: 0 0 82%; height: 440px; scroll-snap-align: start; cursor: default; }
  .opx__item img { transform: none; filter: none; }
  .opx__item::after { background: linear-gradient(to top, rgba(4, 33, 44, .92) 0%, rgba(4, 33, 44, .15) 60%); }
  .opx__label { display: none; }
  .opx__body { width: 100%; opacity: 1; transform: none; pointer-events: auto; }

  .flow__track { top: 0; bottom: 0; height: auto; width: 2px; inset-inline-start: 7px; inset-inline-end: auto; }
  .flow__fill, html[dir="rtl"] .flow__fill { transform: scaleY(var(--p)); transform-origin: center top; }
  .flow .steps { grid-template-columns: 1fr; row-gap: 0; }
  .flow .steps li { padding: 0 0 40px; padding-inline-start: 44px; }
  .flow .steps li::after { top: 4px; inset-inline-start: 0; }
  .flow .steps li::before { margin-bottom: 8px; }

  .closing__facts { grid-template-columns: 1fr; }
  .closing__facts > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule-dark); margin-top: 20px; }
  .f-hero { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .flow { --p: 1 !important; }
  .flow .steps h3, .flow .steps p { opacity: 1; }
}

/* =========================================================
   Inner pages
   ========================================================= */

/* ---------- Page hero: photo inside the gold ring ---------- */
.page-hero { min-height: min(760px, 92svh); display: flex; align-items: center; }
.page-hero > .wrap { width: 100%; }
.page-hero h1, .page-hero p { max-width: min(16ch, 52%); }
.page-hero p { max-width: min(56ch, 50%); }
.page-hero__media {
  position: absolute; z-index: 0; top: 50%;
  inset-inline-end: calc(-1 * clamp(80px, 9vw, 180px));
  width: clamp(420px, 50vw, 760px); aspect-ratio: 1; border-radius: 50%;
  border: clamp(36px, 4.6vw, 70px) solid var(--gold);
  transform: translateY(-46%); overflow: hidden;
  animation: ring-arrive 1.4s cubic-bezier(.2, .7, .1, 1) both;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: ring-photo 1.8s .2s cubic-bezier(.2, .7, .1, 1) both; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(16, 24, 32, .2), inset 0 -60px 120px rgba(4, 33, 44, .35); }
@keyframes ring-arrive { from { opacity: 0; transform: translateY(-46%) scale(.86) rotate(-8deg); } to { opacity: 1; transform: translateY(-46%); } }
@keyframes ring-photo { from { transform: scale(1.25); } to { transform: none; } }

/* ---------- About: story reads in as you scroll ---------- */
.story .body p.read { opacity: .22; transition: opacity .9s var(--ease); }
.story .body p.read.is-read { opacity: 1; }

/* ---------- About: essence triptych ---------- */
.essence .ph { position: relative; isolation: isolate; aspect-ratio: 3 / 4; }
.essence .ph img { transition: transform 1.4s cubic-bezier(.2, .7, .1, 1); }
.essence article:hover .ph img { transform: scale(1.05); }
.essence .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 33, 44, .78), rgba(4, 33, 44, 0) 55%); }
.essence .ph h3 {
  position: absolute; z-index: 1; inset-inline: 24px; bottom: 18px; margin: 0;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); line-height: 1.1; color: var(--ivory);
}
.essence p { font-size: var(--t-md); max-width: 36ch; }

/* ---------- About: values with segment icons ---------- */
.values > div { position: relative; }
.v-ico { display: block; width: 44px; height: 44px; margin-bottom: 22px; }
.v-ico svg { width: 100%; height: 100%; overflow: visible; }
.v-ico path { fill: transparent; stroke: var(--gold); stroke-width: 7; transition: fill .5s var(--ease); }
.values > div:hover .v-ico path { fill: var(--gold); }

/* ---------- Services: sticky index + articles ---------- */
.svc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-index { position: sticky; top: 112px; }
.svc-index ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--rule-light); }
.svc-index a {
  position: relative; display: flex; gap: 14px; align-items: baseline;
  padding: 11px 0; padding-inline-start: 20px;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-3);
  transition: color .3s var(--ease);
}
.svc-index a::before {
  content: ""; position: absolute; inset-inline-start: -1px; top: 8px; bottom: 8px; width: 2px;
  background: var(--gold); transform: scaleY(0); transition: transform .45s cubic-bezier(.3, 1.2, .4, 1);
}
.svc-index a .num { font-size: var(--t-xs); color: var(--sand-line); transition: color .3s var(--ease); }
.svc-index a:hover { color: var(--petroleum); }
.svc-index a.is-current { color: var(--petroleum); }
.svc-index a.is-current::before { transform: scaleY(1); }
.svc-index a.is-current .num { color: var(--gold-ink); }

.svc-article { scroll-margin-top: 112px; padding-bottom: clamp(64px, 8vw, 120px); }
.svc-article + .svc-article { padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--rule-light); }
.svc-article__head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.svc-article__head .ico { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--petroleum); color: var(--gold); display: grid; place-items: center; }
.svc-article__head .ico svg { width: 26px; height: 26px; }
.svc-article h2 { font-size: var(--t-2xl); color: var(--petroleum); }
html[lang="ar"] .svc-article h2 { line-height: 1.3; }
.svc-article figure { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; }
.svc-article figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-article__cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.svc-article__cols > p { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.85; }
.svc-article ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.svc-article li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-light); color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
.svc-article li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
.svc-article__cta { display: inline-flex; margin-top: 24px; font-weight: 700; font-size: var(--t-sm); color: var(--petroleum); padding-bottom: 4px; border-bottom: 1px solid var(--gold); }
.svc-article__cta:hover { color: var(--gold-ink); }

/* ---------- Contact ---------- */
.contact-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.office {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--deep); color: var(--ivory); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
}
.office .watermark { width: 420px; inset-inline-end: -170px; bottom: -190px; z-index: -1; }
.office__tag { font-size: var(--t-sm); font-weight: 700; color: var(--gold); }
.office__city { font-family: var(--f-title); font-weight: 700; font-size: var(--t-2xl); margin: 6px 0 28px; }
.office dl { margin: 0; display: grid; gap: 18px; }
.contact-info .office dt { font-size: var(--t-xs); color: var(--on-dark-2); margin-bottom: 2px; }
.contact-info .office dd { margin: 0; font-size: var(--t-lg); font-weight: 600; color: var(--ivory); }
.office dd a:hover { color: var(--gold); }
.office__map { display: inline-flex; margin-top: 28px; font-size: var(--t-sm); font-weight: 700; color: var(--gold); border-bottom: 1px solid rgba(189, 155, 96, .5); padding-bottom: 4px; }
.next-steps { list-style: none; counter-reset: ns; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.next-steps li { counter-increment: ns; display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule-light); color: var(--ink-2); font-size: var(--t-sm); }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font-family: var(--f-num); font-weight: 600; color: var(--gold-ink); font-size: var(--t-xs); }

.form { position: relative; }
.form h2 { font-size: var(--t-2xl); color: var(--petroleum); }
.form__lead { color: var(--ink-3); font-size: var(--t-sm); margin: 8px 0 32px; }
.field__title { font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .6em 1.1em; border-radius: var(--r-pill);
  border: 1px solid var(--sand-line); background: var(--ivory); color: var(--ink-2);
  font-size: var(--t-sm); font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover span { border-color: var(--petroleum); }
.chip input:checked + span { background: var(--petroleum); border-color: var(--petroleum); color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field.is-invalid .chip span { border-color: #A1361F; }

/* floating labels */
.field.fl { position: relative; gap: 0; }
.field.fl input, .field.fl textarea { padding: 1.55em 1em .55em; }
.field.fl label {
  position: absolute; inset-inline-start: 1em; top: 1.05em; pointer-events: none;
  font-size: var(--t-md); font-weight: 500; color: var(--ink-3);
  transform-origin: var(--fl-origin, right) top;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
html[dir="ltr"] .field.fl label { --fl-origin: left; }
.field.fl input:focus + label, .field.fl input:not(:placeholder-shown) + label,
.field.fl textarea:focus + label, .field.fl textarea:not(:placeholder-shown) + label {
  transform: translateY(-.62em) scale(.74); color: var(--petroleum);
}
.field.fl .err { margin-top: 6px; }
.form__submit { margin-top: 8px; }

.form__done { text-align: center; padding: 48px 12px; }
.form__done svg { width: 76px; height: 76px; margin: 0 auto 22px; }
.form__done circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s .1s var(--ease) forwards; }
.form__done path { fill: none; stroke: var(--petroleum); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .5s .8s var(--ease) forwards; }
.form__done h2 { margin-bottom: 10px; }
.form__done p { color: var(--ink-2); margin-bottom: 28px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Home: layered collage ---------- */
.collage > [data-speed] { will-change: transform; }

/* ---------- Inner pages: responsive ---------- */
@media (max-width: 960px) {
  .page-hero { min-height: 0; padding-top: 130px; }
  .page-hero h1, .page-hero p { max-width: none; }
  .page-hero__media { position: relative; top: auto; inset-inline-end: auto; width: min(340px, 78vw); margin: 0 auto 36px; transform: none; border-width: 26px; animation-name: ring-arrive-m; }
  @keyframes ring-arrive-m { from { opacity: 0; transform: scale(.86) rotate(-8deg); } to { opacity: 1; transform: none; } }
  .page-hero { flex-direction: column; }

  .svc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .svc-index, .svc-articles { min-width: 0; }
  .svc-index { top: 72px; z-index: 5; background: var(--ivory); margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); border-bottom: 1px solid var(--rule-light); }
  .svc-index ol { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .svc-index ol::-webkit-scrollbar { display: none; }
  .svc-index a { white-space: nowrap; padding: .45em 1em; border-radius: var(--r-pill); border: 1px solid var(--rule-light); }
  .svc-index a::before, .svc-index a .num { display: none; }
  .svc-index a.is-current { background: var(--petroleum); border-color: var(--petroleum); color: var(--ivory); }
  .svc-article { scroll-margin-top: 140px; }
  .svc-article__cols { grid-template-columns: 1fr; gap: 24px; }
  .svc-article figure { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .story .body p.read { opacity: 1; }
}

/* =========================================================
   Company profile content blocks
   ========================================================= */

/* hero facts */
.hero__foot h3 { display: flex; align-items: baseline; gap: 10px; }
.hero__foot h3 .num { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 600; color: var(--gold); line-height: 1; }

/* phase groups (services page, team, HSE) */
.svc-article__lead { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.85; max-width: 62ch; margin-bottom: 32px; }
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-light); }
.svc-groups--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc-group { padding: 26px 0 28px; padding-inline-end: 28px; border-bottom: 1px solid var(--rule-light); }
.svc-groups .svc-group:nth-child(even) { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule-light); }
.svc-groups--four .svc-group { border-bottom: 0; }
.svc-groups--four .svc-group + .svc-group { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule-light); }
.svc-group .num { display: block; font-size: var(--t-xs); color: var(--gold-ink); font-weight: 600; margin-bottom: 10px; }
.svc-group h3 { font-size: var(--t-lg); color: var(--petroleum); margin-bottom: 12px; }
.svc-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc-group li { display: flex; gap: 10px; align-items: baseline; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.7; }
.svc-group li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }
.svc-article .svc-article__cta { margin-top: 28px; }

/* vision & mission */
.vm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.vm__text { font-family: var(--f-title); font-weight: 500; font-size: clamp(1.4rem, 1.05rem + 1vw, 2rem); line-height: 1.55; color: var(--ivory); }
html[lang="en"] .vm__text { line-height: 1.4; }

/* equipment */
.eq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.eq { background: var(--ivory); border-radius: var(--r-md); padding: 24px; }
.eq h3 { font-size: var(--t-lg); color: var(--petroleum); margin-bottom: 8px; }
.eq p { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.7; }
.eq:first-child { grid-column: span 2; background: var(--petroleum); }
.eq:first-child h3 { color: var(--gold); font-size: var(--t-xl); }
.eq:first-child p { color: var(--on-dark-2); font-size: var(--t-md); }

/* HSE */
.hse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-light); }
.hse-grid .svc-group + .svc-group { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule-light); }
.hse-grid .svc-group { border-bottom: 0; }

/* lifecycle: six stages */
.flow--six .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.flow--six .steps li { padding-inline-end: 18px; }
.flow--six .steps h3 { font-size: var(--t-md); }

/* delivery models */
.models { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.models__title { font-size: var(--t-lg); color: var(--gold-ink); }
.models__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.models__grid > div { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--rule-light); border-radius: var(--r-md); }
.models__grid b { font-family: var(--f-title); font-size: var(--t-lg); color: var(--petroleum); }
.models__grid span { font-size: var(--t-sm); color: var(--ink-2); }

/* contact */
.next-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; }
.next-steps li::before { grid-row: span 2; }
.next-steps li b { color: var(--petroleum); font-size: var(--t-sm); }
.next-steps li span { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.7; }
.needs { margin: -12px 0 28px; padding: 18px 20px; border-radius: var(--r-md); background: var(--sand); }
.needs__title { display: block; font-size: var(--t-sm); font-weight: 700; color: var(--petroleum); margin-bottom: 10px; }
.needs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.needs li { display: flex; gap: 8px; align-items: baseline; font-size: var(--t-sm); color: var(--ink-2); }
.needs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }

@media (max-width: 1080px) {
  .flow--six .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .models { grid-template-columns: 1fr; }
  .models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-groups--four, .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-groups--four .svc-group:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 960px) {
  .flow--six .steps { grid-template-columns: 1fr; row-gap: 0; }
  .vm__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svc-groups, .svc-groups--four, .hse-grid, .eq-grid, .models__grid { grid-template-columns: 1fr; }
  .svc-groups .svc-group:nth-child(even), .svc-groups--four .svc-group + .svc-group, .hse-grid .svc-group + .svc-group {
    padding-inline-start: 0; border-inline-start: 0;
  }
  .svc-groups--four .svc-group { border-bottom: 1px solid var(--rule-light); }
  .eq:first-child { grid-column: auto; }
}


/* ---------- Delivery models mapped onto the lifecycle ---------- */
.cover { margin-top: clamp(48px, 6vw, 80px); }
.cover__title { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.cover__rows { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 8px; }
.cover__row:nth-child(1) { grid-row: 1; } .cover__row:nth-child(2) { grid-row: 2; } .cover__row:nth-child(3) { grid-row: 3; } .cover__row:nth-child(4) { grid-row: 4; }
.cover__row {
  grid-column: var(--from) / var(--to);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--petroleum); color: var(--ivory);
}
.cover__row b { font-family: var(--f-title); font-weight: 700; font-size: var(--t-md); line-height: 1.3; }
.cover__row span { font-size: var(--t-xs); color: var(--on-dark-2); line-height: 1.5; }
.cover__stages { order: -1; font-family: var(--f-num); font-size: 11px; color: var(--gold); }
html[lang="ar"] .cover__stages { font-family: var(--f-body); }
.cover__row:last-child { background: var(--gold); color: var(--black6); }
.cover__row:last-child span { color: rgba(16, 24, 32, .72); }
.cover__row:last-child .cover__stages { color: var(--petroleum); }

/* ---------- Equipment schedule ---------- */
.eq-sched { margin: 0; border-top: 1px solid var(--sand-line); }
.eq-sched > div { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--sand-line); align-items: baseline; }
.eq-sched dt { font-family: var(--f-title); font-weight: 700; font-size: var(--t-lg); color: var(--petroleum); }
.eq-sched dd { margin: 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- Vision / mission headings ---------- */
.vm__label { font-size: var(--t-lg); color: var(--gold); margin-bottom: 16px; }

@media (max-width: 960px) {
  .cover__rows { grid-template-columns: 1fr; }
  .cover__row { grid-column: 1 / -1; grid-row: auto !important; border-radius: var(--r-md); }
}
@media (max-width: 620px) {
  .eq-sched > div { grid-template-columns: 1fr; gap: 4px; }
}


/* =========================================================
   Professional touches
   ========================================================= */

/* one photographic grade for every image, so stock shots read as one body of work */
.opx__item img, .collage img, .essence .ph img, .svc-article figure img, .page-hero__media img,
.closing__bg, .duality__imgs img, .contact-info .map img {
  filter: saturate(.78) contrast(1.06) brightness(.97) sepia(.08);
}
.opx__item.is-active img { filter: saturate(.9) contrast(1.06) sepia(.06); }
.svc-article figure, .essence .ph, .collage > div:not(.badge) { position: relative; }
.svc-article figure::after, .collage > div:not(.badge)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(0, 62, 81, 0) 40%, rgba(0, 62, 81, .28) 100%);
  mix-blend-mode: multiply;
}

/* operations: related services */
.opx__svc { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opx__svc a {
  display: inline-block; padding: .45em .95em; border-radius: var(--r-pill);
  border: 1px solid rgba(241, 238, 230, .28); color: var(--ivory);
  font-size: var(--t-xs); font-weight: 600; backdrop-filter: blur(6px); background: rgba(4, 33, 44, .25);
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.opx__svc a:hover { border-color: var(--gold); color: var(--gold); }

/* lifecycle mapping */
.cover__row { cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease); }
.cover__rows:has(.is-on) .cover__row:not(.is-on) { opacity: .45; }
.cover__row.is-on { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold); }
.cover__row:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold); }
.flow.is-mapping .steps li:not(.is-mapped) h3, .flow.is-mapping .steps li:not(.is-mapped) p { opacity: .18; }
.flow.is-mapping .steps li.is-mapped h3, .flow.is-mapping .steps li.is-mapped p { opacity: 1; }
.flow.is-mapping .steps li.is-mapped::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 7px rgba(189, 155, 96, .25); }
.flow.is-mapping .steps li:not(.is-mapped)::after { background: var(--ivory); border-color: var(--sand-line); box-shadow: none; }
.cover__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cover__title h3 { font: inherit; color: inherit; margin: 0; }
.cover__hint { font-weight: 500; color: var(--ink-3); }
@media (hover: none) { .cover__hint { display: none; } }

/* contact: chosen service */
.form__choice { margin: -4px 0 14px; font-size: var(--t-sm); font-weight: 600; color: var(--petroleum); }
.form__choice::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }

/* typography polish */
h1, h2, h3, blockquote { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--black6); }
.num, .dial__num, .cover__stages { font-variant-numeric: tabular-nums lining-nums; }


/* =========================================================
   Scroll story: from the well to the refinery
   ========================================================= */
.journey { position: relative; height: 440vh; background: var(--deep); color: var(--ivory); }
.journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.journey__visual { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 54%; }
.journey__img { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.15s cubic-bezier(.72, 0, .2, 1); }
.journey__img.is-shown { clip-path: inset(0 0 0 0); }
.journey__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 1.8s cubic-bezier(.2, .7, .1, 1); filter: saturate(.8) contrast(1.06) sepia(.06); }
.journey__img.is-shown img { transform: scale(1); }
.journey__visual::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(to right, var(--deep) 0%, rgba(4, 33, 44, .55) 22%, rgba(4, 33, 44, 0) 55%),
              linear-gradient(to top, rgba(4, 33, 44, .55), rgba(4, 33, 44, 0) 40%);
}
html[dir="rtl"] .journey__visual::after {
  background: linear-gradient(to left, var(--deep) 0%, rgba(4, 33, 44, .55) 22%, rgba(4, 33, 44, 0) 55%),
              linear-gradient(to top, rgba(4, 33, 44, .55), rgba(4, 33, 44, 0) 40%);
}
.journey__mark { position: absolute; z-index: 6; bottom: clamp(24px, 4vw, 48px); inset-inline-end: clamp(24px, 4vw, 48px); width: clamp(88px, 9vw, 132px); aspect-ratio: 1; }
.journey__mark svg { width: 100%; height: 100%; overflow: visible; }
.journey__mark .seg { fill: rgba(241, 238, 230, .22); transition: fill .6s var(--ease); }
.journey__mark .seg.is-lit { fill: var(--gold); }
.journey__mark .ring { fill: none; stroke: rgba(241, 238, 230, .5); stroke-width: 52.6; }

.journey__grid { position: relative; z-index: 7; width: 100%; }
.journey__text { width: min(540px, 42%); }
.journey__title { font-size: var(--t-xl); color: var(--gold); margin-bottom: clamp(28px, 4vh, 48px); }
html[lang="ar"] .journey__title { line-height: 1.35; }
.journey__chapters { list-style: none; margin: 0; padding: 0; position: relative; min-height: 300px; }
.journey__ch {
  position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(28px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.journey__ch.is-active { opacity: 1; transform: none; pointer-events: auto; transition: opacity .7s .2s var(--ease), transform .9s .2s cubic-bezier(.2, .7, .1, 1); }
.journey__n { display: block; font-size: var(--t-sm); color: var(--gold); margin-bottom: 10px; }
.journey__ch h3 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1.1; margin-bottom: 18px; }
html[lang="ar"] .journey__ch h3 { line-height: 1.3; }
.journey__ch p { font-size: var(--t-lg); color: var(--on-dark-2); max-width: 40ch; line-height: 1.8; }
.journey__svc { margin-top: 24px; }

.journey__rail { position: relative; margin-top: clamp(24px, 4vh, 48px); }
.journey__track { position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--rule-dark); }
.journey__fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left center; }
html[dir="rtl"] .journey__fill { transform-origin: right center; }
.journey__rail ol { list-style: none; margin: 0; padding: 16px 0 0; display: flex; justify-content: space-between; gap: 8px; }
.journey__rail button {
  background: none; border: 0; padding: 4px 0; color: var(--on-dark-2);
  font-size: var(--t-xs); font-weight: 600; transition: color .3s var(--ease);
}
.journey__rail button:hover { color: var(--ivory); }
.journey__rail button.is-active { color: var(--gold); }

@media (max-width: 960px) {
  .journey { height: 400vh; }
  .journey__stage { align-items: flex-end; }
  .journey__visual { inset-inline: 0; width: 100%; bottom: auto; height: 44%; }
  .journey__visual::after, html[dir="rtl"] .journey__visual::after { background: linear-gradient(to top, var(--deep) 0%, rgba(4, 33, 44, 0) 55%); }
  .journey__mark { width: 72px; bottom: 16px; }
  .journey__text { width: 100%; padding-bottom: clamp(24px, 5vh, 48px); }
  .journey__title { font-size: var(--t-lg); margin-bottom: 14px; }
  .journey__chapters { min-height: 290px; }
  .journey__ch h3 { font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); margin-bottom: 10px; }
  .journey__ch p { font-size: var(--t-md); }
}
@media (prefers-reduced-motion: reduce) {
  .journey__img, .journey__img img, .journey__ch { transition: none !important; }
}


/* =========================================================
   Engineering-drawing layer
   ========================================================= */
/* drafting grid: 24px minor, 120px major, fading toward the edges */
.bp { isolation: isolate; }
.bp::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--bp-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-major) 1px, transparent 1px),
    linear-gradient(var(--bp-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 35%, transparent 100%);
}
.bp--dark { --bp-major: rgba(241, 238, 230, .065); --bp-minor: rgba(241, 238, 230, .028); }
.bp--light { --bp-major: rgba(0, 62, 81, .08); --bp-minor: rgba(0, 62, 81, .035); }
.hero.bp, .section.bp { position: relative; }

/* drawing title block in the corner of a sheet */
.tblock {
  position: absolute; z-index: 3; bottom: 24px; inset-inline-end: var(--gutter);
  display: flex; border: 1px solid currentColor; font-size: 11px; line-height: 1; white-space: nowrap;
}
.tblock > span { padding: 7px 12px; }
.tblock > span + span { border-inline-start: 1px solid currentColor; }
.tblock .tblock__co { font-family: var(--f-num); font-weight: 600; letter-spacing: .04em; }
.tblock .num { font-family: var(--f-num); }
.tblock--dark { color: rgba(241, 238, 230, .38); }
.tblock--light { color: rgba(0, 62, 81, .42); }
.section.bp .tblock { bottom: 28px; }
.hero .tblock { inset-inline-end: auto; inset-inline-start: var(--gutter); }
.hero__art .dim { bottom: 3%; left: 18%; right: 18%; }

/* dimension line under the hero symbol */
.dim {
  position: absolute; z-index: 3; left: 14%; right: 14%; bottom: 0;
  height: 1px; background: rgba(241, 238, 230, .35);
  display: flex; justify-content: center;
}
.dim::before, .dim::after { content: ""; position: absolute; top: -7px; width: 1px; height: 15px; background: rgba(241, 238, 230, .5); }
.dim::before { left: 0; }
.dim::after { right: 0; }
.dim span {
  transform: translateY(-50%); padding: 0 12px; background: var(--deep);
  font-size: var(--t-xs); color: var(--on-dark-2); white-space: nowrap;
}
.dim span::before, .dim span::after { content: ""; }
.hero__art .dim { animation: fade-in 1s 2s both; }

/* flow arrows along pipelines (lifecycle track, story rail) */
.flow__track::after, .journey__track::after {
  content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='12'%3E%3Cpath d='M76 2l6 4-6 4' fill='none' stroke='%23003E51' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 12px;
  opacity: .45;
}
.journey__track::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='12'%3E%3Cpath d='M76 2l6 4-6 4' fill='none' stroke='%23F1EEE6' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: .5;
}
html[dir="rtl"] .flow__track::after, html[dir="rtl"] .journey__track::after { transform: scaleX(-1); }

@media (max-width: 960px) {
  .tblock { display: none; }
  .flow__track::after { display: none; }
  .dim { left: 6%; right: 6%; }
}


/* =========================================================
   Lifecycle: six stage rows with a delivery-model filter
   ========================================================= */
.life__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.life__head h2 { font-size: var(--t-2xl); color: var(--gold-ink); }
html[lang="ar"] .life__head h2 { line-height: 1.3; }
.life__head p { color: var(--ink-2); font-size: var(--t-lg); max-width: 52ch; }

.life__models { display: flex; flex-wrap: wrap; gap: 8px; }
.life__model {
  border: 1px solid var(--rule-light); background: rgba(241, 238, 230, .7); color: var(--petroleum);
  border-radius: var(--r-pill); padding: .6em 1.15em; font-size: var(--t-sm); font-weight: 600;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.life__model:hover { border-color: var(--petroleum); }
.life__model[aria-pressed="true"] { background: var(--petroleum); border-color: var(--petroleum); color: var(--ivory); }
.life__desc { min-height: 1.8em; margin: 14px 0 22px; font-size: var(--t-sm); font-weight: 600; color: var(--gold-ink); }

.life__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.life__row { border-bottom: 1px solid var(--rule-light); transition: opacity .45s var(--ease); }
.life__h { margin: 0; font: inherit; }
.life__toggle {
  width: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(18px, 2.2vw, 28px) 0; background: none; border: 0; text-align: start; color: inherit;
}
.life__n {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule-light); font-size: var(--t-xs); font-weight: 600; color: var(--gold-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.life__name {
  flex: 1; font-family: var(--f-title); font-weight: 700; color: var(--petroleum);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.7rem); line-height: 1.25;
  transition: color .3s var(--ease);
}
.life__toggle:hover .life__name { color: var(--gold-ink); }
.life__icon { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-light); transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease); }
.life__icon::before, .life__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--petroleum); transform: translate(-50%, -50%); transition: background-color .35s var(--ease); }
.life__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.life__row.is-open .life__icon { transform: rotate(45deg); background: var(--petroleum); border-color: var(--petroleum); }
.life__row.is-open .life__icon::before, .life__row.is-open .life__icon::after { background: var(--ivory); }

.life__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.3, .8, .2, 1); }
.life__row.is-open .life__panel { grid-template-rows: 1fr; }
.life__inner {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 40px; align-items: start;
  padding-inline-start: calc(44px + clamp(16px, 2.4vw, 32px));
}
.life__inner p { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.85; max-width: 52ch; padding-bottom: 32px; }
.life__inner figure { margin: 0 0 32px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; }
.life__inner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.06) sepia(.08); }

.life.is-filtered .life__row.is-out { opacity: .3; }
.life__row.is-in .life__n { background: var(--gold); border-color: var(--gold); color: var(--black6); }

@media (max-width: 960px) {
  .life__head { grid-template-columns: 1fr; }
  .life__inner { grid-template-columns: 1fr; gap: 0; padding-inline-start: 0; }
  .life__inner p { padding-bottom: 18px; }
  .life__n, .life__icon { width: 36px; height: 36px; }
}


/* ---------- Page hero ring: whole circle, below the header, aligned to the content edge ---------- */
.page-hero__media {
  top: calc(50% + 44px);
  inset-inline-end: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  width: min(38vw, 580px, calc(100svh - 280px));
  min-width: 300px;
  border-width: clamp(18px, 2vw, 32px);
  transform: translateY(-50%);
  animation-name: ring-arrive-c;
}
@keyframes ring-arrive-c { from { opacity: 0; transform: translateY(-50%) scale(.9) rotate(-6deg); } to { opacity: 1; transform: translateY(-50%); } }
.page-hero h1 { max-width: min(16ch, 50%); }
.page-hero p { max-width: min(56ch, 48%); }
@media (max-width: 960px) {
  .page-hero__media { top: auto; inset-inline-end: auto; width: min(300px, 72vw); min-width: 0; transform: none; border-width: 18px; animation-name: ring-arrive-m; }
  .page-hero h1, .page-hero p { max-width: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .svc-row { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.2fr); }
  .svc-row .thumb { display: none; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 72px 0 auto 0; background: var(--ivory); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--rule-light);
  }
  .nav.is-open a { color: var(--petroleum); padding-block: 14px; border-bottom: 1px solid var(--rule-light); font-size: var(--t-md); }
  .nav.is-open a::after { display: none; }

  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(420px, 86vw); margin: 0 auto -10px; justify-self: center; }
  .hero__caption { display: none; }
  .hero__foot { grid-template-columns: 1fr; margin-top: 48px; }
  .hero__foot > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule-dark); }

  .sec-head, .about-grid, .dial-wrap, .duality, .story, .contact-grid { grid-template-columns: 1fr; }
  .story h2 { position: static; }
  .svc-panel { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .values { grid-template-columns: 1fr 1fr; }
  .values > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .cta { grid-template-columns: 1fr; }
  .essence { grid-template-columns: 1fr 1fr; }
  .essence article:nth-child(2) { margin-top: 0; }
}
@media (max-width: 620px) {
  .brand-link img { height: 42px; }
  .steps, .values, .essence, .form .row { grid-template-columns: 1fr; }
  .values > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule-dark); }
  .svc-row { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .top { grid-template-columns: 1fr; }
  .collage { grid-auto-rows: 72px; gap: 10px; }
  .duality__imgs figure:nth-child(2) { margin-top: 40px; }
  .dial { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ---------- Mobile refinements ---------- */
@media (max-width: 620px) {
  /* collage: three photos, no decorative badges */
  .collage { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 10px; }
  .collage .badge { display: none; }
  .collage .c1 { grid-column: 1 / -1; }
  .collage .c4 { grid-column: 1 / 2; }
  .collage .c5 { display: none; }
  .collage .c6 { grid-column: 2 / 3; }
  .collage > div { border-radius: 22px; }

  /* lifecycle model buttons scroll sideways instead of wrapping */
  .life__models { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .life__models::-webkit-scrollbar { display: none; }
  .life__model { flex: none; }

  /* about essence: shorter photos */
  .essence .ph { aspect-ratio: 16 / 11; }

  /* form rows: even spacing */
  .form .row { gap: 0; }
  .form { padding: 22px 18px; }

  /* comfortable tap targets */
  .crumbs a, .journey__rail button, .svc-article__cta, .office__map, .opx__svc a, .opx__link {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .opx__svc a { padding-block: 0; }
}


/* ---------- Services page: phase groups ---------- */
.svc-group summary { list-style: none; }
.svc-group summary::-webkit-details-marker { display: none; }
.svc-group li { border-bottom: 0; padding: 0; font-weight: 400; color: var(--ink-2); }
@media (min-width: 621px) { .svc-group summary { cursor: default; } }
@media (max-width: 620px) {
  .svc-article { padding-bottom: 48px; }
  .svc-article + .svc-article { padding-top: 48px; }
  .svc-article figure { aspect-ratio: 16 / 9; margin-bottom: 20px; }
  .svc-article__lead { margin-bottom: 18px; font-size: var(--t-md); }
  .svc-article h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2rem); }
  .svc-article__head { gap: 14px; margin-bottom: 18px; }
  .svc-article__head .ico { width: 48px; height: 48px; }
  .svc-groups .svc-group { padding: 0; }
  .svc-group summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding: 6px 0; cursor: pointer;
  }
  .svc-group summary h3 { margin: 0; font-size: var(--t-md); }
  .svc-group summary::after {
    content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--rule-light);
    background:
      linear-gradient(var(--petroleum), var(--petroleum)) center / 10px 1.5px no-repeat,
      linear-gradient(var(--petroleum), var(--petroleum)) center / 1.5px 10px no-repeat;
    transition: transform .3s var(--ease);
  }
  .svc-group[open] summary::after { transform: rotate(45deg); }
  .svc-group ul { padding-bottom: 16px; }
  .svc-article .svc-article__cta { margin-top: 20px; }
}

/* ---------- Hero headline: let lines wrap where they must ---------- */
html[lang="en"] .hero h1 span { white-space: normal; }
@media (max-width: 620px) {
  .hero h1 span { white-space: normal; }
  html[lang="en"] .hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 2.6rem); }
  html[lang="en"] .hero h1 span { display: inline; }
  html[lang="en"] .hero h1 span + span::before { content: " "; }
}

/* ---------- Menu button turns into a close icon while open ---------- */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Inner page hero: less empty space on phones ---------- */
@media (max-width: 620px) {
  .page-hero { padding-bottom: 56px; }
}

/* ---------- Contact form: calmer error state for the service choice ---------- */
.field.is-invalid .chip span { border-color: var(--sand-line); }
.field.is-invalid .field__title { color: #A1361F; }

/* ---------- Contact form on phones: services as full-width option rows ---------- */
@media (max-width: 620px) {
  .chips { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .chip span {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 48px; padding: 10px 14px; border-radius: 12px; line-height: 1.4;
  }
  .chip span::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid var(--sand-line); background: var(--ivory);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .chip input:checked + span::before { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--petroleum), inset 0 0 0 9px var(--gold); }
  .contact-grid { gap: 40px; }
}

/* honeypot field for spam bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit:disabled { opacity: .6; cursor: progress; }
