:root {
  --bg: #f3ede2;
  --surface: rgba(255, 250, 240, 0.7);
  --surface-strong: #fff9ee;
  --surface-dark: #1e2126;
  --text: #1e2329;
  --muted: #5e635c;
  --line: rgba(30, 35, 41, 0.12);
  --accent: #a66a2c;
  --accent-soft: #d6b286;
  --deep: #0e3a43;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(25, 29, 36, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at bottom left, rgba(166, 106, 44, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 58, 67, 0.1), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 22%, #f6efe3 70%, #efe8da 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Newsreader", Georgia, serif;
  letter-spacing: -0.03em;
}

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

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 24px auto 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3px;
  padding: 10px 10px;
  border: 1px solid rgba(14, 58, 67, 0.08);
  border-radius: 22px;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(30, 35, 41, 0.08);
}

.brand-block {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 205px;
  height: auto;
  display: block;
}

.brand-subline {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.2;
  font-style: italic;
  color: var(--deep);
  opacity: 0.82;
  text-align: center;
}

.eyebrow {
  font-size: 1.00rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.main-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  border: 1px solid rgba(14, 58, 67, 0.08);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(30, 35, 41, 0.04);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--deep);
}

.main-nav a.active {
  color: var(--deep);
  font-weight: 800;
}

.topbar-cta-group {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  justify-content: flex-end;
  align-self: flex-end;
  margin-left: auto;
}

.topbar-slogan {
  font-size: 0.90rem;
  line-height: 1.2;
  font-style: italic;
  color: var(--deep);
  text-align: center;
  opacity: 0.82;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-solid {
  background: linear-gradient(135deg, var(--deep), #155865);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(14, 58, 67, 0.24);
}

.button-outline {
  border: 1px solid rgba(14, 58, 67, 0.2);
  background: rgba(255, 255, 255, 1);
  color: var(--deep);
}

.section {
  margin-top: 28px;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
  padding: 56px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(241, 232, 219, 0.74)),
    linear-gradient(120deg, rgba(14, 58, 67, 0.08), transparent 60%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.page-hero {
  margin-top: 24px;
  padding: 48px 56px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(241, 232, 219, 0.74)),
    linear-gradient(120deg, rgba(14, 58, 67, 0.08), transparent 60%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 12ch;
}

.page-hero .lead {
  margin-top: 18px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.contact-hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 106, 44, 0.2), transparent 66%);
}

.hero-copy,
.hero-panel,
.contact-form,
.contact-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 10ch;
  margin-top: 12px;
  font-size: clamp(3rem, 5vw, 5.5rem);
}

.lead {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
}

.lead a {
    font-style: italic;
    text-decoration: underline;
}

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

.hero-panel {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 38, 44, 0.96), rgba(12, 58, 67, 0.9));
  color: var(--white);
}

.stat-card {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.stat-label,
.card-kicker {
  display: inline-block;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-grid p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.hero-panel-action {
  margin-top: 24px;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.section-heading p:last-child {
  color: var(--muted);
}

.section-heading.narrow {
  margin-bottom: 26px;
}

.feature-grid,
.capability-grid,
.pillars {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.capability-card,
.pillar-card,
.experience-card,
.timeline-step,
.profile-card,
.insight-card,
.info-panel {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.leader-photo {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 3px solid rgba(166, 106, 44, 0.18);
  box-shadow: 0 10px 24px rgba(30, 35, 41, 0.1);
}

.feature-card h3,
.capability-card h3,
.pillar-card h3,
.experience-card h3,
.timeline-step h3,
.profile-card h3,
.insight-card h3,
.info-panel h3,
.map-card h3,
.credential-band h3 {
  font-size: 1.5rem;
}

.feature-card p,
.capability-card p,
.pillar-card p,
.experience-card p,
.timeline-step p,
.profile-card p,
.insight-card p,
.info-panel p,
.map-card p,
.credential-band p {
  margin-top: 12px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--deep);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.stacked-panels {
  display: grid;
  gap: 18px;
}

.plain-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 10px;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sector-section .pillars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 26px;
}

.map-card,
.credential-band {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 248, 236, 0.8));
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.map-grid span {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 58, 67, 0.08), rgba(166, 106, 44, 0.12));
  font-weight: 700;
  color: var(--deep);
  text-align: center;
}

.experience-cards {
  display: grid;
  gap: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.project-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 34px rgba(30, 35, 41, 0.08);
}

.project-photo {
  position: relative;
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    radial-gradient(circle at top right, rgba(166, 106, 44, 0.38), transparent 34%),
    linear-gradient(135deg, #d9e4e7, #8ca8af);
  color: var(--white);
}

.project-photo-masar {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/masar.jpg") center/cover no-repeat;
}

.project-photo-mia {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/Museum.jpg") center/cover no-repeat;
}

.project-photo-lusail {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/lusail.webp") center/cover no-repeat;
}

.project-photo-alsadd {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/alsaad.webp") center/cover no-repeat;
}

.project-photo-centerblock {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/CenterBlock.jpg") center/cover no-repeat;
}

.project-photo-maaden {
  background:
    linear-gradient(180deg, rgba(14, 58, 67, 0.08), rgba(14, 58, 67, 0.82)),
    url("images/maaden.jpeg") center/cover no-repeat;
}

.project-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body {
  padding: 24px 28px 28px;
}

.project-body h3 {
  font-size: 2rem;
}

.project-location {
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--deep);
}

.project-lead {
  margin-top: 14px;
  margin-bottom: 12px;
  color: var(--deep);
}

.experience-note,
.experience-disclaimer {
  margin-top: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(166, 106, 44, 0.14);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
}

.credential-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 22px;
  margin-top: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  background:
    linear-gradient(140deg, rgba(14, 58, 67, 0.96), rgba(24, 78, 88, 0.92)),
    radial-gradient(circle at top left, rgba(214, 178, 134, 0.18), transparent 35%);
  color: var(--white);
}

.contact-section .eyebrow,
.contact-section .card-kicker {
  color: var(--accent-soft);
}

.contact-section h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.contact-section p,
.contact-points p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-points {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-form {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.honeypot-field {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.turnstile-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
  margin-top: 4px;
}

.form-actions > .button {
  flex: 0 0 auto;
}

.turnstile-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.form-note {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffe7a8;
  text-align: left;
}

.form-note.is-visible {
  display: block;
}

.contact-form .button {
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--deep), #155865);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 36px rgba(14, 58, 67, 0.16);
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.site-footer .eyebrow,
.site-footer a {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 12px;
  text-align: right;
}

.site-copyright {
  margin: 10px 6px 0;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 58, 67, 0.58);
  backdrop-filter: blur(6px);
}

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

.modal-dialog {
  width: min(960px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(20, 26, 32, 0.28);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(14, 58, 67, 0.08);
}

.modal-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.modal-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 58, 67, 0.08);
  color: var(--deep);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  min-height: 70vh;
}

.modal-body iframe {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
}

@media (max-width: 1120px) {
  .hero,
  .split-section,
  .experience-layout,
  .contact-section,
  .credential-band {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .four-up,
  .sector-section .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: center;
  }

  .desktop-cta {
    width: 100%;
  }

  .topbar-cta-group {
    width: 100%;
    align-items: stretch;
  }

  .topbar-slogan {
    text-align: center;
  }

  .brand {
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 180px;
  }

  .brand-subline {
    text-align: center;
  }

  .capability-grid,
  .three-up,
  .two-up,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    justify-self: start;
  }

  .hero,
  .page-hero,
  .section {
    padding: 28px;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
    margin-top: 10px;
  }

  .topbar,
  .hero,
  .section {
    border-radius: 22px;
  }

  .timeline,
  .four-up,
  .sector-section .pillars,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    text-align: left;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-header {
    padding: 18px 18px 14px;
  }

  .modal-body,
  .modal-body iframe {
    min-height: 72vh;
    height: 72vh;
  }
}
