:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-elevated: #eef7fb;
  --surface-soft: #e8f0f5;
  --text: #162033;
  --muted: #536174;
  --accent: #007c89;
  --accent-strong: #005f69;
  --accent-2: #5b4fd6;
  --success: #0f7a63;
  --warning: #b66a00;
  --border: rgba(22, 32, 51, 0.13);
  --border-strong: rgba(0, 124, 137, 0.35);
  --shadow: 0 22px 70px rgba(40, 63, 95, 0.15);
  --radius: 8px;
  --max-width: 1220px;
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(0, 124, 137, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 137, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(91, 79, 214, 0.12), transparent 34rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

a:hover { color: var(--accent-strong); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 124, 137, 0.3);
  outline-offset: 4px;
}

.site-header,
.site-footer {
  padding: 1.1rem clamp(1rem, 4vw, 4rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 251, 0.88);
  border-bottom: 1px solid rgba(22, 32, 51, 0.08);
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
}

.brand {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(0, 124, 137, 0.08);
  border-color: rgba(0, 124, 137, 0.2);
  color: var(--accent-strong);
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 clamp(1rem, 4vw, 4rem) 4rem;
}

.hero {
  animation: reveal 520ms ease both;
  background:
    linear-gradient(rgba(0, 124, 137, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 137, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 251, 0.95));
  background-size: 36px 36px, 36px 36px, auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 2rem;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.hero::before {
  background: linear-gradient(90deg, var(--accent), var(--success), var(--warning));
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.hero-content {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
}

.hero-text { min-width: 0; }

.portrait-frame {
  align-self: center;
  background:
    linear-gradient(145deg, rgba(0, 124, 137, 0.16), rgba(91, 79, 214, 0.08)),
    var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(40, 63, 95, 0.18);
  justify-self: end;
  padding: 0.6rem;
  position: relative;
  width: min(34vw, 310px);
}

.portrait-frame::after {
  border: 1px solid rgba(182, 106, 0, 0.32);
  border-radius: 16px;
  bottom: 1rem;
  content: "";
  left: 1rem;
  pointer-events: none;
  position: absolute;
  right: -0.7rem;
  top: -0.7rem;
  z-index: -1;
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero h1,
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 5.3rem);
  font-weight: 800;
  color: #19365f;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0.25rem 0 1.35rem;
  max-width: 900px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  max-width: 760px;
}

.eyebrow,
.page-intro > p:first-child,
.role-company {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.proof-chips,
.tag-section ul,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.proof-chips {
  margin: 1.4rem 0 0;
}

.proof-chips li,
.tag-section li,
.tag-list li {
  background: rgba(0, 124, 137, 0.08);
  border: 1px solid rgba(0, 124, 137, 0.22);
  border-radius: 999px;
  color: #15364a;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
}

.compact-tags li {
  background: rgba(15, 122, 99, 0.08);
  border-color: rgba(15, 122, 99, 0.22);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 124, 137, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  min-height: 46px;
  padding: 0.82rem 1.05rem;
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  box-shadow: none;
  color: var(--accent-strong);
}

.button-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  color: var(--accent-strong);
}

.impact-strip {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.5rem;
}

.impact-strip article {
  min-width: 0;
}

.impact-strip span {
  color: var(--warning);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.impact-strip h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #19365f;
  margin: 0 0 0.35rem;
}

.impact-strip p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.section {
  animation: reveal 520ms ease 80ms both;
  margin-top: 2.2rem;
}

.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.2rem); }
.two-column { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

.two-column h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #19365f;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.two-column p {
  color: var(--muted);
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.page-intro,
.page-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.card:hover,
.timeline-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 42px rgba(40, 63, 95, 0.13);
  transform: translateY(-2px);
}

.card h2,
.page h2 {
  font-family: var(--font-display);
  color: #19365f;
  font-weight: 800;
  margin-top: 0;
}

.card p {
  color: var(--muted);
  flex: 1;
}

.card a {
  font-family: var(--font-display);
  font-weight: 800;
}

.card-experience { border-top: 3px solid var(--accent); }
.card-projects { border-top: 3px solid var(--success); }
.card-education { border-top: 3px solid var(--warning); }

.page {
  animation: reveal 520ms ease both;
  margin-top: 2rem;
}

.page-intro {
  background:
    linear-gradient(rgba(0, 124, 137, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 137, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.92);
  background-size: 32px 32px, 32px 32px, auto;
}

.page-intro > p:not(:first-child),
.page p,
.page li {
  color: #314157;
}

.page-intro > p:not(:first-child) {
  max-width: 880px;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}

.timeline::before {
  background: linear-gradient(var(--accent), rgba(0, 124, 137, 0.08));
  bottom: 0.5rem;
  content: "";
  left: 0.6rem;
  position: absolute;
  top: 0.5rem;
  width: 2px;
}

.timeline-card {
  margin-left: 2rem;
  position: relative;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.timeline-card::before {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 999px;
  content: "";
  height: 0.9rem;
  left: -2.08rem;
  position: absolute;
  top: 1.35rem;
  width: 0.9rem;
}

.role-featured {
  background: linear-gradient(135deg, rgba(0, 124, 137, 0.09), rgba(255, 255, 255, 0.94));
  border-color: rgba(0, 124, 137, 0.3);
}

.role-featured::before {
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(0, 124, 137, 0.1);
}

.role-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.role-heading h2 {
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.role-company {
  margin-bottom: 0.2rem;
}

.role-meta,
.muted,
.role-section h3 + p {
  color: var(--muted);
  margin-top: 0;
}

.status-pill {
  background: rgba(182, 106, 0, 0.1);
  border: 1px solid rgba(182, 106, 0, 0.28);
  border-radius: 999px;
  color: #7a4700;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
}

.role-note {
  border-left: 2px solid var(--warning);
  padding-left: 0.8rem;
}

.highlight-list {
  padding-left: 1.15rem;
}

.highlight-list li + li {
  margin-top: 0.45rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.page code {
  background: rgba(22, 32, 51, 0.08);
  border-radius: 0.35rem;
  padding: 0.1rem 0.25rem;
}

.site-footer {
  color: var(--muted);
  text-align: center;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero-content,
  .two-column,
  .cards,
  .impact-strip {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    justify-self: start;
    max-width: 240px;
    width: 68vw;
  }

  .role-heading {
    display: block;
  }

  .status-pill {
    display: inline-flex;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero,
  .page-intro,
  .page-section,
  .card {
    border-radius: var(--radius);
  }

  .hero h1,
  .page h1 {
    font-size: clamp(2.15rem, 13vw, 3.6rem);
  }

  .timeline::before {
    left: 0.45rem;
  }

  .timeline-card {
    margin-left: 1.6rem;
  }

  .timeline-card::before {
    left: -1.83rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
