:root {
  --bg: #f5efe2;
  --bg2: #efe7d8;
  --ink: #1f2a27;
  --accent: #c4673f;
  --accent-d: #a04c28; /* small text: passes AA on the cream background */
  --muted: #55554f;
  --line: #d8cfbe;
  --serif: "Lora", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
}
html[lang="ar"] {
  --serif: "Amiri", "Lora", serif;
  --sans: "Tajawal", system-ui, sans-serif;
}
html[lang="ar"] .en,
html[lang="en"] .ar { display: none; }
/* letter-spacing and italics break Arabic script */
html[lang="ar"] * { letter-spacing: 0 !important; font-style: normal !important; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.5; }

* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--muted); font: 300 17px/1.8 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1340px; margin-inline: auto; padding-inline: 24px; }
h1, h2, h3, .lead, .quote { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 24px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
em { color: var(--accent); }
p + p { margin-top: 20px; }
.caps { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-d); margin-bottom: 16px; }
.lead, .quote { font-style: italic; font-size: 1.35rem; line-height: 1.6; }
.accent { color: var(--accent-d); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.center { text-align: center; max-width: 760px; margin-inline: auto; }
.center > p:not(.lead, .eyebrow) { max-width: 60ch; margin-inline: auto; } /* keep body lines under ~80 characters */
.center.wide { max-width: none; }
.center.wide > p:not(.eyebrow) { max-width: 680px; margin-inline: auto; }
.sec { padding-block: 88px; }
.alt { background: var(--bg2); }
.arch { border-radius: 999px 999px 0 0; object-fit: cover; width: 100%; }
html[lang="ar"] :is(.caps, .eyebrow, .role) { font-size: .95rem; }

.btn { display: inline-block; padding: 16px 32px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font: 500 .8rem var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.btn.ghost, .btn:hover { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn, nav a { transition: background-color .2s, color .2s, border-color .2s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }
html[lang="ar"] .btn { font-size: 1rem; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 14px; }
.logo { width: 260px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; }
nav a, #lang { color: var(--ink); font: 500 .8rem var(--sans); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--accent); }
nav a.cta { border: 1px solid var(--ink); padding: 12px 22px; }
nav a.cta:hover, nav a.cta[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#lang { background: none; border: 0; cursor: pointer; font-family: "Tajawal", "Poppins", sans-serif; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--accent-d); }
html[lang="ar"] nav a { font-size: 1rem; }

/* about */
.hero, .split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero { padding-block: 72px 104px; }
.hero .quote { margin-top: 28px; max-width: 420px; }
.hero .eyebrow { margin-top: 8px; }
.hero .btn { margin-top: 24px; }
.pic { position: relative; max-width: 480px; width: 100%; margin-inline: auto; padding: 14px; border: 1px solid #b9ad98; border-radius: 999px 999px 0 0; }
.pic .arch { aspect-ratio: 4 / 5; }
.stamp { position: absolute; bottom: -36px; inset-inline-start: -52px; width: 170px; background: var(--bg); border-radius: 50%; } /* the PNG is line-art only; the PDF shows it on a solid disc */
.list { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.list li { border-top: 1px solid var(--line); padding-block: 18px; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.list li::before { content: "◆"; color: var(--accent); font-size: .6em; margin-inline-end: 20px; vertical-align: middle; }
.split > img { aspect-ratio: 9 / 10; max-width: 565px; margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; counter-reset: n; text-align: start; }
.cards article { background: var(--bg); padding: 32px; counter-increment: n; font-size: .95rem; }
.cards article::before { content: counter(n, lower-roman); display: block; font: italic 1.2rem var(--serif); color: var(--accent); margin-bottom: 8px; }
html[lang="ar"] .cards article::before { content: counter(n, arabic-indic); }
.note { font-size: .8rem; margin-top: 32px; }

/* team */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px; margin-top: 64px; text-align: center; }
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: center; max-width: 920px; margin: 64px auto 0; }
.portrait { background: var(--bg2); overflow: hidden; isolation: isolate; }
/* the photo has a white studio backdrop; multiply lets the arch colour show through so it matches the team portraits */
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; mix-blend-mode: multiply; }
blockquote { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.35; margin-bottom: 24px; }
html[lang="ar"] blockquote { line-height: 1.5; }
.founder .role { color: var(--muted); }
.team img { aspect-ratio: 3 / 4; background: var(--bg2); margin-bottom: 24px; }
.role { font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-d); line-height: 1.6; }

/* contact */
.contact { display: grid; grid-template-columns: 48fr 52fr; }
.contact > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.contact > div { padding: 104px 6vw; background: var(--bg2); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 32px; }
.info { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 400; }
.info svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.info a { color: var(--accent-d); font-weight: 500; text-decoration: none; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-block: 28px; font-size: .85rem; }
.foot img { height: 44px; width: auto; }
.foot .tids { color: var(--ink); font-weight: 500; }
.foot .sep { width: 1px; height: 32px; background: var(--line); }
.foot .links { margin-inline-start: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* the one piece of page-load motion: the hero settles, then the passport stamp lands on the photo */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero > :first-child > *, .pic { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .quote, .pic { animation-delay: .12s; }
  .hero .eyebrow { animation-delay: .2s; }
  .hero .btn { animation-delay: .3s; }
  .stamp { animation: stamp .45s .95s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes stamp { from { opacity: 0; transform: scale(1.5) rotate(-14deg); } }

@media (max-width: 800px) {
  .hero, .split, .contact { grid-template-columns: 1fr; }
  .sec { padding-block: 56px; }
  .contact > div { padding-block: 56px; }
  .pic { max-width: 320px; }
  .stamp { width: 110px; inset-inline-start: -12px; bottom: -28px; }
  .founder { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .portrait { max-width: 220px; margin-inline: auto; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .team > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); margin-inline: auto; } /* centre the odd one out */
  .logo { width: 200px; }
  nav { gap: 6px 18px; }
  nav a { font-size: .72rem; }
  html[lang="ar"] nav a { font-size: .9rem; }
  nav a.cta { padding: 8px 14px; }
  .foot .links { margin-inline-start: 0; }
}
