/* hamdanakram.com - main stylesheet (Arab-art inspired) */

/* Self-hosted Jameel Noori Nastaleeq, lazy-loaded via unicode-range */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/JameelNooriNastaleeq.woff2") format("woff2"),
       url("../fonts/JameelNooriNastaleeq.woff") format("woff");
  unicode-range:
    U+0600-06FF,   /* Arabic */
    U+0750-077F,   /* Arabic Supplement */
    U+08A0-08FF,   /* Arabic Extended-A */
    U+FB50-FDFF,   /* Arabic Presentation Forms-A */
    U+FE70-FEFF,   /* Arabic Presentation Forms-B */
    U+200C-200F;   /* ZWJ, ZWNJ, LRM, RLM */
}


:root {
  /* Royal purple + gold palette */
  --bg: #1A0B2E;
  --bg-elev: #2A1247;
  --bg-soft: #3A1A60;
  --ink: #F6EFD7;
  --ink-mute: #D4C9B0;
  --ink-faint: #9A8DAE;

  --line: #4A2F6F;
  --line-warm: #5A4A2A;

  --gold: #E8C547;        /* gold leaf */
  --gold-deep: #C19A2E;
  --gold-soft: #F2DD8C;

  --purple-light: #6B2D8E;  /* royal accent */
  --purple-deep: #1A0B2E;

  --jade: #2A7864;
  --jade-deep: #1B4D3E;

  --ruby: #B33A3A;
  --terracotta: #C97064;

  --parchment: #F4ECD8;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 48px);

  --serif: "Cormorant Garamond", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --arabic: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  --arabic-line: 2.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Animations ---------- */
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-slow-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-y-large { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-24px) scale(1.03); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
  0%,100% { filter: drop-shadow(0 0 6px rgba(232,197,71,.35)); }
  50% { filter: drop-shadow(0 0 22px rgba(232,197,71,.7)); }
}
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes drift-x {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated background ornaments behind content */
.bg-art {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-art .orb {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .35;
}
.bg-art .orb-1 { top: -10%; left: -8%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(107,45,142,.55), transparent 70%);
  animation: drift-x 18s ease-in-out infinite; }
.bg-art .orb-2 { bottom: -12%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,197,71,.25), transparent 70%);
  animation: drift-x 22s ease-in-out infinite reverse; }
.bg-art .orb-3 { top: 30%; right: 12%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(58,26,96,.7), transparent 70%);
  animation: float-y-large 14s ease-in-out infinite; }

.bg-art .mandala {
  position: absolute; pointer-events: none;
  opacity: .14;
}
.bg-art .mandala svg { width: 100%; height: 100%; }
.bg-art .m-1 { top: 6%; right: 4%; width: 320px; height: 320px;
  animation: spin-slow 90s linear infinite; }
.bg-art .m-2 { bottom: 8%; left: 4%; width: 380px; height: 380px;
  animation: spin-slow-reverse 110s linear infinite; }
.bg-art .m-3 { top: 50%; left: 38%; width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  animation: spin-slow 140s linear infinite; opacity: .08; }

@media (prefers-reduced-motion: reduce) {
  .bg-art .orb, .bg-art .mandala { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* Subtle starfield + royal vignette */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232,197,71,.08), transparent 45%),
    radial-gradient(circle at 82% 88%, rgba(107,45,142,.18), transparent 50%),
    radial-gradient(1px 1px at 20% 30%, rgba(246,239,215,.18) 1px, transparent 2px),
    radial-gradient(1px 1px at 70% 70%, rgba(246,239,215,.15) 1px, transparent 2px),
    radial-gradient(1px 1px at 90% 20%, rgba(246,239,215,.1) 1px, transparent 2px),
    radial-gradient(1px 1px at 35% 80%, rgba(232,197,71,.2) 1px, transparent 2px);
  background-attachment: fixed;
}
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.15;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1em; color: var(--ink-mute); }
.lede { font-size: 1.2rem; color: var(--ink); font-style: italic; font-family: var(--serif); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .76rem;
  color: var(--gold);
  font-weight: 500;
}
hr {
  border: 0;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'><g fill='none' stroke='%23E8C547' stroke-width='1' opacity='.7'><path d='M0 12 H80'/><path d='M120 12 H200'/><circle cx='100' cy='12' r='5'/><circle cx='100' cy='12' r='9'/><path d='M91 12 L100 3 L109 12 L100 21 Z'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  margin: 3rem 0;
}

/* Multilingual salam strip */
.salam {
  background: linear-gradient(90deg, transparent, rgba(232,197,71,.1), transparent);
  border-bottom: 1px solid rgba(232,197,71,.2);
  padding: 8px 0;
  font-size: .85rem;
  color: var(--gold-soft);
  text-align: center;
  letter-spacing: .04em;
  font-family: var(--sans);
}
.salam .ar { font-family: var(--arabic); font-size: 1.2em; vertical-align: middle; line-height: 2; }
.salam span + span::before {
  content: " · ";
  color: var(--ink-faint);
  margin: 0 6px;
}

/* layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section + .section::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 220px; height: 26px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 26'><g fill='none' stroke='%23E8C547' stroke-width='.8' opacity='.6'><path d='M0 13 H85'/><path d='M135 13 H220'/><path d='M110 4 L119 13 L110 22 L101 13 Z' fill='%23E8C547' fill-opacity='.15'/><circle cx='110' cy='13' r='12'/><circle cx='110' cy='13' r='3' fill='%23E8C547' fill-opacity='.4'/></g></svg>");
  background-repeat: no-repeat;
}
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(232,197,71,.18);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img {
  height: 52px; width: auto; max-width: 220px; object-fit: contain;
  animation: pulse-glow 6s ease-in-out infinite;
}
.brand .name-text { display: none; } /* logo image carries the name */
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--ink-mute); font-size: .96rem; font-weight: 400;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0B1320 !important; padding: 9px 18px; border-radius: 999px;
  font-weight: 600 !important; font-family: var(--sans) !important; font-size: .92rem !important;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(232,197,71,.3);
}
.nav-cta:hover { box-shadow: 0 6px 20px rgba(232,197,71,.5); }
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
@media (max-width: 920px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--bg-elev);
    padding: 16px var(--pad);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem;
  font-family: var(--sans);
  transition: transform .1s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0B1320;
  box-shadow: 0 6px 18px rgba(232,197,71,.25);
}
.btn-primary:hover { color: #0B1320; box-shadow: 0 10px 26px rgba(232,197,71,.45); }
.btn-ghost { border-color: rgba(232,197,71,.4); color: var(--gold-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(232,197,71,.06); }
.btn-link { background: transparent; color: var(--gold); padding: 0; }
.btn-link:hover { color: var(--gold-soft); }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 720px; height: 720px;
  background:
    radial-gradient(closest-side, rgba(232,197,71,.18), transparent 65%),
    radial-gradient(closest-side, rgba(42,120,100,.10), transparent 80%);
  filter: blur(8px); pointer-events: none;
}
/* Decorative geometric mandala bottom-left */
.hero::after {
  content: "";
  position: absolute; bottom: -160px; left: -160px;
  width: 480px; height: 480px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23E8C547' stroke-width='.5' opacity='.5'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='70'/><circle cx='100' cy='100' r='50'/><circle cx='100' cy='100' r='30'/><polygon points='100,10 117,55 165,60 130,95 145,140 100,115 55,140 70,95 35,60 83,55'/><polygon points='100,30 110,65 145,70 118,93 128,128 100,110 72,128 82,93 55,70 90,65'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .6;
  pointer-events: none;
}
.hero .arabic-name {
  font-family: var(--arabic); color: var(--gold);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  margin-bottom: 14px;
  letter-spacing: .04em;
  direction: rtl;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold-soft) 35%, var(--gold) 50%, var(--gold-soft) 65%, var(--gold-deep) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
.hero h1 .accent { color: var(--gold); font-style: italic; font-weight: 300; }
.hero .tagline { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); max-width: 56ch; line-height: 1.55; }
.hero .subline { color: var(--ink-mute); margin-bottom: 2rem; max-width: 56ch; font-style: italic; font-family: var(--serif); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 8px;
}
.cert {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-elev); border: 1px solid rgba(232,197,71,.25);
  border-radius: 999px; padding: 6px 14px; font-size: .8rem; color: var(--ink-mute);
  font-family: var(--sans);
}
.cert::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* Couplet (poetry) */
.couplet {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  position: relative;
}
.couplet::before, .couplet::after {
  content: "";
  display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,197,71,.5), transparent);
  margin: 24px auto;
  width: 60%;
}
.couplet .ar {
  display: block; font-family: var(--arabic);
  color: var(--gold);
  font-size: 1.4em; line-height: 1.7;
  font-style: normal;
  margin-bottom: 16px;
}
.couplet cite { display: block; font-style: normal; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 12px; font-family: var(--sans); }

/* Ghazal (multi-couplet poem) */
.ghazal {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  background:
    linear-gradient(160deg, rgba(58,26,96,.55), rgba(26,11,46,.85));
  border: 1px solid rgba(232,197,71,.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(232,197,71,.15);
  overflow: hidden;
}
.ghazal::before, .ghazal::after {
  content: "";
  position: absolute; width: 220px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23E8C547' stroke-width='.4' opacity='.55'><circle cx='50' cy='50' r='44'/><circle cx='50' cy='50' r='32'/><polygon points='50,8 60,33 86,33 65,50 75,80 50,62 25,80 35,50 14,33 40,33'/><polygon points='50,20 56,38 76,38 60,50 68,70 50,58 32,70 40,50 24,38 44,38'/></g></svg>");
  background-size: contain; background-repeat: no-repeat;
  pointer-events: none;
}
.ghazal::before { top: -60px; left: -60px; opacity: .35; animation: spin-slow 80s linear infinite; }
.ghazal::after { bottom: -60px; right: -60px; opacity: .35; animation: spin-slow-reverse 100s linear infinite; }

.ghazal-title {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: .02em;
}
.ghazal-meta {
  text-align: center;
  color: var(--ink-faint);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.ghazal-urdu {
  font-family: var(--arabic);
  direction: rtl; text-align: right;
  color: var(--gold-soft);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: var(--arabic-line);
  margin: 0 0 28px;
  position: relative;
}
.ghazal-urdu .sher {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid rgba(232,197,71,.18);
}
.ghazal-urdu .sher:last-child { border-bottom: 0; }
.ghazal-urdu .sher .misra { display: block; padding: 8px 0; }
.ghazal-urdu .signature {
  display: block; text-align: center; margin-top: 28px;
  font-size: 1.8rem; color: var(--gold);
  letter-spacing: .04em; line-height: 2.4;
}
.ghazal-en {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px dashed rgba(232,197,71,.25);
  font-family: var(--serif);
  font-style: normal;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.8vw, 1.35rem);
  line-height: 2;
  letter-spacing: .005em;
}
.ghazal-en p { margin-bottom: 22px; padding-left: 8px; }
.ghazal-en p::before { content: "❖"; color: var(--gold); margin-right: 12px; font-style: normal; opacity: .8; }
.ghazal-toggle {
  display: inline-block; margin-top: 18px;
  background: transparent; border: 1px solid rgba(232,197,71,.4);
  color: var(--gold-soft); font-family: var(--sans); font-size: .85rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  letter-spacing: .15em; text-transform: uppercase;
  transition: all .2s ease;
}
.ghazal-toggle:hover { background: rgba(232,197,71,.1); color: var(--gold); }

/* Cards */
.card {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.15);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
  position: relative;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  opacity: .35;
}
.card:hover { border-color: rgba(232,197,71,.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; color: var(--ink); }
.card .meta { color: var(--ink-faint); font-size: .85rem; }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-size: .76rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(232,197,71,.08); color: var(--gold-soft); border: 1px solid rgba(232,197,71,.2);
  font-family: var(--sans);
}

/* Executive switcher */
.switcher .tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.switcher .tab {
  background: transparent; border: 1px solid rgba(232,197,71,.25);
  color: var(--ink-mute); padding: 10px 18px; border-radius: 999px;
  cursor: pointer; font-family: var(--serif); font-size: 1.02rem; font-weight: 500;
  transition: all .15s ease;
  letter-spacing: .01em;
}
.switcher .tab:hover { color: var(--gold); border-color: var(--gold); }
.switcher .tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0B1320; border-color: var(--gold);
}
.switcher .panel {
  display: none;
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.2);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.switcher .panel::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23E8C547' stroke-width='.4' opacity='.3'><polygon points='50,5 60,32 88,32 65,50 73,80 50,62 27,80 35,50 12,32 40,32'/><circle cx='50' cy='50' r='40'/></g></svg>");
  background-size: contain; background-repeat: no-repeat;
  pointer-events: none;
}
.switcher .panel[data-active="true"] { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .switcher .panel[data-active="true"] { grid-template-columns: 220px 1fr; }
}
.panel-org { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.panel-org-mark {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  display: grid; place-items: center;
  color: var(--gold); font-weight: 600; font-family: var(--serif); font-size: 1.3rem;
  border: 1px solid rgba(232,197,71,.4);
}
.panel-org-name { font-weight: 600; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; }
.panel-org-loc { color: var(--ink-faint); font-size: .9rem; }
.panel-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* Service grid */
.service { display: flex; flex-direction: column; gap: 8px; }
.service .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: grid; place-items: center; color: #0B1320; font-weight: 700; margin-bottom: 8px;
  font-family: var(--serif); font-size: 1.3rem;
}

/* Activities */
.activities {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.activity { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.activity .type {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--gold); font-weight: 600;
}
.activity .date { color: var(--ink-faint); font-size: .82rem; font-family: var(--sans); }

/* Companies */
.companies {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.company {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.15);
  border-radius: var(--radius); padding: 22px;
}
.company .role { color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; }
.company .name { font-family: var(--serif); font-size: 1.3rem; margin: 8px 0; color: var(--ink); }
.company .blurb { color: var(--ink-mute); font-size: .94rem; }

/* Languages strip */
.languages {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 24px;
}
.lang-chip {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(107,45,142,.18); border: 1px solid rgba(232,197,71,.35);
  color: var(--ink); font-family: var(--serif); font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.lang-chip .label { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .15em; font-family: var(--sans); }
.lang-chip .ar { font-family: var(--arabic); font-size: 1.2em; }

/* Testimonials */
.testimonials {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.15);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: -8px; left: 16px;
  font-family: var(--serif); font-size: 5rem; color: var(--gold); opacity: .25;
  line-height: 1;
}
.testimonial blockquote { margin: 0; color: var(--ink); font-size: .98rem; line-height: 1.7; font-family: var(--serif); font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; color: var(--ink-mute); font-size: .9rem; }
.testimonial img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testimonial .name { color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 1.05rem; }

/* Social wall */
.social-wall {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.social-card {
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.18);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
.social-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.social-card .platform {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--gold); font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  font-family: var(--sans);
}
.social-card .platform::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.social-card strong { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }

/* Newsletter */
.newsletter form {
  display: flex; gap: 10px; flex-wrap: wrap; max-width: 540px;
}
.newsletter input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid rgba(232,197,71,.3);
  color: var(--ink); font: inherit;
}
.newsletter button { padding: 14px 24px; border-radius: 999px; }

/* Forms */
.form-grid { display: grid; gap: 18px; max-width: 740px; }
.form-grid .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-grid .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .92rem; color: var(--ink); font-weight: 500; font-family: var(--serif); font-size: 1.05rem; }
.field .help { font-size: .8rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  background: var(--bg-elev); color: var(--ink);
  border: 1px solid rgba(232,197,71,.2); border-radius: 12px;
  padding: 12px 14px; font: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}
.field textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-mute); }
.checkbox input { margin-top: 4px; accent-color: var(--gold); }
.field-error { color: var(--terracotta); font-size: .85rem; }
.form-status { padding: 14px 18px; border-radius: 12px; font-family: var(--serif); }
.form-status.ok { background: rgba(232,197,71,.10); color: var(--gold-soft); border: 1px solid rgba(232,197,71,.5); }
.form-status.err { background: rgba(179,58,58,.12); color: #F0A09C; border: 1px solid rgba(179,58,58,.5); }

/* Filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px;
}
.filter-chip {
  background: transparent; border: 1px solid rgba(232,197,71,.25);
  color: var(--ink-mute); padding: 8px 16px; border-radius: 999px;
  cursor: pointer; font: inherit; font-size: .92rem; font-family: var(--serif);
}
.filter-chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #0B1320; border-color: var(--gold); }

/* FAQ */
details.faq {
  border: 1px solid rgba(232,197,71,.2); border-radius: var(--radius);
  padding: 18px 24px; background: var(--bg-elev);
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary {
  cursor: pointer; font-weight: 500; color: var(--ink); font-family: var(--serif); font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(232,197,71,.15);
  background: linear-gradient(180deg, transparent, rgba(11,19,32,.6));
  padding-block: 60px;
  margin-top: 80px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%);
  width: 200px; height: 28px;
  background: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 28'><g fill='none' stroke='%23E8C547' stroke-width='.6' opacity='.6'><circle cx='100' cy='14' r='10'/><circle cx='100' cy='14' r='5'/><path d='M90 14 L100 4 L110 14 L100 24 Z'/><path d='M0 14 H80'/><path d='M120 14 H200'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.site-footer .grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 760px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 {
  font-family: var(--sans); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--gold); font-weight: 600;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--ink-mute); font-size: .96rem; font-family: var(--serif); }
.site-footer ul a:hover { color: var(--gold); }
.copyright {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(232,197,71,.15);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--ink-faint); font-size: .85rem;
}
.copyright .ar { font-family: var(--arabic); color: var(--gold); margin-left: 6px; }

/* Moments gallery (auto-populated from assets/img/photos/) */
.moments-gallery {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.moment {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(232,197,71,.2);
  background: var(--bg-elev);
  transition: transform .25s ease, box-shadow .25s ease, border-color .15s ease;
}
.moment img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .3s ease;
}
.moment:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.moment:hover img { transform: scale(1.04); }
.moment .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(11,7,28,.85));
  color: var(--ink);
  padding: 30px 16px 14px;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: .01em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.moment:hover .caption { opacity: 1; transform: translateY(0); }
.moment.wide { aspect-ratio: 16 / 10; grid-column: span 2; }
@media (max-width: 720px) {
  .moment.wide { grid-column: auto; }
}

.moments-empty {
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed rgba(232,197,71,.3);
  border-radius: var(--radius);
  color: var(--ink-mute);
  font-family: var(--serif);
  font-size: 1.1rem;
  background: rgba(232,197,71,.03);
}
.moments-empty code {
  background: rgba(232,197,71,.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--gold);
}

/* Hero portrait slot */
.hero-with-portrait {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-with-portrait { grid-template-columns: 1.4fr 1fr; }
}
.hero-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(232,197,71,.3);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--purple-light), var(--purple-deep));
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(26,11,46,.5));
  pointer-events: none;
}

/* Where am I (poetic absence block) */
.where-card {
  position: relative;
  max-width: 820px; margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 56px);
  border: 1px solid rgba(232,197,71,.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(107,45,142,.4), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(232,197,71,.12), transparent 60%),
    linear-gradient(160deg, rgba(58,26,96,.55), rgba(26,11,46,.85));
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  overflow: hidden;
  text-align: center;
}
.where-card::before, .where-card::after {
  content: ""; position: absolute; width: 180px; height: 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23E8C547' stroke-width='.4' opacity='.55'><circle cx='50' cy='50' r='44'/><polygon points='50,8 60,33 86,33 65,50 75,80 50,62 25,80 35,50 14,33 40,33'/></g></svg>");
  background-size: contain; background-repeat: no-repeat;
  pointer-events: none;
}
.where-card::before { top: -50px; left: -50px; opacity: .35; animation: spin-slow 90s linear infinite; }
.where-card::after  { bottom: -50px; right: -50px; opacity: .35; animation: spin-slow-reverse 110s linear infinite; }
.where-card h2 { color: var(--gold); margin-bottom: 24px; }
.where-poem {
  font-family: var(--serif);
  font-style: normal;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 2;
  max-width: 64ch; margin: 0 auto;
  letter-spacing: .005em;
}
.where-poem p { margin: 0 0 14px; color: var(--ink); }
.where-poem p::first-letter { color: var(--gold); font-size: 1.15em; }
.where-poem p.with-photo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin: 28px 0;
  text-align: left;
}
@media (min-width: 720px) {
  .where-poem p.with-photo { grid-template-columns: 1.4fr 1fr; }
  .where-poem p.with-photo:nth-of-type(odd) { direction: ltr; }
  .where-poem p.with-photo:nth-of-type(even) { grid-template-columns: 1fr 1.4fr; }
  .where-poem p.with-photo:nth-of-type(even) .where-photo { order: -1; }
}
.where-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(232,197,71,.3);
  box-shadow: 0 14px 38px rgba(0,0,0,.45);
  filter: saturate(1.05) brightness(1.02);
  transition: transform .4s ease, box-shadow .3s ease;
}
.where-photo:hover { transform: scale(1.03); box-shadow: 0 22px 60px rgba(0,0,0,.6); }

/* Footer wisdom (small couplet above footer) */
.footer-wisdom {
  text-align: center;
  padding: 40px 24px 18px;
  font-family: var(--serif);
  font-style: normal;
  color: var(--ink);
  border-top: 1px solid rgba(232,197,71,.12);
}
.footer-wisdom .ar {
  display: block; font-family: var(--arabic); direction: rtl;
  color: var(--gold-soft); font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  margin-bottom: 18px; font-style: normal; letter-spacing: .02em;
  line-height: 2.4;
}
.footer-wisdom em { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-mute); line-height: 1.75; font-style: normal; }

/* Footer quip (humorous line) */
.footer-quip {
  margin: 28px auto 0;
  text-align: center;
  font-family: var(--serif); font-style: normal;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  max-width: 760px;
  padding: 20px 26px;
  border: 1px dashed rgba(232,197,71,.3);
  border-radius: var(--radius);
  background: rgba(232,197,71,.05);
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 540px; margin-left: auto;
  background: linear-gradient(160deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid rgba(232,197,71,.3);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; color: var(--ink); }
.cookie-banner p { font-size: .92rem; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cookie-actions button {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(232,197,71,.3); background: transparent;
  color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem;
}
.cookie-actions .accept {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0B1320; border-color: var(--gold); font-weight: 600;
}

/* Misc */
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; background: var(--bg-soft); color: var(--ink-mute); border: 1px solid var(--line);
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #0B1320; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* Print */
@media print {
  .site-header, .site-footer, .cookie-banner, .nav-toggle, .hero-actions { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
