/* Muhammad Zain | executive profile */

:root {
  --black: #000;
  --near-black: #0a0a0a;
  --ink: #1d1d1f;
  --white: #fff;
  --paper: #f5f5f7;
  --grey: #86868b;
  --grey-on-dark: #a1a1a6;
  --grey-strong: #6e6e73;
  --grey-deep: #424245;
  --hairline: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --link-dark: #2997ff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 52px;
  --gutter: 20px;
  --wrap: 1120px;
  --section-y: 88px;
  --radius: 24px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 735px) {
  :root { --gutter: 40px; --section-y: 124px; --radius: 28px; }
}

@media (min-width: 1068px) {
  :root { --section-y: 152px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--black);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main:focus { outline: none; }

::selection { background: rgba(0, 113, 227, .22); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--link-dark); }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nw { white-space: nowrap; }

.skip {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Keep content clear of the notch and rounded corners; backgrounds still bleed full width */
@supports (padding: env(safe-area-inset-left)) {
  .nav, .hero, .intro, .current, .previously, .contact, .footer {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ---------- Shared controls ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.pill:hover { background: var(--blue-hover); }

.pill--sm {
  position: relative;
  min-height: 30px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 0;
}
/* keeps the visual pill slim while the tap target stays 44px tall */
.pill--sm::after {
  content: "";
  position: absolute;
  inset: -7px -4px;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 17px;
  color: var(--link);
}
.on-dark .more { color: var(--link-dark); }
.more:hover .more-text {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.chev {
  display: block;
  flex: none;
  width: .46em;
  height: .8em;
  transform: translateY(.04em);
}

.section-h {
  font-size: clamp(34px, 5vw, 64px);
  text-wrap: balance;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--black);
  color: #f5f5f7;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
/* over the light sections the bar turns light, the way apple.com product navs do */
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.nav.is-light .nav-link { color: rgba(0, 0, 0, .72); }
.nav.is-light .nav-link:hover { color: #000; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: var(--black); }
  .nav.is-light.is-scrolled { background: var(--white); }
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-cta { margin-left: 12px; }

@media (max-width: 519px) {
  .brand-full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .brand-mark { display: inline; font-size: 19px; letter-spacing: -0.01em; }
  .nav-link { padding-inline: 9px; }
  .nav-cta { margin-left: 6px; }
}

@media (max-width: 359px) {
  .nav-links { gap: 0; }
  .nav-link { padding-inline: 7px; font-size: 13px; }
  .pill--sm { padding: 0 11px; font-size: 12px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #f5f5f7;
}

.hero-inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding-bottom: 20px;
}

.hero-media {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1145 / 1374;
  margin-inline: auto;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 20%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 9%, #000 58%, transparent 96%),
    linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 9%, #000 58%, transparent 96%),
    linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect;
}

.hero-copy {
  position: relative;
  margin-top: -40px;
  text-align: center;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--grey-on-dark);
}

.hero h1 {
  margin-top: 10px;
  font-size: clamp(52px, 16vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.035em;
  color: #f5f5f7;
}
.hero h1 span { display: block; }

.hero-title {
  margin-top: 22px;
  text-wrap: balance;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f5f5f7;
}

.hero-sub {
  margin-top: 8px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.42;
  color: var(--grey-on-dark);
  text-wrap: balance;
}
.hero-sub span { display: block; }

.cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}

/* tablet and up: name on the left, portrait on the right */
@media (min-width: 735px) {
  .hero-inner {
    height: clamp(560px, calc(100vh - var(--nav-h)), 760px);
    padding-bottom: 0;
  }
  @supports (height: 100svh) {
    .hero-inner { height: clamp(560px, calc(100svh - var(--nav-h)), 760px); }
  }

  .hero-media {
    position: absolute;
    top: 0;
    right: max(0px, calc((100% - 1300px) / 2));
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: 58%;
    margin: 0;
  }
  /* the backdrop runs up under the bar, and every other edge dissolves into black */
  .hero-media img {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 24%, #000 80%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 24%, #000 80%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
  }

  .hero-copy {
    height: 100%;
    margin-top: 0;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }
  .hero-copy > p { max-width: min(30em, 52%); }
  .hero-sub span { text-wrap: balance; }
  .hero h1 { font-size: clamp(60px, 7.8vw, 124px); }
  .cta { justify-content: flex-start; margin-top: 32px; }
}

@media (min-width: 1068px) {
  .hero-inner { height: clamp(640px, calc(100vh - var(--nav-h)), 900px); }
  @supports (height: 100svh) {
    .hero-inner { height: clamp(640px, calc(100svh - var(--nav-h)), 900px); }
  }
  .hero-media img {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 36%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 36%, #000 76%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 6%, #000 66%, transparent 100%);
  }
  .hero-copy > p { max-width: 30em; }
  .cta { margin-top: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: portrait-in .8s var(--ease-out) both; }
  .hero-copy > * { animation: rise .6s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .05s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .17s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
}
@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Summary ---------- */

.intro {
  background: var(--black);
  color: var(--grey-on-dark);
  padding: clamp(40px, 6vw, 80px) 0 calc(var(--section-y) * .85);
}
.statement {
  max-width: 21em;
  font-size: clamp(28px, 3.7vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.statement strong { font-weight: inherit; color: #f5f5f7; }

/* ---------- Current ---------- */

.current {
  background: var(--paper);
  color: var(--ink);
  padding-block: var(--section-y);
}
.current .section-h,
.previously .section-h { margin-bottom: clamp(32px, 4.4vw, 64px); }

.bento {
  display: grid;
  gap: 16px;
}
@media (min-width: 735px) { .bento { gap: 20px; } }
@media (min-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 48px);
}

.role {
  display: flex;
  flex-direction: column;
}

.role-status {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--grey-strong);
}
.role-org {
  margin-top: 14px;
  font-size: clamp(30px, 3.1vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.role-title {
  margin-top: 12px;
  font-size: clamp(19px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.role-foot {
  margin-top: auto;
  padding-top: 26px;
}
@media (min-width: 900px) { .role-foot { padding-top: 28px; } }
.role-line {
  max-width: 30em;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.47;
  color: var(--grey-strong);
}
.role .more { margin-top: 14px; }

.figures {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  margin-top: 4px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}

.figure {
  container-type: inline-size;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 26px 0;
  background: var(--paper);
}
@media (min-width: 600px) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figure { padding: 32px 20px; }
  .figure:first-child { padding-left: 0; }
  .figure:last-child { padding-right: 0; }
}
@media (min-width: 900px) {
  .figure { padding: 36px 24px; }
}

.figure-value {
  font-size: clamp(32px, 20cqi, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.figure-label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--grey-strong);
}

/* ---------- Previously ---------- */

.previously {
  background: var(--white);
  color: var(--ink);
  padding-block: var(--section-y);
}

.list { border-top: 1px solid var(--hairline); }

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head year"
    "body body";
  column-gap: 16px;
  row-gap: 10px;
  padding-block: 28px;
  border-bottom: 1px solid var(--hairline);
}
.item-head { grid-area: head; }
.item-body { grid-area: body; }
.item-year {
  grid-area: year;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
  color: var(--grey-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.item-org {
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.022em;
}
.item-role {
  margin-top: 4px;
  font-size: 17px;
  color: var(--grey-strong);
}
.item-line {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.47;
}
.more--sm { margin-top: 0; font-size: 17px; }

@media (min-width: 900px) {
  .item {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 7.5em;
    grid-template-areas: "head body year";
    column-gap: 48px;
    align-items: baseline;
    padding-block: 44px;
  }
  .item-line { font-size: 19px; }
  .item-year { text-align: right; line-height: 1.47; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--black);
  color: #f5f5f7;
  padding-block: var(--section-y) calc(var(--section-y) * .72);
}
.contact .section-h { color: var(--grey-on-dark); font-size: clamp(21px, 3.4vw, 56px); }

.email-row { margin: clamp(26px, 3.2vw, 44px) 0 0; }
.email-row .meta-k { margin-bottom: 2px; }

.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 4px;
  gap: .16em;
  max-width: 100%;
  margin-top: 2px;
  font-size: clamp(34px, 8vw, 104px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #f5f5f7;
}
.email-text {
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color .25s var(--ease);
}
.email-chev {
  display: block;
  flex: none;
  width: .3em;
  height: .52em;
  margin-top: .08em;
  color: var(--link-dark);
}
.email:hover .email-text { color: var(--link-dark); }

.contact-meta {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
@media (min-width: 735px) {
  .contact-meta {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 64px;
    row-gap: 28px;
    align-items: end;
  }
  .meta--action { grid-column: 1 / -1; }
}
@media (min-width: 1068px) {
  .contact-meta { grid-template-columns: auto auto minmax(0, 1fr); }
  .meta--action { grid-column: auto; justify-self: end; }
}

.meta-k {
  display: block;
  font-size: 14px;
  color: var(--grey-on-dark);
}
.meta-v {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.016em;
  color: #f5f5f7;
  transition: color .2s var(--ease);
}
.meta-v:hover { color: var(--link-dark); }
.meta--action { padding-top: 8px; }

/* ---------- Footer ---------- */

.footer {
  background: var(--black);
  color: var(--grey-on-dark);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */

.reveal {
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js-reveal .reveal:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .js-reveal .reveal:not(.is-in) { opacity: 1; transform: none; }
}
