/* ============================================================
   Mohammad Jawwad — AI Automation Developer
   Tokens → base → layout → components → responsive
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:          #08080c;
  --bg-alt:      #0c0c12;
  --bg-elev:     rgba(255, 255, 255, 0.028);
  --bg-elev-2:   rgba(255, 255, 255, 0.055);
  --border:      rgba(255, 255, 255, 0.09);
  --border-lit:  rgba(255, 255, 255, 0.18);

  --text:        #ececf3;
  --text-dim:    #9797a8;
  --text-faint:  #63637a;

  --accent-1:    #7c5cff;
  --accent-2:    #22d3ee;
  --grad:        linear-gradient(115deg, var(--accent-1), var(--accent-2));
  --grad-soft:   linear-gradient(115deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .16));

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --section-y:   clamp(5rem, 11vw, 9rem);
  --radius:      18px;
  --radius-sm:   10px;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
blockquote { margin: 0; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent-1); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--accent-1);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ---------- Background layers ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.orb--1 { width: 44vw; height: 44vw; top: -12vw; left: -8vw;   background: #7c5cff; opacity: .32; }
.orb--2 { width: 38vw; height: 38vw; top: 46vw;  right: -10vw; background: #22d3ee; opacity: .18; }
.orb--3 { width: 34vw; height: 34vw; top: 128vw; left: 22vw;   background: #7c5cff; opacity: .14; }

/* Faint dot grid for technical texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .09s; }
.reveal[data-reveal-delay="2"] { transition-delay: .18s; }
.reveal[data-reveal-delay="3"] { transition-delay: .27s; }
.reveal[data-reveal-delay="4"] { transition-delay: .36s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 8, 12, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Reading progress */
.nav__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--grad);
  transition: width .1s linear;
}

.nav__logo { display: flex; align-items: center; gap: .65rem; }
.nav__logo-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  letter-spacing: -.02em;
}
.nav__logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

.nav__links { display: flex; align-items: center; gap: .2rem; }

.nav__link {
  position: relative;
  padding: .5rem .8rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav__link--cta {
  margin-left: .5rem;
  padding: .55rem 1.15rem;
  color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.nav__link--cta:hover { border-color: var(--border-lit); }
.nav__link--cta::after { display: none; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: 8px; }
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(124, 92, 255, .8);
}
.btn--primary:hover { box-shadow: 0 14px 36px -10px rgba(124, 92, 255, .95); }

.btn--ghost {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--border-lit); background: var(--bg-elev-2); }

.btn--block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 95svh;
  min-height: 95svh;
  max-height: 95svh;
  padding-block: 108px 10px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__content,
.hero__visual,
.section__head,
.cards,
.work-grid,
.tools,
.skills,
.process,
.about,
.quotes,
.platforms,
.contact { min-width: 0; }

@media (min-width: 981px) {
  .hero__content {
    align-self: start;
    padding-top: 0;
  }
  .hero__title { font-size: 45px; }
  .hero__title { margin-bottom: .8rem; }
  .hero__lede { margin-bottom: .7rem; }
  .hero__note { margin-bottom: .8rem; }
  .hero__actions { margin-bottom: .7rem; }
  .badges { margin-bottom: .7rem; }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .hero {
    align-items: flex-start;
    padding-top: 84px;
  }
  .portrait {
    max-height: calc(95svh - 104px);
    height: calc(95svh - 104px);
  }
  .hero .hero__title { font-size: 45px; margin-bottom: 5px; }
  .hero .hero__lede { margin-bottom: 4px; }
  .hero .hero__note { margin-bottom: 5px; }
  .hero .hero__actions { margin-bottom: 6px; }
  .hero .badges { gap: 5px; margin-bottom: 6px; }
  .hero .badge { padding-block: 5px; padding-inline: 10px; font-size: .72rem; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem 1rem .45rem .75rem;
  margin-bottom: 1.65rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elev);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-dim);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(2.7rem, 4vw, 4.25rem);
  line-height: .93;
  letter-spacing: -.055em;
  margin-bottom: 1.25rem;
}

@media (min-width: 981px) {
  .hero .hero__title {
    font-size: 45px;
    line-height: 1.1;
    letter-spacing: -.055em;
    margin-bottom: 1.25rem;
  }
}

.hero__lede {
  font-size: clamp(.98rem, 1.2vw, 1.05rem);
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__note {
  padding-left: 1rem;
  border-left: 2px solid var(--accent-1);
  font-size: .9rem;
  color: var(--text-faint);
  margin-bottom: 1.9rem;
}

.hero__content { position: relative; z-index: 2; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.6rem; }

/* Verified credential badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elev);
  font-size: .8rem;
  color: var(--text-dim);
}
.badge b { color: var(--text); font-weight: 600; }
.badge__icon {
  font-size: .72rem;
  color: var(--accent-2);
  line-height: 1;
}
.badge--top {
  border-color: rgba(124, 92, 255, .5);
  background: rgba(124, 92, 255, .13);
}
.badge--top .badge__icon { color: #fbbf24; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 1.1rem 1rem; }
.stat__label {
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
  font-size: .68rem;
  line-height: 1.35;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
  margin-bottom: .2rem;
}
.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__star { font-size: .65em; }

/* ---------- Hero visual ---------- */
.hero__visual { display: flex; justify-content: center; align-items: center; }

.portrait {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: calc(95svh - 150px);
  height: calc(95svh - 150px);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  overflow: visible;
}

.portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(34, 211, 238, .12), transparent 38%),
    radial-gradient(ellipse at 65% 55%, rgba(124, 92, 255, .15), transparent 52%);
  filter: blur(18px);
  transform: scale(.88);
  pointer-events: none;
}

.portrait::after {
  content: '';
  position: absolute;
  inset: 55% 0 -1px;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 12, 0) 0%,
    rgba(8, 8, 12, .08) 42%,
    rgba(8, 8, 12, .72) 82%,
    var(--bg) 100%
  );
  pointer-events: none;
}

.portrait__blob {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 35% 35%, rgba(34, 211, 238, .3), transparent 42%), radial-gradient(ellipse at 78% 45%, rgba(124, 92, 255, .42), transparent 38%);
  filter: blur(22px);
  opacity: .8;
}
.portrait__light {
  position: absolute;
  z-index: 2;
  width: 45%; height: 75%;
  filter: blur(42px);
  opacity: .72;
  mix-blend-mode: screen;
}
.portrait__light--blue { left: -8%; top: 8%; background: var(--accent-2); }
.portrait__light--violet { right: -8%; top: 10%; background: var(--accent-1); }

.portrait__img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(.86) contrast(1.08);
  mask-image: linear-gradient(180deg, #000 84%, rgba(0, 0, 0, .9) 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 84%, rgba(0, 0, 0, .9) 94%, transparent 100%);
}

/* ---------- Workflow diagram (Process section) ---------- */
.flowcard {
  width: 100%;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, .07), transparent 45%),
    #0b0b12;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 1);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% { transform: translateY(-11px); }
}

.flowcard__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .022);
}
.flowcard__bar > span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.flowcard__bar > span:first-child { background: rgba(124, 92, 255, .6); }
.flowcard__name {
  margin-left: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
}

.flow { display: block; width: 100%; height: auto; padding: .5rem .25rem 0; }

.flow__wire {
  fill: none;
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.node rect {
  fill: rgba(255, 255, 255, .038);
  stroke: var(--border-lit);
  stroke-width: 1;
}
.node--ai rect {
  fill: rgba(124, 92, 255, .17);
  stroke: var(--accent-1);
  stroke-width: 1.4;
}
.node__t {
  fill: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-anchor: middle;
}
.node__s {
  fill: #8b8b9e;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  text-anchor: middle;
}

.flowcard__foot {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
}
.flowcard__live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2.4s infinite;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1.1rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee__track img {
  width: 22px; height: 22px;
  opacity: .6;
  transition: opacity .3s var(--ease);
}
.marquee:hover .marquee__track span { color: var(--text); }
.marquee:hover .marquee__track img { opacity: .95; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS — shared rhythm for every section on the page
   ============================================================ */
.section { padding-block: var(--section-y); position: relative; }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--industries { border-block: 1px solid var(--border); background: rgba(12, 12, 18, .52); }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .85rem;
}
.section__eyebrow::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: 0;
  color: var(--text-faint);
  padding-right: .7rem;
  border-right: 1px solid var(--border);
}
.section__eyebrow:not([data-num])::before { content: none; }

.section__title { font-size: clamp(1.95rem, 4.6vw, 3rem); margin-bottom: 1rem; }
.section__lede  { font-size: 1.0625rem; color: var(--text-dim); }

.industry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}
.industry-list li {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .65rem;
  padding: 1.35rem;
  background: var(--bg);
}
.industry-list strong { font-family: var(--font-display); font-size: 1rem; }
.industry-list span { color: var(--text-dim); font-size: .82rem; line-height: 1.45; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
/* Fixed 3-up so six cards land as a clean 3x2 — no orphan row */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-lit); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.35rem;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-size: 1.18rem; margin-bottom: .7rem; }
.card__text  { font-size: .93rem; color: var(--text-dim); margin-bottom: 1.25rem; }

.card__list { display: grid; gap: .5rem; }
.card__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .865rem;
  color: var(--text-faint);
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ============================================================
   WORK
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  padding: .55rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-elev);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--border-lit); }
.filter.is-active { background: var(--grad); border-color: transparent; color: #fff; }

/* Fixed 3-up: six equal cards land as a clean 2x3, no orphan row */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--border-lit);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9);
}
.project.is-hidden { display: none; }

/* Flex column so every card's CTA lands on the same baseline */
.project__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 25%, rgba(124, 92, 255, .5), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(34, 211, 238, .38), transparent 60%),
    #101017;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.project__media::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .82);
}
.project__media:has(img)::after { content: none; }
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project:hover .project__media img { transform: scale(1.05); }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.4rem 1.65rem;
}

.project__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.tag {
  padding: .25rem .7rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .03);
}
.tag--live {
  border-color: var(--accent-1);
  color: var(--accent-2);
  background: rgba(124, 92, 255, .12);
}

.project__title { font-size: 1.18rem; margin-bottom: .5rem; }
.project__text  { font-size: .9rem; color: var(--text-dim); margin-bottom: .9rem; }

/* Outcome line — the bit that actually sells the project.
   margin-top:auto pins it (and the CTA) to the bottom of every card. */
.project__result {
  margin-top: auto;
  padding: .6rem .8rem;
  margin-bottom: 1.1rem;
  border-left: 2px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  background: rgba(34, 211, 238, .07);
  font-size: .84rem;
  color: var(--text-dim);
}
.project__result b { color: var(--text); font-weight: 600; }

.project__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent-2);
}
.project__cta em { font-style: normal; transition: transform .3s var(--ease); }
.project:hover .project__cta em { transform: translateX(5px); }

/* ============================================================
   STACK
   ============================================================ */
.stack__label {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-faint);
  padding-bottom: .85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.stack__label--gap { margin-top: 3.75rem; }

/* AI tool grid — fixed 4-up so eight cards land as a clean 2x4 */
.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.tool {
  position: relative;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.tool::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.tool:hover {
  transform: translateY(-4px);
  border-color: var(--border-lit);
  background: var(--bg-elev-2);
}
.tool:hover::after { transform: scaleY(1); }

/* Brand logo tile. Icons are white SVGs, so a neutral tile suits every brand. */
.tool__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 1.05rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .05);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.tool:hover .tool__logo {
  background: rgba(255, 255, 255, .1);
  border-color: var(--border-lit);
}
.tool__logo img {
  width: 22px; height: 22px;
  opacity: .92;
}

/* Fallback for brands with no freely-licensed logo available */
.tool__logo--mono {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}
.tool:hover .tool__logo--mono { background: var(--grad); border-color: transparent; }

.tool__name { position: relative; font-size: 1.02rem; margin-bottom: .4rem; }
.tool__role { position: relative; font-size: .865rem; color: var(--text-dim); }

/* Web skill bars */
.skills {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.2fr);
  gap: 1.15rem;
}
.skills__group {
  padding: 1.85rem 1.65rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.skills__title {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}

.bar + .bar { margin-top: 1.15rem; }
.bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
  font-size: .9rem;
}
.bar__head span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  font-weight: 500;
}
.bar__logo { width: 16px; height: 16px; opacity: .75; flex: none; }
.bar__head b {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-faint);
  font-weight: 500;
}
.bar__track {
  height: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.bar__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--grad);
  transition: width 1.15s var(--ease);
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, .03);
  transition: all .25s var(--ease);
}
.chips li:hover {
  color: var(--text);
  border-color: var(--accent-1);
  background: rgba(124, 92, 255, .12);
}
.chip__logo { width: 14px; height: 14px; opacity: .7; flex: none; }
.chips li:hover .chip__logo { opacity: 1; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.steps { display: grid; gap: .75rem; }

.step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.step:hover {
  transform: translateX(5px);
  border-color: var(--border-lit);
  background: var(--bg-elev-2);
}

.step__num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}
.step__title { font-size: 1.02rem; margin-bottom: .4rem; }
.step__text  { font-size: .88rem; color: var(--text-dim); }

.process__visual { display: flex; justify-content: center; }

/* ============================================================
   ABOUT + TIMELINE
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about__text { color: var(--text-dim); margin-bottom: 1.1rem; font-size: 1rem; }
.about__intro .section__title { margin-bottom: 1.5rem; }

.about__facts {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.fact {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  background: var(--bg);
  font-size: .9rem;
}
.section--alt .fact { background: var(--bg-alt); }
.fact__k { color: var(--text-faint); }
.fact__v { color: var(--text); font-weight: 500; text-align: right; }

.timeline__heading {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-faint);
  padding-bottom: .85rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), transparent);
}

.timeline__item { position: relative; padding-bottom: 2.25rem; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -1.75rem;
  top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-1);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .4rem;
}
.timeline__role { font-size: 1.08rem; margin-bottom: .2rem; }
.timeline__org  { font-size: .9rem; color: var(--text-faint); margin-bottom: .6rem; }
.timeline__text { font-size: .92rem; color: var(--text-dim); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
/* Two columns: the long review anchors the left, the two short ones stack right.
   Wide cards keep captions on one line — three narrow columns wrapped them badly. */
.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 1.15rem;
}
.quote--lead { grid-row: span 2; }

.quote {
  position: relative;
  display: flex;
  flex-direction: column;   /* lets the caption pin to the bottom */
  height: 100%;
  padding: 2.1rem 1.9rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.quote::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.quote:hover {
  transform: translateY(-4px);
  border-color: var(--border-lit);
  background: var(--bg-elev-2);
}
.quote:hover::before { opacity: 1; }

/* Oversized decorative quote mark */
.quote__mark {
  position: absolute;
  top: -.75rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  pointer-events: none;
  user-select: none;
}

.quote__stars {
  position: relative;
  color: #fbbf24;
  font-size: .82rem;
  letter-spacing: .18em;
  margin-bottom: 1.1rem;
}

/* flex:1 pushes every caption to the same baseline regardless of quote length */
.quote blockquote {
  position: relative;
  flex: 1;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}

/* Platform chip, in each platform's own brand green */
.quote__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.quote__badge--upwork { background: #14a800; }
.quote__badge--fiverr { background: #1dbf73; }

.quote__id { display: grid; gap: .05rem; min-width: 0; }
.quote__who   { font-weight: 600; font-size: .9rem; line-height: 1.4; }
.quote__where { font-size: .8rem; color: var(--text-faint); line-height: 1.4; }

/* The lead card carries more text, so give it room to breathe */
.quote--lead blockquote { font-size: 1.05rem; }

/* ============================================================
   PLATFORMS
   ============================================================ */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.platform:hover { transform: translateY(-4px); border-color: var(--border-lit); background: var(--bg-elev-2); }
.platform__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.platform__stat { font-size: .9rem; color: var(--text-dim); }
.platform__go {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  color: var(--text-faint);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.platform:hover .platform__go { transform: translate(3px, -3px); color: var(--accent-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.contact__intro .section__title { margin-bottom: 1.5rem; }

.contact__list { margin-top: 2rem; display: grid; gap: 1.1rem; }
.contact__list li { display: grid; gap: .15rem; }
.contact__k {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  font-weight: 500;
}
.contact__v { font-size: 1.02rem; font-weight: 500; }
a.contact__v:hover { color: var(--accent-2); }

.form {
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}
.field__opt { color: var(--text-faint); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: #14141c; color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(124, 92, 255, .07);
}

.field.has-error input,
.field.has-error textarea { border-color: #f87171; }

.field__error { margin-top: .35rem; font-size: .8rem; color: #f87171; }

.form__status { margin-top: 1rem; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form__status.is-ok    { color: #34d399; }
.form__status.is-error { color: #f87171; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 2.25rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer__copy { font-size: .875rem; color: var(--text-faint); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { font-size: .875rem; color: var(--text-dim); }
.footer__links a:hover { color: var(--accent-2); }

.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 8px 22px -8px rgba(124, 92, 255, .9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Services, work and tools step down before they get cramped */
@media (max-width: 1040px) {
  .cards     { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .tools     { grid-template-columns: repeat(2, 1fr); }
  .skills    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 122px;
    padding-bottom: 72px;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; margin-bottom: 1.5rem; }
  .hero__content { text-align: left; }

  .portrait { max-width: 320px; }
  .float--a { left: -2%; }
  .float--b { right: -4%; }
  .float--c { left: 0; }

  .process { grid-template-columns: 1fr; }
  .process__visual { order: -1; }
}

@media (max-width: 900px) {
  .about,
  .contact { grid-template-columns: 1fr; }

  .quotes { grid-template-columns: 1fr; }
  .quote--lead { grid-row: auto; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }

  .hero__visual { display: none; }

  .quote {
    padding: 1.45rem 1.25rem 1.25rem;
    border-radius: 14px;
    border-left: 2px solid rgba(124, 92, 255, .55);
  }
  .quote__mark {
    top: -.45rem;
    right: .8rem;
    font-size: 4.2rem;
  }
  .quote__stars {
    margin-bottom: .75rem;
    font-size: .75rem;
  }
  .quote blockquote,
  .quote--lead blockquote {
    font-size: .94rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
  }
  .quote figcaption {
    align-items: flex-start;
    gap: .6rem;
    padding-top: .9rem;
  }
  .quote__badge { width: 32px; height: 32px; }
  .quote__who { font-size: .82rem; }
  .quote__where { font-size: .74rem; }

  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(10, 10, 15, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    padding: .85rem .25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__link.is-active::after { display: none; }
  .nav__link--cta {
    margin: 1rem 0 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .hero__actions { margin-bottom: 2.5rem; }
  .btn { flex: 1 1 auto; }

  .footer__inner { flex-direction: column; text-align: center; }

  .cards     { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .skills    { grid-template-columns: 1fr; }
  .industry-list { grid-template-columns: 1fr; }
  .stats     { grid-template-columns: repeat(2, 1fr); }

  /* Floating cards get cramped on small screens — drop them */
  .float { display: none; }
  .portrait { max-width: 290px; aspect-ratio: 2 / 3; }
  .hero__canvas {
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .68;
  }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
  .badge { font-size: .75rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track,
  .flowcard,
  .float,
  .portrait__blob,
  .portrait__ring,
  .hero__canvas { animation: none; }
  .flow__pulse { display: none; }
}
