:root {
  --ink: #000;
  --ink-soft: #111;
  --navy: #282d46;
  --muted: #8898b3;
  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

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

:focus-visible { outline: 2px solid #1464ed; outline-offset: 4px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header { position: relative; }

.hero-lines {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  min-width: 1100px;
  pointer-events: none;
  z-index: -1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
}

.logo img { width: 120px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 44px; }

.nav-link {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  opacity: 0.9;
}
.nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 26px 0 18px;
  border-radius: 18px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resume-btn img { width: 20px; height: 20px; transform: rotate(30deg); }
.resume-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / 0.18); }

/* ---------- Hero ---------- */
.hero { padding-top: 140px; }

.hero h1 {
  font-size: clamp(30px, 4vw, 57px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.005em;
  max-width: 1100px;
}

.emoji {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.08em;
  margin-left: 0.04em;
}

.highlight {
  position: relative;
  white-space: nowrap;
  isolation: isolate;
}
.highlight::before {
  content: "";
  position: absolute;
  inset: -0.12em -0.24em -0.18em -0.7em;
  background: url("assets/highlight.png") center / 100% 100% no-repeat;
  z-index: -1;
}

.inline-link {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}
.inline-link:hover { text-decoration-thickness: 0.08em; }

/* ---------- Stats ---------- */
.stats { padding-top: 104px; }

.stats dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 24px;
}

.stat { display: flex; flex-direction: column-reverse; gap: 14px; }
.stat dd { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; color: var(--navy); }
.stat dt { font-size: clamp(16px, 1.67vw, 24px); font-weight: 400; color: var(--muted); }

/* ---------- Work ---------- */
.work { padding-top: 112px; }

.section-title {
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.cards { display: grid; gap: 60px; }

.card {
  position: relative;
  display: block;
  min-height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--card-bg);
  color: var(--card-ink);
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  width: 680px;
  padding: 72px 0 76px 80px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: clamp(28px, 3.15vw, 45px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.card-client { font-size: clamp(20px, 2vw, 28px); font-weight: 400; line-height: 1.3; }

.card-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-media,
.card:focus-visible .card-media { transform: translateX(-12px); }

.card--omnenest {
  --card-ink: #000;
  --card-bg: linear-gradient(90deg, #f1e6ff 0%, #f6eaf5 40%, #fff1e8 100%);
}
.card--omnenest .card-title {
  background: linear-gradient(95deg, #7a0ff0 0%, #a62fa1 45%, #ff6a1a 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card--jpmc { --card-bg: #e6f1f7; --card-ink: #0070aa; }
.card--zest { --card-bg: #e8f2fb; --card-ink: #1976d3; }
.card--basix { --card-bg: #ecf4ff; --card-ink: #3f88f9; }

/* ---------- Connect ---------- */
.connect {
  position: relative;
  margin-top: 120px;
  padding: 130px 0 100px;
  background: url("assets/connect-lines.png") center bottom / max(100%, 1100px) auto no-repeat;
}

.connect-inner { text-align: center; }

.connect h2 {
  font-size: clamp(36px, 4.3vw, 62px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.connect-sub {
  margin-top: 24px;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.connect-email {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  word-break: break-word;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 70px;
}

.social {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--b);
  border-radius: 8px;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social img { width: 36px; height: 36px; }
.social:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgb(0 0 0 / 0.08); }
.social--dribbble { --bg: #f7e9ef; --b: #b2215a; }
.social--linkedin { --bg: #e6f1f7; --b: #0274b3; }
.social--instagram { --bg: #ffe7ec; --b: #ff202e; }
.social--behance { --bg: rgb(20 100 237 / 0.1); --b: #2e77f8; }

/* ---------- Footer ---------- */
.footer { padding: 14px 0 12px; font-size: 16px; color: var(--navy); }

/* =====================================================================
   Homepage header + intro
   ===================================================================== */
.home { --cta: #0b6cf0; }
.topbar, .intro, .eyebrow { font-family: "Inter", "Poppins", system-ui, sans-serif; }
.home { border-top: 4px solid #2b2b2b; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 2.4vw, 34px);
}
.topbar-icons { display: flex; align-items: center; gap: 28px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; color: #111; transition: transform 0.2s ease; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--home { background: #000; color: #fff; border-radius: 50%; }
.icon-btn--home svg { width: 20px; height: 20px; }
.icon-btn:hover { transform: translateY(-2px); }

.topbar-links { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 46px); }
.topbar-link { font-size: 15px; font-weight: 500; color: #1f1f1f; text-decoration: none; white-space: nowrap; }
.topbar-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.topbar-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.topbar-cta:hover { background: #0057d8; transform: translateY(-1px); }

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px var(--gutter) 0;
  text-align: center;
}
.avatar {
  position: relative;
  z-index: 3;
  width: 136px;
  height: 117px;
  background: #ececec;
  clip-path: url(#pebble);
  transform-origin: 50% 92%;
  transition: transform 0.55s cubic-bezier(0.34, 1.35, 0.5, 1);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.3);
  transform-origin: 50% 35%;
  transition: transform 0.55s cubic-bezier(0.34, 1.35, 0.5, 1);
}
.sr-svg { position: absolute; width: 0; height: 0; }
/* Hover: the pebble grows ~1.5x (same shape) and the photo eases out to show a bit more */
@media (hover: hover) and (pointer: fine) {
  .avatar:hover { transform: scale(1.5); }
  .avatar:hover img { transform: scale(1.12); }
}
.intro-kicker {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font: 700 clamp(16px, 1.6vw, 23px)/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.intro-title {
  margin-top: 10px;
  font: 700 clamp(48px, 7vw, 104px)/1.06 "Inter", sans-serif;
  letter-spacing: -0.045em;
  color: #161616;
}
.intro-text {
  margin-top: 40px;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.95;
  color: #5f5f5f;
}
.intro-text a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.scroll-btn {
  display: grid;
  place-items: center;
  width: 70px;
  height: 86px;
  margin-top: 44px;
  border-radius: 40px;
  border: 3px solid #fff;
  background: radial-gradient(circle at 50% 22%, #4f8bff 0%, #1d55e8 55%, #1238c4 100%);
  color: #fff;
  box-shadow: 0 0 0 1px #d9def0, 0 14px 22px -8px rgb(18 56 196 / 0.55), 0 26px 30px -18px rgb(0 0 0 / 0.25), inset 0 -6px 10px rgb(0 0 0 / 0.18), inset 0 4px 8px rgb(255 255 255 / 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: nudge 2.4s ease-in-out infinite;
}
.scroll-btn svg { width: 34px; height: 34px; }
.scroll-btn:hover { transform: translateY(3px); animation: none; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.you-cursor {
  position: absolute;
  left: calc(50% + clamp(220px, 27vw, 400px));
  top: 300px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  z-index: 4;
  color: #1aa61a;
  will-change: transform;
}
.you-cursor svg { width: 26px; height: 26px; }
.you-cursor span {
  margin: 20px 0 0 -4px;
  padding: 5px 18px;
  border-radius: 999px;
  background: #1aa61a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.home .work { padding-top: 64px; }
.eyebrow {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f5872;
}
.home .stats { padding-top: 120px; }

@media (max-width: 1100px) {
  .you-cursor { display: none; }
}
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; justify-content: center; row-gap: 14px; }
  .topbar-icons { gap: 16px; }
  .topbar-links { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
  .topbar-link, .topbar-cta { font-size: 14px; }
  .intro { padding-top: 48px; }
  .intro-text { margin-top: 28px; }
  .intro-text .br-lg { display: none; }
}
@media (max-width: 480px) {
  .topbar-inner { justify-content: space-between; }
  .topbar-links { width: 100%; justify-content: space-between; gap: 10px; }
  .topbar-link { font-size: 13px; }
  .topbar-cta { padding: 8px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .scroll-btn { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .br-lg { display: none; }
}

@media (max-width: 1100px) {
  .card-text { padding: 56px 0 56px 48px; width: 48%; }
  .card-media { width: 56%; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .nav-links { gap: 20px; }
  .hero { padding-top: 96px; }
  .hero h1 { line-height: 1.45; }
  .stats { padding-top: 72px; }
  .stats dl { display: grid; grid-template-columns: 1fr 1fr; }
  .work { padding-top: 80px; }
  .cards { gap: 32px; }
  .card { display: flex; flex-direction: column; min-height: 0; }
  .card-text { min-height: 0; width: auto; padding: 36px 28px 28px; gap: 20px; }
  .card-title { line-height: 1.35; }
  .card-media { position: static; height: auto; aspect-ratio: 1; object-position: right top; margin-left: 28px; width: calc(100% - 28px); }
  .card:hover .card-media { transform: none; }
  .connect { margin-top: 64px; padding: 72px 0 120px; }
  .socials { gap: 24px; margin-top: 44px; }
}

@media (max-width: 480px) {
  .resume-btn { padding: 0 16px 0 12px; gap: 8px; }
  .hero-lines { opacity: 0.5; }
  .highlight::before { inset: -0.08em -0.2em -0.12em -0.35em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
