@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --surface: #f4f4f5;
  --surface-hover: #ececee;
  --accent: #0c1222;
  --accent-soft: #1e293b;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-light: rgba(29, 78, 216, 0.06);
  --brand-border: rgba(29, 78, 216, 0.22);
  --green: #047857;
  --green-light: rgba(4, 120, 87, 0.08);
  --green-border: rgba(4, 120, 87, 0.22);
  --text: #0c1222;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(12, 18, 34, 0.08);
  --border-strong: rgba(12, 18, 34, 0.12);
  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.04);
  --shadow-md: 0 4px 24px rgba(12, 18, 34, 0.06);
  --shadow-lg: 0 12px 48px rgba(12, 18, 34, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-h: 72px;
  --container: min(1200px, 100% - 3rem);
  --F: 'Plus Jakarta Sans', system-ui, sans-serif;
  --M: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--F);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1.25rem;
  font-family: var(--M);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── Navigation ── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: var(--nav-h);
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
#site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--M);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--brand); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; }
.nav-drawer-header, .nav-drawer-footer { display: none; }

@media (max-width: 900px) {
  #site-nav { z-index: 201; }
  .nav-toggle { display: flex; position: relative; z-index: 202; }
  .nav-toggle[aria-expanded="true"] { background: var(--brand-light); border-color: var(--brand-border); }
  .nav-cta { display: none; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 198;
    background: rgba(12, 18, 34, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }

  .nav-drawer {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    z-index: 200;
    width: min(20rem, 88vw);
    height: calc(100dvh - var(--nav-h));
    height: calc(100vh - var(--nav-h));
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 48px rgba(12, 18, 34, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s var(--ease);
    overflow: hidden;
  }
  .nav-drawer.open { transform: translateX(0); }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0.75rem;
    flex-shrink: 0;
  }
  .nav-drawer-title {
    font-family: var(--M);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .nav-drawer-brand { font-size: 0.8125rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

  .nav-links {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 1rem 1rem;
    overflow-y: auto;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
  }
  .nav-links a::after { content: '→'; font-size: 0.875rem; color: var(--brand); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s, transform 0.2s var(--ease); }
  .nav-links a:hover::after, .nav-links a:focus-visible::after { opacity: 1; transform: translateX(0); }
  .nav-links a.active { color: var(--brand); background: var(--brand-light); border-color: var(--brand-border); }
  .nav-links a.active::after { opacity: 1; transform: translateX(0); }

  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
  }
  .nav-drawer-cta { width: 100%; justify-content: center; padding: 0.9rem 1.25rem; font-size: 0.9375rem; }
  .nav-drawer-status { font-family: var(--M); font-size: 0.625rem; color: var(--green); text-align: center; letter-spacing: 0.04em; line-height: 1.5; }
  .nav-drawer-status::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    margin-right: 0.4rem;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
  }

  body.nav-open { overflow: hidden; }
}

@media (min-width: 901px) {
  .nav-drawer { display: flex; align-items: center; flex: 1; justify-content: center; }
  .nav-drawer-footer, .nav-drawer-header { display: none !important; }
}

/* ── Layout ── */
.page { padding-top: var(--nav-h); }
.container { width: var(--container); margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem); }
section.alt { background: var(--surface); }

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}
.page-hero .eyebrow {
  font-family: var(--M);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-hero h1 .accent { color: var(--brand); }
.page-hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 36rem;
  margin-top: 1rem;
}

/* Section headers */
.sec-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.sec-tag {
  font-family: var(--M);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sec-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  transform-origin: left center;
  transform: scaleX(0.15);
  transition: transform 0.8s var(--ease);
}
.reveal.visible .sec-line { transform: scaleX(1); }
.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text);
}
.sec-title .pop { color: var(--brand); }
.sec-link {
  font-family: var(--M);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.sec-link:hover { opacity: 0.75; }

/* ── Hero (home) ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(29, 78, 216, 0.05) 0%, transparent 55%),
    linear-gradient(rgba(12, 18, 34, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 34, 0.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--M);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 0.45rem 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  background: var(--green-light);
  border-radius: 100px;
  animation: fadeUp 0.7s ease forwards;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.7s 0.08s ease both;
}
.hero h1 .name-accent { display: block; color: var(--brand); }

.hero-certs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; animation: fadeUp 0.7s 0.16s ease both; }
.hero-role {
  font-family: var(--M);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  max-width: 28rem;
  animation: fadeUp 0.7s 0.22s ease both;
}
.hero-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 28rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.28s ease both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: fadeUp 0.7s 0.34s ease both; }

/* Stats grid */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-photo { flex: 1; min-height: 23rem; overflow: hidden; background: var(--surface); border-right: 1px solid var(--border); }
.hero-photo-frame { position: relative; isolation: isolate; display: flex; }
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18);
  background: radial-gradient(180px circle at var(--mx, 70%) var(--my, 30%), rgba(29, 78, 216, 0.16), transparent 55%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.hero-photo { position: relative; }
.hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.hero-photo-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--M);
  font-size: 0.625rem;
}
.hero-photo-fallback .fallback-mark {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--M);
  font-weight: 500;
  font-size: 1.25rem;
}
.stat-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.stat-box { background: var(--bg-elevated); padding: 1.25rem; }
.stat-num { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-num .plus { color: var(--brand); }
.stat-num.accent { color: var(--brand); }
.stat-label {
  font-family: var(--M);
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.expertise-card {
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.expertise-card .label {
  font-family: var(--M);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Company strip */
.co-strip-section { padding: 2.5rem 0; overflow: hidden; }
.co-strip-label {
  font-family: var(--M);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.co-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.co-marquee-track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
  padding-inline: 0.5rem;
}
.co-marquee:hover .co-marquee-track { animation-play-state: paused; }
.co-strip-item {
  background: var(--bg-elevated);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.co-strip-item:hover { border-color: var(--brand-border); box-shadow: var(--shadow-sm); }
.co-mono {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--M);
  font-size: 0.6rem;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
.co-img { height: 22px; width: auto; max-width: 96px; object-fit: contain; flex-shrink: 0; display: block; }
.co-img.wide { height: 26px; max-width: 120px; }
.co-strip-item span { font-family: var(--M); font-size: 0.6875rem; color: var(--text-muted); white-space: nowrap; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.cell {
  background: var(--bg-elevated);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.cell:hover { box-shadow: var(--shadow-md); border-color: var(--brand-border); }
.cell.alt-bg { background: var(--bg-elevated); }

.cell-eyebrow {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.cell-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.cell-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* Project cards */
.project-card { padding: 2rem; }
.project-card-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.project-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.project-logo .pl-mono {
  font-family: var(--M);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.project-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.project-meta { font-family: var(--M); font-size: 0.625rem; font-weight: 500; margin-top: 0.15rem; }
.project-meta.live { color: var(--green); }
.project-meta.tech { color: var(--brand); }
.project-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.project-stack { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; }
.project-stack .tech-chip {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--bg-elevated);
}

/* Tags & pills */
.tag {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.02em;
  background: var(--bg-elevated);
  display: inline-block;
  border-radius: 100px;
}
.tag.hi { color: var(--brand); border-color: var(--brand-border); background: var(--brand-light); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.cpill {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--brand);
  border: 1px solid var(--brand-border);
  padding: 0.25rem 0.7rem;
  letter-spacing: 0.04em;
  background: var(--brand-light);
  display: inline-block;
  border-radius: 100px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-dark {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
  z-index: -1;
}
.btn-dark:hover::before { transform: translateX(0); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-sm { font-size: 0.8125rem; padding: 0.55rem 1.1rem; }

/* Timeline */
.timeline { position: relative; max-width: 900px; }
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-period {
  font-family: var(--M);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
}
.edu-logo { height: 44px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.tl-logo { height: 28px; width: auto; max-width: 110px; object-fit: contain; flex-shrink: 0; }
.project-logo .pl-img { width: 100%; height: 100%; object-fit: contain; }
.tl-role-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.tl-role { font-size: 1.0625rem; font-weight: 700; margin: 0; }
.tl-co { font-family: var(--M); font-size: 0.75rem; font-weight: 500; color: var(--brand); margin-bottom: 0.6rem; }
.tl-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; max-width: 36rem; }
.tl-bullets { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tl-bullets li { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; padding-left: 1.25rem; position: relative; }
.tl-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.co-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--M);
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
}

/* Skills */
.skill-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.skill-label { font-family: var(--M); font-size: 0.6875rem; color: var(--text-secondary); white-space: nowrap; }
.skill-track { flex: 1; height: 4px; background: var(--surface); border-radius: 2px; position: relative; overflow: hidden; }
.skill-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: fillBar 1.2s ease forwards;
}
@keyframes fillBar { to { transform: scaleX(1); } }

/* Cert grid */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cert-item {
  background: var(--bg-elevated);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cert-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-border); }
.cert-logo-placeholder {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--M);
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}
.cert-name { font-size: 0.8125rem; font-weight: 700; line-height: 1.35; }
.cert-issuer { font-family: var(--M); font-size: 0.625rem; color: var(--text-muted); }
.cert-date { font-family: var(--M); font-size: 0.625rem; color: var(--brand); font-weight: 500; }

/* Tech stack grid */
.tech-stack-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech-stack-item {
  background: var(--bg-elevated);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 90px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.tech-stack-item:hover { box-shadow: var(--shadow-sm); border-color: var(--brand-border); }
.tech-mono {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--M);
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
}
.tech-stack-item span { font-family: var(--M); font-size: 0.625rem; color: var(--text-muted); }

/* Education card */
.edu-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.edu-badge {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.edu-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.edu-degree { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.35rem; line-height: 1.5; }
.edu-date { font-family: var(--M); font-size: 0.6875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.edu-skills { font-family: var(--M); font-size: 0.625rem; color: var(--text-muted); }

/* Projects page */
.projects-quick-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.projects-quick-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.projects-quick-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.project-index-num {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.project-metric {
  font-family: var(--M);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-headline { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.contact-headline .accent { color: var(--brand); }
.contact-intro { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.profile-photo-wrap {
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-photo-wrap .fallback-mark { font-family: var(--M); font-size: 2.5rem; font-weight: 500; color: var(--text-muted); }

.clink-list { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  background: var(--bg-elevated);
}
.clink:last-child { border-bottom: none; }
.clink:hover { background: var(--brand-light); }
.clink-left { display: flex; align-items: center; gap: 1rem; }
.clink-lbl {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 64px;
}
.clink-val { font-size: 0.875rem; font-weight: 500; }
.clink-arr { font-size: 0.875rem; color: var(--brand); transition: transform 0.2s; }
.clink:hover .clink-arr { transform: translateX(4px); }

.label-upper {
  font-family: var(--M);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Form */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-input, .form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--F);
  font-size: 0.9375rem;
  padding: 0.8rem 1rem;
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--F);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}
.btn-submit:hover { background: var(--brand); transform: translateY(-1px); }
.form-hint { font-family: var(--M); font-size: 0.6875rem; color: var(--text-muted); text-align: center; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-elevated);
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-copy { font-size: 0.8125rem; color: var(--text-muted); }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--brand); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(29, 78, 216, 0.25); border-radius: 3px; }

/* ── Home: identity split, marquee, tilt ── */
.identity-section { padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem); }
.identity-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.identity-pane { padding: 2rem 2.25rem 2.25rem; transition: opacity 0.35s var(--ease), background 0.35s var(--ease); }
.identity-split:hover .identity-pane:not(:hover) { opacity: 0.48; }
.identity-pane:hover { background: var(--bg); }
.identity-art { width: 100%; max-width: 280px; height: auto; margin-bottom: 1.25rem; display: block; }
.identity-eyebrow {
  font-family: var(--M);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.identity-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.identity-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.1rem; max-width: 28rem; }
.identity-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.identity-chips span {
  font-family: var(--M);
  font-size: 0.625rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
}
.identity-divider {
  width: 24px;
  background: linear-gradient(180deg, transparent, rgba(29, 78, 216, 0.12), transparent);
  display: flex;
  justify-content: center;
}
.identity-divider svg { height: 100%; width: 24px; }
.draw-path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.identity-split.visible .draw-path { animation: drawStroke 1.4s var(--ease) forwards; }
.code-lines line { stroke-dasharray: 180; stroke-dashoffset: 180; }
.identity-split.visible .code-lines line { animation: drawStroke 0.9s var(--ease) forwards; }
.identity-split.visible .code-lines line:nth-child(2) { animation-delay: 0.12s; }
.identity-split.visible .code-lines line:nth-child(3) { animation-delay: 0.22s; }
.identity-split.visible .code-lines line:nth-child(4) { animation-delay: 0.32s; }

.home-page .project-index-card {
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.15s var(--ease);
}
.home-page .project-index-card .project-stack { transform: translateY(6px); opacity: 0.55; transition: transform 0.28s var(--ease), opacity 0.28s var(--ease); }
.home-page .project-index-card:hover .project-stack { transform: translateY(0); opacity: 1; }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; z-index: 1; mix-blend-mode: soft-light; }
.home-page .project-index-card:hover .card-glare { opacity: 1; }
.project-featured { border-color: var(--brand-border); box-shadow: var(--shadow-md); }
.project-featured::before {
  content: '';
  position: absolute;
  top: 1.15rem; right: 1.15rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.45);
  animation: livePing 2.2s ease-out infinite;
}
.home-page .project-index-num { font-size: 0.75rem; letter-spacing: 0.14em; }

@keyframes kenBurns { from { transform: scale(1.02); } to { transform: scale(1.08); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(4, 120, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; padding-bottom: 3rem; }
  .hero-photo { min-height: 16rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  footer { flex-direction: column; text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .identity-split { grid-template-columns: 1fr; }
  .identity-divider { width: 100%; height: 1px; background: var(--border); }
  .identity-divider svg { display: none; }
  .identity-split:hover .identity-pane:not(:hover) { opacity: 1; }
}

@media (max-width: 480px) {
  .cert-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .co-marquee-track, .status-pill, .hero h1, .hero-certs, .hero-role, .hero-bio, .hero-actions, .hero-stats, .status-dot, .project-featured::before { animation: none !important; }
  .draw-path, .code-lines line { stroke-dashoffset: 0 !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sec-line { transform: none; }
}
