:root {
  --wine: #6d2029;
  --wine-deep: #51161e;
  --wine-soft: #7d3038;
  --rose: #ead9d7;
  --rose-light: #f6eeee;
  --paper: #fffdfb;
  --ink: #2a2525;
  --muted: #6f6666;
  --line: #e7dada;
  --shadow: 0 18px 50px rgba(72, 25, 31, .12);
  --radius: 24px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(109, 32, 41, .08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--wine);
  color: white;
  font-size: .82rem;
  letter-spacing: .08em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .92rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--wine);
}

.languages-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(109,32,41,.12);
  border-radius: 999px;
  background: white;
}

.languages-switch a {
  min-width: 36px;
  padding: 6px 9px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.languages-switch a[aria-current="page"] {
  background: var(--wine);
  color: white;
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(109,32,41,.10), transparent 34%),
    linear-gradient(120deg, var(--rose-light), var(--paper) 62%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 86px);
  padding-block: 62px 68px;
}

.portrait-wrap {
  position: relative;
  width: 310px;
  justify-self: center;
  padding: 10px;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 7% 16% 13% 0;
  border-radius: 34px;
  background: var(--wine);
  transform: translate(-12px, 12px);
}

.portrait {
  position: relative;
  z-index: 1;
  width: 286px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border: 8px solid white;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 780;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  color: var(--wine-deep);
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: #4d4444;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span,
.interest-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(109, 32, 41, .14);
  color: var(--wine-deep);
  font-weight: 680;
  box-shadow: 0 6px 20px rgba(72, 25, 31, .05);
}

.section { padding-block: 88px; }
.section-tint { background: var(--rose-light); }

.section-dark {
  color: white;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.06), transparent 35%),
    var(--wine-deep);
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  color: var(--wine-deep);
}

.section-dark h2,
.section-dark .section-kicker { color: white; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.35fr;
  gap: clamp(44px, 8vw, 110px);
}

.prose {
  max-width: 760px;
  font-size: 1.08rem;
  color: #4d4444;
}
.prose p:first-child { margin-top: 0; }

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

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

.role {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  padding: 32px;
  border: 1px solid rgba(109,32,41,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 35px rgba(72, 25, 31, .055);
}

.role.featured { border-color: rgba(109,32,41,.22); }

.role-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date {
  color: var(--wine);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .84rem;
}

.company {
  color: var(--muted);
  font-size: .92rem;
}

.role h3,
.skill-card h3,
.education h3,
.earlier h3 {
  margin: 0;
  color: var(--wine-deep);
}

.role h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.role ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}
.role li + li { margin-top: 10px; }
.role.compact p { margin: 10px 0 0; }

.earlier {
  padding: 24px 30px;
  border: 1px dashed rgba(109,32,41,.30);
  border-radius: var(--radius);
  background: rgba(255,255,255,.45);
}

.earlier summary {
  cursor: pointer;
  color: var(--wine-deep);
  font-weight: 780;
}

.earlier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
}

.earlier-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.skill-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 10px 32px rgba(72, 25, 31, .045);
}

.skill-card h3 { margin-bottom: 16px; }
.skill-card p { margin: 6px 0; color: #554c4c; }

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

.languages > div {
  display: grid;
  gap: 4px;
  min-height: 112px;
  align-content: center;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: rgba(255,255,255,.07);
}

.languages strong { font-size: 1.05rem; }
.languages span { color: rgba(255,255,255,.74); }

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

.education article {
  padding: 28px 30px;
  border-left: 4px solid var(--wine);
  border-radius: 0 20px 20px 0;
  background: var(--rose-light);
}

.education h3 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.education p { margin: 5px 0; }
.degree { font-weight: 730; }

.interests-wrap {
  display: grid;
  grid-template-columns: .85fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  padding-block: 34px;
  color: rgba(255,255,255,.84);
  background: #391016;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.footer p { margin: 0; }

.privacy-note {
  color: rgba(255,255,255,.58);
  font-size: .88rem;
  text-align: right;
}

@media (max-width: 980px) {
  .nav { display: none; }

  .hero-grid,
  .split,
  .interests-wrap {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 36px;
    padding-block: 50px 64px;
  }

  .portrait-wrap {
    width: 250px;
    justify-self: start;
  }

  .portrait { width: 228px; }

  .role {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

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

@media (max-width: 620px) {
  :root { --shell: min(100% - 26px, 1160px); }

  .site-header { position: static; }

  .brand > span:last-child { display: none; }

  .nav-wrap { min-height: 64px; }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.9rem);
  }

  .section { padding-block: 66px; }

  .role,
  .skill-card,
  .education article,
  .earlier {
    padding: 22px;
  }

  .skill-grid,
  .languages,
  .earlier-grid {
    grid-template-columns: 1fr;
  }

  .footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-note { text-align: left; }
}

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