/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #0B0D10;
  --bg-raised: #12151A;
  --text: #F2EFEA;
  --text-muted: #8A8F98;
  --text-faint: #565B64;
  --accent: #D97D3F;
  --accent-soft: rgba(217, 125, 63, 0.12);
  --hairline: #1E2128;
  --hairline-strong: #2A2E36;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================
   CHIPS (shared: experience, skills, projects)
   ============================================ */
.chip-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 1.25rem;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: rgba(18, 21, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.7rem 0.7rem 0.7rem 1.5rem;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.scrolled .nav-inner {
  background: rgba(11, 13, 16, 0.85);
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.nav-cta) {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent);
  color: #0B0D10;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: filter 0.2s var(--ease);
}
.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 78px;
  left: var(--gutter);
  right: var(--gutter);
  background: rgba(18, 21, 26, 0.97);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  backdrop-filter: blur(16px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--hairline);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-mobile a:last-child { border-bottom: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-inner { max-width: 780px; }

.hero .eyebrow { margin-bottom: 1.5rem; }

.hero-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.08em;
}

.hero-sub {
  margin-top: 2rem;
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: filter 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #0B0D10;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--text-faint), transparent);
}

/* ============================================
   STATS
   ============================================ */
.stats {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 3.5rem 0;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-right: 1rem;
}

.stat-divider {
  width: 1px;
  height: 60%;
  align-self: center;
  background: var(--hairline);
}

.stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-number small {
  font-size: 0.4em;
  font-weight: 600;
  margin-left: 0.2em;
  color: var(--accent);
  font-family: var(--sans);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 2.34rem;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
  margin-top: 0.75rem;
  margin-bottom: 3.5rem;
}

.experience, .capabilities, .projects {
  padding: 7rem 0;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline-strong);
}

.timeline-entry {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-entry:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 2rem;
  width: 11px;
  height: 11px;
}
.timeline-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: border-color 0.25s var(--ease);
}
.timeline-card:hover { border-color: var(--hairline-strong); }

.timeline-meta { margin-bottom: 0.6rem; }
.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.timeline-company {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.company-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.timeline-role {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.timeline-bullets {
  margin-top: 1.1rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   CAPABILITY CARDS
   ============================================ */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 1.25rem;
}

.capability-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.capability-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.capability-content {
  flex: 0 0 auto;
}

.capability-card:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -1.25rem;
  width: 1.25rem;
  height: 1px;
  background: #1E2128;
}
.capability-card:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: -1.25rem;
  width: 1.25rem;
  transform: translateY(-50%);
  text-align: center;
  line-height: 1;
  font-size: 0.9rem;
  color: #1E2128;
}

.capability-number {
  font-family: var(--sans);
  color: var(--text-faint);
  font-size: 11px;
  opacity: 0.4;
  margin-bottom: 8px;
}

.capability-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.capability-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.capability-practice {
  flex-shrink: 0;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #1E2128;
}
.capability-practice .practice-label {
  margin-bottom: 0.5rem;
}

.practice-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.capability-practice p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   PROJECTS
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 2.25rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-card:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.project-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin-top: 0.6rem;
  letter-spacing: -0.01em;
}

.project-links { margin-top: 1.5rem; }
.project-links a {
  font-size: 12px;
  color: #8A8F98;
  text-decoration: none;
  word-break: break-all;
}
.project-links a:hover { text-decoration: underline; }

.project-stack {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: monospace;
}

.project-summary {
  margin-top: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.project-details {
  margin-top: 1.25rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.project-details li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.project-card .project-details li {
  color: #8A8F98;
}

.project-card .chip {
  border: 0.5px solid #8A8F98;
  color: #8A8F98;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 12px;
}
.project-grid .project-card:first-of-type .chip {
  border-radius: 4px !important;
}

/* ============================================
   SKILLS
   ============================================ */
.skills { padding: 7rem 0; }
.skills .section-heading { margin-bottom: 32px; }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.skills-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D97D3F;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1E2128;
}

.skills-category .chip-row { margin-top: 0; }

.skills-category .chip {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  border: 0.5px solid #8A8F98;
  color: #8A8F98;
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 8rem 0;
  text-align: center;
}

.contact .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}

.headshot-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
  margin-bottom: 2rem;
}
.headshot-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.contact-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  letter-spacing: -0.01em;
}

.contact-sub {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
}

.contact .btn-primary { margin-top: 2.25rem; }

.contact-email-row {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.contact-email {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.contact-email:hover { color: var(--text); }

.copy-btn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.copy-confirm {
  position: absolute;
  right: -0.5rem;
  transform: translateX(100%);
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.copy-confirm.show { opacity: 1; }

.testimonial {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
}
.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
}

.footer-tagline {
  margin-top: 0.6rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 260px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.footer-nav a:hover { color: var(--text); }

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-connect a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-connect a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3FD97D;
  box-shadow: 0 0 0 0 rgba(63, 217, 125, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 217, 125, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(63, 217, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 217, 125, 0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-card::before,
  .capability-card::after { display: none; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 0.6rem 0.6rem 0.6rem 1.25rem; gap: 0; justify-content: space-between; width: calc(100vw - 2.5rem); }

  .hero { padding-top: 7rem; }

  .stats { padding: 2.5rem 0; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }

  .experience, .capabilities, .projects, .skills { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2.5rem; }

  .timeline { padding-left: 1.75rem; }
  .timeline-marker { left: -1.75rem; top: 1.75rem; }
  .timeline-card { padding: 1.5rem 1.25rem; }
  .timeline-company { font-size: 1.35rem; }

  .capability-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }

  .project-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }

  .skills-grid { gap: 2rem; }

  .contact { padding: 5.5rem 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-col:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
}
