:root {
  color-scheme: dark;
  --bg: #0a1210;
  --bg-elevated: #101c1a;
  --panel: #152421;
  --text: #f5f2ea;
  --muted: #a8b5ad;
  --gold: #c9a86c;
  --gold-light: #e4d0a0;
  --gold-dark: #a88b4e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(201, 168, 108, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 2px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.75 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: 1480px;
  margin: auto;
  padding: 0 5.5%;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 18, 16, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font: 500 26px/1 'Georgia', 'Times New Roman', serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand small {
  display: block;
  font: 500 9px/1.4 system-ui, sans-serif;
  letter-spacing: 0.5em;
  margin-top: 6px;
  color: var(--gold);
}
.navlinks {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.navlinks a {
  padding: 10px 0;
  position: relative;
}
.navlinks a:hover { color: var(--gold); }
.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.navlinks a:hover::after { width: 100%; }
.nav-controls { display: none; }
.menu-toggle {
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(920px, calc(100svh - 88px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  filter: brightness(0.55) contrast(1.05);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0a1210 0%, rgba(10,18,16,0.92) 32%, rgba(10,18,16,0.55) 60%, rgba(10,18,16,0.25) 100%);
}
.hero > .wrap {
  position: relative;
  z-index: 3;
  padding-top: 100px;
  padding-bottom: 140px;
}
.eyebrow {
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  max-width: 820px;
  font: 400 clamp(68px, 8.2vw, 128px)/0.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.04em;
  margin: 28px 0 24px;
  text-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
  font-weight: 400;
}
.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 28px;
  background: var(--gold);
  color: #0a1210;
  border: 1px solid var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 650;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}
.button:after {
  content: '↗';
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.button:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 168, 108, 0.25);
}
.button:hover:after { transform: translate(4px, -4px); }
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.button.secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--gold);
  color: var(--gold-light);
}
.hero-bottom {
  position: absolute;
  bottom: 36px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 3;
}
.hero-bottom a { color: var(--gold); }
.hero-bottom a:hover { color: var(--gold-light); }

/* Sections */
section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
h2 {
  font: 400 clamp(40px, 4.6vw, 72px)/1.1 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.03em;
  margin: 16px 0 32px;
}
.lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 780px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 860px;
}

/* Cards / Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 40px 32px 48px;
  background: var(--bg-elevated);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.card:hover {
  background: #1a2a26;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  z-index: 2;
}
.num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}
.card h3 {
  font: 400 32px/1.15 Georgia, serif;
  margin: 48px 0 18px;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* Specific sections */
#about {
  background: #f3efe6;
  color: #1a2a24;
}
#about .eyebrow { color: #6b5e3e; }
#about .lead { color: #3d4f48; }
#about .note {
  color: #5a6b62;
  border-top: 1px solid rgba(26,42,36,0.12);
  padding-top: 28px;
  margin-top: 20px;
}
#global-structure .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#global-structure .card h3 { font-size: 28px; }
#global-structure .card .note {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  margin-top: 16px;
}
#focus { background: #0e1a17; }
.statement {
  padding: 140px 0;
  background: linear-gradient(135deg, #d4c4a0 0%, #c9b48a 100%);
  color: #1a2a24;
}
.statement .eyebrow {
  color: #5a4e32;
  margin-bottom: 40px;
}
.statement blockquote {
  font: 400 clamp(38px, 5vw, 76px)/1.15 Georgia, serif;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin: 0;
  font-style: italic;
}
#contact .contact-link {
  display: inline-block;
  color: var(--gold);
  font-size: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid rgba(201,168,108,0.4);
  padding-bottom: 6px;
  transition: border-color 0.25s;
}
#contact .contact-link:hover { border-color: var(--gold); }
#contact a[href='partnerships.html'] {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* Footer */
footer {
  padding: 70px 0 40px;
  background: #070e0c;
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}
.foot p a {
  display: inline-block;
  padding: 6px 0;
  margin-right: 16px;
}
.foot p a:hover { color: var(--gold); }
.arabic {
  font-size: 15px;
  margin-top: 16px;
  color: var(--gold);
}

/* Responsive */
@media (max-width: 1100px) {
  .two { gap: 60px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #global-structure .grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .nav { min-height: 72px; }
  .brand { font-size: 22px; }
  .nav-controls { display: block; }
  .navlinks {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 60px;
    z-index: 90;
    overflow: auto;
  }
  .js .navlinks.open { display: flex; }
  .navlinks a {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .hero { min-height: 720px; }
  .hero > .wrap { padding-top: 70px; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(52px, 12vw, 72px); }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .two { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 80px 0; }
  .statement { padding: 90px 0; }
  .foot { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* Partnership page adjustments */
.partnership-page main.wrap {
  padding-top: 100px;
  padding-bottom: 100px;
}
.partnership-page h1 {
  font: 400 clamp(48px, 6.5vw, 92px)/1.05 Georgia, serif;
  letter-spacing: -0.035em;
  max-width: 980px;
}
.partnership-page .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}
@media (max-width: 760px) {
  .partnership-page .grid { grid-template-columns: 1fr; }
}
