@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --funnel-green: #013f33;
  --funnel-green-80: #44645c;
  --funnel-green-20: #d1d9d6;
  --funnel-green-10: #e7ebea;
  --funnel-blue: #111827;
  --funnel-blue-80: #1f2937;
  --funnel-orange: #f86c54;
  --funnel-grey-700: #5b5b5b;
  --funnel-grey-400: #e2e2e2;
  --funnel-grey-100: #f7f7f7;
  --bg: var(--funnel-grey-100);
  --ink: #000000;
  --ink-soft: var(--funnel-grey-700);
  --surface: rgba(255, 255, 255, 0.94);
  --surface-border: rgba(226, 226, 226, 0.95);
  --sidebar-bg: linear-gradient(180deg, #013f33 0%, #2a5349 100%);
  --sidebar-ink: #ffffff;
  --sidebar-muted: var(--funnel-green-20);
  --accent: var(--funnel-blue);
  --accent-soft: rgba(17, 24, 39, 0.2);
  --shadow: 0 24px 50px rgba(1, 63, 51, 0.16);
  --font-sans: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-logo {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(17, 24, 39, 0.16), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(248, 108, 84, 0.12), transparent 30%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(0deg, rgba(25, 33, 45, 0.03) 1px, transparent 1px);
  background-size: 100% 24px;
  opacity: 0.35;
}

a {
  color: var(--funnel-green);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  padding: 1.5rem;
  z-index: 40;
  overflow-y: auto;
  color: var(--sidebar-ink);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(209, 217, 214, 0.6);
  transition: transform 0.32s ease;
}

.profile {
  margin-bottom: 1.25rem;
  text-align: center;
}

.profile-photo-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  border: 6px solid rgba(209, 217, 214, 0.35);
  overflow: hidden;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.profile h1 {
  margin: 0;
  line-height: 1.05;
  font-size: 1.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #f9fbff;
}

.role {
  margin: 0.65rem auto 0;
  line-height: 1.4;
  color: var(--sidebar-muted);
  max-width: 24ch;
}

.social-links {
  margin: 0.9rem 0 1rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(209, 217, 214, 0.35);
  transition: all 0.2s ease;
  position: relative;
}

.social-links a:hover {
  color: #ffffff;
  background: var(--funnel-blue);
  border-color: var(--funnel-blue);
}

.social-links a[data-tooltip]::before,
.social-links a[data-tooltip]::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a[data-tooltip]::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  font-size: 0.74rem;
  line-height: 1;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
}

.social-links a[data-tooltip]::before {
  content: "";
  bottom: calc(100% + 4px);
  transform: translate(-50%, 6px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.95);
}

.social-links a[data-tooltip]:hover::before,
.social-links a[data-tooltip]:hover::after,
.social-links a[data-tooltip]:focus-visible::before,
.social-links a[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sidebar-actions {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.74rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-primary {
  color: #ffffff;
  background: var(--funnel-blue);
  border: 1px solid var(--funnel-blue);
}

.btn-primary:hover {
  background: var(--funnel-blue-80);
  border-color: var(--funnel-blue-80);
}

.side-nav {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0.8rem;
}

.side-nav a {
  color: #ffffff;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0.38rem;
  padding: 0.52rem 0.58rem;
  font-size: 0.96rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  color: #d1d9d6;
  flex: 0 0 auto;
}

.side-nav a:hover,
.side-nav a.active {
  border-left-color: var(--funnel-blue);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.side-nav a:hover .nav-icon,
.side-nav a.active .nav-icon {
  color: var(--funnel-blue);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  z-index: 80;
  border: 0;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #ffffff;
  background: var(--funnel-green);
  box-shadow: 0 8px 20px rgba(1, 63, 51, 0.3);
}

.backdrop {
  display: none;
}

.main-content {
  margin-left: 300px;
  padding: 1.8rem 2.3rem;
}

.section {
  max-width: 980px;
  margin: 0 auto 1rem;
  padding: 1.4rem 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.22) 0%, transparent 68%);
}

.hero-kicker {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--funnel-green);
}

.hero h2 {
  margin: 0.6rem 0;
  line-height: 1.16;
  max-width: 20ch;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-family: var(--font-display);
}

.hero-lead {
  margin: 0.45rem 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

.hero-points {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  max-width: 60ch;
  color: #2c2c2c;
}

.hero-points li {
  margin-bottom: 0.35rem;
}

.stack-title {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--funnel-green);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.pill-row span {
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(17, 24, 39, 0.25);
  background: rgba(17, 24, 39, 0.08);
  color: var(--funnel-green);
}

.section h3 {
  margin: 0 0 0.85rem;
  font-size: 1.54rem;
  font-family: var(--font-display);
}

.section h4 {
  margin: 0;
  font-size: 1.04rem;
}

.section p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.summary-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #373737;
}

.summary-list li {
  margin-bottom: 0.52rem;
}

.value-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.value-card {
  padding: 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(209, 217, 214, 0.9);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 247, 247, 0.98) 100%);
}

.value-card p {
  margin: 0;
}

.value-card .value-number {
  margin-bottom: 0.32rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

.timeline {
  position: relative;
  margin-top: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(68, 100, 92, 0.32);
}

.timeline-item {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 1.1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.03rem;
  top: 0.42rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--funnel-orange);
}

.timeline-item > header {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.timeline-item > header > span {
  font-size: 0.86rem;
  color: #44645c;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #373737;
}

.timeline-item li {
  margin-bottom: 0.35rem;
}

.role-track {
  margin: 0 0 0.58rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #44645c;
}

.job-subsections {
  display: grid;
  gap: 0.65rem;
}

.job-subsection {
  padding: 0.72rem 0.8rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(209, 217, 214, 0.92);
  background: rgba(255, 255, 255, 0.92);
}

.job-subsection h5 {
  margin: 0 0 0.4rem;
  font-size: 0.89rem;
  line-height: 1.35;
  color: var(--funnel-green);
}

.job-subsection ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #373737;
}

.job-subsection li {
  margin-bottom: 0.3rem;
}

.project-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.05rem 1rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(209, 217, 214, 0.9);
  background: linear-gradient(155deg, #ffffff 0%, #f7f7f7 100%);
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(17, 24, 39, 0.4) 100%);
}

.project-card h4 {
  line-height: 1.3;
}

.project-summary {
  margin: 0;
  color: var(--ink-soft);
}

.stack-label {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--funnel-green);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-stack span {
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.3);
  background: rgba(17, 24, 39, 0.08);
  color: var(--funnel-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.56rem;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.skills-groups > div {
  padding: 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(209, 217, 214, 0.9);
  background: linear-gradient(155deg, #ffffff 0%, #f7f7f7 100%);
}

.skills-groups h4 {
  margin-bottom: 0.62rem;
  line-height: 1.3;
  color: var(--funnel-green);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips span {
  border-radius: 999px;
  border: 1px solid rgba(68, 100, 92, 0.35);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.3rem 0.58rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-105%);
  }

  .sidebar-toggle {
    display: grid;
    place-items: center;
  }

  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: rgba(2, 8, 15, 0.52);
  }

  .main-content {
    margin-left: 0;
    padding: 4rem 1rem 1rem;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .backdrop {
    display: block;
  }

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

@media (max-width: 640px) {
  .sidebar {
    width: min(88vw, 300px);
  }

  .section {
    padding: 1rem;
    border-radius: 0.85rem;
  }

  .timeline-item > header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::before,
  .sidebar,
  .sidebar-toggle,
  .backdrop,
  .no-print {
    display: none !important;
  }

  .main-content {
    margin: 0;
    padding: 0;
  }

  .section {
    margin: 0 0 0.45rem;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    color: #111111;
    text-decoration: none;
  }
}
