/* Wahid Anwar - consultant profile. White base, deep teal brand, amber used only for small highlights. */

:root {
  --bg: #ffffff;
  --tint: #f3f6f5;
  --ink: #0f1d1c;
  --ink-soft: #3d4b4a;
  --muted: #667372;
  --line: #e1e7e6;
  --line-strong: #c9d3d1;
  --brand: #0b4f4a;
  --brand-dark: #073935;
  --brand-wash: #e6f0ee;
  --amber: #e0a43a;
  --radius: 8px;
  --radius-sm: 6px;
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-wash); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-monogram { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
.brand-word { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.primary-nav { display: flex; gap: 32px; }
.primary-nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s ease; }
.primary-nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 4px 24px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .mobile-cta { color: var(--brand); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-role { font-weight: 800; font-size: 15px; color: var(--brand); margin-bottom: 22px; }
.hero-role span { display: block; font-weight: 600; color: var(--muted); font-size: 14px; margin-top: 2px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; }
.hero-intro { margin-top: 22px; font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-card { margin: 0; justify-self: end; width: 100%; max-width: 400px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.hero-photo { aspect-ratio: 6 / 7; background: var(--brand); display: grid; place-items: center; position: relative; }
.hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--amber); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-initials { color: rgba(255,255,255,.92); font-weight: 800; font-size: clamp(4.5rem, 11vw, 7.5rem); letter-spacing: -0.04em; }
.hero-card figcaption { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 2px; }
.hero-card strong { font-size: 18px; }
.hero-card figcaption > span { color: var(--muted); font-size: 14px; }
.hero-loc { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.hero-loc svg { width: 15px; height: 15px; color: var(--brand); }

/* Stats band */
.stats-band { background: var(--brand); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.78); font-weight: 500; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.12rem); color: var(--ink-soft); line-height: 1.8; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 64px; }
.split-head h2 { max-width: 12ch; }
.ops { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.ops-title { font-weight: 700; margin-bottom: 14px; }
.ops-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ops-list li { padding: 8px 14px; border-radius: var(--radius-sm); background: var(--brand-wash); color: var(--brand-dark); font-size: 14px; font-weight: 600; }

/* Topics */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-grid li { background: #fff; padding: 28px 26px 30px; transition: background .15s ease; }
.topic-grid li:hover { background: #fbfdfc; }
.topic-no { display: block; font-size: 13px; font-weight: 800; color: var(--amber); margin-bottom: 18px; letter-spacing: .04em; }
.topic-grid h3 { font-size: 1.12rem; font-weight: 700; }
.topic-grid p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Teaching */
.inst-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0; margin-bottom: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inst-strip li { font-weight: 800; font-size: 15px; color: var(--ink-soft); letter-spacing: -0.01em; }
.engage-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.engage-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, .7fr); gap: 24px; align-items: center; padding: 18px 24px; border-top: 1px solid var(--line); }
.engage-row:first-child { border-top: 0; }
.engage-headrow { background: var(--tint); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.engage-row strong { font-weight: 700; }
.engage-row .muted { font-size: 15px; }
.role-tag { display: inline-block; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.cred-col h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 24px; }
.cred-item { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.cred-meta { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.cred-item h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.cred-org { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.cred-item .muted { margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-inner h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; max-width: 26ch; }
.cta-inner p { margin-top: 8px; color: rgba(255,255,255,.75); }
.cta-inner .btn { flex: 0 0 auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.contact-grid h2 { margin-bottom: 16px; }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.ci { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: var(--radius-sm); background: var(--brand-wash); color: var(--brand); }
.ci svg { width: 19px; height: 19px; }
.contact-list small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-list a { font-weight: 700; word-break: break-word; }
.contact-list a:hover { color: var(--brand); }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-row a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-soft); transition: border-color .15s ease, color .15s ease; }
.social-row a:hover { border-color: var(--brand); color: var(--brand); }
.social-row svg { width: 18px; height: 18px; }

.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: #9aa5a4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 12px; font-size: 14px; min-height: 20px; font-weight: 600; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* Reveal: y only, once */
[data-reveal] { transform: translateY(18px); transition: transform .5s ease; }
[data-reveal].in { transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-card { justify-self: start; max-width: 340px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 26px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .engage-headrow { display: none; }
  .engage-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px; }
  .engage-row:nth-child(2) { border-top: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding: 40px 0 52px; }
  .topic-grid, .cred-grid, .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
