:root {
  --navy: #101826;
  --navy-soft: #1b2537;
  --paper: #f5f3ee;
  --paper-card: #ffffff;
  --ink: #1b2430;
  --ink-soft: #454e5c;
  --amber: #e8963b;
  --teal: #2a6f77;
  --line: #e4e0d6;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  forced-color-adjust: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 56px;
  color: #f4f1e8;
  background:
    radial-gradient(circle at 85% 15%, rgba(232, 150, 59, .2), transparent 45%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 520px;
  height: 520px;
  content: "";
  opacity: .5;
  pointer-events: none;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 24px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.avatar {
  display: flex;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #c96f24);
  box-shadow: 0 0 0 4px rgba(244, 241, 232, .12);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 12.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 22px;
  height: 1px;
  content: "";
  background: var(--amber);
}

.hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 42px); font-weight: 700; }
.hero .role { margin-top: 8px; color: #c9cdd6; font-size: 17px; font-weight: 500; }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: #d8dbe2;
  font-size: 14px;
}

.contact-row a, .contact-row span { display: flex; gap: 7px; align-items: center; }
.contact-row a:hover { color: #fff; }
.contact-row svg { flex-shrink: 0; width: 15px; height: 15px; stroke: var(--amber); }

main { max-width: 820px; margin: 0 auto; padding: 48px 24px 90px; }
section { margin-bottom: 46px; }

.section-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 22px; }
.section-head h2 { font-size: 21px; font-weight: 700; }
.section-head::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.section-num {
  padding: 3px 8px;
  color: var(--amber);
  border: 1px solid rgba(232, 150, 59, .35);
  border-radius: 4px;
  background: rgba(232, 150, 59, .12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.profile-card {
  padding: 24px 26px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: var(--paper-card);
  font-size: 15.5px;
}

.profile-card strong { color: var(--ink); }
.edu-list { margin: 0; padding: 0; list-style: none; }
.edu-item { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.edu-item:last-child { border-bottom: 0; }
.edu-year { color: var(--teal); font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; }
.edu-title { font-size: 15px; font-weight: 600; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.skills-block h3 { margin-bottom: 14px; color: var(--ink-soft); font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; background: var(--paper-card); font-size: 13px; }
.tag.hard { color: var(--teal); border-color: rgba(42, 111, 119, .35); background: rgba(42, 111, 119, .06); }
.tag.soft { color: #95601c; border-color: rgba(232, 150, 59, .35); background: rgba(232, 150, 59, .08); }

.lang-row { display: flex; gap: 32px; }
.lang-item .lang-name { font-size: 15px; font-weight: 600; }
.lang-item .lang-level { color: var(--ink-soft); font-size: 13px; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { position: absolute; top: 6px; bottom: 6px; left: 5px; width: 1px; content: ""; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; top: 4px; left: -26px; width: 11px; height: 11px; border: 2px solid var(--amber); border-radius: 50%; background: var(--paper); }
.tl-item.current .tl-dot { background: var(--amber); }
.tl-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-bottom: 6px; }
.tl-role { font-size: 15.5px; font-weight: 700; }
.tl-company { color: var(--teal); font-size: 14.5px; font-weight: 600; }
.tl-date { margin-left: auto; color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; font-size: 12.5px; white-space: nowrap; }
.tl-badge { padding: 2px 8px; color: #95601c; border-radius: 20px; background: rgba(232, 150, 59, .15); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.tl-list { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14.5px; }
.tl-list li { margin-bottom: 4px; }

footer { padding: 28px 24px 40px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: 12.5px; text-align: center; }

@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
  .edu-item { grid-template-columns: 1fr; gap: 4px; }
  .tl-date { margin-left: 0; }
  .lang-row { gap: 20px; }
}

@media print {
  .hero::after { display: none; }
  body { background: #fff; }
}