:root {
  --bg: #0b0c10;
  --bg-2: #101117;
  --surface: #14161d;
  --surface-2: #1a1d25;
  --border: #262932;
  --border-strong: #353945;
  --text: #f4f4f5;
  --text-muted: #a1a5b0;
  --text-dim: #6b7080;
  --accent: #e8b059;
  --accent-strong: #f0b952;
  --accent-soft: rgba(232, 176, 89, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --pad: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Manrope', var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(232, 176, 89, 0.08), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(110, 168, 254, 0.05), transparent 60%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #1a1300;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #1a1300; }

/* ============ topbar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  background: rgba(11, 12, 16, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.topbar.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 12, 16, 0.88);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #c98c2e);
  color: #1a1300;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand__name { white-space: nowrap; }

.nav {
  display: none;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after { transform: scaleX(1); }

@media (min-width: 880px) {
  .nav { display: inline-flex; }
}

.lang {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
@media (min-width: 880px) { .lang { margin-left: 0; } }
.lang__btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active {
  background: var(--accent);
  color: #1a1300;
}

/* ============ hero ============ */
.hero {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: var(--section-y);
  position: relative;
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.hero__title {
  font-size: clamp(40px, 7.2vw, 80px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #c2c5cc 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-size: clamp(17px, 2vw, 22px);
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.4;
}
.hero__company {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px dashed transparent;
}
.hero__company:hover { border-bottom-color: var(--accent); color: var(--accent-strong); }
.hero__group {
  color: var(--text-dim);
  font-size: 0.9em;
  white-space: nowrap;
}

.hero__lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  color: #1a1300;
}
.btn--primary:hover { background: var(--accent-strong); color: #1a1300; }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 560px;
}
@media (min-width: 600px) {
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat__num small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.stat__label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero__photo {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.hero__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(11, 12, 16, 0.55) 100%),
    radial-gradient(ellipse at top right, rgba(232, 176, 89, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero__photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero__photo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
}

/* ============ sections ============ */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}
.section__head {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 760px;
}
.section__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 800;
}

/* ============ about ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
}
.about__lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text);
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}
.about__p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
  max-width: 70ch;
}

/* ============ timeline ============ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  position: relative;
}
.job {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: relative;
}
@media (min-width: 820px) {
  .job {
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }
}
.job__period {
  display: flex;
  align-items: flex-start;
  padding-top: 22px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.job--current .job__period::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: 0 0 auto;
}
.job__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(20px, 2.4vw, 28px);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.job__card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.job--current .job__card {
  border-color: rgba(232, 176, 89, 0.35);
  background: linear-gradient(180deg, rgba(232, 176, 89, 0.05), transparent 60%), var(--surface);
}
.job__head { margin-bottom: 14px; }
.job__role {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.job__company {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.job__company a {
  color: var(--accent);
  font-weight: 600;
}
.job__meta {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 2px;
}
.job__points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  padding-left: 18px;
}
.job__points li {
  position: relative;
  line-height: 1.5;
}
.job__points li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.job__result {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.job__result strong {
  color: var(--text);
  font-weight: 600;
}
.job--compact .job__card {
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ============ skills ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .15s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ============ cards ============ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.card__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.card__list li strong {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}
.card__list--inline li { gap: 2px; }

/* ============ contact ============ */
.section--contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.contact__lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 50ch;
  margin: 16px 0 0;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact__label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact__value {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
a.contact__value:hover { color: var(--accent); }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.footer a:hover { color: var(--accent); }

/* ============ language toggle behavior ============ */
[data-lang-active="en"] [data-i18n] { /* JS swaps text node */ }

/* ============ small screens polish ============ */
@media (max-width: 600px) {
  .topbar__inner { gap: 12px; }
  .brand__name { display: none; }
  .nav { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* focus styling */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
