@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-subtle: #f4f4f5;
  --surface-dark: #131417;
  --surface-dark-2: #1b1d22;
  --ink: #202020;
  --ink-strong: #09090b;
  --ink-secondary: rgba(24, 24, 27, 0.68);
  --ink-muted: rgba(24, 24, 27, 0.48);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.05);
  --green: #22c55e;
  --green-bright: #3dd68c;
  --green-deep: #15803d;
  --amber: #f59e0b;
  --red: #f43f5e;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 5px;
}

.page {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1140px;
  padding-inline: 24px;
  margin-inline: auto;
}

/* ==========================================================================
   HERO-SHELL (UNTOUCHED)
   ========================================================================== */

.hero-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.lumina-canvas {
  position: absolute;
  top: -160px;
  right: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 160px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
}

.hero-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 310px;
  background: linear-gradient(to top, var(--bg) 8%, rgba(250, 250, 250, 0));
  z-index: 0;
  pointer-events: none;
}

.nav-bar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  width: 100%;
}

.nav {
  display: flex;
  gap: 44px;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: var(--ink);
  white-space: nowrap;
}

.nav a,
.nav button {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  background: none;
  border: none;
  padding: 4px 2px;
  transition: opacity 0.2s ease;
}

.nav a:hover,
.nav button:hover {
  opacity: 0.6;
}

.nav a:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  padding: 24px 24px 32px;
  width: 100%;
  flex-shrink: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 840px;
  max-width: 100%;
}

.profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 44px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  background: #eaeaea;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s var(--ease-spring);
}

.profile-wrap:hover .profile-photo {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.09);
}

.status-dot-badge {
  position: absolute;
  bottom: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.status-dot-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  display: inline-block;
}

.hero-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.headline {
  font-size: clamp(28px, 6.2vw, 42px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  width: 100%;
}

.word-reveal {
  display: inline-block;
  animation: wordSpringUp 0.45s var(--ease-spring) both;
}

@keyframes wordSpringUp {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

.fade-up {
  animation: wordSpringUp 0.5s var(--ease-spring) both;
}

/* ==========================================================================
   PILL ROWS & HOVER CARDS
   ========================================================================== */

.pill-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-inline: 24px;
}

.pill-row--top {
  z-index: 20;
  padding-bottom: 20px;
}

.pill-row--bottom {
  z-index: 10;
  padding-bottom: 24px;
}

.pill-row-label {
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: rgba(32, 32, 32, 0.6);
  white-space: nowrap;
}

.pill-group {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 38px;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: var(--ink);
  white-space: nowrap;
}

.pill-group .pill:nth-child(1) { margin-right: -8px; z-index: 3; }
.pill-group .pill:nth-child(2) { margin-right: -8px; z-index: 2; }
.pill-group .pill:nth-child(3) { border-radius: 122px; z-index: 1; }

.pill--preview {
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill--preview.is-open {
  z-index: 30 !important;
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.pill--preview:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}

/* Popover sits directly above the pill; padding-bottom is an invisible hover bridge */
.pill-pop {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.pill--preview.is-open .pill-pop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pill-pop-caption {
  padding: 2px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 38px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  white-space: nowrap;
}

.pill-pop-cards {
  display: flex;
  gap: 14px;
}

.pill-card {
  width: 260px;
  padding: 12px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  white-space: normal;
  transform: translateY(14px) scale(0.94);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.2s ease;
}

.pill--preview.is-open .pill-card {
  transform: none;
}

.pill--preview.is-open .pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.pill-card-thumb {
  aspect-ratio: 16 / 10;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 0% 0%, #26282d 0%, #131417 70%);
  color: #fff;
  text-align: left;
}

.pill-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.pill-card-top b {
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(61, 214, 140, 0.16);
  color: var(--green-bright);
  font-weight: 600;
}

.pill-card-metric {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pill-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.pill-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

@media (max-width: 900px) {
  .pill-row { flex-wrap: wrap; row-gap: 12px; }
}

@media (max-width: 640px) {
  .pill { font-size: 16px; }
  .pill-pop { display: none; }
}

/* ==========================================================================
   CONTENT BLOCKS
   ========================================================================== */

.block {
  padding-top: 56px;
  padding-bottom: 56px;
  max-width: 880px;
}

.block + .block {
  border-top: 1px solid var(--border);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.block-head h2 {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.block-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Intro */
.intro {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  max-width: 640px;
  margin-inline: auto;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: center;
}

.facts strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.facts span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Work rows */
.rows {
  list-style: none;
}

.rows li + li {
  border-top: 1px solid var(--border);
}

.row {
  display: grid;
  grid-template-columns: 32px 1fr auto 56px;
  align-items: center;
  gap: 16px;
  padding: 22px 8px;
  margin-inline: -8px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.row:hover,
.row:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  outline: none;
}

.row-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.row-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}

.row-desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.row-tags {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.row-go {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  transition: transform 0.2s var(--ease-spring);
}

.row:hover .row-go {
  transform: translateX(3px);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  display: inline-block;
}

/* Stack */
.stack > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.stack > div:first-child {
  border-top: none;
  padding-top: 0;
}

.stack dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-strong);
}

.stack dd {
  font-size: 14.5px;
  color: var(--ink-secondary);
}

/* Footer */
.footer {
  padding-bottom: 72px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mail {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  text-decoration: none;
}

.mail:hover {
  opacity: 0.65;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.6;
}

.copy {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   CONTACT MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.modal-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-strong);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-lead,
.modal-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.modal-email-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
}

.modal-email:hover {
  text-decoration: underline;
}

.modal-email-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
}

.modal-email-copied {
  font-size: 16px;
  font-weight: 600;
  color: var(--green-deep);
}

.modal-social-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-social-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-strong);
  text-decoration: none;
}

.modal-social-link:hover {
  opacity: 0.65;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 28px 20px 32px;
  }
  .profile-photo {
    width: 144px;
    height: 144px;
    border-radius: 40px;
  }
  .nav {
    gap: 24px;
  }
  .row {
    grid-template-columns: 28px 1fr 48px;
  }
  .row-tags {
    display: none;
  }
  .facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
  .stack > div {
    grid-template-columns: 88px 1fr;
  }
  .modal {
    padding: 32px 24px;
  }
}
