:root {
  --color-primary: #002da7;
  --color-primary-strong: #0f3bc2;
  --color-primary-soft: #dfe7ff;
  --color-primary-ghost: rgba(0, 45, 167, 0.08);
  --color-secondary: #3657be;
  --color-surface: #f8f9fa;
  --color-surface-low: #f3f4f5;
  --color-surface-card: #ffffff;
  --color-surface-high: #e7e8e9;
  --color-surface-ink: #191c1d;
  --color-text: #191c1d;
  --color-text-muted: #444655;
  --color-text-soft: #6a6d78;
  --color-outline: rgba(116, 118, 134, 0.2);
  --color-outline-strong: rgba(116, 118, 134, 0.32);
  --color-white: #ffffff;
  --color-dark: #101420;
  --shadow-soft: 0 16px 50px rgba(0, 45, 167, 0.06);
  --shadow-card: 0 18px 45px rgba(0, 45, 167, 0.08);
  --shadow-button: 0 16px 36px rgba(0, 45, 167, 0.18);
  --shadow-nav: 0 10px 40px rgba(0, 45, 167, 0.05);
  --shadow-large: 0 35px 90px rgba(0, 45, 167, 0.1);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --radius-pill: 999px;
  --container-sm: 40rem;
  --container-md: 56rem;
  --container-lg: 74rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --transition-standard: 220ms ease;
  --transition-slow: 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(circle at top right, rgba(54, 87, 190, 0.07), transparent 28%),
    linear-gradient(180deg, #fbfcfd 0%, var(--color-surface) 30%, #f5f7fb 100%);
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  overflow: clip;
}

.container {
  width: min(100% - 2rem, var(--container-lg));
  margin: 0 auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--container-md));
  margin: 0 auto;
}

.section {
  padding: var(--space-20) 0;
}

.section--tight {
  padding: var(--space-16) 0;
}

.section--soft {
  background: rgba(255, 255, 255, 0.58);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(196, 197, 215, 0.2);
  box-shadow: var(--shadow-nav);
}

.site-header__inner {
  width: min(100% - 2rem, var(--container-lg));
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-surface-ink);
}

.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: 0;
  margin: 0;
}

.site-nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  transition: color var(--transition-standard);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-primary);
}

.site-nav__link.is-current {
  color: var(--color-primary);
  position: relative;
}

.site-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__actions .button--small {
  display: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 45, 167, 0.06);
  color: var(--color-primary);
  transition: background var(--transition-standard), transform var(--transition-standard);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(0, 45, 167, 0.1);
}

.menu-toggle__line {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition-standard), opacity var(--transition-standard);
}

.menu-toggle__line::before,
.menu-toggle__line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition-standard), top var(--transition-standard), bottom var(--transition-standard);
}

.menu-toggle__line::before {
  top: -0.38rem;
}

.menu-toggle__line::after {
  bottom: -0.38rem;
}

.menu-toggle.is-open .menu-toggle__line {
  background: transparent;
}

.menu-toggle.is-open .menu-toggle__line::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__line::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 4.5rem 1rem auto 1rem;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(196, 197, 215, 0.3);
  box-shadow: var(--shadow-large);
  transform: translateY(-0.75rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-standard), transform var(--transition-standard), visibility var(--transition-standard);
  z-index: 95;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.mobile-nav__link {
  display: block;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-surface-low);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  transition: background var(--transition-standard), color var(--transition-standard);
}

.mobile-nav__link.is-current {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.page-main {
  padding-top: var(--space-10);
}

.hero {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.hero--home,
.hero--contact {
  padding-top: var(--space-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 45, 167, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--plain {
  background: transparent;
  padding: 0;
}

.eyebrow__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.hero__title,
.page-title,
.cta-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--color-surface-ink);
}

.hero__title strong,
.page-title strong,
.text-accent {
  color: var(--color-primary);
}

.hero__lede,
.page-lede,
.section-intro,
.rich-text p,
.contact-card__text,
.stat-card__caption,
.timeline__content,
.card__text,
.skill-card__text,
.award-card__text {
  color: var(--color-text-muted);
  line-height: 1.72;
}

.hero__lede,
.page-lede {
  margin: var(--space-6) 0 0;
  font-size: 1.05rem;
  max-width: 38rem;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3.6rem;
  padding: 0.95rem 1.45rem;
  border-radius: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  transition: transform var(--transition-standard), box-shadow var(--transition-standard), background var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard);
}

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

.button--primary {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  box-shadow: var(--shadow-button);
}

.button--secondary {
  color: var(--color-primary);
  background: rgba(0, 45, 167, 0.05);
  border: 1px solid rgba(0, 45, 167, 0.16);
}

.button--ghost {
  color: var(--color-primary);
  background: transparent;
}

.button--dark {
  color: var(--color-white);
  background: #121827;
  box-shadow: 0 18px 42px rgba(18, 24, 39, 0.18);
}

.button--small {
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

.button--block {
  width: 100%;
}

.button__icon,
.text-link__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.hero-media {
  position: relative;
}

.hero-media__frame,
.image-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(223, 231, 255, 0.8), rgba(255, 255, 255, 0.88));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-large);
}

.hero-media__frame img,
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media__frame {
  aspect-ratio: 4 / 5;
}

.glass-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: var(--space-5);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 15px 40px rgba(0, 45, 167, 0.12);
}

.glass-card__label {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.glass-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-media__accent {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 45, 167, 0.2), transparent 70%);
  filter: blur(10px);
}

.metric-strip {
  margin-top: var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), #1139b3);
  color: var(--color-white);
}

.metric-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.metric-strip__item {
  padding-left: var(--space-5);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-strip__value {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-strip__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.section-header {
  display: grid;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-10);
}

.section-header__text {
  max-width: 38rem;
}

.section-header__accent {
  width: 3rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-surface-ink);
}

.section-intro {
  margin: 0;
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  gap: var(--space-6);
}

.card {
  height: 100%;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(196, 197, 215, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard), border-color var(--transition-standard), opacity var(--transition-standard);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 45, 167, 0.18);
}

.card__icon {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: var(--space-6);
  border-radius: 1.1rem;
  background: rgba(0, 45, 167, 0.06);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card__icon svg,
.icon-circle svg {
  width: 1.55rem;
  height: 1.55rem;
}

.card__eyebrow,
.mini-label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card__title,
.project-card__title,
.timeline__title,
.form-card__title,
.list-card__title,
.cta-link-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-surface-ink);
}

.card__text,
.project-card__text,
.timeline__content,
.skill-card__text,
.form-note,
.contact-card__text,
.stat-card__caption {
  margin: var(--space-4) 0 0;
  font-size: 0.98rem;
}

.focus-grid {
  display: grid;
  gap: var(--space-6);
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.focus-card--light {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 197, 215, 0.24);
}

.focus-card--primary {
  background: linear-gradient(135deg, var(--color-primary), #1b44cc);
  color: var(--color-white);
}

.focus-card--primary .focus-card__title,
.focus-card--primary .focus-card__text,
.focus-card--primary .mini-label {
  color: inherit;
}

.focus-card__layout {
  display: grid;
  gap: var(--space-6);
}

.focus-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.focus-card__list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-6) 0 0;
}

.focus-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--color-primary);
}

.focus-card--primary .focus-card__list li {
  color: var(--color-white);
}

.focus-card__list svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.focus-card__media {
  overflow: hidden;
  border-radius: 1.75rem;
  min-height: 14rem;
  background: var(--color-surface-high);
}

.focus-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 1rem;
  background: rgba(0, 45, 167, 0.06);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.focus-card--banner {
  text-align: center;
}

.project-grid,
.project-preview-grid {
  display: grid;
  gap: var(--space-8);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-high);
  border: 1px solid rgba(196, 197, 215, 0.2);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
}

.project-card__tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.project-card__meta {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-card__outcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  margin-top: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(196, 197, 215, 0.26);
}

.icon-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.project-card__outcome-title {
  margin: 0 0 var(--space-2);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-card__outcome-text {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 600;
}

.about-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(196, 197, 215, 0.22);
}

.stat-card__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-card__caption {
  margin-top: var(--space-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) + 0.5rem);
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--color-primary), #1b44cc);
  color: var(--color-white);
  box-shadow: 0 30px 70px rgba(0, 45, 167, 0.22);
  text-align: center;
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(6px);
}

.cta-banner::before {
  width: 14rem;
  height: 14rem;
  right: -5rem;
  top: -6rem;
}

.cta-banner::after {
  width: 10rem;
  height: 10rem;
  left: -3rem;
  bottom: -4rem;
  background: rgba(16, 20, 32, 0.12);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  color: var(--color-white);
}

.cta-banner__text {
  margin: var(--space-5) auto 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.72;
  font-size: 1rem;
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
  align-items: center;
}

.cta-banner .button--secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.page-hero {
  display: grid;
  gap: var(--space-10);
  align-items: end;
  margin-bottom: var(--space-12);
}

.filter-bar {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.filter-chip {
  padding: 0.75rem 1.05rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(196, 197, 215, 0.28);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background var(--transition-standard), color var(--transition-standard), border-color var(--transition-standard), transform var(--transition-standard);
}

.filter-chip:hover,
.filter-chip:focus-visible {
  transform: translateY(-1px);
}

.filter-chip.is-active {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 14px 28px rgba(0, 45, 167, 0.18);
}

.is-hidden {
  display: none !important;
}

.cv-hero {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.cv-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cv-layout {
  display: grid;
  gap: var(--space-12);
}

.timeline-section {
  display: grid;
  gap: var(--space-6);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-badge__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-badge__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: var(--space-8);
  padding-left: var(--space-8);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 45, 167, 0.3), rgba(196, 197, 215, 0.5));
}

.timeline__item {
  position: relative;
}

.timeline__dot {
  position: absolute;
  top: 0.25rem;
  left: -2.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(0, 45, 167, 0.06);
}

.timeline__period {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.timeline__subtitle {
  margin: var(--space-2) 0 0;
  color: var(--color-text-muted);
  font-weight: 700;
}

.timeline__content {
  margin-bottom: 0;
}

.list-grid,
.skill-grid,
.language-grid,
.link-grid,
.contact-info-grid {
  display: grid;
  gap: var(--space-5);
}

.list-card,
.skill-card,
.language-card,
.contact-link,
.contact-card,
.form-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 197, 215, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.list-card,
.skill-card,
.language-card,
.form-card {
  padding: var(--space-8);
}

.list-card__meta {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.list-card__title {
  margin-top: var(--space-5);
}

.list-card__text,
.form-note {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
  line-height: 1.68;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.skill-tag {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 0.95rem;
  background: var(--color-surface-low);
  border: 1px solid rgba(196, 197, 215, 0.24);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.language-card__level {
  color: var(--color-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.language-card__bar {
  width: 100%;
  height: 0.45rem;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(196, 197, 215, 0.24);
}

.language-card__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
}

.language-card__fill--100 {
  width: 100%;
}

.language-card__fill--75 {
  width: 75%;
}

.language-card__fill--40 {
  width: 40%;
}

.award-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), #1b44cc);
  color: var(--color-white);
  box-shadow: 0 26px 60px rgba(0, 45, 167, 0.22);
}

.award-card__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.award-card__title {
  margin: var(--space-3) 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.award-card__text {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.84);
}

.quote-panel {
  position: relative;
  overflow: hidden;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(196, 197, 215, 0.24);
  background: rgba(255, 255, 255, 0.86);
  min-height: 18rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
}

.quote-panel__bg {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.quote-panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-panel__content {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  text-align: center;
}

.quote-panel__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.contact-intro {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-14);
}

.form-card {
  padding: var(--space-8);
}

.form-card__title {
  text-align: center;
}

.form-card__accent {
  width: 4rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--color-primary);
  margin: var(--space-4) auto 0;
}

.form {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.form__grid {
  display: grid;
  gap: var(--space-8);
}

.form-field {
  display: grid;
  gap: var(--space-3);
}

.form-field__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
}

.form-field__control {
  width: 100%;
  padding: 0.95rem 0;
  border: 0;
  border-bottom: 2px solid rgba(196, 197, 215, 0.4);
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition-standard), box-shadow var(--transition-standard);
}

.form-field__control::placeholder {
  color: rgba(68, 70, 85, 0.38);
}

.form-field__control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-field__error {
  min-height: 1rem;
  color: #ba1a1a;
  font-size: 0.78rem;
}

.form-field.is-invalid .form-field__control {
  border-color: #ba1a1a;
}

.form-status {
  min-height: 1.2rem;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  text-align: center;
}

.form-status.is-success {
  color: #0d6b3f;
}

.link-grid {
  margin-top: var(--space-10);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  transition: transform var(--transition-standard), border-color var(--transition-standard), box-shadow var(--transition-standard), background var(--transition-standard);
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 45, 167, 0.18);
  box-shadow: var(--shadow-card);
}

.contact-link__main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.contact-link__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 45, 167, 0.08);
  color: var(--color-primary);
}

.contact-link__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-link__eyebrow {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-link__title {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-link__arrow {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-text-soft);
}

.site-footer {
  margin-top: var(--space-16);
  padding: var(--space-10) 0;
  background: #0d1220;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer--light {
  background: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(196, 197, 215, 0.24);
  color: var(--color-text-soft);
}

.site-footer__inner {
  width: min(100% - 2rem, var(--container-lg));
  margin: 0 auto;
  display: grid;
  gap: var(--space-8);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-white);
}

.site-footer--light .site-footer__brand {
  color: var(--color-surface-ink);
}

.site-footer__text {
  margin: 0;
  line-height: 1.7;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-8);
}

.site-footer__link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer__meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.site-footer--light .site-footer__meta {
  color: var(--color-text-soft);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 40rem) {
  .container,
  .container--narrow,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 3rem, var(--container-lg));
  }

  .button-row,
  .cta-banner__actions,
  .cv-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .metric-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid--three,
  .list-grid--two,
  .link-grid--two,
  .contact-info-grid--two,
  .skill-grid--two,
  .language-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 56rem) {
  .page-main {
    padding-top: var(--space-12);
  }

  .site-header__inner {
    min-height: 5rem;
  }

  .site-nav {
    display: block;
  }

  .site-header__actions .button--small {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero,
  .about-grid,
  .page-hero,
  .contact-intro {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .hero--home {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .section-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .metric-strip__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .focus-card--wide {
    grid-column: span 7;
  }

  .focus-card--tall {
    grid-column: span 5;
  }

  .focus-card--banner {
    grid-column: 1 / -1;
  }

  .focus-card__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
    align-items: center;
  }

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

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

  .tag-row--desktop-center {
    justify-content: center;
  }

  .cv-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: start;
  }

  .cv-sidebar {
    position: sticky;
    top: 6.5rem;
  }

  .section--spacious {
    padding: var(--space-24) 0;
  }
}

@media (min-width: 70rem) {
  .hero__lede,
  .page-lede {
    font-size: 1.15rem;
  }

  .section {
    padding: var(--space-24) 0;
  }

  .section--tight {
    padding: var(--space-20) 0;
  }

  .project-grid {
    gap: var(--space-10);
  }

  .form-card {
    padding: var(--space-12);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
