:root {
  --bg: #0a0b14;
  --bg-alt: #0f1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #f3f4fa;
  --text-dim: #a6a9c4;
  --text-dimmer: #74779a;
  --accent-1: #7c6cff;
  --accent-2: #ec4899;
  --accent-3: #f59e0b;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  --radius: 18px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { padding-left: 1.1em; margin: 0.6em 0 0; }
li { margin-bottom: 0.5em; color: var(--text-dim); }

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.orb-1 {
  width: 520px; height: 520px;
  background: var(--accent-1);
  top: -160px; left: -120px;
  animation: float1 22s ease-in-out infinite;
}
.orb-2 {
  width: 460px; height: 460px;
  background: var(--accent-2);
  top: 30%; right: -180px;
  animation: float2 26s ease-in-out infinite;
}
.orb-3 {
  width: 380px; height: 380px;
  background: var(--accent-3);
  bottom: -140px; left: 30%;
  animation: float3 30s ease-in-out infinite;
  opacity: 0.22;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 80px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-70px, 50px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.08); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 11, 20, 0.65);
  border-bottom: 1px solid var(--surface-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-logo .dot { color: var(--accent-2); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0b14 !important;
  font-weight: 600;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Layout helpers */
.section {
  position: relative;
  z-index: 1;
  padding: 56px 24px;
}
.section-alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent);
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 28px;
  font-weight: 700;
}
.lede {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 18px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 40px 24px 24px;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-photo { display: flex; justify-content: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-3);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin: 0 0 12px;
}
.hero-desc {
  font-size: 1.02rem;
  color: var(--text-dimmer);
  max-width: 620px;
  margin: 0 0 24px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Photo frames (headshot + work thumbnails) */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px dashed var(--surface-border);
}
.photo-frame .frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.photo-frame.loaded .frame-img { opacity: 1; }
.photo-frame.loaded .frame-placeholder { opacity: 0; pointer-events: none; }
.frame-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--text-dimmer);
  transition: opacity 0.3s ease;
}
.frame-placeholder .ph-icon {
  width: 34px;
  height: 34px;
  opacity: 0.7;
}
.frame-placeholder .ph-text {
  font-size: 0.78rem;
  line-height: 1.5;
}
.frame-placeholder code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.photo-frame-round {
  width: 280px;
  height: 340px;
  border-radius: 28px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 0 0 6px rgba(124, 108, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.photo-frame-round .frame-img { object-position: center top; }

.work-frame {
  aspect-ratio: 16 / 10;
  border-radius: 14px 14px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--gradient);
  color: #0a0b14;
  box-shadow: 0 8px 30px rgba(124, 108, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(236, 72, 153, 0.35); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* Leadership approach */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.lead-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 20px 20px 22px;
  border-top: 2px solid transparent;
  border-image: var(--gradient) 1;
  transition: transform 0.25s;
}
.lead-card:hover { transform: translateY(-3px); }
.lead-card h3 {
  font-size: 0.98rem;
  margin: 0 0 8px;
}
.lead-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 255, 0.4);
}
.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num span { color: var(--accent-3); -webkit-text-fill-color: var(--accent-3); }
.stat-label { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--surface-border);
}
.tl-item {
  position: relative;
  margin-bottom: 48px;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-marker {
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(124, 108, 255, 0.6);
}
.tl-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 4px;
}
.tl-head h3 { margin: 0; font-size: 1.15rem; }
.tl-prev { font-weight: 400; color: var(--text-dimmer); font-size: 0.85em; }
.tl-date {
  font-size: 0.82rem;
  color: var(--accent-3);
  font-weight: 700;
  white-space: nowrap;
}
.tl-company {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}
.tl-tag {
  font-weight: 400;
  color: var(--text-dimmer);
  font-size: 0.85em;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 255, 0.4);
}
.work-card h3 {
  font-size: 1rem;
  margin: 18px 20px 8px;
}
.work-card p {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin: 0 20px 20px;
}

/* Documentation samples */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.doc-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 255, 0.4);
}
.doc-icon {
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--accent-2);
}
.doc-icon svg { width: 100%; height: 100%; }
.doc-body h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.doc-body p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.doc-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-1);
}
.doc-link:hover { color: var(--accent-2); }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-group h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  margin: 0 0 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.86rem;
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.chips span:hover {
  border-color: var(--accent-1);
  color: var(--text);
}

/* Credentials */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cred-col h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.92rem;
}
.cred-list li:last-child { border-bottom: none; }

/* Contact */
.section-contact { text-align: center; }
.section-contact .lede { margin-left: auto; margin-right: auto; }
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 40px;
  color: var(--text-dimmer);
  font-size: 0.85rem;
}

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

/* Responsive */
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .photo-frame-round { width: 200px; height: 240px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 11, 20, 0.97);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .stat-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .tl-head { flex-direction: column; }
}
