/* ═══════════════════════════════════════════════════════════════
   Tariq Al Muhtasib — Strategic Advisory
   Static stylesheet (no framework, no build step)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-white:     oklch(99% 0.004 80);
  --bg-alt:       oklch(94.5% 0.014 78);
  --bg-dark:      oklch(12% 0.022 48);
  --bg:           oklch(99% 0.004 80);
  --bg-warm:      oklch(94.5% 0.014 78);
  --bg-card:      oklch(97% 0.007 80);
  --text:         oklch(14% 0.02 55);
  --text-mid:     oklch(28% 0.018 56);
  --text-light:   oklch(44% 0.014 64);
  --text-dark-on: oklch(95% 0.012 80);    /* warm off-white headlines */
  --text-dark-mid:oklch(82% 0.016 75);    /* soft warm body on dark */
  --accent:       oklch(50% 0.13 38);
  --accent-light: oklch(88% 0.055 55);
  --accent-dark:  oklch(70% 0.12 45);     /* warmer, more saturated clay on dark */
  --rule:         oklch(88% 0.01 76);
  --rule-dark:    oklch(35% 0.018 55);    /* visible warm divider on espresso */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ── Eyebrow / Section labels ────────────────────────────────── */
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.eyebrow-on-dark { color: var(--accent-dark); }

/* ── Section titles ──────────────────────────────────────────── */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 2.5rem;
  color: var(--text);
  max-width: 640px;
}
.section-title-narrow { max-width: 520px; margin-bottom: 3.5rem; }
.section-title-narrow-md { max-width: 480px; margin-bottom: 4rem; }
.section-title-on-dark { color: var(--text-dark-on); max-width: 500px; margin-bottom: 4rem; font-size: clamp(1.9rem, 3.5vw, 2.9rem); }

/* ── Body copy helpers ───────────────────────────────────────── */
.body-copy {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
  font-weight: 400;
}
.on-dark { color: var(--text-dark-on); }
.on-dark-mid { color: var(--text-dark-mid); }

/* ═════════════════════════════════════════════════════════════
   NAV
   ═════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 66px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--rule);
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-mid);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 66px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem 5vw 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; letter-spacing: 0.08em; }
  .nav-toggle { display: flex; }
}

/* ═════════════════════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════════════════════ */
.hero {
  min-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 5vw 56px;
  background: var(--bg-white);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 2.25rem;
  max-width: 640px;
}
.hero-title em { font-style: italic; font-weight: 400; }

.hero-lede { max-width: 560px; margin-bottom: 1.5rem; }
.hero-lede p {
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1.75;
  font-weight: 500;
}
.hero-sub { max-width: 560px; margin-bottom: 2.5rem; }
.hero-sub p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 560px;
}
.hero-meta-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-meta p {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════
   FADE / REVEAL
   ═════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.75s ease both; }
.fade-up-2 { animation: fadeUp 0.75s 0.12s ease both; }
.fade-up-3 { animation: fadeUp 0.75s 0.24s ease both; }
.fade-up-4 { animation: fadeUp 0.75s 0.38s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═════════════════════════════════════════════════════════════
   WHO FOR
   ═════════════════════════════════════════════════════════════ */
.who-for {
  padding: 72px 5vw 110px;
  background: var(--bg-alt);
}
.list-row {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
.list-row-last { border-bottom: 1px solid var(--rule); }
.list-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.7;
  padding-top: 0.05rem;
  min-width: 22px;
}
.list-row p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ═════════════════════════════════════════════════════════════
   AGENTIC AI
   ═════════════════════════════════════════════════════════════ */
.agentic {
  padding: 120px 5vw;
  background: var(--bg-white);
}
.ai-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  margin-bottom: 4rem;
}
@media (max-width: 700px) {
  .ai-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pull-quote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin: 0 0 5rem;
  max-width: 720px;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.pull-quote em { font-style: italic; font-weight: 400; }
.pull-quote-body {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  color: var(--text-mid) !important;
  line-height: 1.9 !important;
  max-width: 680px;
}

.closing-italic {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.6;
  margin-top: 3rem;
  max-width: 620px;
}

/* ── work-list rows ──────────────────────────────────────────── */
.work-list { }
.work-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.work-row-last { border-bottom: 1px solid var(--rule); }
.work-list .work-row:last-child { border-bottom: 1px solid var(--rule); }
/* Dark-section work list — explicit overrides so the global
   .work-row h3 / .work-row p colors do not bleed through */
.work-list-dark .work-row {
  border-top-color: var(--rule-dark);
}
.work-list-dark .work-row:last-child {
  border-bottom: none;
}
.work-list-dark .work-row h3 { color: var(--text-dark-on); }
.work-list-dark .work-row p  { color: var(--text-dark-mid); }
.work-list-dark .work-num    { color: var(--accent-dark); }
.work-row-head {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.work-num {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.1rem;
  flex-shrink: 0;
}
.work-num-on-dark { color: var(--accent-dark); }
.work-row h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.work-row p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
}

@media (max-width: 700px) {
  .work-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ═════════════════════════════════════════════════════════════
   DARK SECTION
   ═════════════════════════════════════════════════════════════ */
.dark-section {
  padding: 110px 5vw;
  background: var(--bg-dark);
}

/* ═════════════════════════════════════════════════════════════
   APPROACH
   ═════════════════════════════════════════════════════════════ */
.approach {
  padding: 110px 5vw;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem 4rem;
  margin-bottom: 4rem;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
  line-height: 1;
  opacity: 0.7;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.25;
  color: var(--text);
}
.step-rule {
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}
.step p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ═════════════════════════════════════════════════════════════
   ABOUT
   ═════════════════════════════════════════════════════════════ */
.about {
  padding: 110px 5vw;
  background: var(--bg-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4.5rem;
  align-items: start;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 24%;
}
.about-bio {
  padding-top: 2.5rem;
}
.about-bio p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.about-bio p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ═════════════════════════════════════════════════════════════
   PRINCIPLES
   ═════════════════════════════════════════════════════════════ */
.principles { padding: 100px 5vw; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 4rem;
}
.principle-row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.principle-num {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  opacity: 0.7;
  flex-shrink: 0;
  padding-top: 0.25rem;
  line-height: 1;
}
.principle-row p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark-on);
}

/* ═════════════════════════════════════════════════════════════
   CONTACT / CTA
   ═════════════════════════════════════════════════════════════ */
.cta {
  padding: 130px 5vw 110px;
  background: var(--bg-white);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-divider {
  width: 1px;
  height: 60px;
  background: var(--rule);
  margin: 0 auto 3.5rem;
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.75rem;
  max-width: 560px;
  color: var(--text);
}
.cta-lede {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 2.25rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-email {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto 2.5rem;
  mix-blend-mode: multiply;
}
.cta-confirm {
  height: 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-confirm.is-visible { opacity: 1; }

/* ═════════════════════════════════════════════════════════════
   BUTTON
   ═════════════════════════════════════════════════════════════ */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 48px;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.8; }
.btn-dark {
  background: var(--text);
  color: var(--bg-white);
}

/* ═════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════ */
.site-footer {
  padding: 2.5rem 5vw;
  background: var(--bg-white);
  border-top: 1px solid var(--rule);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* ═════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .fade-up-2, .fade-up-3, .fade-up-4 { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
