/* ---------- Fonts ----------
   Live site uses Exo 2 (free, Google Fonts) as a stand-in for Neo Sans Std.
   When you buy a Neo Sans WEB licence: add @font-face rules for the .woff2
   files here and put "Neo Sans Std" first in --font-heading / --font-body. */

/* ==========================================================================
   THEME — change the colours and fonts here.
   Gold + blue sampled from the "Art of Color Grading" cover.
   ========================================================================== */
:root {
  --color-bg:          #0A1322;  /* page background (deep navy)        */
  --color-surface:     #0F1C30;  /* alternate sections / cards          */
  --color-blue:        #20395F;  /* brand blue (cover title box)        */
  --color-gold:        #FFD275;  /* brand gold (cover title text)       */
  --color-gold-muted:  #C7B24F;  /* secondary gold (cover sky)          */
  --color-text:        #EDE8DC;  /* main text (warm off-white)          */
  --color-text-muted:  #9AA6B8;  /* secondary text                      */
  --color-line:        rgba(237, 232, 220, 0.12);

  --font-heading: "Exo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Exo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic:  "Beirut", "PF DIN Text Arabic", "DIN Next LT Arabic", "Noto Kufi Arabic", sans-serif;  /* for future Arabic text */

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 12vw, 9rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .case-num, .service::before, .stats dd { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 300; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 400; letter-spacing: -0.01em; }
em { font-style: italic; font-weight: 300; color: var(--color-gold); }
:lang(ar), [dir="rtl"] { font-family: var(--font-arabic); }
p { margin: 0 0 1.1em; }
::selection { background: var(--color-gold); color: var(--color-bg); }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-space) 0; position: relative; }
.section-alt { background: var(--color-surface); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }
.section-lead { color: var(--color-text-muted); margin-top: 1.25rem; font-size: 1.05rem; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--color-gold); font-weight: 400; margin-bottom: 1.25rem;
}
.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--color-gold); color: var(--color-bg); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; background: none;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-gold { background: var(--color-gold); color: var(--color-bg); }
.btn-gold:hover { background: var(--color-text); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(237, 232, 220, 0.35); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 19, 34, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--color-line);
}
/* backdrop-filter would trap the fixed full-screen menu inside the header */
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-bg); }
.brand {
  z-index: 2; font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem;
  letter-spacing: 0.32em; margin-right: -0.32em; color: var(--color-text); transition: color .3s;
}
.brand:hover { color: var(--color-gold); }

.nav-toggle {
  z-index: 2; width: 44px; height: 44px; border: 0; background: none;
  display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--color-text); transition: transform .4s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 0; background: var(--color-bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.75rem;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.site-nav.is-open { opacity: 1; visibility: visible; }
.site-nav a { font-family: var(--font-heading); font-weight: 300; font-size: 2rem; transition: color .3s; }
.site-nav a:hover { color: var(--color-gold); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; flex-direction: row; gap: 2.25rem; background: none;
    opacity: 1; visibility: visible;
  }
  .site-nav a {
    font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 400; color: var(--color-text-muted);
  }
  .site-nav a:hover { color: var(--color-text); }
  .site-nav .nav-cta { color: var(--color-gold); border: 1px solid var(--color-gold); padding: .55rem 1.1rem; border-radius: 999px; }
  .site-nav .nav-cta:hover { background: var(--color-gold); color: var(--color-bg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(5rem, 12vh, 8rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--color-bg); }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { object-position: 50% 90%; animation: kenburns 24s var(--ease) both; }
.hero-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-ready { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,19,34,.55) 0%, rgba(10,19,34,.15) 35%, rgba(10,19,34,.55) 70%, var(--color-bg) 100%),
    radial-gradient(ellipse at 30% 80%, rgba(32,57,95,.55), transparent 65%);
}
.hero-content { max-width: var(--container); width: 100%; margin: 0 auto; }
.hero-title { margin: 0; }
.hero-brand {
  display: block; font-weight: 500; line-height: 0.9;
  font-size: clamp(3.6rem, 15vw, 11rem); letter-spacing: 0.12em; margin-right: -0.12em;
}
.hero-name {
  display: block; font-weight: 300; letter-spacing: 0.04em;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem); margin-top: 1.1rem; color: var(--color-text);
}
.hero-tagline {
  font-family: var(--font-heading); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--color-gold); margin: .4rem 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-location {
  position: absolute; right: var(--gutter); bottom: 2rem; margin: 0;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-muted);
  display: none;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid rgba(237,232,220,.4); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--color-gold); border-radius: 2px; animation: scrollcue 2.2s var(--ease) infinite;
}
@media (min-width: 860px) {
  .hero-location { display: block; }
}

.hero-in { opacity: 0; transform: translateY(24px); animation: rise 1.2s var(--ease) var(--d, 0s) forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Work ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-btn {
  border: 1px solid var(--color-line); background: none; border-radius: 999px;
  padding: 0.45rem 1rem; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-text-muted); transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--color-text); border-color: rgba(237,232,220,.35); }
.filter-btn[aria-pressed="true"] { background: var(--color-gold); color: var(--color-bg); border-color: var(--color-gold); }

.work-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .project.is-featured { grid-column: span 2; }
}
.project { margin: 0; }
.project[hidden] { display: none; }
.project-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
}
.project-btn:disabled { cursor: default; }
.project-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,210,117,.16), transparent 60%),
    linear-gradient(135deg, var(--color-blue), var(--color-surface));
}
.project.is-featured .project-media { aspect-ratio: 16 / 9; }
.project-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.project-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,19,34,.7));
  transition: opacity .6s var(--ease);
}
.project-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 300; letter-spacing: .02em; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: rgba(237,232,220,.55); padding: 1rem; text-align: center;
}
.project-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,210,117,.95); color: var(--color-bg);
  transform: scale(.8); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.project-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.project-soon {
  position: absolute; right: .75rem; top: .75rem; z-index: 2;
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(10,19,34,.7); color: var(--color-text-muted);
}
.project-btn:not(:disabled):hover .project-media img,
.project-btn:not(:disabled):focus-visible .project-media img { transform: scale(1.05); }
.project-btn:not(:disabled):hover .project-play,
.project-btn:not(:disabled):focus-visible .project-play { transform: scale(1); opacity: 1; }
@media (hover: none) { .project-btn:not(:disabled) .project-play { opacity: 1; transform: scale(.85); } }

.project-info { padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.project-title { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.project-meta { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-gold-muted); white-space: nowrap; }
.project-desc { color: var(--color-text-muted); font-size: .92rem; margin: .35rem 0 0; }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 1.25rem; }
.case {
  border: 1px solid var(--color-line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(32,57,95,.35), transparent 60%);
  padding: clamp(1.5rem, 4vw, 3rem);
  transition: border-color .5s var(--ease);
}
.case:hover { border-color: rgba(255,210,117,.35); }
.case-top { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-bottom: 1rem; }
.case-num { font-family: var(--font-heading); font-weight: 500; font-size: 1rem; color: var(--color-gold); }
.case-sector { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); }
.case h3 { margin-bottom: 1.75rem; max-width: 36ch; font-weight: 300; font-size: clamp(1.4rem, 2.8vw, 1.85rem); }
.case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .case-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.case-grid dt { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: .5rem; }
.case-grid dd { margin: 0; color: var(--color-text-muted); font-size: .94rem; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 7fr; } }
.about-media { position: relative; max-width: 480px; padding-bottom: 12%; }
.about-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--color-blue), var(--color-surface));
  width: 82%;
}
.about-photo-small {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; margin: 0; z-index: 3;
  overflow: hidden; border-radius: var(--radius); border: 6px solid var(--color-bg);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.about-photo-small img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.about-photo::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,210,117,.35); z-index: 2; pointer-events: none;
}
.about-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 500; font-size: 5rem; color: rgba(255,210,117,.4);
}
.about-text h2 { margin-bottom: 2rem; }
#about-body p { color: var(--color-text-muted); font-size: 1.05rem; }
#about-body p:first-child { color: var(--color-text); font-size: 1.15rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--color-line); }
.stats dt { order: 2; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-text-muted); }
.stats dd { order: 1; margin: 0; font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.4rem, 3.6vw, 2.2rem); color: var(--color-gold); line-height: 1.1; }
.stats div { display: flex; flex-direction: column; gap: .35rem; }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: svc; }
@media (min-width: 860px) { .services { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.service {
  counter-increment: svc; padding: 2rem 0; border-top: 1px solid var(--color-line);
  transition: border-color .5s var(--ease);
}
.service:hover { border-top-color: var(--color-gold); }
.service::before {
  content: "0" counter(svc); display: block; font-family: var(--font-heading); font-weight: 500;
  color: var(--color-gold); font-size: .9rem; letter-spacing: .1em; margin-bottom: 1.5rem;
}
.service h3 { margin-bottom: 1rem; font-weight: 300; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.service p { color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,210,117,.14), transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(32,57,95,.5), transparent 70%);
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-title { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 300; margin-bottom: 2.5rem; }
.contact-email {
  font-family: var(--font-heading); font-weight: 300; font-size: clamp(1.25rem, 3.6vw, 2rem);
  border-bottom: 1px solid rgba(255,210,117,.4); padding-bottom: .2rem; margin-bottom: 2.5rem;
  transition: color .3s, border-color .3s; word-break: break-all;
}
.contact-email:hover { color: var(--color-gold); border-color: var(--color-gold); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-bottom: 2.5rem; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; }
.socials a {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted);
  transition: color .3s;
}
.socials a:hover { color: var(--color-gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); padding: 2rem 0; font-size: .8rem; color: var(--color-text-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-tag { font-family: var(--font-heading); font-style: italic; font-size: .9rem; color: var(--color-gold-muted); }
.footer-inner a:hover { color: var(--color-gold); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1200px, 94vw); max-width: none; max-height: none; padding: 0; border: 0;
  background: transparent; color: var(--color-text); overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 10, 18, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: fadein .4s var(--ease); }
.lightbox-frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-msg { height: 100%; display: grid; place-items: center; padding: 2rem; text-align: center; font-family: var(--font-heading); font-weight: 300; font-size: 1.3rem; color: var(--color-text-muted); }
.lightbox-close {
  position: absolute; right: 0; top: -3rem; width: 44px; height: 44px; border: 0; background: none;
  font-size: 2.2rem; line-height: 1; color: var(--color-text);
}
.lightbox-close:hover { color: var(--color-gold); }
@keyframes fadein { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.noscript { text-align: center; padding: 2rem; }

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

/* ---------- Contact form ---------- */
.contact-form { width: 100%; max-width: 560px; display: grid; gap: 1rem; margin: 0 0 2.5rem; text-align: left; }
.contact-form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: .4rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-muted); }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--color-text);
  background: rgba(15, 28, 48, .7); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: .85rem 1rem; transition: border-color .3s var(--ease);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--color-gold); }
.contact-form .btn { justify-self: center; margin-top: .5rem; }
.form-status { text-align: center; min-height: 1.5em; margin: 0; color: var(--color-gold); }
.form-status.is-error { color: #ff9b8a; }
.hp-field { position: absolute; left: -9999px; }
