/* ==========================================================================
   Asif Rasool — Portfolio
   ========================================================================== */

:root {
  --ink: #0B0B0C;
  --paper: #F4F2EE;
  --accent: #A39CE0;
  --accent-soft: #C9C4F2;
  --sand: #EFEBE4;
  --dark: #14131A;
  --plum: #4A3F8C;
  --green: #6ED396;
  --modal: #131317;

  --line: rgba(244, 242, 238, .14);
  --line-dark: rgba(20, 19, 26, .16);
  --muted: rgba(244, 242, 238, .64);

  --f-sans: 'Bricolage Grotesque', Helvetica, Arial, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Layout: one content width + fluid side gutter for every section */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(56px, 8vw, 80px);
}

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

html, body { margin: 0; padding: 0; background: var(--ink); }
html { scroll-behavior: smooth; }

body {
  color: var(--paper);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
::selection { background: var(--accent); color: var(--ink); }
input, textarea, button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Keyframes ---------- */
@keyframes wordUp { from { opacity: 0; transform: translateY(105%) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Utilities ---------- */
.container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.section--light .eyebrow { color: rgba(20, 19, 26, .55); }

.serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.02em; color: var(--accent);
}
.section--light .serif { color: var(--plum); }

.dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.h2 {
  font-size: clamp(34px, 4.6vw, 62px); line-height: .96; letter-spacing: -.04em;
  font-weight: 800; text-transform: uppercase; margin-top: 18px;
}
.h2--md { font-size: clamp(32px, 4.4vw, 60px); line-height: .98; max-width: 20ch; }
.h2--sm { font-size: clamp(30px, 3.8vw, 52px); line-height: .98; max-width: 16ch; }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px; align-items: start;
}
.split__head { position: sticky; top: 112px; align-self: start; padding-bottom: 24px; }

.chip {
  padding: 7px 13px; border: 1px solid rgba(244, 242, 238, .15); border-radius: 999px;
  font-size: 13px; color: rgba(244, 242, 238, .72);
}
.chip--mono {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 18px 32px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform 160ms ease-out, background 220ms ease, border-color 220ms ease;
}
.btn--primary, .btn--primary:hover {
  background: var(--accent); color: var(--ink);
  box-shadow: 0 16px 44px -16px rgba(163, 156, 224, .9);
}
.btn--ghost, .btn--ghost:hover { border-color: rgba(244, 242, 238, .2); color: var(--paper); font-weight: 500; background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: rgba(163, 156, 224, .08); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 380ms ease-out, transform 380ms ease-out, background-color 260ms ease, border-color 260ms ease;
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Hero entrance */
.anim-fade { opacity: 0; animation: fadeUp 380ms ease-out forwards; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 90; background: rgba(244, 242, 238, .08); }
.progress__bar { height: 100%; width: 0; background: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 70; padding: 14px var(--gutter); transition: padding 300ms ease; }
.nav__shell {
  max-width: calc(var(--container) + 40px); margin: 0 auto; padding: 10px 12px 10px 20px;
  display: flex; align-items: center; gap: 22px;
  border: 1px solid rgba(244, 242, 238, .07); border-radius: 999px; background: transparent;
  transition: max-width 420ms var(--ease-out), background 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.nav__brand, .nav__brand:hover { flex: none; display: flex; align-items: baseline; gap: 8px; color: var(--paper); }
.nav__name { font-size: 19px; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; }
.nav__tag { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--accent); }

.nav__links {
  display: flex; align-items: center; gap: 4px; max-width: 620px;
  font-size: 14px; overflow: hidden; white-space: nowrap;
  transition: max-width 380ms var(--ease-out), opacity 260ms ease, margin 380ms ease;
}
.nav__links a {
  padding: 9px 15px; border-radius: 999px; color: rgba(244, 242, 238, .72); font-weight: 500;
  transition: color 220ms ease, background 220ms ease;
}
.nav__links a:hover { color: var(--paper); background: rgba(244, 242, 238, .07); }

/* Equal-width sides keep the links centred in the bar */
.nav__start, .nav__end { flex: 1 1 0; display: flex; align-items: center; }
.nav__end { justify-content: flex-end; gap: 12px; }

.nav__clock {
  display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 8px 14px;
  border: 1px solid rgba(244, 242, 238, .1); border-radius: 999px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(244, 242, 238, .6); overflow: hidden; white-space: nowrap;
  transition: max-width 380ms var(--ease-out), opacity 240ms ease, padding 380ms ease, border-color 240ms ease;
}
.nav__clock .dot { box-shadow: 0 0 0 3px rgba(110, 211, 150, .18); }

.nav__menu-btn {
  display: none; flex: none; padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(244, 242, 238, .18); background: transparent;
  color: var(--paper); font-size: 14px; font-weight: 500; cursor: pointer;
}

.nav__cv, .nav__cv:hover {
  flex: none; padding: 12px 14px 12px 22px; font-size: 14px;
  box-shadow: 0 8px 26px -14px rgba(163, 156, 224, .9);
}
.nav__cv-icon {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(11, 11, 12, .12);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* Stuck: page scrolled away from the top — glass background */
.nav.is-stuck { padding: 10px var(--gutter); }
.nav.is-stuck .nav__shell {
  background: rgba(16, 16, 19, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(244, 242, 238, .12); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9);
}

/* Compact: scrolling down — shrink to brand + CV; scrolling up expands it again */
.nav.is-compact .nav__shell { max-width: 560px; }
.nav.is-compact .nav__links { max-width: 0; opacity: 0; margin: 0 -11px; }
.nav.is-compact .nav__clock { max-width: 0; opacity: 0; padding-left: 0; padding-right: 0; border-color: transparent; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 95; display: none; flex-direction: column;
  padding: 22px var(--gutter) 34px; background: var(--ink); overflow-y: auto; animation: fadeUp 260ms ease-out both;
}
.menu.is-open { display: flex; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244, 242, 238, .2);
  background: transparent; color: var(--paper); font-size: 16px; cursor: pointer;
}
.menu__list { margin-top: 40px; border-top: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line); color: var(--paper);
  font-size: 38px; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase;
}
.menu__list a:hover { color: var(--accent); }
.menu__cv { margin-top: auto; justify-content: center; }
.menu__list span { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0; color: rgba(244, 242, 238, .5); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 44px; overflow: hidden; }
.hero__glow {
  position: absolute; left: -6%; top: -10%; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 156, 224, .16), rgba(163, 156, 224, 0) 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px 64px; align-items: start;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
/* Heading scales with its column (container query units) */
.hero__content { container-type: inline-size; }
.hero__kicker { display: flex; gap: 14px; align-items: center; }
.hero__kicker::before { content: ""; width: 30px; height: 1px; background: var(--accent); }

.hero__title {
  margin-top: 26px; line-height: .9;
  /* "& AI AUTOMATION." is ~8.4em wide, so 11cqi keeps it on one line */
  font-size: clamp(30px, 5.4vw, 72px);
  font-size: clamp(30px, 11cqi, 104px);
  letter-spacing: -.045em; font-weight: 800; text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; white-space: nowrap; }
.hero__line > span { display: inline-block; animation: wordUp 520ms var(--ease-out) both; }
.hero__line:nth-child(1) > span { animation-delay: 60ms; }
.hero__line:nth-child(2) { padding-bottom: .04em; }
.hero__line:nth-child(2) > span { animation-delay: 160ms; }
.hero__line:nth-child(3) > span { animation-delay: 260ms; animation-duration: 560ms; }

.hero__lead { margin-top: 28px; max-width: 46ch; font-size: 18px; line-height: 1.6; color: rgba(244, 242, 238, .72); animation-delay: 380ms; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; animation-delay: 440ms; }
.hero__links {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; animation-delay: 520ms;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.hero__links a { color: var(--muted); }
.hero__links a:hover { color: var(--accent); }

.hero__photo-wrap { position: relative; width: 100%; max-width: 480px; justify-self: end; animation-duration: 520ms; animation-delay: 300ms; }
.hero__photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(244, 242, 238, .12); background: #E4D8D0;
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.hero__photo:hover img { transform: scale(1.04); }
.hero__badge {
  position: absolute; left: 16px; top: 16px; padding: 8px 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11, 11, 12, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
}
.hero__caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(11, 11, 12, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__caption strong { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.hero__caption span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__item {
  display: flex; align-items: center; gap: 22px; padding: 0 22px;
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.marquee__item::after { content: "◆"; font-size: 11px; }

.strip { margin-top: 64px; padding: 16px 0; background: var(--accent); color: var(--ink); transform: rotate(-1.1deg) scale(1.03); }

/* ---------- Stats ---------- */
.stats { margin-top: clamp(56px, 7vw, 72px); }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 36px;
  padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats__num { font-size: clamp(48px, 6vw, 86px); line-height: .92; letter-spacing: -.05em; font-weight: 800; }
.stats__label { margin-top: 12px; font-size: 14px; color: rgba(244, 242, 238, .58); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section-gap); scroll-margin-top: 90px; }
.section--light { background: var(--sand); color: var(--dark); scroll-margin-top: 70px; }

/* About */
.about__intro { font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: -.02em; text-wrap: pretty; }
.about__body { margin-top: 22px; max-width: 58ch; font-size: 16px; line-height: 1.7; color: rgba(244, 242, 238, .65); }
.facts { margin: 34px 0 0; border-top: 1px solid var(--line); }
.facts__row {
  display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.facts dt { padding-top: 3px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 242, 238, .55); }
.facts dd { margin: 0; font-size: 16px; }

/* Work */
.work { margin-top: var(--section-gap); overflow: clip; }
.work__inner { padding-top: var(--section-gap); padding-bottom: clamp(64px, 9vw, 96px); }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; flex-wrap: wrap; }
.work__title { margin-top: 16px; font-size: clamp(46px, 9vw, 148px); line-height: .86; letter-spacing: -.05em; font-weight: 800; text-transform: uppercase; }
.work__title .serif { letter-spacing: -.025em; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; max-width: 560px; }
.filter {
  padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(20, 19, 26, .2); background: transparent;
  color: rgba(20, 19, 26, .65); cursor: pointer;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.filter:hover { border-color: var(--dark); }
.filter.is-active { background: var(--dark); border-color: var(--dark); color: var(--sand); }

.cases { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 46px; align-items: start; }
.case { will-change: transform; }
.case.is-offset { margin-top: 56px; }
.case__inner { animation: fadeUp 480ms var(--ease-out) both; }

.case__plate {
  position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 16 / 10;
  border: 1px solid rgba(20, 19, 26, .09); border-radius: 18px; overflow: hidden;
  background: #E9E5DC; cursor: pointer;
}
.case.is-alt .case__plate { background: #E4DFD6; }
.case__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.case__plate:hover .case__img { transform: scale(1.045); }
.case__cat {
  position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 19, 26, .86); color: var(--sand);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.case__head { display: flex; align-items: baseline; gap: 14px; margin-top: 24px; }
.case__num { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: rgba(20, 19, 26, .45); }
.case__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.case__hook { margin-top: 12px; max-width: 42ch; font-size: 16px; line-height: 1.6; color: rgba(20, 19, 26, .68); }
.case__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.case__meta .chip { border-color: rgba(20, 19, 26, .18); color: rgba(20, 19, 26, .62); }
.case__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 0 0 3px;
  border: 0; border-bottom: 1px solid rgba(20, 19, 26, .28); background: transparent;
  font-size: 14.5px; font-weight: 600; color: var(--dark); cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
}
.case__link:hover { color: var(--plum); border-color: var(--plum); gap: 13px; }

/* Skills */
.skills__lead { margin-top: 22px; max-width: 34ch; font-size: 16px; line-height: 1.64; color: rgba(244, 242, 238, .6); }
.skill { margin: 0 -18px; padding: 30px 18px; border-top: 1px solid var(--line); }
.skill:hover { background: rgba(163, 156, 224, .06); }
.skill__head { display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.skill__num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.skill__name { font-size: clamp(26px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.skill__flag {
  padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
}

/* Services */
.services { padding-top: var(--section-gap); }
.services__grid { margin-top: 35px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.service { display: flex; flex-direction: column; padding: 28px; border: 1px solid rgba(244, 242, 238, .12); border-radius: 12px; }
.service:hover { border-color: rgba(163, 156, 224, .5); background: rgba(163, 156, 224, .05); }
.service__num { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }
.service__title { margin-top: 16px; font-size: 22px; font-weight: 600; letter-spacing: -.028em; }
.service__desc { margin-top: 12px; font-size: 14.5px; line-height: 1.64; color: rgba(244, 242, 238, .6); }
.service__stack { margin-top: auto; padding-top: 18px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Experience */
.experience { margin-top: var(--section-gap); }
.experience__inner { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.experience__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.experience__head .eyebrow { color: rgba(20, 19, 26, .5); }
.experience__lead { max-width: 34ch; font-size: 15px; line-height: 1.62; color: rgba(20, 19, 26, .6); }
.jobs { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.job {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 48px;
  margin: 0 -18px; padding: 32px 18px; border-bottom: 1px solid var(--line-dark);
}
.job:hover { background: rgba(74, 63, 140, .05); }
.job__span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.job__company { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.job__meta { margin-top: 6px; font-size: 13.5px; color: rgba(20, 19, 26, .55); }
.job__promo {
  display: inline-block; margin-top: 14px; padding: 5px 11px; border-radius: 999px; background: var(--dark); color: var(--accent);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
}
.job__roles { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.role__head { display: flex; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; align-items: baseline; }
.role__title { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.role__dates { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(20, 19, 26, .55); }
.role__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.role__list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.6; color: rgba(20, 19, 26, .72); }
.role__list li::before { content: ""; flex: none; width: 14px; height: 1px; margin-top: 12px; background: rgba(20, 19, 26, .35); }

/* Education */
.education { padding-top: var(--section-gap); }
.edu { border-top: 1px solid var(--line); }
.edu__item { display: flex; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.edu__num { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.edu__body { flex: 1; min-width: 0; }
.edu__title { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.edu__org { margin-top: 4px; font-size: 14px; color: rgba(244, 242, 238, .6); }
.edu__kind { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Contact / CTA */
.cta { margin-top: var(--section-gap); background: var(--accent); color: var(--ink); scroll-margin-top: 70px; }
.cta__inner { padding-top: var(--section-gap); padding-bottom: clamp(56px, 7vw, 72px); }
.cta__box { max-width: 960px; margin: 0 auto; text-align: center; }
.cta__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(11, 11, 12, .28);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(11, 11, 12, .75);
}
.cta__badge .dot { background: var(--ink); }
.cta__title {
  margin: 22px auto 0; max-width: 14ch; font-size: clamp(38px, 6vw, 88px); line-height: .94;
  letter-spacing: -.045em; font-weight: 800; text-transform: uppercase;
}
.cta__title .serif { color: inherit; }
.cta__lead { margin: 22px auto 0; max-width: 48ch; font-size: 17px; line-height: 1.6; color: rgba(11, 11, 12, .72); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 34px; }
.cta__actions .btn { padding: 19px 30px; }
.btn--dark, .btn--dark:hover { background: var(--ink); color: var(--accent); }
.btn--outline, .btn--outline:hover { border-color: rgba(11, 11, 12, .32); color: var(--ink); }
.btn--outline:hover { background: rgba(11, 11, 12, .08); }
.cta__meta { margin-top: 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(11, 11, 12, .65); }
.cta__strip { padding: 12px 0; border-top: 1px solid rgba(11, 11, 12, .15); }
.cta__strip .marquee__track { animation-duration: 26s; }
.cta__strip .marquee__item { gap: 18px; padding: 0 18px; font-size: 15px; letter-spacing: -.005em; }
.cta__strip .marquee__item::after { font-size: 10px; }

/* Footer */
.footer__inner {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: var(--muted);
}
.footer__inner a { font-family: var(--f-mono); color: var(--muted); }
.footer__inner a:hover { color: var(--accent); }

/* ---------- Case study modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 95; display: none; align-items: flex-start; justify-content: center;
  padding: 5vh 18px; overflow-y: auto;
  background: rgba(6, 6, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeUp 220ms ease-out both;
}
.modal.is-open { display: flex; }
.modal__dialog {
  width: 100%; max-width: 880px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--modal); overflow: hidden; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95);
}
.modal__bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(244, 242, 238, .1);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.modal__bar .dot { width: 7px; height: 7px; background: var(--accent); }
.modal__x { margin-left: auto; padding: 0; border: 0; background: transparent; color: rgba(244, 242, 238, .6); font-size: 17px; line-height: 1; cursor: pointer; }
.modal__body { padding: clamp(22px, 4vw, 40px); }
.modal__title { margin-top: 12px; font-size: clamp(32px, 4.4vw, 56px); line-height: .96; letter-spacing: -.04em; font-weight: 800; text-transform: uppercase; }
.modal__hook { margin-top: 16px; max-width: 56ch; font-size: 17px; line-height: 1.6; color: rgba(244, 242, 238, .72); }
.modal__shot { margin-top: 28px; border-radius: 14px; border: 1px solid rgba(244, 242, 238, .12); overflow: hidden; background: var(--sand); }
.modal__shot img { width: 100%; height: auto; }
.modal__sections { margin: 28px 0 0; border-top: 1px solid var(--line); }
.modal__row { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.modal__row dt { padding-top: 3px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.modal__row dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(244, 242, 238, .66); }
.modal__stack { margin-top: 22px; gap: 8px; }
.modal__stack .chip { color: rgba(244, 242, 238, .7); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.modal__actions .btn { padding: 15px 26px; font-size: 15px; }
.modal__actions .btn--ghost { font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1099.98px) {
  .nav__links, .nav__clock { display: none; }
  .nav__menu-btn { display: block; }
  .nav.is-compact .nav__shell { max-width: calc(var(--container) + 40px); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case.is-offset { margin-top: 0; }
}

/* Hero stacks: photo sits under the text, left-aligned */
@media (max-width: 959.98px) {
  .hero__photo-wrap { justify-self: start; }
}

/* Tablet & below: single-column sections, no sticky side headings */
@media (max-width: 767.98px) {
  .split { gap: 32px; }
  .split__head { position: static; padding-bottom: 0; }
  .hero__photo-wrap { max-width: 520px; justify-self: stretch; }
  .job__roles { grid-column: auto; }
  .work__head { gap: 24px; }
  .cases { margin-top: 40px; gap: 48px; }
}

/* Phones */
@media (max-width: 575.98px) {
  .nav, .nav.is-stuck { padding-top: 10px; padding-bottom: 10px; }
  .nav__shell { gap: 10px; padding: 8px 8px 8px 16px; }
  .nav__end { gap: 8px; }
  .nav__name { font-size: 17px; }
  .nav__cv { display: none; }
  .nav__menu-btn { padding: 10px 16px; }

  .menu__list a { font-size: 30px; padding: 16px 0; }

  .hero { padding-top: 24px; }
  .hero__grid { gap: 36px; }
  .hero__title { margin-top: 20px; }
  .hero__lead { font-size: 16px; margin-top: 20px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding: 16px 22px; }
  .hero__links { gap: 14px 20px; }
  .hero__caption { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .hero__badge { left: 12px; top: 12px; }

  .strip { margin-top: 48px; }
  .marquee__item { font-size: 15px; gap: 16px; padding: 0 16px; }

  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 32px 0; }
  .stats__num { font-size: clamp(40px, 13vw, 56px); }

  .facts__row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }

  .filters { gap: 6px; }
  .case__head { gap: 10px; margin-top: 18px; }
  .case__cat { left: 12px; top: 12px; }

  .skill, .job { margin: 0; padding-left: 0; padding-right: 0; }
  .skill { padding-top: 24px; padding-bottom: 24px; }
  .skill__head { gap: 10px 14px; }
  .chip-row { gap: 8px; }
  .job { padding-top: 26px; padding-bottom: 26px; }
  .role__list li { font-size: 14.5px; }

  .service { padding: 22px; }

  .edu__item { flex-wrap: wrap; gap: 6px 14px; padding: 18px 0; }
  .edu__kind { order: -1; flex-basis: 100%; padding-left: 0; }

  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { justify-content: center; padding: 16px 24px; }
  .cta__meta { letter-spacing: .08em; line-height: 1.8; }

  .footer__inner { justify-content: center; text-align: center; }

  .modal { padding: 12px; }
  .modal__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .modal__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
