:root {
  --paper: #fffefa;
  --canvas: #f1f0eb;
  --ink: #171713;
  --muted: #74736c;
  --line: #dcdbd4;
  --accent: #ff5a36;
  --accent-soft: #ffe6de;
  --shadow: 0 24px 80px rgba(38, 34, 24, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient { position: fixed; border-radius: 999px; filter: blur(2px); pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: rgba(255,90,54,.10); top: -180px; right: -100px; }
.ambient-two { width: 300px; height: 300px; background: rgba(156,193,184,.16); bottom: -100px; left: -120px; }

.floating-nav {
  width: min(1100px, calc(100% - 40px));
  height: 72px;
  margin: 18px auto;
  padding: 0 22px;
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(220,219,212,.8);
  border-radius: 18px;
  background: rgba(255,254,250,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(33,30,22,.06);
}
.brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -.04em; }
.brand span { color: var(--accent); }
.desktop-nav { display: flex; gap: 22px; }
.desktop-nav a { color: var(--muted); font-size: .84rem; font-weight: 600; transition: color .2s; }
.desktop-nav a:hover { color: var(--ink); }
.language-switch { display: flex; padding: 3px; background: #ebeae5; border-radius: 999px; }
.language-switch button { border: 0; padding: 7px 11px; border-radius: 999px; background: transparent; color: var(--muted); font: 700 .72rem "Manrope", sans-serif; cursor: pointer; }
.language-switch button.active { color: #fff; background: var(--ink); }

.resume-shell { width: min(1100px, calc(100% - 40px)); margin: 20px auto 70px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; padding: 72px 64px 64px; }
.portrait-wrap { position: relative; }
.portrait { display: block; width: 156px; height: 156px; border-radius: 26px; object-fit: cover; background: #e5e3dc; filter: saturate(.85); }
.availability-dot { position: absolute; right: -5px; bottom: 12px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--paper); background: #54a86d; }
.eyebrow, .project-role { margin: 0 0 10px; color: var(--accent); font: 500 .72rem "DM Mono", monospace; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .98; letter-spacing: -.07em; }
.hero-lead { max-width: 600px; margin: 22px 0; color: var(--muted); font-size: 1.05rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-links a { padding-bottom: 2px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.hero-links a span { color: var(--accent); }
.hero-status { min-width: 170px; padding-left: 28px; border-left: 1px solid var(--line); display: grid; gap: 4px; font-size: .8rem; }
.hero-status strong { margin-bottom: 18px; font-size: .84rem; }
.status-label { color: var(--muted); font: 400 .68rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }

.content-section { display: grid; grid-template-columns: 190px 1fr; gap: 42px; padding: 64px; border-top: 1px solid var(--line); scroll-margin-top: 115px; }
.section-kicker { display: flex; gap: 14px; color: var(--muted); font: 500 .72rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.section-kicker span:first-child { color: var(--accent); }
.section-body { min-width: 0; }
.large-copy p { max-width: 780px; margin: 0; font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.48; letter-spacing: -.035em; }

.project { display: grid; grid-template-columns: 34px 1fr; gap: 22px; }
.project + .project { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--line); }
.project-index { color: var(--muted); font: 400 .68rem "DM Mono", monospace; }
.featured-project { position: relative; padding: 34px; margin: -20px; background: #191916; color: white; border-radius: 22px; overflow: hidden; }
.featured-project::after { content: "A"; position: absolute; right: -12px; bottom: -80px; color: rgba(255,255,255,.04); font-size: 18rem; font-weight: 800; line-height: 1; pointer-events: none; }
.featured-project .project-index, .featured-project .project-description { color: #aaa9a2; }
.featured-project + .project { margin-top: 70px; }
.project-main { position: relative; z-index: 1; }
.project-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.project-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.055em; }
.project-link { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; transition: transform .2s, background .2s, color .2s; }
.project-link:hover { transform: rotate(8deg); color: var(--accent); background: white; }
.project-description { max-width: 620px; margin: 26px 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 10px; border: 1px solid rgba(128,128,128,.25); border-radius: 999px; font: 400 .68rem "DM Mono", monospace; }
.featured-project .tags span { background: rgba(255,255,255,.06); }

.item-overline { margin: 0 0 8px; color: var(--accent); font: 500 .68rem "DM Mono", monospace; letter-spacing: .1em; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 4px; left: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.timeline-item + .timeline-item .timeline-marker { top: 45px; }
.timeline-marker { position: absolute; top: 7px; left: -34px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.timeline h2, .education-card h2, .role-card h2 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.85rem); line-height: 1.25; letter-spacing: -.035em; }
.date-pill { flex: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 400 .66rem "DM Mono", monospace; }
.detail-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.detail-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.detail-list li::before { content: "↳"; position: absolute; left: 0; color: var(--accent); }

.education-list { display: grid; }
.education-card { display: grid; grid-template-columns: 135px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.education-card:first-child { padding-top: 0; }
.education-card:last-child { padding-bottom: 0; border-bottom: 0; }
.education-year { padding-top: 3px; color: var(--muted); font: 400 .7rem "DM Mono", monospace; }
.education-card p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.education-primary h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 4px 10px; border-radius: 50%; background: var(--accent); }

.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card { min-height: 190px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: #faf9f5; }
.role-number { color: var(--muted); font: 400 .67rem "DM Mono", monospace; }
.role-card h2 { max-width: 320px; }

.skill-groups { display: grid; gap: 34px; }
.skill-group { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: start; }
.skill-group + .skill-group { padding-top: 30px; border-top: 1px solid var(--line); }
.skill-group h3 { margin: 5px 0 0; font-size: .8rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-cloud li { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f5; font: 500 .74rem "DM Mono", monospace; white-space: nowrap; }
.language-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.language-levels li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 16px; border-radius: 12px; background: var(--ink); color: white; font-size: .8rem; }
.language-levels strong { color: var(--accent); font: 500 .8rem "DM Mono", monospace; }

.achievement-featured { position: relative; min-height: 270px; padding: 42px; display: flex; align-items: flex-end; border-radius: 22px; overflow: hidden; background: var(--accent-soft); }
.achievement-featured h2 { max-width: 580px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.055em; }
.achievement-featured p:last-child { margin: 18px 0 0; color: #6e5b54; font-size: .84rem; }
.trophy-mark { position: absolute; right: 24px; top: -34px; color: rgba(255,90,54,.13); font-size: 13rem; font-weight: 800; line-height: 1; letter-spacing: -.1em; }
.achievement-featured > div:last-child { position: relative; z-index: 1; }
.achievement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.achievement-grid article { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.achievement-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: white; font: 500 .7rem "DM Mono", monospace; }
.achievement-grid h3 { margin: 0; font-size: .84rem; line-height: 1.5; }
.achievement-grid p { margin: 6px 0 0; color: var(--muted); font: 400 .67rem "DM Mono", monospace; }

.contact-section { padding: 86px 64px; background: var(--accent-soft); text-align: center; scroll-margin-top: 115px; }
.contact-section h2 { max-width: 700px; margin: 0 auto 16px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.065em; }
.contact-section > p:not(.eyebrow) { color: #6e5b54; }
.contact-actions { display: flex; justify-content: center; gap: 20px; align-items: center; margin-top: 34px; }
.primary-button { display: flex; align-items: center; gap: 28px; padding: 15px 20px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 700; transition: transform .2s; }
.primary-button:hover { transform: translateY(-2px); }
.text-button { font-size: .84rem; font-weight: 700; border-bottom: 1px solid currentColor; }
footer { display: flex; justify-content: space-between; padding: 24px 64px; background: var(--ink); color: #98978f; font: 400 .67rem "DM Mono", monospace; }

@media (max-width: 820px) {
  .floating-nav, .resume-shell { width: min(100% - 24px, 1100px); }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: auto 1fr; padding: 48px 32px; gap: 26px; }
  .hero-status { grid-column: 1 / -1; grid-template-columns: auto 1fr auto 1fr; align-items: center; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-status strong { margin: 0; }
  .content-section { grid-template-columns: 1fr; gap: 28px; padding: 48px 32px; }
  .leadership-grid, .achievement-grid { gap: 12px; }
  .skill-group { grid-template-columns: 150px 1fr; }
  .contact-section { padding: 70px 32px; }
  footer { padding: 24px 32px; }
}

@media (max-width: 560px) {
  .floating-nav { top: 10px; height: 60px; margin: 10px auto; padding: 0 14px; border-radius: 14px; }
  .resume-shell { margin-top: 12px; border-radius: 20px; }
  .hero { grid-template-columns: 1fr; padding: 34px 22px 40px; }
  .portrait { width: 116px; height: 116px; border-radius: 20px; }
  .hero h1 { font-size: 3.5rem; }
  .hero-status { grid-template-columns: 1fr 1fr; }
  .content-section { padding: 42px 22px; }
  .featured-project { padding: 25px 20px; margin: -10px; }
  .project { grid-template-columns: 1fr; gap: 10px; }
  .project-index { display: none; }
  .timeline { padding-left: 28px; }
  .timeline-marker { left: -28px; }
  .timeline-head { flex-direction: column; gap: 14px; }
  .education-card { grid-template-columns: 1fr; gap: 10px; }
  .leadership-grid, .achievement-grid { grid-template-columns: 1fr; }
  .role-card { min-height: 165px; }
  .skill-group { grid-template-columns: 1fr; gap: 16px; }
  .skill-cloud { gap: 8px; }
  .skill-cloud li { white-space: normal; }
  .language-levels { grid-template-columns: 1fr; }
  .achievement-featured { min-height: 330px; padding: 28px 22px; }
  .trophy-mark { right: 12px; font-size: 10rem; }
  .contact-section { padding: 60px 22px; }
  .contact-actions { flex-direction: column; }
  footer { flex-direction: column; gap: 8px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
