/* About page. Layout and states only — all content comes from about-data.js. */

.about-page {
  --header-h: 65px;            /* replaced at runtime with the measured header height */
  /* Soft sage palette: change these to retint the whole page. */
  --bg-top: #f7f8f3;                     /* off-white */
  --bg-bottom: #dde3d3;                  /* muted sage */
  --accent: #4f5b3a;                     /* deep olive: roadmap line + markers, quote bar, band dividers */
  --ink: #1c2119;                        /* green-tinted near-black text */
  --soft: rgba(28, 33, 25, 0.72);
  --muted-word: rgba(28, 33, 25, 0.16);
  --line: rgba(79, 91, 58, 0.24);        /* olive-tinted dividers */
  --radius: 18px;              /* site radius (buttons, portfolio cards) */
  /* Off-white behind the header strip; sage below the page content. */
  background: linear-gradient(var(--bg-top) 0 var(--header-h), var(--bg-bottom) var(--header-h));
  color: var(--ink);
  overflow-x: clip;
}

/* Light header on the sage palette. */
.about-page #site-header {
  background: rgba(247, 248, 243, 0.72);
  border-bottom-color: var(--line);
}
.about-page .navbar { max-width: 1280px; }
.about-page nav.links a { color: var(--soft); }
.about-page nav.links a:hover { color: var(--ink); }

/* Off-white at the top, easing into muted sage down the length of the page. */
.about-main {
  background: linear-gradient(to bottom, var(--bg-top) 0%, #eef1e8 35%, var(--bg-bottom) 100%);
}

.ab-wrap {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
}

.ab-section { padding: clamp(72px, 10vw, 150px) 0; }

.ab-label {
  margin: 0 0 16px;
  font: 500 12px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.ab-heading {
  margin: 0;
  font: 700 clamp(2.4rem, 4.6vw, 4.4rem)/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
}

/* ---------- Image slot (story) ---------- */

.ab-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #2b2b30;
}

/* The image is shown whole (contain); a 4:5 image fills the frame exactly. */
.ab-media-inner {
  position: absolute;
  inset: 0;
}

.ab-media-inner img,
.ab-media-inner picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ab-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #2b2b30;
  color: rgba(255, 255, 255, 0.55);
  font: 500 13px/1.3 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
}

/* ---------- 0 · Top band ---------- */

.ab-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.ab-mark {
  font: 700 22px/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.ab-band-text {
  font: 500 12px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.ab-band-text[lang="ar"] {
  font: 500 13px/1 'Noto Sans Arabic', 'Space Grotesk', sans-serif;
  letter-spacing: 0;
}

.ab-divider {
  width: 1px;
  height: 16px;
  background: var(--accent);
  opacity: 0.45;
}

/* Companion texts would wrap: show "+971" alone. */
.ab-band.is-compact .ab-band-text,
.ab-band.is-compact .ab-divider { display: none; }

/* ---------- 1 · Opening statement ---------- */

.ab-opening {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 48px 0;
}

.ab-statement {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(2.2rem, 5.6vw, 6rem)/1.04 'Space Grotesk', sans-serif;
  letter-spacing: -0.045em;
}

.ab-word { color: var(--muted-word); }

/* ---------- 2 · Story ---------- */

.ab-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.ab-story-text .ab-heading { margin-bottom: clamp(20px, 2.4vw, 32px); }

.ab-story-text p {
  margin: 0 0 18px;
  max-width: 34em;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.65;
}

.ab-story-media { max-width: 560px; justify-self: end; width: 100%; }

/* ---------- 3 · Founder (quote-led, no image) ---------- */

.ab-founder-figure { margin-block: 0; }

.ab-founder-quote { margin: 0; }

/* The centrepiece: display type across most of the content width, lines balanced. */
.ab-founder-quote p {
  margin: 0;
  max-width: 17em;
  font: 700 clamp(2.4rem, 6vw, 6.6rem)/1.02 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ab-qword { display: inline-block; }

.ab-founder-meta {
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 38em;
}

.ab-founder-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: clamp(20px, 2vw, 28px);
  background: var(--accent);
}

.ab-founder-name {
  margin: 0;
  font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.ab-founder-role {
  margin: 10px 0 20px;
  font: 500 12px/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.ab-founder-bio {
  margin: 0;
  color: var(--soft);
  font-size: 1.15rem;
  line-height: 1.65;
}

/* ---------- 4 · Principles ---------- */

.ab-principles .ab-heading { margin-bottom: clamp(32px, 4vw, 56px); }

.ab-principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.ab-principle-num {
  grid-row: span 2;
  font: 700 clamp(3rem, 6vw, 5.5rem)/0.9 'Space Grotesk', sans-serif;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.ab-principle h3 {
  margin: 0;
  font: 600 clamp(1.3rem, 1.8vw, 1.7rem)/1.15 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

.ab-principle p {
  margin: 0;
  color: var(--soft);
}

/* ---------- 5 · Roadmap ---------- */

.ab-roadmap .ab-heading { margin-bottom: clamp(40px, 5vw, 72px); }

.ab-timeline { position: relative; }

.ab-stages {
  display: grid;
  grid-template-columns: repeat(var(--stages, 3), 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-stage { position: relative; padding-top: 36px; }

.ab-marker {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-top);
}

.ab-stage.is-now .ab-marker { background: var(--accent); }

.ab-stage h3 {
  margin: 0 0 14px;
  font: 700 clamp(1.4rem, 2.2vw, 2rem)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

.ab-stage ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-stage li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  line-height: 1.45;
  overflow-wrap: break-word;
}

/* Track + drawn line, positioned by about.js between the first and last markers. */
.ab-track,
.ab-line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.ab-track { background: var(--line); }
.ab-line { background: var(--accent); transform-origin: 0 0; }

/* ---------- 6 · Closing CTA (same look as the portfolio page) ---------- */

.about-page .closing-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 0 120px;
}

.about-page .closing-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.about-page .closing-cta-copy {
  max-width: 480px;
  width: 100%;
}

.about-page .closing-cta-copy p {
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 1.1rem;
}

/* Site primary button (as the Contact form's submit): ink pill, no gradient. */
.about-page .ab-cta .btn-primary {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-top);
  box-shadow: none;
  font: 600 16px/1 'Space Grotesk', sans-serif;
}

.about-page .ab-cta .btn-primary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-page .closing-cta { display: block; }
  .about-page .closing-cta-copy { margin-top: 24px; }
}

@media (max-width: 767px) {
  .ab-wrap { width: calc(100% - 32px); }

  .ab-band { height: 36px; }
  .ab-mark { font-size: 20px; }

  .ab-story-grid,
  .ab-principles-grid { grid-template-columns: 1fr; }

  /* Image first on mobile. */
  .ab-story-media { order: -1; justify-self: stretch; max-width: none; }

  .ab-principle { grid-template-columns: 1fr; }
  .ab-principle-num { grid-row: auto; }

  /* Roadmap: vertical, line runs down the left through the markers. */
  .ab-stages { grid-template-columns: 1fr; }
  .ab-stage { padding: 0 0 0 36px; }
  .ab-stage h3 { margin-top: -4px; }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
