@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --navy: #0d2033;
  --navy-2: #122c44;
  --ink: #16202a;
  --muted: #64717a;
  --line: #d9dedf;
  --paper: #f7f7f4;
  --sand: #e9e1d3;
  --gold: #c9a66b;
  --gold-light: #e4c88f;
  --white: #fff;
  --max: 1240px;
  --pad: clamp(1.35rem, 5vw, 5.75rem);
  --display: 'Inter', 'Noto Sans Arabic', sans-serif;
  --body: 'Inter', 'Noto Sans Arabic', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.75; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-shell { overflow: hidden; }
.section-pad { padding: clamp(5rem, 10vw, 9.5rem) var(--pad); }
.section-light { background: var(--paper); }
.section-dark { color: #f5f6f3; background: var(--navy); }
.section-sand { background: var(--sand); }
.lang-en { display: none; }
html[data-language='en'] .lang-ar { display: none; }
html[data-language='en'] .lang-en { display: inline; }
html[dir='rtl'] .lang-en, html[dir='ltr'] .lang-ar { display: none; }
html[dir='rtl'] .lang-ar, html[dir='ltr'] .lang-en { display: inline; }

.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1400px; margin: 0 auto; padding: 1.35rem var(--pad); border-bottom: 1px solid var(--line); background: rgba(247,247,244,.94); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand-mark { display: inline-flex; align-items: center; gap: .08em; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.12em; line-height: 1; }
.brand-mark i { display: inline-block; width: .34em; height: .34em; margin: 0 .05em; border-radius: 100%; background: var(--gold); }
.brand-text { display: grid; gap: 0; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: .98rem; letter-spacing: .16em; }
.brand-text small { color: var(--muted); font-family: var(--display); font-size: .46rem; font-weight: 600; letter-spacing: .18em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.15rem, 2.4vw, 2.5rem); margin-inline-start: auto; }
.main-nav a { position: relative; color: #52616b; font-family: var(--display); font-size: .77rem; font-weight: 600; transition: color .22s ease; }
.main-nav a::after { position: absolute; right: 0; bottom: -.55rem; left: 0; height: 1px; background: var(--gold); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }
.language-toggle { display: inline-flex; align-items: center; gap: .48rem; min-width: 6.15rem; padding: .47rem .8rem; border: 1px solid #bec8ca; border-radius: 999px; color: var(--navy); background: transparent; cursor: pointer; font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .04em; transition: border-color .22s ease, background .22s ease, color .22s ease; }
.language-toggle:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.language-flag { font-size: .95rem; line-height: 1; }
.language-dot { width: .38rem; height: .38rem; border-radius: 50%; background: var(--gold); }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(3rem, 8vw, 9rem); align-items: center; min-height: 700px; max-width: 1400px; margin: 0 auto; padding-top: clamp(5rem, 9vw, 9rem); padding-bottom: clamp(5rem, 8vw, 8rem); }
.hero-copy { max-width: 770px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: .8rem; margin: 0 0 2.15rem; color: var(--muted); font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 2.5rem; height: 1px; background: var(--gold); }
.hero h1, h2 { margin: 0; color: var(--navy); font-family: var(--display); font-weight: 600; letter-spacing: -.065em; line-height: 1.02; }
.hero h1 { font-size: clamp(4.25rem, 9vw, 8.6rem); }
h1 em, h2 em { color: var(--gold); font-style: normal; }
.hero-intro { max-width: 650px; margin: 2.45rem 0 0; color: #59666d; font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.55rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; padding: .95rem 1.3rem; font-family: var(--display); font-size: .78rem; font-weight: 700; transition: transform .22s ease, background .22s ease, color .22s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--navy-2); }
.button-quiet { color: var(--navy); border-bottom: 1px solid var(--gold); }
.button-quiet:hover { color: var(--gold); }
.hero-aside { position: relative; display: grid; align-content: space-between; min-height: 470px; padding: 1.8rem; border-inline-start: 1px solid var(--line); overflow: hidden; }
.hero-aside::before { position: absolute; inset: 18% -10% auto auto; width: 85%; height: 1px; background: var(--line); content: ''; transform: rotate(-34deg); }
.hero-aside::after { position: absolute; right: 16%; bottom: 8%; width: 1px; height: 57%; background: var(--line); content: ''; transform: rotate(-34deg); }
.aside-code { position: relative; z-index: 2; color: var(--muted); font-family: var(--display); font-size: .68rem; letter-spacing: .14em; }
.aside-code span { margin-inline-start: .3rem; color: var(--gold); }
.hero-monogram { position: relative; z-index: 2; display: flex; align-items: baseline; gap: .07em; margin-top: auto; color: var(--navy); font-family: var(--display); font-size: clamp(8rem, 20vw, 18rem); font-weight: 600; letter-spacing: -.18em; line-height: .72; direction: ltr; }
.hero-monogram span:first-child { color: var(--gold); }
.aside-caption { position: relative; z-index: 2; align-self: end; margin: 2.5rem 0 0; color: var(--muted); font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .14em; line-height: 1.8; text-transform: uppercase; }
.aside-index { position: absolute; bottom: 1.8rem; inset-inline-end: 1.8rem; color: var(--gold); font-family: var(--display); font-size: .72rem; }
.orbit { position: absolute; z-index: 1; border: 1px solid rgba(201,166,107,.35); border-radius: 50%; }
.orbit-large { top: 25%; right: 3%; width: min(28vw, 340px); aspect-ratio: 1; }
.orbit-small { top: 43%; right: 33%; width: 25px; height: 25px; background: var(--gold); border: 0; }

.ticker { overflow: hidden; padding: .9rem 0; color: var(--white); background: var(--navy); }
.ticker-track { display: flex; align-items: center; justify-content: center; gap: 1.6rem; min-width: max-content; font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; animation: ticker 34s linear infinite; }
.ticker-track i { color: var(--gold); font-style: normal; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-18%); } }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: clamp(4rem, 7vw, 7rem); padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.section-heading .section-kicker { margin: 0; color: var(--navy); }
.section-kicker > span:first-child { color: var(--gold); font-family: var(--display); }
.section-meta { color: #8b979c; font-family: var(--display); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.split-layout { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr); gap: clamp(3rem, 11vw, 12rem); align-items: start; max-width: 1120px; margin: 0 auto; }
.split-layout h2 { font-size: clamp(3.2rem, 6.9vw, 7rem); }
.section-body { max-width: 580px; padding-top: .9rem; color: #667278; font-size: 1rem; }
.section-body .lead { margin: 0 0 1.4rem; color: var(--navy); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 600; line-height: 1.5; }
.section-body > p:not(.lead) { margin: 0; }
blockquote { margin: 3rem 0 0; padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--gold); color: var(--navy); font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 600; line-height: 1.65; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin: clamp(4.5rem, 9vw, 8rem) auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stat-row div { display: flex; flex-direction: column; gap: .25rem; padding: 0 1.5rem; border-inline-start: 1px solid var(--line); }
.stat-row div:first-child { padding-inline-start: 0; border: 0; }
.stat-row strong { color: var(--gold); font-family: var(--display); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.stat-row span { color: var(--muted); font-family: var(--display); font-size: .76rem; font-weight: 600; }

.section-heading-dark { border-color: rgba(255,255,255,.16); }
.section-heading-dark .section-kicker { color: var(--white); }
.section-heading-dark .section-meta, .section-kicker-dark { color: var(--gold); }
.capability-intro { margin-bottom: clamp(4rem, 7vw, 6.5rem); }
.section-lead { max-width: 540px; margin: 1.2rem 0 0; color: #657278; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.9; }
.section-lead-dark { color: #cad2d3; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1120px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.17); border-inline-start: 1px solid rgba(255,255,255,.17); }
.capability-card { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.3rem; min-height: 225px; padding: 1.65rem; border-inline-end: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); transition: background .25s ease, transform .25s ease; }
.capability-card:hover { background: rgba(255,255,255,.045); transform: translateY(-4px); }
.card-number { color: var(--gold); font-family: var(--display); font-size: .76rem; font-weight: 600; }
.capability-card h3, .focus-item h3, .approach-step h3 { margin: 0; color: var(--white); font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.45; }
.capability-card p { max-width: 310px; margin: .8rem 0 0; color: #aab7bb; font-size: .88rem; line-height: 1.85; }
.card-arrow { align-self: start; color: var(--gold); font-size: 1.2rem; }

.projects-intro { margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.projects-summary { padding-top: .9rem; }
.project-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; direction: ltr; }
.carousel-button { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(13,32,51,.3); color: var(--navy); background: transparent; cursor: pointer; font-size: 1.15rem; transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease; }
.carousel-button:hover { border-color: var(--navy); color: var(--white); background: var(--navy); transform: translateY(-2px); }
.project-counter { display: inline-flex; align-items: baseline; gap: .3rem; min-width: 3.6rem; color: var(--muted); font-family: var(--display); font-size: .7rem; letter-spacing: .08em; }
.project-counter strong { color: var(--navy); font-size: 1.2rem; font-weight: 600; }
.projects-viewport { max-width: 1120px; margin: 0 auto; overflow: hidden; }
.projects-track { display: flex; direction: ltr; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.project-card { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); flex: 0 0 100%; min-height: 420px; color: var(--white); background: var(--navy); }
.project-image { min-height: 320px; overflow: hidden; background: var(--navy-2); }
.project-image img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; transition: transform .8s ease; }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 4vw, 3.4rem); }
.project-index { color: var(--gold); font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.project-type { margin: auto 0 .85rem; color: #aebbc0; font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-content h3 { max-width: 310px; margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.45; }
.project-link { margin-top: 2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-family: var(--display); font-size: .75rem; font-weight: 600; }
.project-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.4rem; direction: ltr; }
.project-dots button { width: .42rem; height: .42rem; padding: 0; border: 0; border-radius: 50%; background: rgba(13,32,51,.3); cursor: pointer; transition: width .22s ease, border-radius .22s ease, background .22s ease; }
.project-dots button.is-active { width: 1.6rem; border-radius: 999px; background: var(--navy); }

.focus-intro { margin-bottom: clamp(4rem, 7vw, 6.5rem); }
.focus-list { max-width: 1120px; margin: 0 auto; border-top: 1px solid var(--line); }
.focus-item { display: grid; grid-template-columns: 10rem 3rem minmax(0, 1fr) 6rem; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.focus-item:hover { padding-inline: 1rem; background: rgba(233,225,211,.6); }
.focus-index { color: var(--navy); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.focus-index small { color: var(--muted); font-size: .57rem; }
.focus-icon { color: var(--gold); font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.focus-item h3 { color: var(--navy); font-size: 1.25rem; }
.focus-item p { max-width: 560px; margin: .4rem 0 0; color: var(--muted); font-size: .87rem; line-height: 1.8; }
.focus-count { justify-self: end; color: var(--muted); font-family: var(--display); font-size: .67rem; letter-spacing: .08em; }

.approach-intro { margin-bottom: clamp(4rem, 7vw, 6.5rem); }
.approach-steps { max-width: 1120px; margin: 0 auto; border-top: 1px solid rgba(13,32,51,.17); }
.approach-step { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 2rem; gap: 1.5rem; align-items: start; padding: 1.65rem 0; border-bottom: 1px solid rgba(13,32,51,.17); }
.step-symbol { color: var(--gold); font-family: var(--display); font-size: .8rem; font-weight: 700; }
.approach-step h3 { color: var(--navy); font-size: 1.35rem; }
.approach-step p { max-width: 590px; margin: .45rem 0 0; color: #5e6a6d; font-size: .9rem; line-height: 1.8; }
.step-arrow { color: var(--navy); font-size: 1.25rem; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); gap: clamp(3rem, 10vw, 10rem); align-items: end; max-width: 1120px; margin: 0 auto; }
.section-kicker-dark { color: var(--gold); }
.contact h2 { color: var(--white); font-size: clamp(3.2rem, 7vw, 7.2rem); }
.contact-details { padding-bottom: .5rem; }
.contact-details > p { max-width: 440px; margin: 0 0 2.3rem; color: #b8c5c8; font-size: 1rem; line-height: 1.95; }
.contact-link { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; width: fit-content; padding-bottom: .8rem; border-bottom: 1px solid var(--gold); color: var(--white); font-family: var(--display); font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 600; }
.contact-link span:nth-child(2) { color: var(--gold-light); font-size: .78em; font-weight: 400; }
.contact-link b { color: var(--gold); font-size: 1.2rem; }
.contact-note { display: flex; align-items: center; gap: .7rem; margin-top: 5rem; color: #91a0a6; font-family: var(--display); font-size: .64rem; font-weight: 600; letter-spacing: .1em; }
.contact-note i { width: 22px; height: 1px; background: var(--gold); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2rem; align-items: end; padding: 2.3rem var(--pad); color: var(--white); background: var(--navy); border-top: 1px solid rgba(255,255,255,.16); }
.footer-brand .brand-mark, .footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text small { color: #91a0a6; }
.site-footer > p { justify-self: center; margin: 0; color: #b8c5c8; font-family: var(--display); font-size: .9rem; line-height: 1.45; }
.site-footer > p strong { color: var(--gold-light); font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.5rem; color: #7d8f95; font-family: var(--display); font-size: .58rem; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { gap: 1rem; }
  .main-nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
  .site-header { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-aside { min-height: 330px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .orbit-large { width: min(48vw, 300px); }
  .capability-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-image { min-height: 250px; }
  .project-image img { min-height: 250px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-note { margin-top: 3rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .site-header { padding-top: 1rem; padding-bottom: .85rem; }
  .brand-text small { display: none; }
  .main-nav { overflow-x: auto; justify-content: flex-start; gap: 1.15rem; padding-bottom: .25rem; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex-shrink: 0; font-size: .7rem; }
  .hero { gap: 3.5rem; padding-top: 4.5rem; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.7rem); }
  .hero-intro { font-size: .94rem; line-height: 1.9; }
  .hero-aside { min-height: 260px; padding: 1rem; }
  .hero-monogram { font-size: 8rem; }
  .aside-index { bottom: 1rem; inset-inline-end: 1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; margin-bottom: 3.5rem; }
  .section-heading .section-kicker { margin: 0; }
  .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-layout h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .section-lead { font-size: 1.05rem; }
  .stat-row { gap: 1rem; }
  .stat-row div { padding: 0 .75rem; }
  .stat-row strong { font-size: 2rem; }
  .stat-row span { font-size: .66rem; }
  .capability-card { grid-template-columns: 2rem 1fr auto; min-height: auto; padding: 1.25rem 1rem; }
  .capability-card h3 { font-size: 1rem; }
  .capability-card p { font-size: .82rem; }
  .project-card { min-height: 0; }
  .project-content { min-height: 285px; }
  .project-type { margin-top: 2.5rem; }
  .focus-item { grid-template-columns: 4.2rem 1.8rem 1fr; gap: .7rem; }
  .focus-count { grid-column: 3; justify-self: start; margin-top: .35rem; }
  .focus-item p { font-size: .82rem; }
  .approach-step { grid-template-columns: 2.5rem 1fr 1rem; gap: .8rem; }
  .contact h2 { font-size: clamp(3rem, 15vw, 5.3rem); }
  .contact-link { gap: .5rem; font-size: .93rem; }
  .site-footer { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-footer > p { justify-self: start; }
  .footer-legal { justify-content: flex-start; }
  .ticker-track { justify-content: flex-start; font-size: .63rem; animation-duration: 26s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
