:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --text: #17191d;
  --muted: #626a75;
  --line: #e3e6ea;
  --accent: #1d5cff;
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 750; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .92rem; }
.nav-links a { color: #4d5560; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-cta { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text) !important; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--bg); padding: 8px 12px; border-radius: 10px; font: inherit; }

.hero { padding: 100px 0 110px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 750; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
.hero-title { margin: 22px 0 8px; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 650; }
.hero-text { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 11px; font-weight: 700; font-size: .93rem; border: 1px solid transparent; }
.button-primary { background: var(--text); color: white; }
.button-secondary { border-color: var(--line); background: white; }
.button:hover { transform: translateY(-1px); }
.profile-wrap { display: flex; justify-content: center; }
.profile-photo { width: min(320px, 72vw); aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line); background: #eef0f3; display: grid; place-items: center; color: #8a919b; font-size: .82rem; background-size: cover; background-position: center; }
.profile-photo.has-image span { display: none; }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em; }
.prose { max-width: 680px; color: #3f4650; font-size: 1.04rem; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.section-heading { margin-bottom: 42px; }

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-group { min-height: 160px; background: white; padding: 25px; }
.skill-group h3 { margin: 0 0 18px; font-size: 1rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); font-size: .82rem; background: #fff; }

.timeline { max-width: 850px; border-left: 1px solid #cfd4da; margin-left: 7px; }
.timeline-item { position: relative; padding: 0 0 42px 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.timeline-date, .project-kicker { margin: 0 0 5px; color: var(--accent); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.timeline-item h3, .project h3, .skill-group h3 { letter-spacing: -.02em; }
.timeline-item h3 { margin: 0; font-size: 1.25rem; }
.timeline-company { margin: 2px 0 8px; font-weight: 650; }
.muted { color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { min-height: 230px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 25px 4px 25px 0; display: flex; flex-direction: column; justify-content: space-between; }
.project h3 { margin: 0 0 12px; font-size: 1.35rem; }
.tech-line { margin: 20px 0 0; color: #727984; font-size: .82rem; }
.text-link { margin-top: 22px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 30px; border: 1px dashed #cfd4da; border-radius: var(--radius); color: var(--muted); background: white; }

.content-block { align-items: start; }
.content-links, .social-list { display: grid; gap: 0; }
.link-row, .social-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.link-row:first-child, .social-row:first-child { border-top: 1px solid var(--line); }
.link-row:hover, .social-row:hover { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact-section { padding-bottom: 105px; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: .8rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .section { padding: 68px 0; }
  .hero { padding: 72px 0 80px; }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .profile-wrap { justify-content: flex-start; }
  .profile-photo { width: 210px; border-radius: 22px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { min-height: 64px; }
  .brand { font-size: .9rem; max-width: 68%; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: 70px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 40px rgba(0,0,0,.08); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { text-align: center; }
  h1 { font-size: clamp(2.6rem, 14vw, 4.3rem); }
  .skill-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}
