/* career.zohaibmughal.dev. Tokens and rules: DESIGN.md beside build.py. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --canvas: #fcfcfc; --surface: #ffffff; --tint: #f4f5f7;
  --ink: #171717; --body: #474747; --muted: #666666; --hairline: #e8e8e8;
  --accent: #2851c4; --accent-soft: #e8eefc;
  --on-primary: #fcfcfc; --primary: #171717;
  --shadow: inset 0 0 0 1px rgb(0 0 0 / .07), 0 1px 1px rgb(0 0 0 / .03), 0 6px 16px -6px rgb(0 0 0 / .08);
  --r-card: 8px; --wrap: 1120px; --gutter: clamp(16px, 4vw, 32px);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c0c0d; --surface: #141416; --tint: #121318;
    --ink: #ededef; --body: #b4b4b8; --muted: #8e8e94; --hairline: #26262a;
    --accent: #7f9cff; --accent-soft: #1a2238;
    --on-primary: #0c0c0d; --primary: #ededef;
    --shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 16px/1.65 var(--sans); overflow-wrap: break-word; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.045em; }
h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.25; letter-spacing: -0.035em; margin-bottom: 32px; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.02em; }
p { margin: 0 0 12px; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main > section.wrap { padding-top: 96px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--body); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.ph { font-size: 1.1em; vertical-align: -0.15em; }

/* Navigation: one line, 64px */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--body); font-size: 14px; padding: 6px 10px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: var(--tint); text-decoration: none; }

/* Buttons: full pill */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 500 15px/1 var(--sans);
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { color: var(--ink); border-color: var(--hairline); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { font-size: 13.5px; padding: 9px 14px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero: split, text left, real product image right */
.hero { padding: 72px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--body); margin-top: 20px; max-width: 30ch; }
.hero-media { margin: 0; }
.hero-media img { border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--surface); }

/* Journey: vertical timeline */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 148px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline); }
.step { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 48px; position: relative; }
.step::after { content: ""; position: absolute; left: 144px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--canvas); border: 2px solid var(--accent); }
.when { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; margin: 2px 0 0; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; }

/* Experience: progression strip, then product rows (same side, not a zigzag) */
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 40px; }
.ladder li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.ladder li .mono { color: var(--accent); }
.roles { display: grid; gap: 20px; }
.role { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 24px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow); }
.role-media img { border-radius: 6px; background: var(--tint); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.role .meta, .cell .meta { color: var(--muted); margin-bottom: 6px; }
.role h3 { font-size: 22px; letter-spacing: -0.025em; }
.role .summary { margin-top: 8px; color: var(--body); }
.bullets { display: grid; gap: 8px; margin: 12px 0 16px; }
.bullets li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 7px; height: 1px; background: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--body); background: var(--canvas); }
.links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 14px; }
.links li { display: inline-flex; align-items: center; gap: 4px; }
.links .ph { color: var(--accent); font-size: 0.95em; }

/* Projects: asymmetric bento, every cell carries a real image or a tinted surface */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cell { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.cell-img img { width: 100%; aspect-ratio: 1200 / 691; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--hairline); }
.cell-body { padding: 22px 24px 24px; }
.cell-body p { font-size: 15px; }
.c1 { grid-column: span 4; } .c2 { grid-column: span 2; } .c3 { grid-column: span 2; } .c4 { grid-column: span 4; }
.cell-text { background: var(--accent-soft); box-shadow: none; justify-content: space-between; }
.stat { display: grid; gap: 6px; margin: 0; padding: 26px 24px 0; }
.stat-value { color: var(--accent); font-size: clamp(48px, 6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat .mono { color: var(--body); }
.cell-text h3 { font-size: 24px; letter-spacing: -0.03em; }

/* Education: two columns */
.edu { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
.edu h2 { margin-bottom: 20px; }
@media (min-width: 881px) { .edu > :last-child { padding-top: 64px; } }
.edu h3 { font-size: 16px; margin: 6px 0 12px; }
.edu h3 + p, .edu .stack { margin-bottom: 24px; }
.school { color: var(--ink); font-weight: 600; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.degree .mono { color: var(--muted); margin-left: 6px; }

/* Skills: grouped columns */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 40px; }
.skill-group h3 { font-size: 15px; margin-bottom: 12px; }

/* Recognition: one stacked list */
.plain { display: grid; gap: 14px; }
.plain li { display: flex; gap: 12px; align-items: flex-start; }
.plain .ph { color: var(--accent); margin-top: 4px; }

/* Footer: same theme, tinted band */
.foot { margin-top: 112px; padding: 72px 0; background: var(--tint); border-top: 1px solid var(--hairline); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.foot h2 { margin-bottom: 12px; }
.foot-links { font-size: 15px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid, .edu, .foot-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; padding: 18px; }
  .bento { grid-template-columns: 1fr; }
  .c1, .c2, .c3, .c4 { grid-column: auto; }
  main > section.wrap { padding-top: 64px; }
  .timeline::before { left: 4px; }
  .step { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .step::after { left: 0; }
  .when { text-align: left; }
}
@media (max-width: 420px) {
  .btn-sm { padding: 8px 12px; }
  .brand { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
