:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5d6873;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --line: #d9ddd7;
  --accent: #0f6f64;
  --accent-2: #b73d2f;
  --accent-3: #d8a21d;
  --deep: #102b33;
  --shadow: 0 22px 70px rgba(23, 32, 38, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 111, 100, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 100, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 54px);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(13, 27, 31, 0.82), rgba(13, 27, 31, 0));
  transition: background 180ms ease, backdrop-filter 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 27, 31, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  align-items: center;
  font-size: 0.94rem;
}

.nav-links a,
.menu-toggle {
  color: rgba(255, 255, 255, 0.84);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: #ffffff;
}

.menu-toggle,
.filter-button,
.copy-email {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.menu-toggle {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 110px clamp(20px, 6vw, 76px) 96px;
  overflow: hidden;
  background: #0c1a1e;
  color: #ffffff;
}

#heroCanvas,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    radial-gradient(circle at 78% 28%, rgba(216, 162, 29, 0.25), transparent 25%),
    radial-gradient(circle at 58% 88%, rgba(15, 111, 100, 0.42), transparent 22%),
    linear-gradient(90deg, rgba(12, 26, 30, 0.97), rgba(12, 26, 30, 0.58) 54%, rgba(12, 26, 30, 0.76));
}

.hero-orbit {
  position: absolute;
  inset: auto clamp(20px, 6vw, 88px) 100px auto;
  z-index: 1;
  width: min(420px, 46vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  opacity: 0.82;
  animation: spin 28s linear infinite;
}

.hero-orbit::before,
.hero-orbit::after,
.hero-orbit span {
  position: absolute;
  border-radius: 999px;
  content: "";
}

.hero-orbit::before {
  inset: 12%;
  border: 1px dashed rgba(240, 189, 66, 0.24);
}

.hero-orbit::after {
  inset: 33%;
  border: 1px solid rgba(103, 210, 193, 0.28);
}

.hero-orbit span {
  width: 13px;
  height: 13px;
  background: #f0bd42;
  box-shadow: 0 0 24px rgba(240, 189, 66, 0.68);
}

.hero-orbit span:nth-child(1) {
  top: 3%;
  left: 48%;
}

.hero-orbit span:nth-child(2) {
  right: 12%;
  bottom: 20%;
  background: #67d2c1;
}

.hero-orbit span:nth-child(3) {
  left: 14%;
  bottom: 18%;
  background: #e66f60;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 750;
}

.availability-pill span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #77df94;
  box-shadow: 0 0 0 8px rgba(119, 223, 148, 0.14);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.8rem, 12vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72);
}

.button.primary {
  border-color: #f0bd42;
  background: #f0bd42;
  color: #172026;
  box-shadow: 0 16px 38px rgba(240, 189, 66, 0.24);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.hero-signal {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  max-width: 520px;
  gap: 10px;
  justify-content: flex-end;
}

.hero-stats {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  top: 50%;
  z-index: 2;
  display: grid;
  width: min(300px, 34vw);
  gap: 10px;
  transform: translateY(-42%);
}

.hero-stats div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  color: #f0bd42;
  font-size: 1.85rem;
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  line-height: 1.25;
}

.hero-signal span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.section,
.band {
  position: relative;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 64px);
}

.band {
  background:
    linear-gradient(135deg, rgba(15, 111, 100, 0.08), transparent 36%),
    #eef2ed;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 34px;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.intro-copy p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-copy {
  display: grid;
  gap: 22px;
}

.impact-list {
  display: grid;
  gap: 10px;
}

.impact-list span {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #284043;
  font-weight: 800;
}

.impact-list span::before {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent);
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.stack-strip {
  overflow: hidden;
  border-block: 1px solid rgba(16, 43, 51, 0.12);
  background: var(--deep);
  color: #ffffff;
}

.stack-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 16px 12px;
  animation: marquee 28s linear infinite;
}

.stack-track span {
  min-width: max-content;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 850;
}

.project-grid,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--ink);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 111, 100, 0.12), transparent 34%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.card:hover::before {
  opacity: 1;
}

.project-card.is-hidden {
  display: none;
}

.project-card,
.credential-card {
  padding: 24px;
}

.project-card {
  min-height: 310px;
  display: grid;
  align-content: space-between;
}

.project-number {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 26px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #172026;
  color: #f0bd42;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.card-topline {
  display: grid;
  gap: 8px;
}

.card-topline span,
.credential-card span,
.timeline-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card p,
.timeline-content p,
.credential-card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span,
.skill-cloud span {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.tags span {
  padding: 6px 9px;
}

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  left: 258px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent-3);
  border-radius: 999px;
  background: var(--paper);
  content: "";
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 5px;
}

.timeline-content a {
  color: var(--accent);
  font-weight: 800;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.skill-cloud span {
  padding: 10px 13px;
  transition: transform 180ms ease, background 180ms ease;
}

.skill-cloud span:hover {
  background: color-mix(in srgb, var(--accent-3) 20%, var(--surface));
  transform: translateY(-3px) rotate(-1deg);
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(15, 111, 100, 0.35);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--accent) 9%, var(--surface)));
}

.contact-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(240, 189, 66, 0.18), transparent 28%),
    linear-gradient(135deg, #102b33, #081416);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.contact-grid p {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel a,
.copy-email {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.contact-panel a:hover,
.contact-panel a:focus-visible,
.copy-email:hover,
.copy-email:focus-visible {
  border-color: #f0bd42;
}

.copy-email {
  width: 100%;
  justify-content: flex-start;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: #0b1619;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  min-width: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 43, 51, 0.88);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    position: fixed;
    inset: 68px 14px auto 14px;
    display: none;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(13, 27, 31, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.86rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .hero {
    min-height: 92svh;
    padding-top: 150px;
  }

  .hero-stats {
    position: relative;
    right: auto;
    top: auto;
    width: min(100%, 520px);
    margin-top: 34px;
    transform: none;
  }

  .hero-orbit {
    right: -120px;
    bottom: 180px;
    width: 330px;
  }

  .hero-signal {
    left: 20px;
    right: 20px;
    justify-content: flex-start;
  }

  .intro-grid,
  .skills-layout,
  .contact-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    display: none;
  }

  .project-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    gap: 10px 14px;
  }

  .hero {
    padding: 136px 18px 128px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 18vw, 5.2rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-signal span {
    font-size: 0.8rem;
  }

  .section,
  .band {
    padding-inline: 18px;
  }
}
