/* ============ Fonts ============ */
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ============ Variables ============ */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --trust-size: clamp(36px, 4.5vw, 42px);
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: auto;
  min-height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: none; cursor: pointer; }

/* ============ Background video ============ */
.bg {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.5));
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ============ Page layout ============ */
.page {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* ============ Header ============ */
.header {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.nav-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  height: 48px;
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12.5px, 1vw, 14.5px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  padding: 0 clamp(6px, 0.75vw, 12px);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { opacity: 0.75; }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}

.signin {
  flex-shrink: 0;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  height: clamp(44px, 5.2vw, 48px);
  display: none;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.signin:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.25s ease;
}
.burger span {
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.burger[aria-expanded="true"] {
  background: #fff;
}
.burger[aria-expanded="true"] span {
  background: #000;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============ Hero ============ */
.hero {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Trust row */
.trust {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: block;
  transition: transform 0.35s ease;
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}
.a1 { z-index: 1; }
.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.a3 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }
.a1:hover { transform: translateY(-2px); }
.a2:hover { transform: translateY(-4px); }
.a3:hover { transform: translateY(-2px); }

.trust-pill {
  height: var(--trust-size);
  display: flex;
  align-items: center;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  font-size: clamp(34px, 6.4vw, 86px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.headline .line {
  display: block;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; }

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

@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Subhead */
.subhead {
  max-width: min(600px, 92%);
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #e4e4e4;
  opacity: 0.92;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

/* CTA */
.cta {
  display: inline-block;
  margin-top: clamp(20px, 3vh, 30px);
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 30px rgba(255, 255, 255, 0.42),
    0 0 60px rgba(255, 255, 255, 0.18);
}

/* ============ Stats footer ============ */
.stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}

.stat-value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.stat-label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
}

/* ============ Shared entrance animation ============ */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
.header.anim {
  filter: none;
  animation-name: slideDown;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
.cta.pulse { animation-name: revealPulse; }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.9); filter: blur(6px); }
  70% { opacity: 1; transform: translateY(0) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .anim, .header.anim, .cta.pulse, .headline .line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ============ Mobile overlay / sheet ============ */
.overlay[hidden], .mobile-sheet[hidden] {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
  animation: overlayIn 0.28s ease forwards;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-sheet {
  position: fixed;
  top: calc(clamp(16px, 2.4vh, 28px) + 60px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.mlink, .msignin {
  position: relative;
  display: block;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 15px;
  color: var(--nav-text);
  opacity: 0;
  transform: translateY(8px);
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.05s);
}
@keyframes linkIn {
  to { opacity: 1; transform: translateY(0); }
}
.mlink.active { color: #000; font-weight: 600; }
.mlink.active::after {
  content: "";
  position: absolute;
  left: 21px;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}
.msignin {
  margin-top: 8px;
  background: var(--pill-dark);
  color: #fff;
  text-align: center;
}

body.menu-open { overflow: hidden; }

/* ============ Mobile (<=720px) ============ */
@media (max-width: 1100px) {
  .nav-pill, .signin { display: none !important; }
  .header { justify-content: space-between; max-width: 720px; }
  .burger { display: flex; }
}

@media (max-width: 720px) {
  .header { max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .headline { letter-spacing: -0.05em; line-height: 1.06; }
}

@media (min-width: 1101px) {
  .nav-pill { display: flex; }
  .signin { display: flex; }
  .burger { display: none; }
}

@media (max-width: 600px) {
  .trust-pill {
    white-space: normal;
    height: auto;
    min-height: var(--trust-size);
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.3;
    text-align: left;
    border-radius: 22px;
    max-width: 250px;
  }
}

@media (max-width: 420px) {
  :root { --trust-size: 34px; }
  .headline { letter-spacing: -0.05em; line-height: 1.04; }
  .trust-pill { font-size: 12px; }
}

@media (max-height: 700px) {
  .hero { gap: 0; }
  .trust { margin-bottom: clamp(10px, 1.6vh, 16px); }
  .subhead { margin-top: clamp(8px, 1.4vh, 14px); }
  .cta { margin-top: clamp(12px, 2vh, 18px); }
}

/* ============================================================
   Below-the-fold sections
   ============================================================ */
.content {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.section {
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.section.alt { background: #050505; }

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: clamp(32px, 5vh, 56px);
}

/* ---- Projects ---- */
.projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.gh-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 13px;
}
.gh-live i { font-size: 12px; color: #c4c2c3; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 3.5vh, 36px);
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: #c4c2c3;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.filter-btn.active { background: #fff; color: #111; border-color: #fff; }

.project-card.filtered-out {
  display: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}

.project-card {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.project-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c2c3;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  padding: 5px 10px;
  border-radius: 999px;
}
.project-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.project-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  color: #fff;
}

.project-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #b8b8b8;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.project-stack span {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}
.project-link i { font-size: 11px; }
.project-link.muted { color: var(--muted); font-weight: 500; }

.project-link-row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-link-row .project-link { padding-top: 0; margin-top: 0; }
.project-link.secondary {
  color: var(--muted);
  font-size: 15px;
}
.project-link.secondary:hover { color: #fff; }

/* ---- Timeline ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 44px);
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 20px;
}
.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.timeline-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: #fff;
}
.timeline-date {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-org {
  font-size: 13.5px;
  color: #a9a9a9;
  margin-top: 3px;
  margin-bottom: 10px;
}
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 18px;
}
.timeline-list li {
  font-size: 13.5px;
  line-height: 1.6;
  color: #b8b8b8;
  list-style: disc;
}

/* ---- About ---- */
.about-text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: #c9c9c9;
  max-width: 720px;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.skill-group h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips span {
  font-size: 12px;
  color: #c4c2c3;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  padding: 5px 11px;
}

.cert-line {
  margin-top: clamp(28px, 4vh, 44px);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Contact ---- */
.contact-section { text-align: center; }
.contact-inner { max-width: 640px; }
.contact-inner .about-text { margin-left: auto; margin-right: auto; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #c8c8c8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 11px 20px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.footer-note {
  font-size: 12px;
  color: var(--muted);
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 10px 1fr; }
  .section { padding: 56px 18px; }
}


/* ============================================================
   Product-positioning additions
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

section[id] { scroll-margin-top: 76px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 999px;
}
.nav-link:focus-visible, .mlink:focus-visible { outline-color: #000; }

/* ---- Sticky header ---- */
.header-slot {
  flex-shrink: 0;
  width: 100%;
  min-height: 48px;
}
.header.is-stuck {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  width: calc(100% - 28px);
  z-index: 10;
  animation-name: stickIn;
  animation-duration: 0.45s;
}
@keyframes stickIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero actions ---- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 30px);
}
.hero-actions .cta { margin-top: 0; }

.cta-secondary {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  color: #e6e6e6;
  background: rgba(40, 40, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cta-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ---- Shared sub heading ---- */
.sub-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  color: #fff;
  letter-spacing: -0.01em;
  margin: clamp(44px, 6.5vh, 72px) 0 clamp(18px, 2.5vh, 26px);
}

/* ---- About ---- */
.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 clamp(24px, 4vw, 48px);
}
.about-cols .about-text { margin-bottom: 18px; }
@media (min-width: 820px) {
  .about-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- How I Work ---- */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.process-step {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}
.process-step h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.process-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b8b8b8;
}
.process-step .process-proof {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 640px) {
  .process { grid-template-columns: 1fr; row-gap: 22px; }
}

/* ---- Experience ---- */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px clamp(24px, 3.5vw, 40px);
}
@media (min-width: 820px) {
  .exp-grid { grid-template-columns: 1fr 1fr; }
}
.exp-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  margin-bottom: 8px;
}
.exp-stack { margin-top: 18px; }

/* ---- Project case studies ---- */
.projects-head + .case { margin-top: clamp(24px, 3.5vh, 36px); }

.case {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 38px);
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.case-kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c2c3;
  background: var(--pill-dark);
  border: 1px solid var(--trust-border);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.case-tagline {
  margin-top: 6px;
  font-size: 14.5px;
  color: #b8b8b8;
}

.case-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 220px));
  gap: 18px clamp(16px, 2.5vw, 28px);
  margin: clamp(20px, 3vh, 28px) 0;
  padding: clamp(18px, 2.6vh, 24px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.outcome {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}
.outcome dd {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.outcome dd.outcome-text { font-size: clamp(22px, 2.8vw, 30px); }
.outcome dt {
  font-size: 12.5px;
  color: var(--muted);
}

.case-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px clamp(28px, 4vw, 48px);
}
@media (min-width: 820px) {
  .case-body { grid-template-columns: 1fr 1fr; }
}
.case-part h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 8px;
}
.case-part p,
.case-part li {
  font-size: 14.5px;
  line-height: 1.65;
  color: #b8b8b8;
}
.case-part ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-part li { list-style: disc; }

.case-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: clamp(22px, 3vh, 30px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.case-foot .project-stack { margin-top: 0; }
.case-foot .project-link-row { margin-top: 0; padding-top: 0; }

.project-problem {
  font-size: 13.5px;
  line-height: 1.55;
  color: #d2d2d2;
}
.project-problem strong { color: #fff; font-weight: 600; }

/* ---- Skills ---- */
.skill-groups { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.skill-primary .chips span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.62);
}
.also-line {
  margin-top: clamp(26px, 4vh, 40px);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 760px;
}

/* ---- Certifications ---- */
.cert-list {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cert {
  padding: clamp(18px, 2.6vh, 24px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cert-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cert-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 18px);
  color: #fff;
}
.cert-org {
  font-size: 13.5px;
  color: #a9a9a9;
  margin-top: 3px;
}
.cert-why {
  font-size: 14px;
  line-height: 1.6;
  color: #b8b8b8;
  margin-top: 8px;
  max-width: 70ch;
}

/* ---- Leadership ---- */
.lead-card {
  background: #0d0d0e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 38px);
}
.lead-card .timeline-head h3 { font-size: clamp(17px, 2vw, 21px); }
.lead-outcomes {
  grid-template-columns: repeat(2, minmax(0, 160px));
  margin: 18px 0 20px;
}

/* ---- Patent (kept compact) ---- */
#patent.section { padding-top: clamp(48px, 7vh, 80px); padding-bottom: clamp(48px, 7vh, 80px); }
.patent {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: clamp(16px, 2vw, 22px);
}
.patent h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.45;
  color: #fff;
  max-width: 62ch;
}
.patent-meta {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
