:root {
  --bg: #ece7de;
  --surface: rgba(255, 252, 247, 0.76);
  --surface-strong: rgba(255, 253, 250, 0.94);
  --border: rgba(27, 31, 38, 0.12);
  --text: #181b21;
  --muted: #596274;
  --accent: #1e6cff;
  --accent-strong: #0f1726;
  --accent-soft: rgba(30, 108, 255, 0.12);
  --shadow: 0 24px 80px rgba(19, 22, 29, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(30, 108, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(227, 140, 45, 0.16), transparent 18%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
  font-family: "IBM Plex Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 24, 33, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 33, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 82%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 27, 33, 0.12));
}

.brand-text {
  font-size: 1.05rem;
}

.section-nav {
  display: inline-flex;
  gap: 20px;
  justify-content: center;
}

.section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 180ms ease;
}

.section-nav a:hover {
  color: var(--text);
}

.section-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e38c2d);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.section-nav a.is-active {
  color: var(--text);
}

.section-nav a.is-active::after,
.section-nav a:hover::after {
  transform: scaleX(1);
}

.language-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(21, 24, 33, 0.05);
}

.export-button {
  border: 1px solid var(--border);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.78);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.export-button:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 108, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.lang-button {
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.lang-button.is-active {
  color: #fff;
  background: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding: 72px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 140px);
  display: grid;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(30, 108, 255, 0.14) 55%, transparent 75%);
  transform: translateY(-50%);
  filter: blur(16px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-kicker,
.section-index,
.mini-title,
.contact-label,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 8vw, 7.6rem);
  line-height: 0.93;
}

.hero-title {
  margin: 0;
  max-width: 16ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  color: var(--muted);
}

.hero-subtitle {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 239, 0.82)),
    var(--surface);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(30, 108, 255, 0.12), transparent 35%),
    radial-gradient(circle at bottom left, rgba(227, 140, 45, 0.12), transparent 25%);
  pointer-events: none;
}

.hero-panel-head {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-metrics {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.metric-card {
  padding: 16px 18px;
  border: 1px solid rgba(24, 27, 33, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-value {
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: 180ms ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 18px 40px rgba(30, 108, 255, 0.24);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 251, 245, 0.68);
}

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

.button:focus-visible,
.lang-button:focus-visible,
.export-button:focus-visible,
.section-nav a:focus-visible,
.contact-card:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.section-head {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 10px;
}

.section-body {
  display: grid;
  gap: 24px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.prose-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--muted);
}

.language-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.mini-title {
  padding: 24px;
}

.language-card {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(21, 24, 33, 0.08);
}

.language-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.language-level {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 26px;
}

.timeline-item:hover,
.contact-card:hover,
.language-card:hover,
.skill-pill:hover {
  transform: translateY(-3px);
}

.timeline-item:hover,
.contact-card:hover {
  border-color: rgba(30, 108, 255, 0.18);
  box-shadow: 0 28px 80px rgba(19, 22, 29, 0.12);
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: end;
  justify-content: space-between;
}

.timeline-company {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.timeline-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.02rem;
}

.timeline-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: right;
}

.timeline-points {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.75;
}

.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 26px 26px;
}

.skill-pill {
  padding: 12px 16px;
  border: 1px solid rgba(21, 24, 33, 0.08);
  border-radius: 999px;
  background: var(--surface-strong);
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.contact-meta {
  display: grid;
  gap: 10px;
}

.contact-value {
  font-size: 1.12rem;
  font-weight: 600;
  word-break: break-word;
}

.location-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.contact-note {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 32px 0 12px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1025px) {
  .hero-copy {
    padding-top: 24px;
  }

  .section-body,
  .timeline,
  #skills > .card,
  #languages > .card {
    max-width: 860px;
  }

  #contact .section-head {
    max-width: 240px;
  }

  #contact .section-head h2 {
    max-width: 4.8ch;
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    line-height: 0.92;
  }

  html[lang="en"] #contact .section-head {
    max-width: none;
  }

  html[lang="en"] #contact .section-head h2 {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 28px;
    padding: 16px;
  }

  .section-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .export-button {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-button {
    flex: 1;
    text-align: center;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    position: static;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    opacity: 0.4;
  }

  .language-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    position: static;
    margin-top: 8px;
  }

  .section-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .language-cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-top,
  .timeline-meta {
    text-align: left;
  }

  .timeline-item,
  .prose-card,
  .card,
  .contact-card {
    border-radius: 22px;
  }
}

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

  .reveal,
  .card,
  .button,
  .section-nav a::after,
  .lang-button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
