:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-soft: #eef6f4;
  --text: #14211f;
  --muted: #5b6b67;
  --line: #d7e3df;
  --accent: #1155cc;
  --accent-dark: #0d3f99;
  --accent-soft: #e6efff;
  --green: #12805c;
  --shadow: 0 18px 45px rgba(20, 33, 31, 0.09);
  --shadow-soft: 0 10px 28px rgba(20, 33, 31, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(17, 85, 204, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfdfd 0%, var(--bg) 54%, #ffffff 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(215, 227, 223, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #ffffff;
  font-size: 0.8rem;
}

.site-nav {
  gap: 4px;
}

.site-nav a:not(.button) {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 680;
  padding: 10px 14px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible,
.site-nav a:not(.button).is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-resume-button {
  min-height: 40px;
  margin-left: 4px;
  padding: 9px 15px;
  font-size: 0.93rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
}

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 92px 0;
}

.section-tight {
  padding-top: 50px;
}

.section-band {
  width: 100%;
  max-width: none;
  padding: 92px max(16px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(180deg, rgba(238, 246, 244, 0.85), rgba(255, 255, 255, 0.35));
  border-top: 1px solid rgba(215, 227, 223, 0.7);
  border-bottom: 1px solid rgba(215, 227, 223, 0.7);
}

.hero {
  display: grid;
  min-height: calc(100vh - 96px);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 54px;
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.75rem, 5.4vw, 4.6rem);
  font-weight: 830;
}

.blur-text {
  display: flex;
  flex-wrap: wrap;
}

.blur-text.is-ready .blur-segment {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-32px);
  will-change: transform, filter, opacity;
}

.blur-text.is-visible .blur-segment {
  animation: blurTextIn 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--blur-delay, 0ms);
}

@keyframes blurTextIn {
  55% {
    opacity: 0.55;
    filter: blur(5px);
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 800;
}

h3 {
  font-size: 1.28rem;
  font-weight: 780;
}

.hero-subheadline {
  max-width: 760px;
  margin: 24px 0 0;
  color: #22322f;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.52;
}

.hero-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  max-width: 760px;
  margin-top: 32px;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 760;
  padding: 12px 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(17, 85, 204, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.button-text {
  min-height: 44px;
  color: var(--accent-dark);
  padding-inline: 12px;
}

.button-text:hover,
.button-text:focus-visible {
  background: var(--accent-soft);
}

.hero-media {
  position: relative;
  overflow: hidden;
  justify-self: center;
  width: min(100%, 390px);
  border: 1px solid rgba(215, 227, 223, 0.9);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center 34%;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 + p,
.section-heading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--green));
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: -34px;
  width: 22px;
  height: 22px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(17, 85, 204, 0.2), 0 12px 24px rgba(17, 85, 204, 0.24);
}

.timeline-card,
.skill-card,
.result-card,
.contact-panel {
  border: 1px solid rgba(215, 227, 223, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.timeline-card {
  padding: 28px;
}

.timeline-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 820;
  text-transform: uppercase;
}

.timeline-kicker a {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(17, 85, 204, 0.28);
}

.timeline-kicker a:hover,
.timeline-kicker a:focus-visible {
  color: var(--accent-dark);
  border-bottom-color: currentColor;
}

.timeline-card .role-summary {
  margin: 12px 0 0;
  color: var(--muted);
}

.timeline-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #344541;
}

.timeline-card li {
  padding-left: 2px;
}

.timeline-card li::marker {
  color: var(--green);
}

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

.skill-card {
  min-height: 250px;
  padding: 24px;
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 840;
}

.skill-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-section {
  padding-top: 46px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(17, 85, 204, 0.08), rgba(18, 128, 92, 0.08)),
    #ffffff;
}

.contact-panel p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-actions {
  justify-content: center;
}

.contact-actions .button {
  min-width: 180px;
}

.contact-link {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-dark);
  font-weight: 760;
  padding: 13px 18px;
  text-align: center;
}

.site-footer {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 20px 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .site-header {
    border-radius: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav .nav-resume-button {
    width: 100%;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
  }

  .hero-media {
    width: min(100%, 360px);
  }

  .hero-media img {
    min-height: 390px;
  }

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

  .contact-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 24px, var(--max-width));
    margin-top: 12px;
  }

  .brand span:last-child {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section {
    width: min(100% - 24px, var(--max-width));
    padding: 66px 0;
  }

  .section-band {
    width: 100%;
    padding: 66px 12px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }

  .hero-actions .button,
  .contact-actions .button,
  .contact-link {
    width: 100%;
  }

  .hero-media {
    border-radius: 20px;
  }

  .hero-media img {
    min-height: 340px;
  }

  .timeline {
    gap: 18px;
    padding-left: 26px;
  }

  .timeline-dot {
    left: -30px;
  }

  .timeline-card {
    padding: 22px;
  }

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

  .skill-card {
    grid-column: span 1;
  }

  .skill-card {
    min-height: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .blur-text.is-ready .blur-segment {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
