:root {
  --navy: #0b3043;
  --navy-2: #16465a;
  --cream: #f8f5ef;
  --paper: #fffdfa;
  --teal: #55d5cf;
  --teal-soft: #dff7f4;
  --lavender: #a88de4;
  --lavender-soft: #eee8fb;
  --line: rgba(11, 48, 67, 0.15);
  --muted: #617884;
  --shadow: 0 28px 80px rgba(11, 48, 67, 0.12);
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 72px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: "Noto Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 18%, rgba(85, 213, 207, 0.11), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(168, 141, 228, 0.11), transparent 26rem);
}

body.modal-open { overflow: hidden; }

button, a { color: inherit; }
a { text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

[dir="ltr"] body {
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3 { font-family: "Manrope", sans-serif; line-height: 1.08; }

.site-header {
  min-height: 88px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  width: 190px;
  height: 48px;
  overflow: hidden;
  position: relative;
  display: block;
  direction: ltr;
}

.brand img {
  width: 200px;
  max-width: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 52px);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.text-button {
  position: relative;
  transition: opacity 180ms ease;
}

.main-nav a::after,
.text-button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

[dir="ltr"] .main-nav a::after,
[dir="ltr"] .text-button::after { right: auto; left: 0; transform-origin: left; }
.main-nav a:hover::after, .main-nav a.active::after, .text-button:hover::after { transform: scaleX(1); }

.header-tools,
.language-switch,
.button-row,
.text-button,
.primary-button {
  display: flex;
  align-items: center;
}

.header-tools { gap: 18px; }
.language-switch { direction: ltr; gap: 2px; }
.language-switch button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 11px/1 "Manrope", sans-serif;
}
.language-switch button.active { color: white; background: var(--navy); }

.header-cta {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: 180ms ease;
}
.header-cta:hover { color: white; background: var(--navy); }
.menu-button { display: none; }

main > section,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
}

.home-hero {
  min-height: min(790px, calc(100vh - 88px));
  padding: clamp(54px, 7vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.kicker {
  margin-bottom: 24px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.kicker span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(85, 213, 207, 0.12);
}
.kicker b { font-weight: 500; }

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(42px, 4.7vw, 70px);
}
.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
}

.button-row { gap: 24px; flex-wrap: wrap; }
.primary-button {
  width: fit-content;
  min-height: 54px;
  padding: 12px 22px;
  justify-content: space-between;
  gap: 44px;
  color: white;
  background: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}
.primary-button:hover { background: var(--navy-2); transform: translateY(-2px); }
.text-button { gap: 20px; font-size: 14px; font-weight: 600; }

.hero-media {
  aspect-ratio: 4 / 4.6;
  min-height: 520px;
  overflow: hidden;
  position: relative;
  background: var(--cream);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 23, 34, 0.52), transparent 48%);
  pointer-events: none;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.media-label {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 2;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  font-size: 12px;
}
.media-label strong { font: 600 12px/1.2 "Manrope", sans-serif; letter-spacing: 0.08em; }

.services-section,
.featured-work,
.about-section,
.case-study {
  padding: clamp(84px, 10vw, 150px) var(--gutter);
  border-top: 1px solid var(--line);
}

.services-section { background: var(--cream); }
.section-intro { max-width: 760px; margin-bottom: clamp(42px, 6vw, 76px); }
.section-intro h2,
.about-grid h2,
.case-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.8vw, 54px);
}
.section-intro > p:last-child { max-width: 560px; color: var(--muted); font-size: 17px; }
.section-intro-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.service-card {
  min-height: 230px;
  padding: 25px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.54);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: span 2;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card:hover {
  z-index: 1;
  transform: translateY(-6px);
  background: white;
  box-shadow: 0 24px 50px rgba(11, 48, 67, 0.09);
}
.service-card > span { color: var(--muted); font: 600 11px/1 "Manrope", sans-serif; }
.service-card h3 { margin-bottom: 9px; font-size: clamp(20px, 1.8vw, 27px); }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.service-accent { background: rgba(255, 253, 250, 0.54); }

.work-preview-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
.preview-card {
  min-height: 330px;
  overflow: hidden;
  position: relative;
  color: white;
  background: var(--navy);
  isolation: isolate;
}
.preview-wide { grid-row: span 2; min-height: 680px; }
.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(2, 20, 30, 0.76), transparent 58%);
}
.preview-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.preview-card:hover video { transform: scale(1.035); }
.preview-card > div,
.preview-index { position: absolute; z-index: 2; }
.preview-index { top: 24px; right: 24px; font: 600 11px/1 "Manrope", sans-serif; }
[dir="ltr"] .preview-index { right: auto; left: 24px; }
.preview-card > div { right: 26px; bottom: 25px; left: 26px; }
.preview-card h3 { margin-bottom: 3px; font: 600 clamp(22px, 2.4vw, 36px)/1.1 "Manrope", sans-serif; letter-spacing: 0; }
.preview-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }

.about-section { background: linear-gradient(125deg, var(--teal-soft), var(--lavender-soft)); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
  gap: clamp(40px, 9vw, 150px);
}
.about-grid > div { max-width: 570px; }
.about-grid p { color: var(--navy-2); font-size: clamp(17px, 1.5vw, 20px); }
.about-grid span { color: var(--muted); font-size: 13px; }

.contact-section {
  max-width: none;
  padding: clamp(92px, 12vw, 180px) var(--gutter);
  text-align: center;
  background: var(--lavender-soft);
}
.contact-section p { margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.contact-section h2 {
  max-width: 850px;
  margin: 0 auto 32px;
  font-size: clamp(36px, 4.8vw, 65px);
}
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.secondary-button {
  min-height: 54px;
  padding: 12px 22px;
  border: 1px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.secondary-button:hover { color: white; background: var(--navy); transform: translateY(-2px); }

.site-footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  font-size: 13px;
}
.brand-footer { width: 142px; height: 38px; }
.brand-footer img { width: 150px; }
.footer-identity p { margin: 8px 0 0; color: var(--muted); }
.footer-contact > p { margin: 0 0 13px; color: var(--navy); font-size: 15px; font-weight: 600; }
.footer-contact { justify-self: end; }
.footer-links { display: flex; align-items: center; gap: 10px; direction: ltr; flex-wrap: wrap; }
.footer-links a {
  min-width: 108px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  text-align: center;
  font: 600 11px/1.4 "Manrope", sans-serif;
  letter-spacing: .08em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.footer-links a:hover { color: white; background: var(--navy); border-color: var(--navy); }
.footer-copy {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  color: var(--muted);
  font: 500 12px/1.4 "Manrope", sans-serif;
  white-space: nowrap;
}

/* Work page */
.work-hero {
  min-height: 520px;
  padding: clamp(72px, 10vw, 150px) var(--gutter);
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  align-items: end;
  gap: 60px;
}
.work-hero h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(45px, 5.5vw, 78px); }
.work-hero > div > p { max-width: 620px; color: var(--muted); font-size: 18px; }

.case-study { max-width: none; }
.case-study > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.case-soft { background: var(--cream); }
.case-heading {
  margin-bottom: clamp(45px, 7vw, 86px);
  display: grid;
  grid-template-columns: 74px 1fr minmax(260px, .72fr);
  align-items: start;
  gap: clamp(22px, 4vw, 66px);
}
.case-number { font: 600 11px/1 "Manrope", sans-serif; }
.case-heading > div > p { margin-bottom: 14px; color: var(--muted); font: 600 11px/1.35 "Manrope", sans-serif; letter-spacing: .07em; }
.case-heading h2 { margin-bottom: 0; }
.case-heading > p { margin: 28px 0 0; color: var(--muted); font-size: 16px; }

.film-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.film-card {
  min-height: 315px;
  padding: 0;
  overflow: hidden;
  position: relative;
  color: white;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  text-align: start;
  isolation: isolate;
}
.film-main { min-height: 648px; grid-row: span 2; }
.film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(2, 20, 30, .76), transparent 54%);
}
.film-card video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.8,.2,1); }
.film-card:hover video { transform: scale(1.03); }
.film-card > div { position: absolute; right: 25px; bottom: 23px; left: 25px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.film-card > div span { font: 600 10px/1 "Manrope", sans-serif; letter-spacing: .07em; }
.film-card > div strong { font: 600 16px/1.4 "Noto Kufi Arabic", sans-serif; }
[dir="ltr"] .film-card > div strong { font-family: "Manrope", sans-serif; }
.film-play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: rgba(255,255,255,.9);
  font: 12px/1 sans-serif;
  backdrop-filter: blur(8px);
}
[dir="ltr"] .film-play { left: auto; right: 22px; }
.film-cinema { width: 100%; aspect-ratio: 16 / 8.1; min-height: 0; }

.gallery-heading {
  margin-top: clamp(70px, 8vw, 110px);
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.gallery-heading h3 { margin: 0; font-size: clamp(25px, 2.8vw, 38px); }
.gallery-heading p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.gallery-heading span { color: var(--muted); font: 600 10px/1 "Manrope", sans-serif; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.photo-card {
  min-height: 0;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--cream);
  cursor: zoom-in;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.photo-card:hover img { transform: scale(1.025); }

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: clamp(20px, 5vw, 72px);
  display: none;
  place-items: center;
  background: rgba(4, 24, 34, .94);
  backdrop-filter: blur(14px);
}
.media-modal.open { display: grid; }
.media-modal video,
.media-modal img { max-width: min(1240px, 100%); max-height: 86vh; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.media-modal img { display: none; }
.media-modal.image-mode img { display: block; }
.media-modal.image-mode video { display: none; }
.modal-close {
  width: 48px;
  height: 48px;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  color: white;
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  font: 300 28px/1 sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 170px 1fr auto; }
  .brand { width: 160px; height: 42px; }
  .brand img { width: 170px; }
  .header-cta { display: none; }
  .home-hero { grid-template-columns: 1fr 1fr; gap: 42px; }
  .hero-media { min-height: 470px; }
  .service-card { grid-column: span 3; }
  .service-card:last-child { grid-column: span 6; }
  .case-heading { grid-template-columns: 54px 1.3fr .7fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; }
  .site-header {
    min-height: 72px;
    grid-template-columns: 138px 1fr auto;
    gap: 12px;
  }
  .brand { width: 136px; height: 36px; }
  .brand img { width: 143px; }
  .menu-button {
    width: 42px;
    height: 42px;
    padding: 12px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
  }
  .menu-button span { width: 100%; height: 1px; background: var(--navy); }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    padding: 30px var(--gutter) 38px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    display: none;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    font-size: 18px;
  }
  .site-header.menu-open .main-nav { display: flex; }
  .language-switch button { width: 31px; height: 31px; font-size: 9px; }
  .home-hero {
    min-height: auto;
    padding-top: 44px;
    padding-bottom: 58px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .kicker { margin-bottom: 17px; font-size: 12px; line-height: 1.65; }
  .hero-copy h1 { max-width: 560px; margin-bottom: 24px; font-size: clamp(29px, 7.7vw, 38px); line-height: 1.55; }
  .button-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .button-row .primary-button,
  .button-row .text-button {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid var(--navy);
    justify-content: center;
    text-align: center;
    font-size: 13px;
  }
  .button-row .text-button::after { display: none; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 4.15; box-shadow: 0 18px 50px rgba(11, 48, 67, 0.11); }
  .media-label { right: 18px; bottom: 18px; left: 18px; }
  .services-section, .featured-work, .about-section, .case-study { padding-block: 64px; }
  .section-intro { margin-bottom: 34px; }
  .section-intro h2, .about-grid h2, .case-heading h2 { font-size: clamp(27px, 7.2vw, 34px); line-height: 1.55; }
  .section-intro > p:last-child { font-size: 15px; }
  .section-intro-row { align-items: flex-start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5), .service-card:last-child { min-height: 150px; padding: 20px; grid-column: auto; }
  .service-card h3 { font-size: 21px; }
  .work-preview-grid { grid-template-columns: 1fr; }
  .preview-card, .preview-wide { min-height: 0; aspect-ratio: 4 / 4.6; grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-section { padding-block: 76px; }
  .contact-section h2 { font-size: clamp(29px, 7.6vw, 37px); line-height: 1.55; }
  .site-footer { padding-block: 38px; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 26px; }
  .footer-contact { justify-self: center; }
  .footer-links { justify-content: center; }
  .footer-copy { grid-column: auto; }
  .work-hero { min-height: 380px; padding-block: 64px; grid-template-columns: 1fr; align-content: center; gap: 22px; }
  .work-hero h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.5; }
  .work-hero > div > p { font-size: 15px; }
  .case-heading { grid-template-columns: 40px 1fr; gap: 18px; }
  .case-heading > p { grid-column: 2; margin-top: 0; }
  .film-grid { grid-template-columns: 1fr; }
  .film-card, .film-main { min-height: 0; aspect-ratio: 4 / 4.5; grid-row: auto; }
  .film-cinema { min-height: 0; aspect-ratio: 4 / 3; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-card { min-height: 0; }
}

@media (max-width: 430px) {
  .site-header { grid-template-columns: 120px 1fr auto; }
  .brand { width: 118px; }
  .brand img { width: 126px; }
  .language-switch button { width: 28px; }
  .home-hero, .services-section, .featured-work, .about-section, .case-study, .work-hero { padding-inline: 18px; }
  .hero-copy h1 { font-size: clamp(28px, 7.6vw, 33px); }
  .hero-lead { font-size: 15px; }
  .button-row { align-items: stretch; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions a { width: 100%; }
  .preview-card, .preview-wide { min-height: 0; }
  .film-card, .film-main { min-height: 0; }
  .film-cinema { min-height: 0; }
  .photo-card { min-height: 0; }
}

@media (max-width: 350px) {
  .button-row { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 102px 1fr auto; }
  .brand { width: 100px; }
  .brand img { width: 108px; }
}

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