:root {
  --ink: #10282b;
  --ink-soft: #1d3a3e;
  --paper: #f6f1e7;
  --paper-2: #efe7d6;
  --brass: #b3823f;
  --brass-2: #c8a05a;
  --teal: #2f6b6b;
  --muted: #5c6b6a;
  --line: rgba(16, 40, 43, .14);
  --shadow: 0 24px 60px -28px rgba(16, 40, 43, .45);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --serif-ar: 'El Messiri', serif;
  --sans-ar: 'IBM Plex Sans Arabic', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Arabic / RTL typography ---- */
[dir="rtl"] body, [dir="rtl"] {
  font-family: var(--sans-ar);
  line-height: 1.85;
}

[dir="rtl"] .brand b,
[dir="rtl"] .hero h1,
[dir="rtl"] .sec-head h2,
[dir="rtl"] .exp-card h3,
[dir="rtl"] .tl-item h3,
[dir="rtl"] .award h3,
[dir="rtl"] .quick h3,
[dir="rtl"] .contact-grid h2,
[dir="rtl"] .portrait .badge b,
[dir="rtl"] .strip-track span,
[dir="rtl"] .tl-item .yr {
  font-family: var(--serif-ar);
}

[dir="rtl"] .hero h1 em,
[dir="rtl"] .strip-track span {
  font-style: normal;
}

[dir="rtl"] .about-grid p:first-child::first-letter {
  font-size: inherit;
  float: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .sec-tag {
  letter-spacing: 0;
}

[dir="rtl"] nav a {
  letter-spacing: 0;
  text-transform: none;
  font-size: .92rem;
}

[dir="rtl"] .quick .row b {
  text-align: left;
}

[dir="rtl"] .contact-list a:hover {
  padding-left: 0;
  padding-right: 8px;
}

[dir="rtl"] .portrait .badge {
  left: auto;
  right: -22px;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 14px;
}

[dir="rtl"] .tl-item {
  padding: 0 56px 38px 0;
}

[dir="rtl"] .tl-item:last-child {
  padding-bottom: 0;
}

[dir="rtl"] .tl-item::before {
  left: auto;
  right: 8px;
}

[dir="rtl"] .btn svg,
[dir="rtl"] .cta-row .btn-fill svg {
  transform: scaleX(-1);
}

[dir="rtl"] .sec-head h2,
[dir="rtl"] .hero h1 {
  letter-spacing: 0;
}

[ltr] {
  direction: ltr;
}

/* atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 80% at 85% -10%, rgba(179, 130, 63, .10), transparent 55%),
              radial-gradient(90% 70% at -10% 110%, rgba(47, 107, 107, .10), transparent 55%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nav */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 22px 0;
}

header.nav.scrolled {
  background: rgba(246, 241, 231, .86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(145deg, var(--ink), var(--teal));
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.brand b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: .2px;
}

.brand .sub {
  display: block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

[dir="rtl"] .brand .sub {
  letter-spacing: 0;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--brass);
  transition: width .3s;
}

nav a:hover::after {
  width: 100%;
}

.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .74rem;
  letter-spacing: .1em;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: all 0.3s ease;
}

.lang:hover {
  background: var(--ink);
  color: var(--paper);
}

.lang:hover::after {
  display: none;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: .3s;
}

/* hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 170px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer;
}

.btn-fill {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  border: none;
}

.btn-fill:hover {
  transform: translateY(-2px);
  background: var(--teal);
}

.btn-line {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.portrait {
  position: relative;
}

.portrait .frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--ink), var(--teal) 70%, var(--ink-soft));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: rgba(246, 241, 231, .55);
}

.portrait .frame svg {
  width: 46%;
  opacity: .5;
}

.portrait .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait .badge {
  position: absolute;
  left: -22px;
  bottom: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  max-width: 210px;
}

.portrait .badge b {
  font-family: var(--serif);
  font-size: 1.7rem;
  display: block;
  color: var(--brass);
  line-height: 1;
}

.portrait .badge span {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  padding: 16px 0;
  animation: scroll 32s linear infinite;
  width: max-content;
}

.strip-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.strip-track span::after {
  content: "·";
  margin-left: 48px;
  color: var(--brass);
}

[dir="rtl"] .strip-track span::after {
  margin-left: 0;
  margin-right: 48px;
}

@keyframes scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

section {
  position: relative;
  z-index: 1;
  padding: 92px 0;
}

.sec-head {
  margin-bottom: 50px;
  max-width: 620px;
}

.sec-tag {
  font-size: .74rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.about-grid p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: .8;
  padding: 6px 12px 0 0;
  color: var(--brass);
  font-weight: 600;
}

.quick {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, .4);
}

.quick h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.quick .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}

.quick .row:last-child {
  border-bottom: none;
}

.quick .row span {
  color: var(--muted);
}

.quick .row b {
  font-weight: 600;
  text-align: right;
}

#expertise {
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  margin: 0 14px;
}

#expertise .sec-head h2 {
  color: var(--paper);
}

#expertise .sec-tag {
  color: var(--brass-2);
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(246, 241, 231, .12);
  border-radius: 18px;
  overflow: hidden;
}

.exp-card {
  background: var(--ink);
  padding: 34px 26px;
  transition: background .3s;
}

.exp-card:hover {
  background: var(--ink-soft);
}

.exp-card .num {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--brass-2);
  display: block;
  margin-bottom: 18px;
}

.exp-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  margin-bottom: 12px;
  line-height: 1.15;
}

.exp-card p {
  font-size: .9rem;
  color: rgba(246, 241, 231, .7);
}

.timeline {
  position: relative;
  margin-top: 14px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: var(--line);
}

.tl-item {
  position: relative;
  padding: 0 0 38px 56px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brass);
}

.tl-item .yr {
  font-family: var(--serif);
  font-size: .84rem;
  letter-spacing: .18em;
  color: var(--brass);
  font-weight: 600;
  text-transform: uppercase;
}

[dir="rtl"] .tl-item .yr {
  letter-spacing: 0;
}

.tl-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 6px 0 6px;
}

.tl-item p {
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 60ch;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.award {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, .45);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  text-align: left;
}

[dir="rtl"] .award {
  text-align: right;
}

.award:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brass);
}

.award .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(150deg, var(--brass), var(--brass-2));
  color: var(--paper);
}

.award .ic svg {
  width: 22px;
  height: 22px;
}

.award h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 8px;
  line-height: 1.2;
}

.award p {
  font-size: .9rem;
  color: var(--muted);
}

.note {
  margin-top: 28px;
  font-size: .84rem;
  color: var(--muted);
  font-style: italic;
}

#contact {
  background: var(--paper-2);
  border-radius: 32px;
  margin: 0 14px 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.contact-grid h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.contact-grid p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 42ch;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s;
}

.contact-list a:hover {
  padding-left: 8px;
}

[dir="rtl"] .contact-list a:hover {
  padding-left: 0;
  padding-right: 8px;
}

.contact-list a:last-child {
  border-bottom: none;
}

.contact-list .ic {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transition: .25s;
}

.contact-list a:hover .ic {
  background: var(--ink);
  color: var(--paper);
}

.contact-list .ic svg {
  width: 18px;
  height: 18px;
}

.contact-list small {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

[dir="rtl"] .contact-list small {
  letter-spacing: 0;
}

.contact-list b {
  font-weight: 600;
  font-size: 1.02rem;
}

footer {
  text-align: center;
  padding: 46px 0 60px;
  position: relative;
  z-index: 1;
}

footer .brand {
  justify-content: center;
  margin-bottom: 18px;
}

footer p {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 6px;
}
footer p:last-child {
  margin-bottom: 0;
}
footer p a {
  color: var(--brass);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
footer p a:hover {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 40, 43, 0.5);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all 0.3s ease;
  z-index: 10;
}

[dir="rtl"] .modal-close {
  right: auto;
  left: 18px;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.modal-body {
  padding: 40px;
}

.modal-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--brass), var(--brass-2));
  color: var(--paper);
  margin-bottom: 24px;
}

.modal-badge-icon svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
}

[dir="rtl"] .modal-title {
  font-family: var(--serif-ar);
}

.modal-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.modal-meta-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

[dir="rtl"] .modal-meta-item span {
  letter-spacing: 0;
}

.modal-meta-item b {
  font-size: 0.95rem;
  color: var(--ink);
}

/* Lightbox modal image */
.modal-image-container {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

/* Responsive Overrides */
@media(max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .portrait {
    max-width: 360px;
    margin: 0 auto;
  }
  .exp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .awards-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav ul {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  
  /* Modern Drawer Style for Mobile Menu */
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    right: 24px;
    left: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    gap: 18px;
    box-shadow: var(--shadow);
  }
}

@media(max-width: 560px) {
  .exp-grid,
  .awards-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 140px 0 70px;
  }
  section {
    padding: 64px 0;
  }
  #expertise,
  #contact {
    margin: 0 8px;
    border-radius: 24px;
  }
  .modal-body {
    padding: 30px 20px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}
