@import url("https://fonts.bunny.net/css?family=inter:300,400,500,600,700");

:root {
  --bg: #f4f7f5;
  --bg-deep: #eef3f1;
  --ink: #0e1518;
  --ink-2: #243038;
  --mute: #5d6b73;
  --line: rgba(14, 21, 24, 0.12);
  --accent: #0c7c74;
  --accent-2: #095e58;
  --accent-soft: rgba(12, 124, 116, 0.12);
  --white: #ffffff;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  background: var(--bg);
}

a {
  color: var(--accent-2);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Top bar ---------- */
.resume-top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.resume-top__inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
}

.resume-top__name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.resume-top__dot {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  display: block;
  width: 1.15rem;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: calc(50% - 4px);
}

.nav-toggle span:nth-child(2) {
  top: calc(50% + 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.resume-top__nav {
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.resume-top__nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.resume-top__nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* ---------- Hero ---------- */
.resume-hero {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
  text-align: center;
}

.resume-hero__name {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.resume-radar {
  width: min(240px, 58vw);
  margin: 1.5rem auto 1.35rem;
  position: relative;
}

.resume-radar svg {
  width: 100%;
  height: auto;
  display: block;
}

.resume-radar__grid polygon,
.resume-radar__grid line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.resume-radar__area {
  fill: rgba(12, 124, 116, 0.22);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.resume-radar__dots circle {
  fill: var(--accent);
}

.resume-radar__initials {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  opacity: 0.9;
}

.resume-radar__axis-labels text {
  fill: var(--mute);
  font-family: var(--font);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resume-radar__labels {
  display: none;
}

.resume-hero__role {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.resume-hero__headline {
  margin: 0 auto 1.1rem;
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink-2);
}

.resume-hero__about {
  margin: 0 auto;
  max-width: 42ch;
  text-align: center;
}

.resume-hero__about p {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.resume-hero__about p:last-child {
  margin-bottom: 0;
}

.resume-stats {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto 0.5rem;
}

.resume-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  border-block: 1px solid var(--line);
  background: transparent;
}

.resume-metrics li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.2rem 1.1rem;
  border: none;
  border-right: 1px solid var(--line);
}

.resume-metrics li:first-child {
  padding-left: 0;
}

.resume-metrics li:last-child {
  border-right: none;
  padding-right: 0;
}

.resume-metrics strong {
  flex: 0 0 auto;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--accent);
}

.resume-metrics span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.resume-section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.resume-section__title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.resume-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.resume-section__head .resume-section__title {
  margin: 0;
  text-align: left;
}

.resume-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Center timeline ---------- */
.resume-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.resume-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--ink);
  transform: translateX(-50%);
}

.resume-timeline__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  padding: 0 0 2rem;
}

.resume-timeline__item:last-child {
  padding-bottom: 0;
}

.resume-timeline__item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

.resume-timeline__left {
  text-align: right;
}

.resume-timeline__period {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--mute);
}

.resume-timeline__role {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.resume-timeline__company {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.resume-timeline__right {
  text-align: left;
}

.resume-timeline__detail {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 42ch;
}

.resume-timeline--edu .resume-timeline__role {
  font-size: 1rem;
}

.resume-timeline--edu .resume-timeline__detail {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* ---------- Projects ---------- */
.resume-projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-projects li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.resume-projects li:last-child {
  border-bottom: 1px solid var(--line);
}

.resume-projects a {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.resume-projects__num {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.resume-projects h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.resume-projects p {
  margin: 0;
  color: var(--mute);
  font-size: 0.9rem;
  max-width: 58ch;
}

/* ---------- Skills ---------- */
.resume-skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.resume-skills h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.resume-skills p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Contact ---------- */
.resume-section--contact {
  text-align: center;
}

.resume-contact__lede {
  margin: 0 auto 1.15rem;
  max-width: 40ch;
  color: var(--mute);
}

.resume-contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.resume-footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--mute);
  font-size: 0.82rem;
}

/* ---------- Projects / contact subpages ---------- */
.page-shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  color: var(--mute);
  max-width: 48ch;
}

.case {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case:last-child {
  border-bottom: 1px solid var(--line);
}

.case__header {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.case__num {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.case__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.case__dek {
  margin: 0;
  color: var(--mute);
}

.case__body,
.case__takeaway,
.case > .skill-list {
  /* Match title column: num + header gap */
  margin-left: calc(3.5rem + 1rem);
}

.case__body p {
  margin: 0 0 0.85rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.case__takeaway {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  max-width: 58ch;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
  font-size: 0.92rem;
}

.case__takeaway span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-list li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink-2);
}

.contact-panel {
  margin-top: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--white) 55%, transparent);
  max-width: 36rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .resume-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-metrics li:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .resume-metrics li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .resume-metrics li:nth-child(odd) {
    padding-left: 0;
  }

  .resume-metrics li:nth-child(even) {
    padding-right: 0;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .resume-top__nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem 0 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .resume-top__nav.is-open {
    display: flex;
  }

  .resume-top__nav a {
    padding: 0.65rem 0.25rem;
    font-size: 0.92rem;
  }

  .resume-timeline::before {
    left: 0.55rem;
  }

  .resume-timeline__item {
    grid-template-columns: 1fr;
    padding-left: 1.6rem;
    gap: 0.45rem;
  }

  .resume-timeline__item::after {
    left: 0.55rem;
  }

  .resume-timeline__left {
    text-align: left;
  }

  .resume-skills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .resume-metrics li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

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