:root {
  --bg: #05070b;
  --bg-elevated: #0a0e16;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2f7;
  --text-dim: #9aa5b3;
  --text-faint: #5b6472;
  --blue: #4da8ff;
  --green: #3ee08f;
  --blue-dim: rgba(77, 168, 255, 0.12);
  --green-dim: rgba(62, 224, 143, 0.12);
  --radius: 10px;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.5;
  padding-top: 64px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.5;
}

.bg-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -3;
  opacity: 0.28;
}
.bg-glow-blue { top: -200px; left: -120px; background: var(--blue); }
.bg-glow-green { top: 200px; right: -220px; background: var(--green); }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #070a10;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo .dot { color: var(--green); }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(62, 224, 143, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.small { padding: 4px 10px; }
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Mono label */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}
.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}
/* No aura, no frame, no glow. The portrait's own studio background is
   effectively the same near-black as --bg (photo corners sample 0–13 vs
   #05070b), so a plain, untinted radial fade on the image is enough for the
   edges to dissolve straight into the page. A neutral deepening plate sits
   behind it to settle the ambient .bg-glow to the photo's own black. */
.hero-photo::before {
  content: "";
  position: absolute;
  left: -45%;
  right: -45%;
  top: -26%;
  bottom: -22%;
  z-index: -1;
  pointer-events: none;
  filter: blur(30px);
  background: radial-gradient(
    ellipse 52% 56% at 50% 44%,
    var(--bg) 0%,
    var(--bg) 46%,
    rgba(5, 7, 11, 0.72) 66%,
    rgba(5, 7, 11, 0.32) 82%,
    rgba(5, 7, 11, 0) 100%
  );
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  mask-image: radial-gradient(
    ellipse 62% 60% at 50% 42%,
    black 55%,
    rgba(0, 0, 0, 0.6) 78%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 62% 60% at 50% 42%,
    black 55%,
    rgba(0, 0, 0, 0.6) 78%,
    transparent 100%
  );
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(77, 168, 255, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
}
.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #04101f;
}
.btn-primary:hover { background: #6bb8ff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); }
.arrow { font-size: 16px; }

/* Stat bar */
.stat-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.stat-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
}
.stat-value.ok { color: var(--green); }
.stat-value.pending { color: var(--blue); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  line-height: 1.4;
}
.stat-highlight { background: rgba(77, 168, 255, 0.05); }

/* Section head */
.section-head {
  margin-bottom: 48px;
}
.section-head.center { text-align: center; }
.section-head .mono-label { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-sub {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}

/* About */
.about { padding: 100px 0; border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 200px 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.about-photo {
  position: relative;
}
/* Same treatment as the hero portrait: no aura, no frame — just a neutral
   dark plate and a plain untinted fade so the edges dissolve into the page. */
.about-photo::before {
  content: "";
  position: absolute;
  left: -35%;
  right: -35%;
  top: -35%;
  bottom: -35%;
  z-index: -1;
  pointer-events: none;
  filter: blur(22px);
  background: radial-gradient(
    ellipse 67% 67% at 50% 48%,
    var(--bg) 0%,
    var(--bg) 52%,
    rgba(5, 7, 11, 0.7) 72%,
    rgba(5, 7, 11, 0.28) 88%,
    rgba(5, 7, 11, 0) 100%
  );
}
/* The mask ellipse is kept at 50% so the fade actually reaches full
   transparency at the image's own edge — anything larger leaves a partially
   opaque rim, which reads as a box wherever the page behind isn't black. */
.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  mask-image: radial-gradient(
    ellipse 50% 50% at 50% 46%,
    black 50%,
    rgba(0, 0, 0, 0.6) 78%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 50% 50% at 50% 46%,
    black 50%,
    rgba(0, 0, 0, 0.6) 78%,
    transparent 100%
  );
}
.about-text {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
}
.about-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-points li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.point-mark { color: var(--green); font-family: var(--font-mono); }

/* AI in healthcare */
.ai { padding: 100px 0; border-top: 1px solid var(--line); }
.ai-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.ai-lede {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.ai-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ai-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.ai-card:hover { border-color: var(--line-strong); }
.ai-card-kicker { color: var(--green); }
.ai-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.ai-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.brand-chip.brand-chip-wide {
  width: 120px;
  height: 60px;
}
/* Portrait fades softly on all four edges so it dissolves into the page, with
   no visible frame and no colored glow. The plate behind it is purely --bg (no
   hue): it settles the site's ambient glow down to the photo's own black so the
   edge has nothing to catch on. */
.ai-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}
.ai-photo::before {
  content: "";
  position: absolute;
  inset: -14% -24%;
  z-index: -1;
  pointer-events: none;
  filter: blur(28px);
  background: radial-gradient(
    ellipse 50% 52% at 50% 50%,
    var(--bg) 0%,
    var(--bg) 52%,
    rgba(5, 7, 11, 0.7) 70%,
    rgba(5, 7, 11, 0.3) 86%,
    rgba(5, 7, 11, 0) 100%
  );
}
.ai-photo img {
  width: 100%;
  height: auto;
  display: block;
  mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

/* Experience */
.experience { padding: 100px 0; border-top: 1px solid var(--line); }
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-org {
  display: block;
  color: var(--blue);
  font-size: 14px;
  margin-bottom: 16px;
}
.timeline-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-body li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Certifications */
.certifications { padding: 100px 0; border-top: 1px solid var(--line); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cert-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease;
}
.cert-card:hover { border-color: var(--line-strong); }
.cert-kicker {
  color: var(--green);
  line-height: 1.5;
}
.cert-card h3 {
  font-size: 20px;
  font-weight: 600;
}
.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.cert-meta span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 6px;
}
.cert-link {
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.cert-link:hover { text-decoration: underline; }

/* Work */
.work { padding: 100px 0 40px; border-top: 1px solid var(--line); }
.project { padding: 40px 0 100px; }
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.project-reverse .project-visual { order: -1; }
.project-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
  display: block;
  margin-bottom: 10px;
}
.project-kicker { display: block; margin-bottom: 16px; color: var(--blue); }
.project-info h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 16px;
}
.project-info p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.tag-list {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 7px 12px;
  border-radius: 6px;
}

/* Brand chips */
.brand-row { margin-top: 28px; }
.brand-row-label { display: block; margin-bottom: 12px; }
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 52px;
  background: #f4f5f7;
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.5);
}
.brand-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Linked chips */
a.brand-chip {
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.brand-chip:hover,
a.brand-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -14px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(77, 168, 255, 0.55);
}
a.brand-chip:focus-visible { outline: none; }

/* Project mock window */
.mock-window {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.6);
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.mock-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 260px;
}
.mock-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
}
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-line.w50 { width: 50%; }
.mock-line.w30 { width: 30%; }
.mock-main {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.mock-card {
  height: 70px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-dim), var(--green-dim));
  border: 1px solid var(--line);
}
.mock-card.wide { grid-column: 1 / -1; height: 90px; }

/* Fleet mock */
.mock-fleet-body { padding: 20px; }
.mock-fleet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.mock-fleet-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.mock-fleet-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}
.mock-fleet-value.ok { color: var(--green); }
.mock-fleet-key {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
}
.fleet-unit {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: var(--green-dim);
  border: 1px solid rgba(62, 224, 143, 0.35);
}

/* Terminal mock */
.mock-terminal-body {
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.term-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-prompt { color: var(--text-faint); flex-shrink: 0; }
.term-add .term-prompt { color: var(--green); }
.term-mod .term-prompt { color: var(--blue); }
.term-status { margin-left: auto; flex-shrink: 0; }
.term-add .term-status { color: var(--green); }
.term-mod .term-status { color: var(--blue); }
.term-cmd { color: var(--text); }
.term-summary {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green);
  white-space: normal;
}

/* Skills */
.skills { padding: 100px 0; border-top: 1px solid var(--line); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.skill-card:hover { border-color: var(--line-strong); }
.skill-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.skill-tags {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skill-tags li {
  font-size: 15px;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.skill-tags li:first-child { border-top: none; padding-top: 0; }

/* Vendors marquee */
.vendors { padding: 100px 0; border-top: 1px solid var(--line); }
.vendors .section-head { margin-bottom: 40px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.vendor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 76px;
  background: #f4f5f7;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.5);
}
.vendor-chip img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Personal */
.personal { padding: 100px 0; border-top: 1px solid var(--line); }
.personal-sub {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 16px;
}
.personal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.personal-grid-3 { grid-template-columns: repeat(3, 1fr); }
.personal-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}
.personal-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.personal-photo figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.verse {
  margin: 56px 0 0;
  text-align: center;
}
.verse p {
  font-style: italic;
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.verse cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* Contact */
.contact {
  padding: 110px 0 130px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

/* Responsive */
/* The full nav needs ~995px; tighten spacing, then drop the pill, before it can overflow. */
@media (max-width: 1040px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 960px) {
  .nav-right .pill { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .project-grid { grid-template-columns: 1fr; }
  .about-photo { width: 160px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 280px; order: -1; margin-bottom: 8px; }
  /* At this width the fixed .bg-glow-green sits close behind the photo, so the
     neutral plate reaches a little further to settle that ambient light down
     to the photo's own black. Purely --bg — no hue of its own. */
  .hero-photo::before {
    left: -70%;
    right: -70%;
    top: -24%;
    bottom: -20%;
    filter: blur(24px);
    background: radial-gradient(
      ellipse 46% 56% at 50% 44%,
      var(--bg) 0%,
      var(--bg) 46%,
      rgba(5, 7, 11, 0.72) 66%,
      rgba(5, 7, 11, 0.32) 82%,
      rgba(5, 7, 11, 0) 100%
    );
  }
  .ai-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-photo { justify-self: center; max-width: 340px; order: -1; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .cert-grid { grid-template-columns: 1fr; }
  .personal-grid { grid-template-columns: 1fr; }
  .stat-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .pill-live.eyebrow-tag { display: none; }
  .nav-right .pill { display: none; }
}

@media (max-width: 860px) {
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .ai-cards { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stat-bar-grid { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 80px 1fr; }
}

/* Keeps the long word "Infrastructure" inside the column on the smallest phones. */
@media (max-width: 400px) {
  .hero-title { font-size: 34px; }
}
