:root {
  --bg: #f4efe6;
  --bg-soft: rgba(255, 255, 255, 0.42);
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 252, 247, 0.86);
  --text: #1c1612;
  --muted: #62584d;
  --line: rgba(62, 45, 28, 0.12);
  --gold: #b18a54;
  --shadow: 0 30px 80px rgba(39, 28, 17, 0.08);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at right 20%, rgba(216, 188, 150, 0.16), transparent 26%),
    linear-gradient(180deg, #f7f2ea 0%, #f2ece3 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  opacity: .35;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header,
.section,
.site-footer,
.marquee-wrap {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-top: 18px;
  background: rgba(250, 245, 238, 0.72);
  border: 1px solid rgba(90, 68, 45, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(51, 38, 24, 0.05);
  border-radius: 999px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f3eb, #e8dbc9);
  border: 1px solid rgba(92, 68, 40, 0.08);
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 1.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-ar,
.arabic,
.quote {
  font-family: 'Noto Naskh Arabic', serif;
}

.brand-ar {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.brand-en {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a,
.mobile-panel a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color .25s ease;
}

.nav a:hover,
.mobile-panel a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-panel {
  position: fixed;
  inset: 92px 16px auto;
  z-index: 18;
  display: grid;
  gap: 18px;
  padding: 24px;
  background: rgba(249, 244, 236, 0.96);
  border: 1px solid rgba(90, 68, 45, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all .28s ease;
}

body.menu-open .mobile-panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 56px 0 26px;
}

.hero-copy h1,
.section-heading h2,
.panel-text h2,
.cta-card h2,
.main-card h2 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  line-height: 0.92;
  max-width: 10ch;
}

.hero-copy h1 span {
  color: var(--gold);
}

.eyebrow,
.small-label,
.card-label,
.service-index {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.lead,
.panel-text p,
.service-card p,
.cta-card p,
.main-card p,
.experience-card p,
.metric p,
.footer-copy,
.quote-by {
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #1e1813, #5e4630);
  color: #fffaf5;
  box-shadow: 0 16px 35px rgba(52, 36, 22, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border-color: rgba(75, 57, 36, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.main-card,
.panel,
.service-card,
.experience-card,
.gallery-card,
.metric,
.cta-card {
  background: var(--panel);
  border: 1px solid rgba(86, 64, 41, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.main-card {
  position: relative;
  width: min(100%, 520px);
  min-height: 520px;
  padding: 42px;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.82)),
    radial-gradient(circle at 30% 20%, rgba(214, 190, 158, 0.45), transparent 35%),
    linear-gradient(135deg, #eee3d3, #fcfaf6 55%, #e4d6c4);
}

.main-card::before,
.gallery-card::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(120, 87, 51, 0.08);
  border-radius: 28px;
}

.main-card h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  max-width: 10ch;
}

.floating-stat {
  position: absolute;
  display: grid;
  gap: 10px;
  max-width: 210px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.74);
  border: 1px solid rgba(87, 62, 36, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 38px rgba(42, 31, 19, 0.08);
}

.floating-stat span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
}

.stat-one {
  left: -10px;
  bottom: 80px;
}

.stat-two {
  right: -5px;
  top: 72px;
}

.marquee-wrap {
  overflow: hidden;
  padding: 14px 0 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee {
  display: flex;
  gap: 28px;
  min-width: max-content;
  animation: marquee 22s linear infinite;
  color: #594c3f;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 90px 0 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 26px;
}

.panel,
.service-card,
.experience-card,
.metric,
.cta-card {
  border-radius: var(--radius-xl);
}

.panel {
  padding: 34px;
}

.quote-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(239, 229, 216, 0.75));
}

.quote-mark {
  margin: 0;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
}

.quote {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.8;
  color: #2e241d;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.panel-text h2,
.cta-card h2 {
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
}

.service-grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3,
.experience-card h3 {
  margin: 18px 0 10px;
  font-size: 1.45rem;
  font-weight: 600;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.experience-card {
  min-height: 220px;
  padding: 28px;
}

.experience-card.large {
  grid-row: span 2;
  min-height: 458px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.76)),
    radial-gradient(circle at top right, rgba(214, 190, 158, 0.26), transparent 30%),
    #f6efe5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-height: 260px;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(27,18,10,0.46)),
    radial-gradient(circle at top left, rgba(234, 220, 202, 0.9), rgba(187, 154, 118, 0.42) 42%, rgba(83, 60, 38, 0.92) 100%);
  color: #fff9f2;
}

.gallery-card span {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.gallery-card.tall {
  grid-row: span 2;
  min-height: 540px;
}

.gallery-card.wide {
  grid-column: span 2;
}

.metrics {
  padding-top: 24px;
}

.metric {
  padding: 26px;
}

.metric strong {
  display: block;
  margin-bottom: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--gold);
}

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(247,240,230,0.88)),
    #f7f1e7;
}

.contact-stack {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
}

.contact-stack a,
.contact-stack p {
  font-size: 1rem;
  color: #2f241b;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 46px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .cta-card,
  .experience-grid,
  .service-grid,
  .metrics,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 32px;
  }

  .main-card {
    min-height: 420px;
  }

  .gallery-card.tall,
  .gallery-card.wide,
  .experience-card.large {
    grid-row: auto;
    grid-column: auto;
    min-height: 280px;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    border-radius: 26px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .stat-one,
  .stat-two {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin-top: 16px;
    width: 100%;
    max-width: none;
  }

  .hero-visual {
    display: block;
  }

  .main-card {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  .section,
  .site-footer,
  .marquee-wrap {
    width: min(calc(100% - 20px), var(--content));
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 1.45rem;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .section-heading h2,
  .panel-text h2,
  .cta-card h2 {
    font-size: 2.25rem;
  }

  .panel,
  .service-card,
  .experience-card,
  .metric,
  .cta-card,
  .main-card {
    padding: 22px;
    border-radius: 26px;
  }

  .lead {
    font-size: 0.98rem;
  }
}
