/* ============================================================
   OMA Consulting Engineers — site v2
   Faithful to oma.sa mechanics: loader · overlay menu ·
   horizontal slide homepage · separate inner pages
   Bilingual AR/EN · light (default) + dark
   ============================================================ */

/* ---- Theme tokens -------------------------------------------------- */
:root {
  /* light (default — matches oma.sa cream/charcoal) */
  --bg:        #EFEBE3;
  --bg-2:      #E7E1D6;
  --surface:   #FBF9F4;
  --surface-2: #F3EEE4;
  --line:      rgba(28,24,18,0.12);
  --line-strong: rgba(28,24,18,0.22);
  --grid-line: rgba(28,24,18,0.035);

  --fg:        #1A1814;
  --fg-soft:   #3A352D;
  --fg-muted:  #6B645A;
  --fg-dim:    #A39A8B;

  --accent:      #C8612A;
  --accent-warm: #E0762F;
  --accent-soft: rgba(200,97,42,0.10);
  --accent-line: rgba(200,97,42,0.34);

  --header-bg: rgba(239,235,227,0.78);
  --shadow: 0 24px 60px rgba(60,45,30,0.14);
  --img-tint: brightness(1) saturate(1.02);
  --ink: #1A1814;

  --f-ar:  'Cairo', system-ui, sans-serif;
  --f-en:  'Plus Jakarta Sans', system-ui, sans-serif;
  --f-mono:'JetBrains Mono', ui-monospace, monospace;

  --t-hero:  clamp(44px, 8vw, 132px);
  --t-display: clamp(36px, 5.4vw, 80px);
  --t-h1:    clamp(30px, 4vw, 58px);
  --t-h2:    clamp(25px, 2.9vw, 40px);
  --t-h3:    clamp(19px, 1.5vw, 25px);
  --t-body-lg: clamp(17px, 1.3vw, 21px);
  --t-body:  clamp(15px, 1.05vw, 17px);
  --t-small: 14px;
  --t-eyebrow: 13px;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 88px);
  --sec-y: clamp(72px, 9vw, 150px);
  --radius: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg:        #0C0D10;
  --bg-2:      #121419;
  --surface:   #16191F;
  --surface-2: #1C2027;
  --line:      rgba(255,255,255,0.09);
  --line-strong: #2C313B;
  --grid-line: rgba(255,255,255,0.032);

  --fg:        #F4F2EE;
  --fg-soft:   #C8CACE;
  --fg-muted:  #8E9199;
  --fg-dim:    #5C5F67;

  --accent:      #E0762F;
  --accent-warm: #F2843A;
  --accent-soft: rgba(224,118,47,0.12);
  --accent-line: rgba(224,118,47,0.34);

  --header-bg: rgba(12,13,16,0.74);
  --shadow: 0 24px 70px rgba(0,0,0,0.5);
  --img-tint: brightness(0.9) saturate(1.04);
}

/* ---- Reset --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[data-reduced] { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-ar);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s var(--ease), color .5s var(--ease);
}
html[lang="en"] body { font-family: var(--f-en); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

/* page subtle blueprint grid */
.gridbg::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 84px 84px; pointer-events: none;
}

/* ---- Typography helpers ------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--t-eyebrow);
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  font-weight: 500; display: inline-flex; align-items: center; gap: 14px; direction: ltr;
}
.eyebrow::before { content:''; width: 32px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }
.display { font-size: var(--t-display); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; margin: 0; }
h1,h2,h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; color: var(--fg); }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); font-weight: 600; }
.lead { font-size: var(--t-body-lg); color: var(--fg-soft); line-height: 1.75; font-weight: 300; max-width: 60ch; text-wrap: pretty; }
.body { font-size: var(--t-body); color: var(--fg-muted); line-height: 1.8; font-weight: 300; text-wrap: pretty; }
.muted { color: var(--fg-muted); } .soft { color: var(--fg-soft); } .dim { color: var(--fg-dim); }
.accent-text { color: var(--accent); }
.en { font-family: var(--f-en); direction: ltr; display: inline-block; }
.mono { font-family: var(--f-mono); direction: ltr; display: inline-block; }
.accent-bar { width: 54px; height: 3px; background: var(--accent); display: block; }
.rule { height: 1px; background: var(--line-strong); border: 0; width: 100%; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  --bh: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding-inline: 30px;
  font-family: var(--f-ar); font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .15s;
  white-space: nowrap;
}
html[lang="en"] .btn { font-family: var(--f-en); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-warm); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { --bh: 46px; padding-inline: 22px; font-size: 14px; }
.arrow-fwd { transition: transform .25s var(--ease); }
html[dir="rtl"] .arrow-fwd { transform: scaleX(-1); }
.btn:hover .arrow-fwd { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow-fwd { transform: scaleX(-1) translateX(4px); }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__logo { height: 56px; width: auto; opacity: .95; animation: loaderPulse 1.8s var(--ease) infinite; }
.loader__bar { width: 180px; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; inline-size: 40%; background: var(--accent); animation: loaderRun 1.1s var(--ease) infinite; }
.loader__txt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; color: var(--fg-muted); text-transform: uppercase; direction: ltr; display: flex; gap: 14px; }
@keyframes loaderRun { 0%{ inset-inline-start:-40% } 100%{ inset-inline-start:100% } }
@keyframes loaderPulse { 0%,100%{ opacity:.95 } 50%{ opacity:.55 } }

/* ============================================================
   TOP BAR  (logo + menu trigger)  — fixed, on every page
   ============================================================ */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; padding-inline: var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar .brand { display: flex; align-items: center; height: 38px; }
.topbar .brand img { height: 34px; width: auto; }
.topbar.on-dark .brand img { filter: brightness(0) invert(1); }

.bar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--fg); border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-btn { width: auto; padding-inline: 15px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; font-weight: 500; gap: 8px; }
.theme-ic { position: relative; width: 18px; height: 18px; }
.theme-ic svg { position: absolute; inset: 0; transition: opacity .3s, transform .4s var(--ease); }
.theme-ic .sun { opacity: 1; } .theme-ic .moon { opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-theme="dark"] .theme-ic .sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .theme-ic .moon { opacity: 1; transform: none; }

/* the menu trigger — label + bars, like oma.sa "القائمة" */
.menu-trigger {
  display: inline-flex; align-items: center; gap: 13px; height: 44px;
  padding-inline: 18px; border: 1px solid var(--line-strong); background: var(--surface);
  cursor: pointer; color: var(--fg); border-radius: var(--radius);
  font-family: var(--f-ar); font-weight: 600; font-size: 15px;
  transition: border-color .2s, color .2s, background .2s;
}
html[lang="en"] .menu-trigger { font-family: var(--f-en); }
.menu-trigger:hover { border-color: var(--accent); color: var(--accent); }
.menu-trigger .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
.menu-trigger .bars i { height: 2px; background: currentColor; display: block; transition: transform .3s var(--ease), width .3s; }
.menu-trigger .bars i:nth-child(1){ width: 20px; } .menu-trigger .bars i:nth-child(2){ width: 13px; }
.menu-trigger:hover .bars i:nth-child(2){ width: 20px; }

/* on-dark variant (homepage hero / dark slides) */
.topbar.on-dark .icon-btn,
.topbar.on-dark .menu-trigger { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.34); color: #fff; backdrop-filter: blur(8px); }
.topbar.on-dark .icon-btn:hover,
.topbar.on-dark .menu-trigger:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.18); }

/* ============================================================
   OVERLAY MENU  — full-screen, nav + contact (like oma.sa)
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: #F4F2EE;
  display: grid; grid-template-columns: 1.25fr 1fr;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
html[data-theme="dark"] .overlay { background: #08090B; }
.overlay.open { opacity: 1; visibility: visible; }
.overlay__close {
  position: absolute; top: 22px; inset-inline-end: var(--gutter); z-index: 2;
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.3); background: transparent;
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, transform .3s;
}
.overlay__close:hover { border-color: #fff; transform: rotate(90deg); }
.overlay__close svg { width: 20px; height: 20px; }
.overlay__logo { position: absolute; top: 26px; inset-inline-start: var(--gutter); height: 32px; }
.overlay__logo img { height: 100%; filter: brightness(0) invert(1); opacity: .9; }

.overlay__nav {
  padding: clamp(86px,11vh,130px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.overlay__nav a {
  position: relative; display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.16;
  color: rgba(244,242,238,0.55); letter-spacing: -0.02em;
  padding-block: clamp(3px,0.55vw,7px); width: max-content; max-width: 100%;
  transition: color .3s var(--ease), padding-inline-start .3s var(--ease);
}
.overlay__nav a .ix { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--accent); opacity: 0; transition: opacity .3s; }
.overlay__nav a:hover, .overlay__nav a.active { color: #fff; padding-inline-start: 18px; }
.overlay__nav a:hover .ix, .overlay__nav a.active .ix { opacity: 1; }
.overlay__nav a.active::before {
  content:''; position: absolute; inset-inline-start: -2px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

.overlay__side {
  background: rgba(255,255,255,0.03); border-inline-start: 1px solid rgba(255,255,255,0.08);
  padding: clamp(90px,12vh,150px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
}
.ov-block { display: flex; flex-direction: column; gap: 6px; }
.ov-block h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,242,238,0.4); margin: 0; direction: ltr; font-weight: 500; }
.ov-block p, .ov-block a { margin: 0; font-size: 16px; color: rgba(244,242,238,0.92); line-height: 1.6; }
.ov-block a:hover { color: var(--accent); }
.ov-social { display: flex; gap: 12px; margin-top: 6px; }
.ov-social a { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s, color .2s; }
.ov-social a:hover { border-color: var(--accent); background: rgba(255,255,255,0.06); color: var(--accent); }
.ov-social svg { width: 19px; height: 19px; }
@media (max-width: 880px){
  .overlay { grid-template-columns: 1fr; }
  .overlay__side { display: none; }
  .overlay__nav { justify-content: flex-start; padding-top: 120px; }
}

/* ============================================================
   HORIZONTAL HOMEPAGE
   ============================================================ */
.hstage {
  position: fixed; inset: 0; overflow: hidden; background: var(--ink);
  z-index: 1; direction: ltr;   /* keep the track box left-anchored even when page is RTL */
}
.htrack {
  display: flex; height: 100%; width: max-content;
  direction: ltr;             /* manage order LTR; content panels carry their own dir */
  will-change: transform;
}
.panel {
  position: relative; width: 100vw; height: 100vh; height: 100dvh;
  flex: none; overflow: hidden;
}

/* panel background image + scrim */
.panel__bg { position: absolute; inset: 0; }
.panel__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.05); }
.panel__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(8,8,9,0.82) 0%, rgba(8,8,9,0.45) 46%, rgba(8,8,9,0.20) 100%);
}
html[dir="rtl"] .panel__scrim { background: linear-gradient(260deg, rgba(8,8,9,0.82) 0%, rgba(8,8,9,0.45) 46%, rgba(8,8,9,0.20) 100%); }
.panel__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 90px 90px;
}

/* panel content */
.panel__inner {
  position: relative; z-index: 2; height: 100%;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  color: #F4F2EE; direction: rtl;
}
html[lang="en"] .panel__inner { direction: ltr; }
.panel__num { font-family: var(--f-mono); font-size: 14px; letter-spacing: .25em; color: var(--accent); margin-bottom: 26px; direction: ltr; }
.panel__title { font-size: clamp(40px, 6.4vw, 104px); font-weight: 800; line-height: .98; letter-spacing: -0.02em; margin: 0 0 26px; max-width: 16ch; }
.panel__sub { font-size: var(--t-body-lg); color: rgba(244,242,238,0.82); max-width: 52ch; line-height: 1.7; font-weight: 300; }
.panel__list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: 56ch; }
.panel__list li { font-size: 15px; color: rgba(244,242,238,0.92); border: 1px solid rgba(255,255,255,0.22); padding: 9px 16px; background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* hero (panel 0) */
.hero__wordmark { height: clamp(58px, 9vw, 116px); width: auto; margin-bottom: 38px; filter: brightness(0) invert(1); }
.hero__quote { font-size: clamp(24px, 3.2vw, 50px); font-weight: 300; line-height: 1.28; letter-spacing: -0.01em; max-width: 22ch; color: #fff; }
.hero__quote b { font-weight: 700; }
.hero__cite { margin-top: 26px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; color: rgba(244,242,238,0.6); direction: ltr; }
.hero__cite .en { color: var(--accent); }

/* CTA panel (last) */
.panel--cta .panel__bg img { filter: brightness(0.45) saturate(1.05); }

/* progress UI bottom */
.hprogress {
  position: fixed; z-index: 60; bottom: 30px; inset-inline-start: var(--gutter);
  display: flex; align-items: center; gap: 18px; color: #fff; pointer-events: none;
}
.hprogress__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; direction: ltr; }
.hprogress__count b { font-size: 22px; font-weight: 600; }
.hprogress__count .sep { opacity: .4; margin-inline: 6px; }
.hdots { position: fixed; z-index: 60; bottom: 34px; inset-inline-end: var(--gutter); display: flex; gap: 11px; }
.hdots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: transparent; cursor: pointer; padding: 0; transition: background .3s, border-color .3s, transform .3s; }
.hdots button.on { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

/* scroll hint */
.hhint {
  position: fixed; z-index: 60; bottom: 32px; inset-inline-start: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.75);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .5s; direction: ltr;
}
.hhint.hide { opacity: 0; }
.hhint .wheel { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 12px; position: relative; }
.hhint .wheel::after { content:''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: #fff; border-radius: 2px; animation: wheelMove 1.5s var(--ease) infinite; }
@keyframes wheelMove { 0%{ opacity:0; top:6px } 30%{ opacity:1 } 100%{ opacity:0; top:18px } }
.hhint .arrows { display: inline-flex; gap: 2px; }

/* prev / next arrows (outside panels) */
.harrow {
  position: fixed; z-index: 60; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.25);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); transition: background .25s, border-color .25s, opacity .3s;
}
.harrow:hover { background: var(--accent); border-color: var(--accent); }
.harrow svg { width: 22px; height: 22px; }
.harrow--prev { inset-inline-start: 22px; } .harrow--next { inset-inline-end: 22px; }
.harrow[disabled] { opacity: .25; pointer-events: none; }
@media (max-width: 720px){ .harrow { display: none; } .hdots { display: none; } }

/* entrance animation — base state is VISIBLE (robust if animation can't run);
   the keyframe only adds a from-hidden flourish when a panel becomes active */
.panel .anim { opacity: 1; transform: none; }
html[data-reduced] .panel.is-active .anim { animation: none; }
.panel.is-active .anim { animation: panelIn .8s var(--ease); }
.panel.is-active .anim.d1 { animation-delay: .10s; }
.panel.is-active .anim.d2 { animation-delay: .20s; }
.panel.is-active .anim.d3 { animation-delay: .30s; }
.panel.is-active .anim.d4 { animation-delay: .40s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px){
  .panel__inner { justify-content: flex-end; padding-bottom: 130px; }
  .panel__title { font-size: clamp(34px,9vw,56px); }
}

/* ---- LIGHT THEME — homepage slides respond to the theme toggle ---- */
html[data-theme="light"] .hstage { background: var(--bg); }
html[data-theme="light"] .panel__bg img { filter: brightness(1.08) saturate(0.92) contrast(0.96); }
html[data-theme="light"] .panel__scrim {
  background: linear-gradient(100deg, rgba(239,235,227,0.985) 0%, rgba(239,235,227,0.96) 48%, rgba(239,235,227,0.6) 74%, rgba(239,235,227,0.14) 100%);
}
html[data-theme="light"][dir="rtl"] .panel__scrim {
  background: linear-gradient(260deg, rgba(239,235,227,0.985) 0%, rgba(239,235,227,0.96) 48%, rgba(239,235,227,0.6) 74%, rgba(239,235,227,0.14) 100%);
}
html[data-theme="light"] .panel--cta .panel__bg img { filter: brightness(1.04) saturate(0.92); }
html[data-theme="light"] .panel__grid {
  background-image: linear-gradient(rgba(28,24,18,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(28,24,18,0.045) 1px, transparent 1px);
}
html[data-theme="light"] .panel__inner { color: var(--fg); }
html[data-theme="light"] .panel__title,
html[data-theme="light"] .hero__quote { color: var(--fg); }
html[data-theme="light"] .panel__sub { color: var(--fg-soft); }
html[data-theme="light"] .hero__cite { color: var(--fg-muted); }
html[data-theme="light"] .hero__cite .en { color: var(--accent); }
html[data-theme="light"] .panel__list li { color: var(--fg); border-color: var(--line-strong); background: rgba(255,255,255,0.55); }
html[data-theme="light"] .panel .btn--light { background: var(--surface); color: var(--fg); border-color: var(--line-strong); backdrop-filter: none; }
html[data-theme="light"] .panel .btn--light:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* light-theme horizontal UI chrome */
html[data-theme="light"] .hprogress { color: var(--fg); }
html[data-theme="light"] .hdots button { border-color: var(--line-strong); }
html[data-theme="light"] .hdots button.on { background: var(--accent); border-color: var(--accent); }
html[data-theme="light"] .hhint { color: var(--fg-muted); }
html[data-theme="light"] .hhint .wheel { border-color: var(--fg-muted); }
html[data-theme="light"] .hhint .wheel::after { background: var(--fg-muted); }
html[data-theme="light"] .harrow { border-color: var(--line-strong); background: rgba(255,255,255,0.65); color: var(--fg); }
html[data-theme="light"] .harrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   INNER PAGES (about / projects / contact)
   ============================================================ */
.page { position: relative; z-index: 1; }
.section { position: relative; padding-block: var(--sec-y); z-index: 1; }
.section--tight { padding-block: clamp(48px,6vw,90px); }

/* inner hero */
.phero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink); color: #fff;
  padding: 78px var(--gutter) clamp(48px,6vw,90px);
}
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(1.05); }
.phero__bg::after { content:''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,9,0.85), rgba(8,8,9,0.15)); }
.phero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.phero__title { font-size: var(--t-hero); font-weight: 800; line-height: .96; letter-spacing: -0.02em; margin: 14px 0 0; }
.phero__lead { margin-top: 22px; font-size: var(--t-body-lg); color: rgba(255,255,255,0.85); max-width: 58ch; font-weight: 300; }

/* light theme — inner page hero follows the toggle (cream wash + dark text) */
html[data-theme="light"] .phero { background: var(--bg); color: var(--fg); }
html[data-theme="light"] .phero__bg img { filter: brightness(1.06) saturate(0.9) contrast(0.95); opacity: 0.34; }
html[data-theme="light"] .phero__bg::after {
  background: linear-gradient(0deg, rgba(239,235,227,0.98) 0%, rgba(239,235,227,0.90) 42%, rgba(239,235,227,0.74) 74%, rgba(239,235,227,0.66) 100%);
}
html[data-theme="light"] .phero__title { color: var(--fg); }
html[data-theme="light"] .phero__lead { color: var(--fg-soft); }
html[data-theme="light"] .crumb { color: var(--fg-muted); }

/* breadcrumb */
.crumb { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,0.6); direction: ltr; display: flex; gap: 10px; }
.crumb .accent-text { color: var(--accent); }

/* sec head */
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }

/* numbered block (about) */
.numrow { display: grid; grid-template-columns: 120px 1fr; gap: clamp(24px,4vw,70px); align-items: start; padding-block: clamp(40px,5vw,72px); border-top: 1px solid var(--line); }
.numrow:first-of-type { border-top: 0; }
.numrow__n { font-family: var(--f-mono); font-size: clamp(40px,5vw,72px); font-weight: 200; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.numrow__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); direction: ltr; margin-bottom: 18px; display: block; }
@media (max-width: 720px){ .numrow { grid-template-columns: 1fr; gap: 16px; } }

/* grids */
.grid { display: grid; gap: clamp(16px,1.6vw,26px); }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1024px){ .g3,.g4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .g2,.g3,.g4 { grid-template-columns: 1fr; } }

/* service card */
.svc { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px,2.2vw,34px); display: flex; flex-direction: column; gap: 14px; transition: border-color .3s var(--ease), transform .3s var(--ease); position: relative; }
.svc:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.svc__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); direction: ltr; }
.svc h3 { font-size: var(--t-h3); }
.svc p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.7; flex: 1; }
.svc__more { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }

/* image frame / project tiles */
.imgframe { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.imgframe img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); transition: transform .9s var(--ease); }
.imgframe--hover:hover img { transform: scale(1.05); }
.tile { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4/3; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-tint); transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 22px 20px 18px; background: linear-gradient(0deg, rgba(8,8,9,0.85), transparent); color: #fff; transform: translateY(8px); opacity: 0; transition: opacity .35s, transform .35s; }
.tile:hover .tile__cap { opacity: 1; transform: none; }
.tile__cap h4 { margin: 0; font-size: 18px; font-weight: 600; }
.tile__cap span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); direction: ltr; }
.tile__num { position: absolute; top: 14px; inset-inline-start: 16px; font-family: var(--f-mono); font-size: 12px; color: #fff; background: rgba(0,0,0,0.4); padding: 5px 9px; backdrop-filter: blur(4px); direction: ltr; z-index: 2; }

/* kpi */
.kpi { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.kpi__num { font-family: var(--f-en); font-size: clamp(40px,5vw,78px); font-weight: 200; line-height: .95; letter-spacing: -0.04em; color: var(--fg); direction: ltr; text-align: start; }
.kpi__num .u { color: var(--accent); font-weight: 400; }
.kpi__label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; color: var(--fg-dim); text-transform: uppercase; direction: ltr; text-align: start; }
/* Arabic: keep number (12+) and its label aligned to the same (right) edge */
html[dir="rtl"] .kpi { align-items: flex-start; text-align: right; }
html[dir="rtl"] .kpi__num { text-align: right; }
html[dir="rtl"] .kpi__label { direction: rtl; text-align: right; letter-spacing: .04em; text-transform: none; font-family: var(--f-ar, inherit); font-size: 15px; }

/* archival chairman portrait (about page) */
.chairman-portrait { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4/5; max-width: 460px; }
.chairman-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; filter: brightness(0.84) contrast(1.05) saturate(0.42) sepia(0.2); }
html[data-theme="dark"] .chairman-portrait img { filter: brightness(0.7) contrast(1.05) saturate(0.35) sepia(0.18); }
.chairman-portrait__grade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(18,14,9,0.8) 0%, rgba(18,14,9,0) 36%),
    linear-gradient(205deg, rgba(18,14,9,0.5) 0%, rgba(18,14,9,0) 40%); }
.chairman-portrait__badge { position: absolute; top: 18px; inset-inline-end: 18px; display: flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid var(--accent-line); background: rgba(18,14,9,0.5); backdrop-filter: blur(4px); }
.chairman-portrait__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-warm); }
.chairman-portrait__badge .mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--accent-warm); }
.chairman-portrait__cap { position: absolute; bottom: 22px; inset-inline-start: 22px; display: flex; flex-direction: column; gap: 5px; }
.chairman-portrait__cap .mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--accent-warm); direction: ltr; }
.chairman-portrait__cap .note { font-size: 14px; color: #F4F2EE; opacity: 0.92; font-weight: 500; }
.chairman-portrait__edge { position: absolute; bottom: -1px; inset-inline-end: -1px; width: 110px; height: 5px; background: var(--accent); }

/* chairman signature */
.chairman-sign { border-top: 1px solid var(--line-strong); padding-top: 26px; }
.chairman-sign__name { font-size: clamp(22px,2vw,30px); font-weight: 700; color: var(--fg); }
.chairman-sign__role { color: var(--accent); font-weight: 600; font-size: clamp(15px,1.1vw,18px); letter-spacing: .04em; margin-top: 8px; }

/* clients marquee */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { display: flex; gap: 64px; width: max-content; animation: marq 40s linear infinite; }
html[data-reduced] .marquee__row { animation: none; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row span { font-size: clamp(17px,1.5vw,23px); font-weight: 600; color: var(--fg-muted); white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee__row { animation-name: marqr; }
@keyframes marqr { to { transform: translateX(50%); } }

/* CTA band */
.ctaband { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(64px,8vw,120px); }
.ctaband__bg { position: absolute; inset: 0; }
.ctaband__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.ctaband__bg::after { content:''; position: absolute; inset: 0; background: rgba(8,8,9,0.55); }
.ctaband__inner { position: relative; z-index: 2; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,4vw,64px); align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); direction: ltr; }
.field input, .field textarea, .field select {
  font-family: var(--f-ar); font-size: 16px; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; width: 100%;
  transition: border-color .2s; resize: vertical;
}
html[lang="en"] .field input, html[lang="en"] .field textarea { font-family: var(--f-en); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form-done { font-size: 15px; color: var(--accent); margin-top: 12px; opacity: 0; transition: opacity .3s; }
.form-done.show { opacity: 1; }
.info-line { display: flex; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-line__ic { width: 42px; height: 42px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--accent); }
.info-line__ic svg { width: 19px; height: 19px; }
.info-line h5 { margin: 0 0 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); direction: ltr; }
.info-line p, .info-line a { margin: 0; font-size: 16px; color: var(--fg); }
.info-line a:hover { color: var(--accent); }

/* footer */
.site-footer { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(54px,6vw,88px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 44px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 18px; direction: ltr; }
.footer-col a, .footer-col p { display: block; color: var(--fg-soft); font-size: 15px; margin: 0 0 12px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--fg-dim); direction: ltr; }

/* whatsapp float */
.wa-float { position: fixed; z-index: 95; bottom: 24px; inset-inline-end: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 34px rgba(37,211,102,0.4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* reveal for inner pages */
.reveal { opacity: 1; transform: none; }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
html.js .reveal { transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
html[data-reduced] .reveal, html:not(.js) .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

.hidden { display: none !important; }
.center { text-align: center; }
.wrap-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   HERO KICKER (homepage) — bigger, proportioned company name
   ============================================================ */
.hero__kicker {
  display: flex; align-items: center; gap: 16px; margin: 0 0 26px;
  font-size: clamp(18px, 1.9vw, 27px); font-weight: 700; letter-spacing: -0.01em;
  color: var(--accent-warm);
}
.hero__kicker::before { content:''; width: clamp(36px,4vw,64px); height: 2px; background: var(--accent); flex: none; }
html[data-theme="light"] .hero__kicker { color: var(--accent); }

/* ============================================================
   DETAIL PAGES — split, definition list, steps, facts, chips
   ============================================================ */
.split2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(34px,5vw,80px); align-items: start; }
@media (max-width: 860px){ .split2 { grid-template-columns: 1fr; gap: 36px; } }

.dl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dl-item { display: flex; align-items: flex-start; gap: 14px; padding-block: 15px; border-top: 1px solid var(--line); font-size: var(--t-body-lg); color: var(--fg-soft); font-weight: 400; }
.dl-item:first-child { border-top: 0; }
.dl-dot { width: 7px; height: 7px; margin-top: 11px; background: var(--accent); flex: none; border-radius: 50%; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px,1.8vw,26px); counter-reset: s; }
@media (max-width: 880px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px,2vw,30px); display: flex; flex-direction: column; gap: 16px; position: relative; transition: border-color .3s, transform .3s; }
.step:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.step__n { font-family: var(--f-mono); font-size: clamp(28px,3vw,42px); font-weight: 200; color: var(--accent); line-height: 1; }
.step__t { margin: 0; font-size: var(--t-body); color: var(--fg); font-weight: 500; line-height: 1.6; }

.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.fact { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.fact:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); direction: ltr; }
.fact__v { font-size: 17px; font-weight: 600; color: var(--fg); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; color: var(--fg); transition: border-color .2s, color .2s, background .2s; }
.chip-link:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   ORG STRUCTURE
   ============================================================ */
.orgchart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-top { display: flex; flex-direction: column; align-items: center; }
.org-node { background: var(--surface); border: 1px solid var(--line-strong); padding: 18px 26px; text-align: center; min-width: 220px; }
.org-node--lead { background: var(--accent); border-color: var(--accent); color: #fff; }
.org-node h4 { margin: 0; font-size: 18px; font-weight: 700; }
.org-node span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; opacity: .8; direction: ltr; }
.org-stem { width: 1px; height: 36px; background: var(--line-strong); }
.org-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,1.6vw,24px); width: 100%; }
@media (max-width: 820px){ .org-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .org-row { grid-template-columns: 1fr; } }
.dept { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px,2vw,30px); display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, transform .3s; }
.dept:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.dept__code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); direction: ltr; }
.dept h4 { margin: 0; font-size: var(--t-h3); font-weight: 700; }
.dept p { margin: 0; font-size: 15px; color: var(--fg-muted); line-height: 1.7; }

/* phase timeline (project management) */
.phases { display: flex; flex-direction: column; }
.phase { display: grid; grid-template-columns: 120px 1fr; gap: clamp(24px,4vw,60px); padding-block: clamp(28px,3.5vw,48px); border-top: 1px solid var(--line); align-items: start; }
.phase:first-child { border-top: 0; }
.phase__n { font-family: var(--f-mono); font-size: clamp(34px,4.5vw,64px); font-weight: 200; color: var(--accent); line-height: 1; }
.phase h3 { margin: 0 0 10px; font-size: var(--t-h2); }
.phase p { margin: 0; font-size: var(--t-body-lg); color: var(--fg-muted); line-height: 1.75; max-width: 62ch; }
@media (max-width: 640px){ .phase { grid-template-columns: 1fr; gap: 12px; } }

/* ============================================================
   MULTI-LEVEL ORG CHART  (sourced from the executive profile)
   ============================================================ */
.orgx { display: flex; flex-direction: column; align-items: stretch; }
.orgx__lvl { display: flex; justify-content: center; }
.orgx__box { background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--accent); padding: 16px 34px; text-align: center; min-width: 300px; }
.orgx__box--lead { border: 1px solid var(--accent); border-top: 4px solid var(--accent); }
.orgx__tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .28em; color: var(--accent); margin-bottom: 6px; direction: ltr; }
.orgx__name { font-size: 19px; font-weight: 700; color: var(--fg); }
.orgx__en { font-family: var(--f-en); font-size: 12px; color: var(--fg-muted); letter-spacing: .12em; direction: ltr; margin-top: 3px; text-transform: uppercase; }
.orgx__stem { width: 2px; height: 26px; background: var(--accent); margin: 0 auto; }
.orgx__stem--soft { background: var(--line-strong); height: 20px; }
.orgx__bus { position: relative; height: 22px; margin: 0 12.5%; }
.orgx__bus::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.orgx__bus i { position: absolute; top: 0; width: 2px; height: 22px; background: var(--line-strong); }
.orgx__divs { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.orgx__div { background: var(--surface); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); padding: 16px 18px; text-align: center; }
.orgx__units { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 14px; }
.orgx__col { display: flex; flex-direction: column; gap: 8px; }
.orgx__unit { background: var(--bg-2); border-inline-start: 2px solid var(--accent); padding: 10px 14px; transition: background .25s; }
.orgx__unit:hover { background: var(--surface); }
.orgx__unit .u-ar { font-size: 14px; color: var(--fg); font-weight: 500; line-height: 1.3; }
.orgx__unit .u-en { font-family: var(--f-en); font-size: 11px; color: var(--fg-dim); letter-spacing: .04em; direction: ltr; }
@media (max-width: 900px){ .orgx__divs, .orgx__units { grid-template-columns: repeat(2,1fr); } .orgx__bus { display: none; } .orgx__divs { margin-top: 14px; } }
@media (max-width: 540px){ .orgx__divs, .orgx__units { grid-template-columns: 1fr; } }

/* ============================================================
   CLIENT / PARTNER GRID  (شركاء النجاح)
   ============================================================ */
.client-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.client-cell { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 128px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--fg); line-height: 1.5; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.client-cell:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.client-cell--more { background: transparent; border-style: dashed; color: var(--fg-dim); font-weight: 400; }
@media (max-width: 880px){ .client-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .client-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CERTIFICATIONS + ACCREDITATIONS  (الاعتمادات)
   ============================================================ */
.cert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 880px){ .cert-grid { grid-template-columns: 1fr; } }
.cert { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: clamp(26px,2.4vw,36px); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.cert:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.cert__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; color: var(--fg-dim); direction: ltr; text-transform: uppercase; }
.cert__num { font-family: var(--f-en); font-size: clamp(48px,5vw,68px); font-weight: 200; color: var(--accent); line-height: .95; letter-spacing: -0.03em; direction: ltr; margin: 4px 0; }
.cert__std { font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; color: var(--fg-muted); direction: ltr; margin-bottom: 8px; }
.cert__title { font-size: 22px; font-weight: 700; color: var(--fg); }
.cert__body { font-size: 15px; color: var(--fg-muted); line-height: 1.7; flex: 1; margin-top: 4px; }
.cert__code { font-family: var(--f-mono); font-size: 12px; color: var(--fg-dim); letter-spacing: .06em; direction: ltr; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 10px; }

.accred-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 880px){ .accred-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .accred-grid { grid-template-columns: 1fr; } }
.accred { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.accred:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.accred__code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); direction: ltr; margin-bottom: 8px; }
.accred__t { font-size: 19px; font-weight: 700; color: var(--fg); }
.accred__d { font-size: 15px; color: var(--fg-muted); line-height: 1.6; }

/* accreditation issuer strip */
.issuer-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line-strong); padding: 18px 30px; margin-top: 26px; }
.issuer-strip span { font-family: var(--f-mono); font-size: 13px; color: var(--fg-muted); letter-spacing: .08em; direction: ltr; }
.issuer-strip span b { color: var(--accent); font-weight: 500; }
