:root {
  color-scheme: light;
  --bg: #f2efe8;
  --bg-soft: #e7e2d8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #fbfaf7;
  --text: #1e2427;
  --muted: #687076;
  --line: rgba(30, 36, 39, 0.14);
  --accent: #9b7652;
  --accent-soft: #d8c5ad;
  --header: rgba(242, 239, 232, 0.78);
  --overlay: rgba(14, 21, 25, 0.52);
  --shadow: 0 24px 70px rgba(35, 39, 42, 0.13);
  --radius-sm: 0.8rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --container: 1240px;
  --font-en: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #292d30;
  --bg-soft: #33383c;
  --surface: rgba(57, 62, 66, 0.74);
  --surface-solid: #353a3e;
  --text: #f4f1ea;
  --muted: #b8bec1;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #d4b18b;
  --accent-soft: #7a6651;
  --header: rgba(41, 45, 48, 0.82);
  --overlay: rgba(8, 13, 16, 0.57);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
html[lang="ar"] body { font-family: var(--font-ar); }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 9999;
  transform: translateY(-160%); padding: .75rem 1rem; border-radius: .6rem;
  background: var(--text); color: var(--bg); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 2.2rem), var(--container)); margin-inline: auto; }
.section { padding: clamp(5.5rem, 10vw, 9rem) 0; }
.section--soft { background: var(--bg-soft); }
.section-head {
  display: grid; grid-template-columns: minmax(0, .75fr) minmax(18rem, 1fr);
  gap: 2rem 5rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.eyebrow {
  margin: 0 0 .8rem; color: var(--accent); font-size: .75rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(3.1rem, 8.5vw, 8.2rem); font-weight: 600; margin-bottom: 1.15rem; }
h2 { font-size: clamp(2.35rem, 5vw, 5rem); font-weight: 560; margin-bottom: 1.15rem; }
h3 { font-size: clamp(1.35rem, 2.3vw, 2.1rem); font-weight: 620; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 1.65vw, 1.35rem); max-width: 42rem; }
.muted { color: var(--muted); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: var(--header); border-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 5.4rem; display: flex; align-items: center; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .78rem; text-decoration: none; font-weight: 800;
  white-space: nowrap; margin-inline-end: auto;
}
.brand-mark {
  display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1;
  border: 1px solid currentColor; border-radius: 50%; font-size: .68rem; letter-spacing: .06em;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--muted); font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.control {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.6rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: .42rem .78rem; text-decoration: none;
  cursor: pointer; transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.control:hover { border-color: var(--accent); transform: translateY(-1px); }
.control svg { width: 1rem; height: 1rem; flex: none; }
.language-control { font-size: .78rem; font-weight: 800; white-space: nowrap; }
.language-control .active { color: var(--accent); }
.theme-label { font-size: .76rem; font-weight: 750; }
.menu-toggle { display: none; padding: .5rem; width: 2.7rem; }
.menu-toggle span { width: 1.05rem; height: 1px; background: currentColor; display: block; margin: 3px auto; }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden;
  background: #30383c; color: #fff;
}
.hero-media-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-media {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%;
  transform: scale(1.035); animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,18,20,.1) 10%, rgba(12,18,20,.28) 45%, rgba(12,18,20,.85) 100%),
              linear-gradient(90deg, rgba(12,18,20,.45), transparent 62%);
}
.hero-content { position: relative; z-index: 2; padding: clamp(8rem, 17vh, 12rem) 0 clamp(3.3rem, 7vh, 5.5rem); }
.hero-kicker { display: flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 2.7rem; height: 1px; background: rgba(255,255,255,.75); }
html[lang="ar"] .hero-kicker { letter-spacing: 0; }
.hero h1 { max-width: 11ch; text-wrap: balance; }
.hero-copy { max-width: 41rem; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.hero-meta { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stat { display: flex; align-items: baseline; gap: .55rem; }
.hero-stat strong { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.hero-stat span { color: rgba(255,255,255,.68); font-size: .82rem; }
.button-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.15rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; border: 1px solid transparent; border-radius: 999px; padding: .78rem 1.25rem;
  font-weight: 800; font-size: .88rem; text-decoration: none; transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: #1d2427; }
.btn--ghost { border-color: rgba(255,255,255,.42); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--outline { border-color: var(--line); }
.btn svg { width: 1.05rem; height: 1.05rem; }
.scroll-cue { position: absolute; z-index: 2; right: 2rem; bottom: 3rem; writing-mode: vertical-rl; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
html[dir="rtl"] .scroll-cue { right: auto; left: 2rem; }

.demo-note {
  border-bottom: 1px solid var(--line); background: var(--surface-solid); color: var(--muted);
  font-size: .78rem; text-align: center; padding: .7rem 1rem;
}

.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: start; }
.signature-line { width: 4.5rem; height: 1px; background: var(--accent); margin: 1.5rem 0; }
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.fact strong { font-size: 1.15rem; }
.fact span { color: var(--muted); font-size: .86rem; text-align: end; }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.85rem, 2vw, 1.45rem);
}
.portfolio-item {
  position: relative; overflow: hidden; min-height: 28rem; border-radius: var(--radius-lg);
  background: var(--bg-soft); box-shadow: var(--shadow); cursor: zoom-in;
}
.portfolio-item:nth-child(1) { grid-column: span 7; min-height: 38rem; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 7; min-height: 35rem; }
.portfolio-item:nth-child(5) { grid-column: span 7; }
.portfolio-item:nth-child(6) { grid-column: span 5; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.15s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.portfolio-item:hover img { transform: scale(1.055); }
.portfolio-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(9,14,16,.78)); }
.portfolio-caption { position: absolute; z-index: 2; inset: auto 1.45rem 1.35rem; color: #fff; }
.portfolio-caption small { display: block; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .35rem; }
.portfolio-caption strong { font-size: clamp(1.35rem, 2.1vw, 2.1rem); line-height: 1.2; }

.destinations { display: flex; flex-wrap: wrap; gap: .65rem; }
.destination {
  border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; color: var(--muted); font-size: .85rem;
}

.collab-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.collab-list { border-top: 1px solid var(--line); }
.collab-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.collab-item span { color: var(--accent); font-weight: 800; }
.collab-item h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.collab-item p { margin-bottom: 0; color: var(--muted); }

.contact-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-panel::before { content: ""; position: absolute; width: 26rem; height: 26rem; border: 1px solid var(--line); border-radius: 50%; inset: -14rem -8rem auto auto; }
html[dir="rtl"] .contact-panel::before { inset: -14rem auto auto -8rem; }
.contact-email { display: inline-block; position: relative; z-index: 1; font-size: clamp(1.4rem, 3.5vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
html[lang="ar"] .contact-email { letter-spacing: 0; direction: ltr; }
.contact-email::after { content: ""; display: block; width: 100%; height: 1px; background: var(--accent); transform-origin: left; transition: transform .35s ease; }
.contact-email:hover::after { transform: scaleX(.55); }
html[dir="rtl"] .contact-email::after { transform-origin: right; }
.instagram-link { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
.instagram-link svg { width: 1.35rem; height: 1.35rem; }

.site-footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 3000; display: none; place-items: center; padding: 1rem;
  background: rgba(10,14,16,.92); backdrop-filter: blur(16px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 85vh; max-width: min(92vw, 1450px); border-radius: 1rem; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 1.4rem; }
html[dir="rtl"] .lightbox-close { right: auto; left: 1rem; }
.lightbox-caption { color: rgba(255,255,255,.75); text-align: center; margin-top: .8rem; }

.legal { min-height: 100svh; padding: 9rem 0 5rem; }
.legal .content { max-width: 52rem; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.error-code { font-size: clamp(6rem, 25vw, 17rem); line-height: .8; font-weight: 700; color: var(--accent-soft); }

@keyframes hero-drift { from { transform: scale(1.035) translate3d(0,0,0); } to { transform: scale(1.095) translate3d(-1.1%, -.8%, 0); } }

@media (max-width: 980px) {
  .nav {
    position: fixed; top: 5.4rem; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: .65rem; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; flex-direction: column; }
  .intro-grid, .collab-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section-head { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 1.25rem), var(--container)); }
  .header-inner { min-height: 4.8rem; gap: .45rem; }
  .brand-name { display: none; }
  .brand-mark { width: 2.15rem; }
  .theme-label { display: none; }
  .control { min-height: 2.45rem; padding: .4rem .65rem; }
  .language-control { font-size: .72rem; }
  .site-header .btn { display: none; }
  .nav { top: 4.8rem; }
  .hero-content { padding-bottom: 2.2rem; }
  .hero h1 { font-size: clamp(3rem, 15.5vw, 5.2rem); }
  .hero-kicker { font-size: .68rem; }
  .scroll-cue { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item, .portfolio-item:nth-child(n) { grid-column: auto; min-height: 28rem; }
  .portfolio-item:nth-child(1), .portfolio-item:nth-child(4) { min-height: 34rem; }
  .contact-panel { grid-template-columns: 1fr; align-items: start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .header-actions { gap: .35rem; }
  .language-control { padding-inline: .55rem; }
  .theme-toggle { width: 2.45rem; padding-inline: .55rem; }
  .menu-toggle { width: 2.45rem; }
  .hero-stat { width: 100%; }
  .button-row .btn { width: 100%; }
}

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