:root {
  --navy: #0a3d62;
  --cyan: #1b9cfc;
  --bg: #f5f6fa;
  --amber: #f7b731;
  --white: #ffffff;
  --text: var(--navy);
  --vr: 24px;
  --pad: 16px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 61, 98, 0.12);
  --line: rgba(10, 61, 98, 0.14);
  --muted: color-mix(in srgb, var(--navy) 72%, var(--white) 28%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Serif", serif;
  font-size: 18px;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 calc(var(--vr) / 1.5);
}

h1 {
  font-size: clamp(36px, 5vw, 48px);
}
h2 {
  font-size: clamp(28px, 4vw, 36px);
}
h3 {
  font-size: clamp(20px, 2.5vw, 24px);
}

p,
ul {
  margin: 0 0 var(--vr);
}

a {
  color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.container {
  width: min(1120px, 100% - (var(--pad) * 2));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--vr);
}

.col-7 {
  grid-column: span 7;
}
.col-5 {
  grid-column: span 5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 88%, var(--white) 12%);
  border-bottom: 1px solid rgba(10, 61, 98, 0.1);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan);
  border-color: var(--cyan);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(10, 61, 98, 0.25);
  background: var(--white);
  color: var(--navy);
  border-radius: 10px;
  padding: 8px 10px;
}

.hero {
  position: relative;
  padding: calc(var(--vr) * 4) 0 calc(var(--vr) * 3);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(27, 156, 252, 0.14) 0,
      rgba(27, 156, 252, 0.14) 0.5px,
      transparent 0.5px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(27, 156, 252, 0.14) 0,
      rgba(27, 156, 252, 0.14) 0.5px,
      transparent 0.5px,
      transparent 24px
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hero:hover::after {
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: "Montserrat", sans-serif;
  color: var(--cyan);
  margin-bottom: 12px;
}
.lead {
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--vr);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--amber);
  color: #1e1e1e;
  box-shadow: 0 6px 16px rgba(247, 183, 49, 0.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--cyan);
  border: 1px solid rgba(27, 156, 252, 0.35);
}

.live-meta {
  margin: 0;
}
.code-label,
.mono {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
}
.code-label {
  color: var(--cyan);
  margin-right: 6px;
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--vr);
  box-shadow: var(--shadow);
}
.profile-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}
.profile-card li {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 70%, var(--bg) 30%);
  border: 1px solid var(--line);
}
.profile-card .label {
  display: block;
  margin-bottom: 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-card .value {
  display: block;
  font-size: 0.98rem;
}

.section {
  padding: calc(var(--vr) * 3) 0;
}
.section.alt {
  background: color-mix(in srgb, var(--white) 70%, var(--bg) 30%);
}

.timeline {
  border-left: 3px solid color-mix(in srgb, var(--cyan) 35%, var(--white) 65%);
  padding-left: 18px;
}
.timeline-item {
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: var(--vr);
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.08);
}
.period {
  margin-top: -8px;
  color: color-mix(in srgb, var(--navy) 70%, var(--white) 30%);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--vr);
}
.skill-card {
  grid-column: span 4;
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.07);
  border: 1px solid rgba(27, 156, 252, 0.16);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.skill-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.12);
}
.skill-card--featured {
  grid-column: span 12;
  background: linear-gradient(
      180deg,
      rgba(27, 156, 252, 0.07),
      rgba(27, 156, 252, 0.02)
    ),
    var(--white);
}
.skill-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.skill-card h3 {
  margin: 0;
}
.skill-badge {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--cyan);
  background: rgba(27, 156, 252, 0.12);
  border: 1px solid rgba(27, 156, 252, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  color: var(--navy);
  background: color-mix(in srgb, var(--white) 70%, var(--bg) 30%);
  border: 1px solid rgba(10, 61, 98, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
}

.card-grid,
.edu-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--vr);
}
.card-grid article,
.edu-grid article {
  grid-column: span 6;
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.07);
}

.work-card h3 {
  margin-bottom: 8px;
}
.work-card p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--navy) 75%, var(--white) 25%);
}

.work-link {
  display: inline-block;
  margin-top: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.cta .cta-wrap {
  text-align: center;
}
.cta h2 {
  margin-bottom: var(--vr);
}

.site-footer {
  padding: var(--vr) 0;
  border-top: 1px solid rgba(10, 61, 98, 0.12);
}
.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .col-7,
  .col-5 {
    grid-column: span 12;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    top: 70px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
  }
  .site-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-block;
  }

  .skill-card,
  .skill-card--featured,
  .card-grid article,
  .edu-grid article {
    grid-column: span 12;
  }
}

/* Section heading system */
.section-head {
  margin-bottom: calc(var(--vr) * 1.15);
}
.section-head.compact {
  margin-bottom: 14px;
}
.section-head.center {
  text-align: center;
}
.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-lead {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: calc(var(--vr) * 3.6) 0 calc(var(--vr) * 2.8);
}
.hero-highlights {
  list-style: none;
  margin: 0 0 var(--vr);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-highlights li {
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--white) 72%, var(--bg) 28%);
}

/* At-a-glance */
.profile-card {
  border: 1px solid var(--line);
}
.profile-card ul {
  list-style: none;
  padding: 0;
}
.profile-card li {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--white) 70%, var(--bg) 30%);
  border: 1px solid var(--line);
}
.profile-card .label {
  display: block;
  margin-bottom: 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-card .value {
  display: block;
  font-size: 0.98rem;
}

/* Experience */
.timeline {
  border-left: 2px solid color-mix(in srgb, var(--cyan) 42%, var(--white) 58%);
  padding-left: 20px;
}
.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(27, 156, 252, 0.16);
}
.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 61, 98, 0.12);
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.timeline-head h3 {
  margin: 0;
}
.org {
  margin: 4px 0 12px;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}
.timeline-item ul {
  margin-bottom: 0;
}

/* Work + education cards */
.card-grid article,
.edu-grid article {
  border: 1px solid var(--line);
}
.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pill {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(27, 156, 252, 0.28);
  color: var(--cyan);
  background: rgba(27, 156, 252, 0.08);
}
.work-link {
  margin-top: 0;
  text-decoration: none;
}
.work-link::after {
  content: " ↗";
}

.edu-card {
  position: relative;
}
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 60%, var(--white) 40%));
}
.meta-line {
  color: var(--muted);
  margin: 0;
}

/* CTA */
.cta-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: calc(var(--vr) * 1.2);
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .work-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}