:root {
  --ink: #f5f2ea;
  --paper: #f2eee5;
  --black: #05070a;
  --black-2: #0c1015;
  --muted: #b8bdc0;
  --cyan: #72d3d0;
  --cyan-2: #18aaa6;
  --line: rgba(245, 242, 234, 0.14);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  background: var(--cyan);
  color: #001514;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
iframe,
svg {
  display: block;
}

section[id] {
  scroll-margin-top: 110px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0.54));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 180px;
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(245, 242, 234, 0.82);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-header a:hover {
  color: var(--cyan);
}

.hero-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 86px) 86px;
}

.showreel-backdrop,
.showreel-backdrop iframe,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.showreel-backdrop {
  z-index: -4;
  background: #000;
}

.showreel-backdrop iframe {
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0.64;
  pointer-events: none;
}

.hero-overlay {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.96), rgba(5, 7, 10, 0.6) 44%, rgba(5, 7, 10, 0.28)),
    linear-gradient(0deg, var(--black) 0%, rgba(5, 7, 10, 0.14) 45%, rgba(5, 7, 10, 0.82) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.032) 0 1px, transparent 1px 4px);
}

.hero-content {
  width: min(980px, 100%);
}

.section-label {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0 0 18px;
}

.hero-content h1 {
  margin: 0;
  font-size: 6.8rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-content h1 span {
  display: block;
  margin-top: 12px;
  color: var(--cyan);
  font-size: 2.45rem;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-cta,
.ghost-cta,
fieldset > button {
  border: 1px solid transparent;
  min-height: 54px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-cta,
fieldset > button {
  background: var(--cyan);
  color: #001514;
}

.ghost-cta {
  border-color: rgba(245, 242, 234, 0.3);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.marquee {
  overflow: hidden;
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 16px 0;
  background: var(--cyan);
  color: #001514;
  font-size: 1.25rem;
  font-weight: 900;
}

.marquee span {
  animation: drift 24s linear infinite;
}

.marquee span::after {
  content: "✦";
  padding-inline-start: 36px;
}

.section-pad {
  padding: clamp(82px, 11vw, 145px) clamp(20px, 6vw, 86px);
}

.section-intro {
  max-width: var(--max);
  margin: 0 auto 44px;
}

.section-intro h2,
.story-copy h2,
.why-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: 5.2rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-intro.compact h2 {
  font-size: 3rem;
  color: var(--cyan);
}

.story-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 92svh;
  display: grid;
  align-items: center;
}

.story-backdrop {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background-image: url('../covers/camera-story-background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.64;
}

.story-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.98), rgba(5, 7, 10, 0.72) 54%, rgba(5, 7, 10, 0.34)),
    linear-gradient(0deg, rgba(5, 7, 10, 0.92), transparent 48%, rgba(5, 7, 10, 0.86));
}

.story-copy {
  width: min(920px, 100%);
  margin-inline-start: auto;
}

.story-copy h2 {
  max-width: 780px;
}

.story-text {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-top: 30px;
  color: rgba(245, 242, 234, 0.82);
  font-size: 1.08rem;
}

.story-text p {
  margin: 0;
}

.services-section,
.work-section,
.clients-section,
.faq-section {
  max-width: calc(var(--max) + 172px);
  margin-inline: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}

.service-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.service-card span,
.faq-list summary span {
  color: var(--cyan);
  font-weight: 900;
}

.service-card h3 {
  font-size: 1.45rem;
  line-height: 1.28;
  margin: 18px 0 0;
}

.service-card ul,
.why-copy ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  color: var(--muted);
  border-top: 1px solid rgba(245, 242, 234, 0.1);
  padding: 10px 0;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(420px, 1fr);
  min-height: 78svh;
  background: var(--paper);
  color: var(--black);
}

.why-visual {
  min-height: 520px;
  overflow: hidden;
  background: #020506;
}

.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.why-copy {
  display: grid;
  align-content: center;
  padding: clamp(54px, 8vw, 110px) clamp(24px, 7vw, 96px);
}

.why-copy h2 {
  font-size: 4.6rem;
  margin-bottom: 34px;
}

.why-copy li {
  position: relative;
  padding: 16px 34px 16px 0;
  border-top: 1px solid rgba(5, 7, 10, 0.14);
  font-size: 1.22rem;
  font-weight: 800;
}

.why-copy li::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 25px;
  width: 12px;
  height: 12px;
  background: var(--cyan-2);
}

.work-section {
  background: #070a0d;
}

.work-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.work-tile {
  min-height: 330px;
  display: grid;
  grid-template-rows: 250px auto;
  border: 1px solid var(--line);
  background: #0d1116;
  overflow: hidden;
}

.work-tile button,
.work-tile .work-player {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 600ms ease, opacity 600ms ease;
}

.work-tile button:hover img,
.work-tile .work-player:hover img {
  transform: scale(1.045);
  opacity: 1;
}

.play-dot {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-end: 16px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--black);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.work-tile > div {
  display: grid;
  align-items: center;
  min-height: 104px;
  padding: 22px;
}

.work-tile h3 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.08;
  text-align: center;
}

.clients-section {
  background: var(--black);
}

.client-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.client-card {
  min-height: 154px;
  border: 1px solid var(--line);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.client-card.logo {
  background: #f5f3ee;
}

.client-card.logo img {
  width: 100%;
  max-width: 230px;
  height: 92px;
  object-fit: contain;
}

.client-card.arabic {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.client-card strong {
  font-size: 1.48rem;
  line-height: 1.1;
  font-weight: 900;
}

.client-card span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  font-size: 1.9rem;
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--cyan);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary span {
  font-size: 0.88rem;
}

.faq-list p {
  color: var(--muted);
  margin: 0;
  max-width: 900px;
  padding: 0 54px 26px 0;
}

.contact-section {
  background: var(--cyan);
  color: #001514;
  padding: clamp(70px, 12vw, 140px) clamp(20px, 6vw, 86px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 0.66fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: center;
}

form {
  background: var(--paper);
  color: var(--black);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

legend {
  grid-column: 1 / -1;
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 10px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

label.wide,
.form-status,
fieldset > button {
  grid-column: 1 / -1;
}

.required-mark {
  color: #b00020;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(5, 7, 10, 0.26);
  background: transparent;
  color: var(--black);
  padding: 12px 0;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan-2);
}

.form-status {
  min-height: 1.5em;
  color: rgba(5, 7, 10, 0.68);
  margin: 0;
  font-weight: 800;
}

.form-status.is-success {
  color: #075f37;
}

.form-status.is-error {
  color: #8b1e1e;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-copy .section-label {
  color: #064442;
}

.contact-copy h2 {
  font-size: 4.5rem;
}

.contact-copy p {
  color: rgba(0, 21, 20, 0.72);
  margin: 18px 0 24px;
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-copy a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 900;
  border-bottom: 1px solid rgba(0, 21, 20, 0.35);
  margin-top: 10px;
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-link {
  color: #001514;
}

footer {
  display: grid;
  place-items: center;
  padding: 28px clamp(20px, 6vw, 86px);
  color: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer p {
  margin: 0;
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  z-index: 55;
  inset-inline-end: 22px;
  inset-block-end: 22px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: #001514;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.mobile-bar {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
}

.modal-card {
  position: relative;
  width: min(1040px, 100%);
  background: #05070a;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.modal-head button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 1.7rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-direct {
  display: none;
  position: absolute;
  inset-inline-start: 16px;
  inset-block-end: 16px;
  z-index: 3;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--cyan);
  color: #001514;
  font-weight: 900;
}

.video-direct.is-visible {
  display: inline-flex;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(360px); }
}

@media (max-width: 1180px) {
  .service-grid,
  .work-wall,
  .client-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content h1 span {
    font-size: 1.8rem;
  }

  .section-intro h2,
  .story-copy h2,
  .why-copy h2,
  .contact-copy h2 {
    font-size: 3.45rem;
  }

  .story-backdrop {
    background-attachment: scroll;
  }

  .why-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .why-visual {
    min-height: 360px;
  }

  .service-grid,
  .work-wall,
  .client-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  section[id] {
    scroll-margin-top: 160px;
  }

  .hero-shell {
    padding-top: 176px;
  }

  .brand img {
    width: 158px;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content h1 span {
    font-size: 1.25rem;
  }

  .section-intro h2,
  .story-copy h2,
  .why-copy h2,
  .contact-copy h2 {
    font-size: 2.35rem;
  }

  .section-intro.compact h2 {
    font-size: 2rem;
  }

  .story-section {
    min-height: auto;
  }

  .story-copy {
    margin-inline-start: 0;
  }

  .story-text {
    font-size: 1rem;
  }

  .service-grid,
  .work-wall,
  .client-wall,
  fieldset {
    grid-template-columns: 1fr;
  }

  .service-card,
  .work-tile {
    min-height: auto;
  }

  .work-tile {
    grid-template-rows: 230px auto;
  }

  label.wide,
  .form-status,
  fieldset > button {
    grid-column: auto;
  }

  .floating-whatsapp {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    z-index: 60;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--cyan);
    color: #001514;
    font-weight: 900;
  }

  .mobile-bar a {
    min-height: 50px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 10px 8px;
    border-inline-end: 1px solid rgba(0, 21, 20, 0.2);
  }

  footer {
    padding-bottom: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .showreel-backdrop iframe {
    display: none;
  }
}
