.cv-site {
  --cv-bg: #f2f2ef;
  --cv-ink: #202020;
  --cv-muted: #737373;
  --cv-line: rgba(32, 32, 32, .12);
  --cv-glass: rgba(255, 255, 255, .66);
  --cv-accent: #ef4f32;
  min-height: 100svh;
  color: var(--cv-ink);
  background: var(--cv-bg);
}

.cv-site a:focus-visible,
.cv-site iframe:focus-visible {
  outline: 2px solid var(--cv-accent);
  outline-offset: 3px;
}

.cv-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  width: min(1440px, 92vw);
  height: 64px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  background: rgba(242, 242, 239, .88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.cv-topbar-title {
  color: var(--cv-muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cv-glass-control,
.cv-glass-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 32, .12);
  background: rgba(255, 255, 255, .62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(32, 32, 32, .035),
    0 7px 20px rgba(32, 32, 32, .055);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.cv-glass-control::before,
.cv-glass-button::before {
  position: absolute;
  top: 1px;
  right: 12%;
  left: 12%;
  height: 48%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.cv-glass-control:hover,
.cv-glass-button:hover {
  border-color: rgba(32, 32, 32, .2);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(32, 32, 32, .04),
    0 10px 24px rgba(32, 32, 32, .08);
  transform: translateY(-1px);
}

.cv-back {
  width: 42px;
  height: 42px;
  justify-self: start;
  border-radius: 50%;
  font-size: 18px;
}

.cv-download {
  height: 42px;
  justify-self: end;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .06em;
}

.cv-hero {
  display: flex;
  width: min(920px, 84vw);
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 42px 0 52px;
  text-align: center;
  animation: cv-in 480ms cubic-bezier(.22, 1, .36, 1) both;
}

.cv-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 450;
  letter-spacing: -.055em;
  line-height: .98;
}

.cv-hero p {
  margin: 20px 0 0;
  color: var(--cv-muted);
  font-size: clamp(14px, 1.25vw, 17px);
}

.cv-dossier {
  width: min(1440px, 92vw);
  margin: 0 auto;
  border-top: 1px solid var(--cv-line);
}

.cv-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--cv-line);
}

.cv-section-label {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-content: start;
  align-items: baseline;
  padding-top: 2px;
}

.cv-section-label span,
.cv-section-label h2,
.cv-period,
.cv-contact-kicker {
  margin: 0;
  color: var(--cv-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cv-section-label h2 {
  color: var(--cv-ink);
  font-size: 11px;
  font-weight: 500;
}

.cv-section-body {
  grid-column: span 10;
  min-width: 0;
}

.cv-profile-grid {
  display: grid;
  grid-template-columns: 112px minmax(190px, 4fr) minmax(280px, 6fr);
  align-items: start;
  gap: 24px;
}

.cv-profile-photo {
  margin: 0;
}

.cv-profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 485 / 620;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  object-fit: cover;
  object-position: center top;
}

.cv-profile-lead {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(20px, 1.9vw, 29px);
  font-weight: 450;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.cv-profile-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  color: #4d4d4a;
  font-size: 13px;
  line-height: 1.52;
}

.cv-profile-copy p {
  margin: 0;
}

.cv-card-grid {
  display: grid;
  gap: 10px;
}

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

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

.cv-areas-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cv-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(32, 32, 32, .1);
  border-radius: 16px;
  background: var(--cv-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(32, 32, 32, .025),
    0 8px 24px rgba(20, 20, 20, .04);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  animation: cv-in 460ms cubic-bezier(.22, 1, .36, 1) both;
}

.cv-card:nth-child(2) { animation-delay: 45ms; }
.cv-card:nth-child(3) { animation-delay: 90ms; }
.cv-card:nth-child(4) { animation-delay: 135ms; }

@keyframes cv-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cv-entry-card,
.cv-study-card {
  display: flex;
  min-height: 202px;
  flex-direction: column;
}

.cv-entry-card h3,
.cv-study-card h3,
.cv-area-card h3,
.cv-contact-card h3,
.cv-card-head h3 {
  margin: 0;
  font-weight: 480;
  letter-spacing: -.035em;
}

.cv-entry-card h3,
.cv-study-card h3 {
  margin-top: 25px;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.05;
}

.cv-place {
  margin: 7px 0 0;
  color: var(--cv-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cv-detail {
  margin: auto 0 0;
  padding-top: 22px;
  color: #555552;
  font-size: 11px;
  line-height: 1.48;
}

.cv-area-card {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  justify-content: space-between;
}

.cv-area-card > span {
  color: var(--cv-muted);
  font-size: 9px;
}

.cv-area-card h3 {
  max-width: 15ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.08;
}

.cv-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(280px, 4fr);
  gap: 10px;
}

.cv-video-card,
.cv-contact-card {
  padding: 18px;
}

.cv-card-head {
  display: flex;
  min-height: 28px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cv-card-head h3 {
  font-size: 13px;
}

.cv-card-head a {
  color: var(--cv-muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.cv-card-head a:hover {
  color: var(--cv-ink);
}

.cv-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 11px;
  background: #181818;
}

.cv-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-contact-card {
  display: flex;
  flex-direction: column;
}

.cv-contact-card h3 {
  max-width: 15ch;
  margin-top: 26px;
  font-size: clamp(25px, 2.3vw, 35px);
  line-height: 1.03;
}

.cv-glass-button {
  min-height: 52px;
  margin-top: auto;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 520;
  letter-spacing: -.025em;
}

.cv-contact-links {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  color: var(--cv-muted);
  font-size: 10px;
}

.cv-contact-links a {
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}

.cv-contact-links a:hover {
  color: var(--cv-ink);
}

.cv-page-footer {
  display: flex;
  width: min(1440px, 92vw);
  justify-content: center;
  margin: 0 auto;
  padding: 24px 0 28px;
  border: 0;
  color: var(--cv-muted);
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1050px) {
  .cv-section {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
  }

  .cv-section-label,
  .cv-section-body {
    grid-column: 1 / -1;
  }

  .cv-section-label {
    grid-template-columns: 38px auto;
    margin-bottom: 6px;
  }

  .cv-profile-grid {
    grid-template-columns: 108px minmax(190px, 3fr) minmax(340px, 5fr);
  }

  .cv-final-grid {
    grid-template-columns: minmax(0, 5fr) minmax(260px, 3fr);
  }

  .cv-contact-card h3 {
    font-size: clamp(24px, 3vw, 31px);
  }
}

@media (max-width: 760px) {
  .cv-topbar,
  .cv-dossier,
  .cv-page-footer {
    width: calc(100% - 36px);
  }

  .cv-topbar {
    height: 58px;
  }

  .cv-topbar-title {
    font-size: 9px;
  }

  .cv-back {
    width: 40px;
    height: 40px;
  }

  .cv-download {
    height: 40px;
    padding: 0 15px;
  }

  .cv-hero {
    width: calc(100% - 36px);
    min-height: 250px;
    padding: 36px 0 43px;
  }

  .cv-hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .cv-hero p {
    max-width: 26ch;
    margin-top: 16px;
    line-height: 1.45;
  }

  .cv-section {
    display: block;
    padding: 20px 0;
  }

  .cv-section-label {
    display: grid;
    margin-bottom: 18px;
  }

  .cv-profile-grid {
    grid-template-columns: 88px 1fr;
    gap: 18px;
  }

  .cv-profile-lead {
    font-size: clamp(20px, 6vw, 27px);
  }

  .cv-profile-copy {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 13px;
  }

  .cv-experience-grid,
  .cv-education-grid,
  .cv-final-grid {
    grid-template-columns: 1fr;
  }

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

  .cv-entry-card,
  .cv-study-card {
    min-height: 170px;
  }

  .cv-entry-card h3,
  .cv-study-card h3 {
    font-size: 20px;
  }

  .cv-card {
    padding: 18px;
    border-radius: 15px;
  }

  .cv-area-card {
    min-height: 100px;
  }

  .cv-contact-card {
    min-height: 330px;
  }

  .cv-contact-card h3 {
    font-size: 30px;
  }
}

@media (max-width: 390px) {
  .cv-topbar-title {
    max-width: 110px;
    text-align: center;
  }

  .cv-profile-grid {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }

  .cv-profile-lead {
    font-size: 21px;
  }

  .cv-area-card h3 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-hero,
  .cv-card {
    animation: none;
  }

  .cv-glass-control,
  .cv-glass-button {
    transition: none;
  }
}

@media print {
  .cv-site {
    background: white;
  }

  .cv-topbar,
  .cv-video,
  .cv-page-footer {
    display: none;
  }

  .cv-hero {
    min-height: auto;
    padding: 24px 0 40px;
  }

  .cv-dossier {
    width: 100%;
  }

  .cv-section {
    break-inside: avoid;
  }

  .cv-card {
    background: white;
    box-shadow: none;
    break-inside: avoid;
  }
}
