:root {
  --ink: #0a1020;
  --ink-2: #121a2d;
  --paper: #f5f3ee;
  --white: #ffffff;
  --cobalt: #3468f4;
  --cobalt-light: #9bb7ff;
  --violet: #8f82ff;
  --muted: #657087;
  --line: rgba(10, 16, 32, .14);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(14, 25, 58, .15);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Alexandria, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.045em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
h1 { font-size: clamp(3.2rem, 7.3vw, 7rem); font-weight: 750; }
h2 { font-size: clamp(2.15rem, 4.2vw, 4rem); font-weight: 700; }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.compact-top { padding-top: 24px; }
.screen-reader-text, .skip-link:not(:focus), .menu-item-description { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { z-index: 9999; position: fixed; inset: 12px auto auto 12px; padding: 12px 16px; background: white; color: black; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(245, 243, 238, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(245, 243, 238, .96); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 1.08rem; font-weight: 650; letter-spacing: -.03em; white-space: nowrap; }
.brand strong { color: var(--cobalt); font-weight: 750; }
.brand img { width: auto; max-width: 210px; max-height: 48px; object-fit: contain; }
.primary-nav, .menu-items { display: flex; align-items: center; gap: 27px; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-items li { margin: 0; }
.primary-nav a { position: relative; font-size: .82rem; font-weight: 600; color: #31394a; }
.menu-items a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--cobalt); transition: right .25s; }
[dir="rtl"] .menu-items a::after { left: 100%; right: 0; transition: left .25s; }
.menu-items a:hover::after, .current-menu-item > a::after { right: 0; }
[dir="rtl"] .menu-items a:hover::after, [dir="rtl"] .current-menu-item > a::after { left: 0; }
.language-link { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 10px; border: 0; background: transparent; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

.hero { position: relative; min-height: calc(100vh - 82px); display: grid; align-items: center; overflow: hidden; background: var(--ink); color: white; }
.hero::before { content: ""; position: absolute; width: 720px; aspect-ratio: 1; inset: -270px -170px auto auto; border-radius: 50%; background: radial-gradient(circle, rgba(52,104,244,.42), rgba(52,104,244,0) 70%); }
[dir="rtl"] .hero::before { right: auto; left: -170px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(transparent, rgba(6,10,20,.56)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(50px, 8vw, 120px); }
.hero-copy { padding-block: 35px; }
.eyebrow { color: var(--cobalt); font-size: .73rem; line-height: 1.4; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 25px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero .eyebrow, .dark-section .eyebrow, .cta-panel .eyebrow { color: var(--cobalt-light); }
.hero h1 { max-width: 760px; margin-bottom: 20px; }
.hero h1 em { display: block; color: var(--cobalt-light); font-style: normal; }
.hero-title { margin-bottom: 14px; color: white; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 650; }
.hero-lead { max-width: 760px; color: #c6cede; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.85; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--cobalt); box-shadow: 0 12px 28px rgba(52,104,244,.25); }
.button-primary:hover { background: #2459e8; }
.button-ghost { color: white; border-color: rgba(255,255,255,.3); }
.button-ghost:hover { background: white; color: var(--ink); }
.portrait-wrap { position: relative; align-self: end; width: min(100%, 440px); margin-inline: auto; }
.portrait-frame { position: relative; overflow: hidden; border-radius: 220px 220px 26px 26px; background: linear-gradient(145deg, #d9dcdf, #938d8b); box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: inherit; }
.portrait-frame img { width: 100%; aspect-ratio: .72; object-fit: cover; object-position: center 10%; }
.availability { position: absolute; z-index: 2; inset: auto -24px 28px auto; max-width: 245px; padding: 13px 17px; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(10,16,32,.84); color: white; backdrop-filter: blur(14px); font-size: .7rem; line-height: 1.5; box-shadow: var(--shadow); }
[dir="rtl"] .availability { right: auto; left: -24px; }
.availability i { display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #56e697; box-shadow: 0 0 0 4px rgba(86,230,151,.14); }

.metrics { position: relative; z-index: 3; background: var(--white); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { min-height: 150px; padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; border-inline-end: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric strong { color: var(--ink); font-size: clamp(1.65rem, 2.8vw, 2.7rem); letter-spacing: -.06em; }
.metric span { margin-top: 6px; color: var(--muted); font-size: .72rem; line-height: 1.55; }

.split-intro, .two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.section-heading-wide { margin-bottom: 55px; }
.section-heading-wide h2 { max-width: 900px; }
.prose p { font-size: clamp(1rem, 1.55vw, 1.22rem); line-height: 1.9; }
.dark-section { position: relative; overflow: hidden; color: white; background: var(--ink-2); }
.dark-section::after { content: ""; position: absolute; width: 540px; height: 540px; right: -260px; bottom: -280px; border: 1px solid rgba(143,130,255,.25); border-radius: 50%; box-shadow: 0 0 0 80px rgba(143,130,255,.035), 0 0 0 160px rgba(143,130,255,.025); }
[dir="rtl"] .dark-section::after { right: auto; left: -260px; }
.dark-section .container { position: relative; z-index: 2; }
.dark-section h2, .dark-section h3 { color: white; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.expertise-card { min-height: 330px; padding: 30px; background: var(--ink-2); transition: background .25s, transform .25s; }
.expertise-card:hover { position: relative; background: #18223a; transform: translateY(-5px); }
.expertise-card > span, .service-card > span { display: inline-block; color: var(--cobalt-light); font-size: .72rem; font-weight: 700; margin-bottom: 85px; }
.expertise-card p { color: #abb5c8; font-size: .86rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 38px; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: inherit; font-size: .83rem; font-weight: 650; }
.text-link span { color: var(--cobalt-light); }
.outcome-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(55px, 9vw, 125px); }
.outcome-main h2 { margin-bottom: 25px; }
.outcome-main p { font-size: 1.08rem; }
.outcome-list { border-top: 1px solid var(--line); }
.outcome-item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.outcome-item strong { color: var(--cobalt); font-size: 2.4rem; letter-spacing: -.07em; }
.outcome-item span { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.cta-section { padding-top: 28px; }
.cta-panel { position: relative; overflow: hidden; min-height: 420px; padding: clamp(45px, 7vw, 90px); border-radius: var(--radius); color: white; background: linear-gradient(135deg, #111b35, #1e3e97); box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 470px; aspect-ratio: 1; right: -70px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(155,183,255,.5), transparent 67%); }
[dir="rtl"] .cta-panel::after { right: auto; left: -70px; }
.cta-panel > * { position: relative; z-index: 1; max-width: 760px; }
.cta-panel p { color: #d8e0f2; }
.cta-panel .button { margin-top: 15px; }

.page-hero { color: white; background: var(--ink); padding-top: clamp(90px, 11vw, 160px); padding-bottom: clamp(85px, 10vw, 140px); }
.page-hero h1 { max-width: 1000px; margin-bottom: 25px; font-size: clamp(3rem, 6.8vw, 6.5rem); }
.page-lead { max-width: 780px; color: #bdc7d9; font-size: clamp(1rem, 1.8vw, 1.3rem); }
.page-hero-grid { display: grid; grid-template-columns: 1.25fr .45fr; gap: 90px; align-items: center; }
.page-portrait { width: 100%; max-width: 330px; aspect-ratio: .78; object-fit: cover; object-position: center 12%; border-radius: 180px 180px 22px 22px; box-shadow: 20px 20px 0 rgba(52,104,244,.28); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 200px 1fr; gap: clamp(30px, 6vw, 100px); padding: 60px 0; border-bottom: 1px solid var(--line); }
.timeline-meta { min-width: 0; }
.timeline-date { color: var(--cobalt); font-size: 1rem; font-weight: 700; }
.company-logo-box { width: 156px; height: 86px; margin-top: 22px; padding: 13px 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 10px 30px rgba(14,25,58,.08); }
.company-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.company-logo-box.logo-naft img { max-width: 66px; }
.company-logo-box.logo-text { color: var(--ink); font-weight: 750; font-size: .78rem; line-height: 1.25; text-align: center; }
.timeline-item h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); margin-bottom: 20px; }
.timeline-item ul { margin: 22px 0 0; padding-inline-start: 22px; color: var(--muted); }
.timeline-item li { margin: 8px 0; }
.credential-section { background: white; }
.credential-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 50px; background: var(--line); border: 1px solid var(--line); }
.credential-grid article { min-height: 250px; padding: 28px; background: white; }
.credential-grid strong { color: var(--cobalt); font-size: .82rem; }
.credential-grid h3 { margin-top: 55px; }
.credential-grid p { font-size: .82rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; overflow: hidden; min-height: 330px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card::before { content: ""; position: absolute; width: 120px; height: 120px; right: -75px; top: -75px; border-radius: 50%; background: var(--cobalt); opacity: .9; }
[dir="rtl"] .service-card::before { right: auto; left: -75px; }
.service-card > span { margin-bottom: 0; color: var(--cobalt); }
.service-icon-box { width: 78px; height: 78px; margin: 28px 0 30px; padding: 15px; display: grid; place-items: center; border: 1px solid #e0e4ec; border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(14,25,58,.08); }
.service-icon-box img { width: 48px; height: 48px; object-fit: contain; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { min-width: 0; padding: clamp(28px,4vw,46px); border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card .service-icon-box { margin-top: 0; }
.project-card h2 { font-size: clamp(1.45rem,2.4vw,2.2rem); }
.project-card p { font-size: .9rem; }
.project-card .project-result { display: inline-block; margin-top: 10px; color: var(--cobalt); font-size: .78rem; font-weight: 700; }
.service-card h2 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); }
.service-card p { max-width: 540px; }
.impact-section { background: var(--ink-2); color: white; }
.impact-section h2, .impact-section h3 { color: white; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-grid article { min-height: 285px; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.impact-grid strong { color: var(--cobalt-light); font-size: clamp(2.4rem, 4vw, 4.2rem); letter-spacing: -.07em; }
.impact-grid h3 { margin-top: 55px; }
.impact-grid p { color: #aeb9cc; font-size: .82rem; }
.portfolio-section { background: white; }
.portfolio-table { margin-top: 45px; border-top: 1px solid var(--line); }
.portfolio-table > div { display: flex; justify-content: space-between; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.portfolio-table span { color: var(--muted); }
.portfolio-table strong { color: var(--ink); }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.post-card h2 { font-size: 1.45rem; }
.post-card p { font-size: .84rem; }
.post-meta { color: var(--cobalt)!important; font-size: .7rem!important; font-weight: 700; text-transform: uppercase; }
.post-card .text-link { margin-top: 12px; }
.post-image { display: block; overflow: hidden; margin: -28px -28px 24px; border-radius: 16px 16px 0 0; }
.post-image img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.empty-state { grid-column: 1/-1; padding: 80px 30px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.article-shell { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.article-shell h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.article-content { font-size: 1.05rem; }
.article-content h2 { margin-top: 60px; font-size: 2rem; }
.article-content a { color: var(--cobalt); text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 120px); align-items: start; }
.contact-grid > *, .contact-details a, .contact-form-shell { min-width: 0; }
.contact-details a { overflow-wrap: anywhere; }
.contact-grid h1 { font-size: clamp(3rem, 5.5vw, 5.4rem); }
.contact-details { margin-top: 55px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-details span { color: #8f9aaf; font-size: .72rem; }
.contact-details strong, .contact-details a { color: white; font-size: .8rem; }
.contact-form-shell { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: white; color: var(--ink); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { color: #525c71; font-size: .72rem; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #d6dbe5; border-radius: 10px; background: #f8f9fb; padding: 13px 14px; color: var(--ink); font: inherit; font-size: .86rem; outline: none; transition: border .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(52,104,244,.12); }
.contact-form .button { justify-self: start; }
.contact-form .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-notice { margin-bottom: 20px; padding: 12px 15px; border-radius: 9px; font-size: .8rem; }
.form-notice.success { color: #0b6039; background: #dff8e9; }
.form-notice.error { color: #8c2430; background: #fee7e9; }

.site-footer { padding: 70px 0 26px; color: white; background: #070b14; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 45px; align-items: start; }
.brand-footer { color: white; }
.footer-grid p { max-width: 340px; color: #8490a5; font-size: .78rem; margin-top: 12px; }
.footer-contact { display: grid; gap: 8px; color: #aeb7c8; font-size: .76rem; }
.footer-contact a { color: white; }
.social-links { display: flex; gap: 9px; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; transition: background .2s, border .2s; }
.social-links a:hover { background: var(--cobalt); border-color: var(--cobalt); }
.social-links svg { width: 16px; height: 16px; fill: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #778297; font-size: .68rem; }
.content-page, .error-page { min-height: 60vh; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; inset: 82px 0 auto; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(10,16,32,.1); }
  .primary-nav.open { display: flex; align-items: stretch; flex-direction: column; }
  .menu-items { align-items: stretch; flex-direction: column; gap: 0; }
  .menu-items a, .language-link { display: block; padding: 12px; }
  .language-link { text-align: center; }
  .hero { min-height: auto; padding-top: 35px; }
  .hero-grid { grid-template-columns: 1fr .62fr; gap: 35px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-inline-end: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .expertise-grid, .credential-grid, .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid, .contact-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr .35fr; gap: 45px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 72px 0; }
  .hero { padding-top: 72px; }
  .hero-grid, .split-intro, .two-col, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 0; }
  .portrait-wrap { width: 82%; max-width: 360px; margin-top: 18px; }
  .availability { inset-inline-end: -10px; bottom: 17px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 125px; padding: 22px 16px; }
  .expertise-grid, .service-grid, .project-grid, .credential-grid, .impact-grid, .posts-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 275px; }
  .expertise-card > span { margin-bottom: 55px; }
  .outcome-item { grid-template-columns: 95px 1fr; }
  .page-portrait { max-width: 280px; }
  .timeline-item { grid-template-columns: 1fr; gap: 18px; padding: 45px 0; }
  .timeline-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .company-logo-box { width: 128px; height: 68px; margin-top: 0; padding: 10px 13px; }
  .portfolio-table > div { display: grid; gap: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-grid h1 { font-size: 3.2rem; }
}
