@font-face {
  font-family: 'La Belle Aurore';
  src: url('/assets/LaBelleAurore-Regular.ttf') format('truetype');
  font-display: swap;
}

.career-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(14px, 3vw, 54px);
}

.parcours-page .career-intro h1 {
  font-size: clamp(50px, 7.15vw, 104px);
  white-space: normal;
}

.career-intro-copy > p {
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.career-globe {
  position: relative;
  width: 88%;
  max-width: 480px;
  margin: 0;
  justify-self: start;
  color: #28676a;
  container-type: inline-size;
}

.career-globe-art {
  position: relative;
  aspect-ratio: 6 / 5;
}

.career-globe-art :is(canvas, svg) {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.career-globe-art {
  mask-image: radial-gradient(circle at var(--light-x, -200px) var(--light-y, -200px),
    #000 0 var(--discovery-core), transparent var(--discovery-edge));
}

.career-globe:focus-visible .career-globe-art,
.career-globe.is-open .career-globe-art { mask-image: none; }

.career-globe-places {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.career-globe-places g { opacity: 0; }
.career-globe-places text { fill: currentColor; font: 400 23px 'La Belle Aurore', cursive; }
.career-globe-places path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.career-globe-places g.is-lit,
.career-globe:focus-visible .career-globe-places g,
.career-globe.is-open .career-globe-places g {
  opacity: 1;
  transition: opacity .25s ease-out;
}

.career-experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(140px, 25%, 310px);
  column-gap: clamp(20px, 5.5vw, 90px);
}

.career-experience-grid .career-list li {
  grid-template-columns: minmax(110px, .30fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 42px);
}

.career-list p:not(.career-role) {
  max-width: 48ch;
  text-wrap: balance;
}

.career-travel {
  position: relative;
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;
  color: #28676a;
}

.career-travel > svg { display: block; width: 100%; overflow: visible; }

.career-travel > .career-travel-steps {
  position: absolute;
  inset: 0;
  height: 100%;
  pointer-events: none;
}

.career-travel-flight--loop { grid-area: 1 / 2; align-self: start; }
.career-travel-flight--glide { grid-area: 3 / 2; }

.career-travel-step {
  opacity: var(--step-light, 0);
  transition: opacity .3s ease-out;
}

.career-travel-flight {
  pointer-events: bounding-box;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.career-travel-trace {
  stroke-dasharray: .018 .031;
  opacity: .65;
}

.career-travel-plane {
  offset-anchor: 0 0;
  offset-distance: 0%;
  opacity: 0;
  fill: #f4f0e8;
}

.career-travel-flight--loop .career-travel-plane {
  offset-path: path('M27 145 C80 126 166 147 162 103 C158 60 76 79 94 120 C115 165 178 111 221 38');
}

.career-travel-flight--glide .career-travel-plane {
  offset-path: path('M22 183 C67 184 95 161 94 130 C91 91 146 86 216 108');
}

.career-travel-flight:hover .career-travel-plane {
  animation: career-flight 1.85s ease-in-out forwards;
}

.career-travel-reveal {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.career-travel-flight:hover .career-travel-reveal {
  animation: career-trace 1.85s ease-in-out forwards;
}

@keyframes career-flight {
  0% { opacity: 0; offset-distance: 0%; }
  12% { opacity: 1; }
  100% { opacity: 1; offset-distance: 100%; }
}

@keyframes career-trace {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 760px) {
  .career-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .career-globe { width: min(88%, 390px); justify-self: center; }
  .career-experience-grid { display: block; }
  .career-travel { display: none; }
}

@media (max-width: 520px) {
  .parcours-page .career-intro h1 { font-size: clamp(42px, 12vw, 62px); }
  .career-experience-grid .career-list li { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .career-travel-flight:hover :is(.career-travel-plane, .career-travel-reveal) {
    animation: none;
    opacity: .82;
  }

  .career-travel-flight:hover .career-travel-plane { offset-distance: 100%; }
  .career-travel-flight:hover .career-travel-reveal { stroke-dashoffset: 0; }
}

.career-bts {
  position: relative;
  padding-inline-end: 104px;
}

.career-bts-scribble {
  position: absolute;
  inset: 14% 5% auto auto;
  width: clamp(65px, 8vw, 105px);
  fill: none;
  stroke: #28676a;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.career-bts-scribble path {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.career-bts-scribble:hover path {
  opacity: .88;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .64s ease-out;
}

.career-bts-scribble:hover path + path { transition-delay: .3s; }

@media (hover: none) {
  .career-bts-scribble path { opacity: .88; stroke-dashoffset: 0; }
}
