:root {
  --bg: #06050a;
  --night: #0c0a12;
  --panel: rgba(18, 16, 26, 0.72);
  --gold: #d7b56a;
  --gold-2: #f4e2b0;
  --gold-deep: #9a7435;
  --ink: #f8f2e6;
  --muted: #b8ae9c;
  --line: rgba(215, 181, 106, 0.2);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(215, 181, 106, 0.1), transparent 46%),
    radial-gradient(900px 520px at -10% 20%, rgba(88, 70, 160, 0.12), transparent 42%),
    linear-gradient(180deg, #08070d 0%, #06050a 40%, #0a0810 100%);
  font-family: "Tajawal", "Outfit", sans-serif;
  line-height: 1.85;
}

body[dir="ltr"] { font-family: "Outfit", "Tajawal", sans-serif; }

a, button, .text-link { color: inherit; font: inherit; }
a { text-decoration: none; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-band,
.section,
.contact-section,
.footer { position: relative; }

.hero-band {
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(700px 380px at 88% 8%, rgba(244, 226, 176, 0.16), transparent 50%),
    radial-gradient(560px 360px at 8% 92%, rgba(120, 92, 210, 0.12), transparent 48%),
    linear-gradient(165deg, #141018 0%, #08070d 48%, #0d0b14 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  pointer-events: none;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: -90px;
  left: 12%;
  background: rgba(215, 181, 106, 0.2);
}

.orb-b {
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  background: rgba(92, 78, 190, 0.16);
}

.orb-c {
  width: 180px;
  height: 180px;
  top: 38%;
  right: 38%;
  background: rgba(244, 226, 176, 0.08);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 16%, #fff, transparent),
    radial-gradient(1px 1px at 28% 34%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 74% 14%, var(--gold-2), transparent),
    radial-gradient(1px 1px at 86% 40%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 48% 68%, rgba(244,226,176,.6), transparent),
    radial-gradient(1px 1px at 18% 76%, rgba(255,255,255,.28), transparent),
    radial-gradient(1.4px 1.4px at 62% 82%, rgba(244,226,176,.45), transparent);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,.42) 100%);
}

.nav,
.hero,
.section,
.footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 5vw 0;
  padding: 12px 18px;
  border: 1px solid rgba(215, 181, 106, 0.18);
  border-radius: 999px;
  background: rgba(8, 7, 13, 0.55);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.brand,
.nav-actions,
.hero-cta,
.card-actions,
.stats,
.contact-list { display: flex; flex-wrap: wrap; }

.brand { align-items: center; gap: 12px; }

.brand-mark,
.mono,
.biz-photo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(244,226,176,.35), transparent 42%),
    linear-gradient(160deg, #2a2214, #120f0a);
  border: 1px solid rgba(244, 226, 176, 0.55);
  color: var(--gold-2);
  font-family: "Cinzel", "Outfit", serif;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: inset 0 0 12px rgba(215,181,106,.18);
}

.biz-photo {
  padding: 0;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-family: "Cinzel", serif; letter-spacing: .14em; font-size: 10px; }

.brand-text small,
.eyebrow,
.card-hint,
.biz-en,
.card-scan,
.fineprint,
.work-meta,
.company-facts span,
.contact-list span { color: var(--muted); }

.nav-links { display: flex; gap: 22px; }

.nav-links a,
.lang-btn,
.text-link {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
}

.nav-links a:hover,
.lang-btn:hover,
.text-link:hover { color: var(--gold-2); }

.nav-actions { align-items: center; gap: 16px; }
.lang-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold-2);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 48px;
  align-items: center;
  padding: 36px 7vw 88px;
}

.seal {
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 106, 0.5);
  box-shadow: 0 0 0 8px rgba(215,181,106,.06);
}

.seal img,
.portrait img,
.office-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait picture,
.office-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.seal img,
.portrait img,
.biz-photo {
  object-position: 48% 6%;
  transform: scale(1.55);
  transform-origin: 48% 10%;
}

.portrait {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 0 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 106, 0.55);
  box-shadow:
    0 0 0 10px rgba(215,181,106,.06),
    0 28px 70px rgba(0,0,0,.4);
}

.office-shot {
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 8px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
  aspect-ratio: 16 / 8;
}

.office-shot img { object-position: center 40%; }

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: .28em;
  font-size: 12px;
  font-family: "Cinzel", "Tajawal", serif;
}

h1, h2, h3, .biz-identity h2 {
  margin: 0;
  font-family: "Amiri", "Tajawal", serif;
  line-height: 1.25;
}

h1 { font-size: clamp(52px, 7vw, 96px); font-weight: 700; }

.name-ar {
  display: block;
  background: linear-gradient(180deg, #fff8e8 10%, #f4e2b0 48%, #d7b56a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(215,181,106,.12);
}

.flourish {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: min(220px, 70%);
  height: 18px;
  margin: 10px 0 6px;
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--gold), transparent);
}

[dir="ltr"] .flourish::before,
[dir="ltr"] .flourish::after { background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.flourish::after {
  flex: 0 0 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: transparent;
}

h1 small,
.role-line {
  display: block;
  margin-top: 6px;
  font-family: "Cinzel", "Outfit", serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold);
}

.role-line {
  margin-top: 18px;
  font-family: "Tajawal", "Outfit", sans-serif;
  letter-spacing: 0;
  font-size: 19px;
}

.lead,
.section-lead,
.panel p { max-width: 640px; color: var(--muted); font-size: 17px; }
.opening { color: var(--ink) !important; font-size: 21px !important; }

.hero-cta { gap: 12px; margin: 30px 0 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-solid {
  background: linear-gradient(145deg, #f7e7b8, #d7b56a 52%, #a57d38);
  color: #1a1408;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(215,181,106,.28);
}

.btn-line {
  border-color: rgba(215,181,106,.4);
  color: var(--ink);
  background: rgba(255,255,255,.03);
}

.stats {
  width: min(100%, 500px);
  padding: 18px 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.stats div { flex: 1; min-width: 90px; text-align: center; }
.stats dd {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold-2);
}
.stats dt { font-size: 13px; }

.card-stage { display: grid; justify-items: center; }
.card-hint { margin: 0 0 16px; font-size: 13px; }

.biz-card {
  width: min(100%, 440px);
  height: 320px;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1600px;
  cursor: pointer;
}

.biz-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.2,.8,.2,1);
}

.biz-card.is-flipped .biz-card-inner { transform: rotateY(180deg); }

.biz-face {
  position: absolute;
  inset: 0;
  padding: 24px 26px 20px;
  border-radius: 8px 28px 8px 28px;
  backface-visibility: hidden;
  overflow: hidden;
  color: #f7f1e4;
  background:
    radial-gradient(circle at 12% 0%, rgba(244,226,176,.2), transparent 34%),
    linear-gradient(165deg, #1b1724 0%, #100e16 55%, #0b0a10 100%);
  border: 1px solid rgba(215, 181, 106, 0.5);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 0 0 8px rgba(215,181,106,.05);
}

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(244, 226, 176, 0.7);
  pointer-events: none;
}

.corner.tl { top: 10px; inset-inline-start: 10px; border-inline-end: 0; border-bottom: 0; }
.corner.tr { top: 10px; inset-inline-end: 10px; border-inline-start: 0; border-bottom: 0; }
.corner.bl { bottom: 10px; inset-inline-start: 10px; border-inline-end: 0; border-top: 0; }
.corner.br { bottom: 10px; inset-inline-end: 10px; border-inline-start: 0; border-top: 0; }

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out infinite;
}

@keyframes shine {
  0%, 58% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

.biz-back {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  text-align: center;
}

.biz-top { display: flex; justify-content: space-between; align-items: center; }
.biz-company,
.biz-back-company {
  color: var(--gold);
  letter-spacing: .22em;
  font-size: 11px;
  font-family: "Cinzel", serif;
}

.biz-identity { margin: 26px 0 14px; text-align: start; }
.biz-identity h2 { font-size: 30px; }
.biz-identity p,
.biz-lines p,
.biz-tagline { margin: 0; color: rgba(246,241,230,.72); }
.biz-rule {
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, transparent, rgba(215,181,106,.55), transparent);
}
.biz-lines { display: grid; gap: 3px; padding: 0; font-size: 13px; }
.qr { width: 118px; height: 118px; padding: 7px; border-radius: 14px; background: #fff; }
.card-actions { align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }

.section, .footer { padding: 92px 7vw; }

.section::before {
  content: "";
  display: block;
  width: 86px;
  height: 10px;
  margin: 0 auto 42px;
  background:
    linear-gradient(90deg, transparent, var(--gold), transparent) center / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 7px 7px no-repeat;
  transform: rotate(0deg);
}

.section-head { margin-bottom: 34px; max-width: 760px; }
.section-head h2, .contact-panel h2 { font-size: clamp(34px, 4.2vw, 56px); }

.about-grid, .contact-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
}

.panel,
.timeline,
.company-facts article,
.products article,
.works article,
.contact-panel,
.services li,
.clients li,
.stack {
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 8px 28px;
  padding: 28px;
  box-shadow: 0 16px 50px rgba(0,0,0,.2);
}

.works article,
.products article,
.company-facts article,
.services li { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }

.works article:hover,
.products article:hover,
.company-facts article:hover,
.services li:hover {
  transform: translateY(-7px);
  border-color: rgba(215,181,106,.5);
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
}

.works article.featured,
.works article:first-child {
  grid-column: 1 / -1;
  min-height: 240px;
  background:
    radial-gradient(circle at 88% 0%, rgba(215,181,106,.2), transparent 34%),
    linear-gradient(165deg, #1b1726, #100e16);
}

.work-index {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "Cinzel", serif;
  letter-spacing: .16em;
}

.timeline { list-style: none; margin: 0; }
.timeline li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.timeline li:first-child { padding-top: 0; }
.timeline li:last-child { padding-bottom: 0; border-bottom: 0; }
.timeline time { color: var(--gold); font-size: 13px; font-family: "Cinzel", serif; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 8px 28px;
  padding: 18px 24px;
}
.faq summary {
  cursor: pointer;
  font-family: "Amiri", "Tajawal", serif;
  font-size: 22px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: inline-start;
  margin-inline-end: 12px;
  color: var(--gold);
  font-family: "Cinzel", serif;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 4px; color: var(--muted); }

.works, .clients, .company-facts, .products, .services {
  display: grid;
  gap: 16px;
}

.company-facts { grid-template-columns: repeat(4, 1fr); }
.company-facts span {
  display: block;
  margin-bottom: 16px;
  letter-spacing: .16em;
  font-size: 12px;
  font-family: "Cinzel", serif;
  color: var(--gold);
}
.company-facts h3, .products h3, .works h3, .services strong { margin: 0 0 8px; font-size: 26px; }
.works h3 a { color: inherit; }
.works h3 a:hover { color: var(--gold-2); }
.products, .works { grid-template-columns: 1fr 1fr; }
.work-meta { margin: 0 0 8px; font-size: 12px; color: var(--gold); }

.clients { grid-template-columns: repeat(4, 1fr); padding: 0; list-style: none; }
.clients li { text-align: center; font-family: "Amiri", serif; font-size: 20px; }

.products p, .works p, .company-facts p { margin: 0; color: var(--muted); }

.services {
  grid-template-columns: 1fr 1fr;
  padding: 0;
  list-style: none;
  counter-reset: service;
}
.services li { counter-increment: service; }
.services li::before {
  content: counter(service, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: .12em;
}

.contact-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(215,181,106,.2), transparent 32%),
    linear-gradient(165deg, #19151f, #100e16);
  box-shadow: 0 0 0 8px rgba(215,181,106,.04), var(--shadow);
}

.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-list a {
  padding: 16px 18px;
  border-radius: 8px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.contact-list a:hover { border-color: rgba(215,181,106,.55); }
.contact-list strong { display: block; }

.footer { padding-top: 0; color: var(--muted); text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f4e2b0, #d7b56a);
  color: #1b1408;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shine { animation: none; }
  .works article,
  .products article,
  .company-facts article,
  .services li { transition: none; }
}

@media (max-width: 900px) {
  .grain { display: none; }
  .nav { margin: 12px 16px 0; }
  .nav-links { display: none; }
  .hero, .about-grid, .contact-panel, .company-facts, .products, .works, .clients, .services, .contact-list {
    grid-template-columns: 1fr;
  }
  .works article.featured,
  .works article:first-child { grid-column: auto; }
  .hero, .section, .footer { padding-left: 20px; padding-right: 20px; }
  .card-stage { order: -1; }
  .portrait { width: min(72vw, 280px); }
}

@media (max-width: 640px) {
  .nav-actions .text-link { display: none; }
  h1 { font-size: 42px; }
  .biz-card { height: 300px; }
  .biz-identity { margin: 18px 0 10px; }
  .biz-identity h2 { font-size: 24px; }
  .seal { width: 62px; height: 62px; }
  .office-shot { aspect-ratio: 16 / 11; }
}
