/**
 * Portfolio Younes RBIA — styles.css
 */

/* ========== 01 — Reset & tokens ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #f3f2f1;
  --bg-soft: #edebe9;
  --surface: #fff;
  --primary: #0078d4;
  --primary-dark: #5c2d91;
  --primary-light: #00bcf2;
  --teal: #00bcf2;
  --amber: #5c2d91;
  --ink: #323130;
  --ink-soft: #605e5c;
  --ink-faint: #6e6b69;
  --line: rgba(0, 120, 212, .14);
  --shadow: 0 20px 60px -24px rgba(92, 45, 145, .35);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --font-d: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-b: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-m: Consolas, 'Courier New', monospace
}

html,
body {
  transition: background-color .4s ease, color .4s ease
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  line-height: 1.5
}

::-webkit-scrollbar {
  width: 11px
}

::-webkit-scrollbar-track {
  background: var(--bg-soft)
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--teal));
  border-radius: 10px;
  border: 2.5px solid var(--bg-soft)
}

* {
  scrollbar-color: var(--primary) var(--bg-soft);
  scrollbar-width: thin
}

body.menu-open {
  overflow: hidden
}

body.no-custom-cursor {
  cursor: auto;
}

body.no-custom-cursor #cursor-dot,
body.no-custom-cursor #cursor-ring {
  display: none;
}

body.no-custom-cursor a:focus-visible,
body.no-custom-cursor button:focus-visible {
  outline: 3px solid #00bcf2;
  outline-offset: 3px;
}

/* ========== 02 — Accessibility & scroll UI ========== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10001;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: top .25s ease
}

.skip-link:focus {
  top: 16px
}

#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 10002;
  transition: width .1s linear
}

#backToTop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 12px 28px -12px rgba(92, 45, 145, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease, border-color .2s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0)
}

#backToTop:hover {
  background: rgba(0, 120, 212, .08);
  border-color: var(--primary)
}

#backToTop svg {
  width: 20px;
  height: 20px
}

@media(max-width:640px) {
  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px
  }
}

/* ========== 03 — Cursor ========== */
@media(hover:hover) and (pointer:fine) {
  body:not(.no-custom-cursor) {
    cursor: none;
  }

  body:not(.no-custom-cursor) a,
  body:not(.no-custom-cursor) button,
  body:not(.no-custom-cursor) .country-node,
  body:not(.no-custom-cursor) .version-node,
  body:not(.no-custom-cursor) .chip {
    cursor: none;
  }
}

#cursor-ring.hovered {
  width: 52px;
  height: 52px;
  background: rgba(0, 120, 212, .08);
  border-color: var(--primary);
}

@media(hover:none), (pointer:coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

.cursor-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -10px rgba(92, 45, 145, .3);
  transition: all .25s ease;
}

.cursor-toggle:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.cursor-toggle.off {
  opacity: .7;
}

@media (hover: none), (pointer: coarse) {
  #cursor-dot,
  #cursor-ring,
  .cursor-toggle {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: block;
}

#cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
}

#cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--teal);
  box-shadow: 0 0 14px rgba(0, 188, 242, .45);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}

/* ========== 04 — Background effects ========== */
#noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvgxmlns='http://www.w3.org/2000/svg'width='120'height='120'%3E%3Cfilterid='n'%3E%3CfeTurbulencetype='fractalNoise'baseFrequency='0.85'numOctaves='2'stitchTiles='stitch'/%3E%3C/filter%3E%3Crectwidth='100%25'height='100%25'filter='url(%23n)'/%3E%3C/svg%3E")
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none
}

/* ========== 05 — Navbar & language ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(0, 120, 212, .09);
  box-shadow: 0 10px 34px -18px rgba(92, 45, 145, .25);
}

.nav-logo {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--primary-dark);
  letter-spacing: .01em;
  text-decoration: none
}

.nav-logo span {
  color: #045c86
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px)
}

.nav-links a {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 1px;
  transition: color .25s ease
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1)
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: 0;
  border: 0;
  padding: 6px;
  z-index: 1200
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

@media(max-width:880px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(62vw, 240px);
    background: var(--surface);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 72px 18px 32px;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
    box-shadow: -20px 0 50px -20px rgba(92, 45, 145, .3);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links > li {
    width: 100%;
    list-style: none;
  }

  .nav-links a,
  .nav-links .nav-dropdown-toggle {
    display: block;
    width: 100%;
    padding: 12px 8px;
    font-size: 1.05rem;
    text-align: left;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(0, 120, 212, 0.06);
  }

  .nav-links a.active {
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
  }

  .nav-item-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 4px 0 6px 8px;
    margin: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    list-style: none;
    z-index: auto;
  }

  .nav-item-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu > li {
    display: block;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-dropdown-item {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 2px 0;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.35;
    text-decoration: none;
    color: var(--ink-soft);
    background: rgba(0, 120, 212, 0.04);
  }

  .nav-dropdown-item:hover,
  .nav-dropdown-item:active {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-dark);
  }

  .nav-toggle {
    display: flex;
    z-index: 1201;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(50, 49, 48, .45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto
}

.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
  opacity: .7;
}

@media (min-width: 881px) {
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 160px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px -16px rgba(92, 45, 145, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1300;
  }

  .nav-item-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
  }
}

.nav-dropdown-item:hover {
  background: rgba(0, 120, 212, .08);
  color: var(--primary-dark);
}

@media(max-width:900px) {
  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: 0;
    padding-left: 12px;
    background: transparent;
  }

  .nav-item-dropdown.open .nav-dropdown-menu {
    display: block;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--primary, #0078d4);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  box-shadow: 0 1px 3px rgba(0, 120, 212, .25);
}

.lang-seg {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-b);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}

.lang-seg.active {
  background: #fff;
  color: var(--primary-dark, #5c2d91);
}

.lang-seg:not(.active):hover {
  color: #fff;
}

/* ========== 06 — Buttons ========== */
.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: .94rem;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, background .3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(0, 120, 212, .6)
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -10px rgba(0, 120, 212, .65)
}

.btn-secondary {
  border: 1.5px solid rgba(0, 120, 212, .35);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .6)
}

.btn-secondary:hover {
  background: rgba(0, 120, 212, .1);
  transform: translateY(-4px)
}

.cf-actions .cf-reset.btn-secondary:hover,
button#cfReset.btn-secondary:hover {
  background: rgba(0, 120, 212, .1);
  transform: translateY(-4px);
}

/* ========== 07 — Section primitives ========== */
.eyebrow {
  font-family: var(--font-m);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #045c86;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
  flex-shrink: 0;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2
}

.section-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 16px
}

.section-head {
  margin-bottom: 56px
}

.reveal {
  opacity: 0;
  transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1)
}

.reveal-up {
  transform: translateY(34px)
}

.reveal-left {
  transform: translateX(-40px)
}

.reveal-right {
  transform: translateX(40px)
}

.reveal.in-view {
  opacity: 1;
  transform: translate(0, 0)
}

.section-sub {
  text-align: justify;
}

.section-sub,
.hero-desc,
.project-desc,
.pi-meta,
.job-list li,
.contact-label,
.filter-field label,
.cf-field label {
  color: #4a4846;
}

.section-sub,
.section-head .section-sub {
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  #dynamics .section-sub {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .version-node {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: left;
    box-sizing: border-box;
  }

  .version-node .v-era {
    flex: 0 0 auto;
    min-width: 44px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark, #5c2d91);
    background: rgba(0, 120, 212, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0;
    margin: 0;
  }

  .version-node .v-name-full {
    display: none;
  }

  .version-node .v-name-short {
    display: block;
    flex: 1 1 auto;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.3;
  }

  .version-node .v-badge {
    position: static;
    top: auto;
    right: auto;
    margin-left: auto;
    flex-shrink: 0;
  }

  .version-node.active .v-era {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }

  .dynamics-panel {
    margin-top: 20px;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .dynamics-panel .panel-empty {
    padding: 24px 12px;
    font-size: 0.92rem;
  }

  .dynamics-panel .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .dynamics-panel .panel-list {
    gap: 10px;
  }

  .dynamics-panel .panel-item {
    padding: 12px;
  }
}

.section-sub,
.section-head .section-sub,
p.section-sub {
  max-width: none;
  width: 100%;
}

/* ========== 08 — Hero / Summary ========== */
#summary {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px clamp(20px, 5vw, 64px) 70px;
  background: radial-gradient(circle at 12% 18%, rgba(0, 120, 212, .10), transparent 42%), radial-gradient(circle at 88% 82%, rgba(0, 188, 242, .12), transparent 45%)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%
}

.hero-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  background: linear-gradient(90deg, var(--primary-dark) 0, var(--primary) 25%, var(--teal) 50%, var(--primary) 75%, var(--primary-dark) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite
}

.hero-title {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 14px;
  font-family: var(--font-b)
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 242, .38), rgba(0, 120, 212, .16) 55%, transparent 72%);
  filter: blur(6px);
  animation: orbPulse 5.5s ease-in-out infinite
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: .75
  }

  50% {
    transform: scale(1.1);
    opacity: 1
  }
}

.float-card {
  position: relative;
  width: 290px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 26px;
  padding: 36px 28px 28px;
  box-shadow: var(--shadow);
  animation: floatRotate 8s ease-in-out infinite;
  transform-style: preserve-3d
}

.avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1.5px dashed var(--teal);
  animation: spin 16s linear infinite
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.7rem
}

.float-card h3 {
  font-family: var(--font-d);
  text-align: center;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 3px;
  font-weight: 700
}

.float-card p.role {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-soft);
  margin-bottom: 22px
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto
  }

  .hero-ctas {
    justify-content: center
  }

  .hero-visual {
    margin-top: 40px
  }
}

.marquee-outer {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .5)
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap
}

.marquee-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: .55;
  transition: filter .3s ease, opacity .3s ease
}

.marquee-item:hover img {
  filter: grayscale(0);
  opacity: 1
}

.marquee-item span {
  font-family: var(--font-m);
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--ink-faint);
  font-weight: 500
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.045)
  }
}

.hero-desc+.hero-desc {
  margin-top: 14px;
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
  }
}

.hero-desc {
  margin-top: 22px;
  max-width: 100%;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1rem;
  text-align: justify;
}

.hero-desc,
#summary .hero-desc,
p.hero-desc {
  text-align: justify;
  text-align-last: left;
  margin-top: 22px;
  max-width: 100%;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1rem;
  hyphens: auto;
}

@media (max-width: 900px) {
  #summary .hero-desc,
  .hero-desc {
    text-align: justify;
    text-align-last: left;
  }
}

.hero-desc .hero-hook {
  display: block;
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(0, 120, 212, .08), rgba(92, 45, 145, .04));
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.65;
  text-align: left;
  letter-spacing: -0.01em;
}

/* ========== 09 — Skills ========== */
@media(hover:hover) and (pointer:fine) {
  a,
  button,
  .country-node,
  .version-node,
  .chip {
    cursor: none
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px
}

.skill-row {
  margin-bottom: 22px
}

.skill-row .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px
}

.skill-row .top .name {
  font-weight: 600;
  font-size: .94rem
}

.skill-row .top .pct {
  font-family: var(--font-m);
  font-size: .8rem;
  color: var(--primary-dark);
  font-weight: 600
}

.skill-row.in-view .skill-bar-fill {
  width: var(--target)
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  opacity: 0
}

.skill-row.in-view .skill-bar-fill::after {
  animation: sweep 1.1s ease 1.1s 1
}

@media(max-width:880px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }
}

.chip {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 120, 212, .14);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease, box-shadow .3s ease;
}

.chip:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px -10px rgba(0, 120, 212, .4);
}

.chip.tint-teal {
  background: rgba(0, 188, 242, .1);
  color: #045C86;
}

.chip.tint-amber {
  background: rgba(92, 45, 145, .14);
  color: #3D1F66;
}

.chip-cloud {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 11px;
  align-content: flex-start;
}

.skill-bar-track {
  height: 10px;
  background: var(--bg-soft, #e8e6e4);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary, #0078D4), var(--teal, #5b34a8));
  transition: width 1.25s cubic-bezier(.22, 1, .36, 1);
}

.skill-row .pct {
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
  text-align: right;
}

/* ========== 10 — Experience ========== */
@media(max-width:560px) {
  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 8px;
  }

  .job-card::before {
    left: -25px;
    width: 12px;
    height: 12px;
    border-width: 3px;
    top: 28px;
  }
}

.timeline {
  position: relative;
  padding-left: 56px;
  max-width: 920px
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--primary);
  border-radius: 2px
}

.job-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 32px;
  margin-bottom: 34px;
  box-shadow: 0 12px 34px -22px rgba(92, 45, 145, .3);
  transition: box-shadow .35s ease, transform .35s ease
}

.job-card:hover {
  box-shadow: 0 22px 46px -18px rgba(0, 120, 212, .4);
  transform: translateY(-5px)
}

.job-card::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 32px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--primary);
  z-index: 2
}

.job-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.2rem
}

.job-dates {
  font-family: var(--font-m);
  font-size: .78rem;
  color: #045c86;
  font-weight: 600;
  background: rgba(0, 188, 242, .1);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  height: fit-content
}

.job-subhead {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 18px;
  font-weight: 500
}

.job-location {
  font-family: var(--font-m);
  font-size: .78rem;
  color: var(--ink-faint);
  white-space: nowrap;
  text-align: right
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light)
}

.project-icon img,
.job-logo {
  object-fit: contain;
}

.job-logo {
  margin-top: 2px;
  flex-shrink: 0;
}

.job-list li {
  text-align: justify;
  text-align-last: left;
}

.job-card .job-desc {
  margin-bottom: 18px;
}

.job-card .badge-row {
  margin-top: 6px;
}

.job-card .job-list {
  margin-bottom: 18px;
}

.job-duration {
  font-family: var(--font-m);
  font-size: .78rem;
  color: #5c2d91;
  font-weight: 700;
  background: rgba(92, 45, 145, .1);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  height: fit-content;
}

#expTotal.cert-total,
#expTotal {
  font-family: var(--font-m);
  font-size: .85rem;
  color: #045c86;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: block;
}

@media (max-width: 768px) {
  #experience .timeline,
  .timeline {
    position: relative;
    padding-left: 28px;
    margin-left: 0;
    border-left: none;
  }

  #experience .timeline::before,
  .timeline::before {
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 120, 212, 0.4);
    transform: none;
  }

  .job-card {
    position: relative;
    margin-left: 0;
    margin-bottom: 20px;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .job-card::before {
    left: -25px;
    top: 28px;
    width: 12px;
    height: 12px;
    border-width: 3px;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-sizing: border-box;
    z-index: 2;
    transform: none;
  }

  .job-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    padding: 6px;
    object-fit: contain;
  }

  .job-title {
    font-size: 1.05rem;
    line-height: 1.25;
    text-align: left;
  }

  .job-subhead {
    font-size: .88rem;
    line-height: 1.35;
    margin-top: 4px;
    text-align: left;
  }

  .job-dates,
  .job-duration {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 999px;
    margin: 0;
  }

  .job-card .job-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .job-card .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .job-card .badge-row .badge,
  .job-card .badge-row .tag,
  .job-card .badge-row span {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .job-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .job-head-left {
    width: 100%;
  }

  .job-head-right {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .job-head-right .job-location {
    text-align: left;
  }

  .job-head-right .job-dates,
  .job-head-right .job-duration {
    align-self: flex-start;
  }

  .job-logo {
    width: 48px;
    height: 48px;
  }

  .job-card {
    padding: 18px 16px;
    margin-bottom: 22px;
  }
}

.job-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.job-head-left {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.job-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 42%;
}

.job-head-right .job-location {
  font-size: .88rem;
  color: var(--ink-soft, #605e5c);
  text-align: right;
}

.job-head-right .job-dates {
  font-family: var(--font-m);
  font-size: .8rem;
  font-weight: 600;
  color: #045c86;
  background: rgba(0, 120, 212, .1);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}

.job-head-right .job-duration {
  font-family: var(--font-m);
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary-dark, #5c2d91);
  background: rgba(92, 45, 145, .1);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}

.job-heading-text .job-title {
  margin: 0;
  line-height: 1.25;
}

.job-heading-text .job-subhead {
  margin: 4px 0 0;
  padding: 0;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .job-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .job-head-left {
    width: 100%;
  }

  .job-head-right {
    max-width: 100%;
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }

  .job-head-right .job-location {
    text-align: left;
  }

  .job-head-right .job-dates,
  .job-head-right .job-duration {
    align-self: flex-start;
  }
}

/* ========== 11 — Projects & filters ========== */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.badge {
  font-size: .74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--primary-dark)
}

.project-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px -22px rgba(92, 45, 145, .3);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1)
}

.project-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 48px -18px rgba(0, 120, 212, .42)
}

.project-card:hover::before {
  transform: scaleX(1)
}

.project-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  flex-shrink: 0;
  overflow: hidden
}

.project-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-dark);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  display: block
}

.project-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px
}

.project-desc {
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: justify
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 10px 26px -20px rgba(92, 45, 145, .22)
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 170px
}

.filter-field label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .05em
}

.filter-field select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: .86rem;
  cursor: pointer;
  transition: border-color .25s ease
}

.filter-field select:hover,
.filter-field select:focus {
  border-color: var(--primary);
  outline: 0
}

.filter-search-field {
  flex: 1;
  min-width: 170px;
  position: relative
}

.filter-search-field .search-input-wrap {
  position: relative
}

.filter-search-field .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none
}

.filter-search-field .search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.filter-reset {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(92, 45, 145, .3);
  background: rgba(92, 45, 145, .06);
  color: var(--primary-dark);
  font-family: var(--font-b);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  height: 42px
}

.filter-reset:hover {
  background: rgba(92, 45, 145, .14)
}

.filter-count {
  font-family: var(--font-m);
  font-size: .78rem;
  color: var(--ink-faint);
  margin-bottom: 20px
}

@media(max-width:640px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch
  }

  .filter-reset {
    width: 100%
  }
}

.project-highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  background: rgba(0, 120, 212, .06);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary)
}

.project-highlight .ph-icon {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px
}

#filterCount,
.filter-count {
  font-family: var(--font-m);
  font-size: .85rem;
  color: #045c86;
  font-weight: 600;
}

@media(max-width:900px) {
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .filter-search-field,
  .filter-reset {
    grid-column: 1 / -1;
  }

  .filter-field select,
  .filter-field input {
    width: 100%;
    min-height: 44px;
  }

  .version-node {
    flex: 0 0 auto;
    min-width: 140px;
    scroll-snap-align: start;
  }

  .nav-links {
    max-height: 70vh;
    overflow-y: auto;
  }
}

@media(max-width:600px) {
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .project-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }
}

.project-client {
  color: var(--ink-soft);
}

.project-flag-img {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  vertical-align: middle;
  flex-shrink: 0;
}

.project-meta-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.3;
}

.project-meta-line .project-flag-img {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  flex-shrink: 0;
}

.project-meta-line .project-client {
  display: inline;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.project-card .project-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(50, 49, 48, .1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .07);
  margin-bottom: 14px;
}

.project-card .project-icon img {
  padding: 12px;
  object-fit: contain;
  filter: none;
}

.project-card:hover .project-icon {
  box-shadow: 0 8px 20px rgba(0, 120, 212, .15);
  border-color: rgba(0, 120, 212, .25);
  transform: scale(1.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ========== 12 — Map ========== */
a:focus-visible,
button:focus-visible,
.country-node:focus-visible,
.version-node:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 4px;
  border-radius: 6px
}

.map-wrap {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 32px;
  align-items: start
}

.map-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 16px 40px -24px rgba(92, 45, 145, .32)
}

.country-node text {
  font-family: var(--font-b);
  font-size: 12.5px;
  font-weight: 700;
  fill: var(--ink);
  transition: fill .3s ease
}

.country-node:hover text,
.country-node.active text {
  fill: var(--primary-dark)
}

.map-path {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: .55;
  animation: dashFlow 3s linear infinite
}

.map-grid-dot {
  fill: rgba(0, 120, 212, .1)
}

@media(max-width:980px) {
  .map-wrap {
    grid-template-columns: 1fr
  }
}

.country-shape:hover,
.country-shape.active,
.country-shape-group.active .country-shape {
  fill: rgba(0, 120, 212, 0.42);
}

.country-shape.home:hover,
.country-shape.home.active,
.country-shape-group.home.active .country-shape {
  fill: rgba(255, 185, 0, 0.45);
}

.country-shape-group {
  filter: drop-shadow(0 0 0.5px #0078D4);
}

.country-shape-group.home {
  filter: drop-shadow(0 0 0.5px #c88a00);
}

.country-node:focus,
.country-node:focus-visible,
.country-node.active {
  outline: none;
  box-shadow: none;
}

.country-node {
  display: none;
}

.country-shape:focus,
.country-shape:focus-visible {
  outline: 2px solid #0078D4;
  outline-offset: 2px;
}

.country-shape {
  fill: rgba(0, 120, 212, 0.22);
  stroke: #005A9E;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.country-shape.home {
  fill: rgba(255, 185, 0, 0.35);
  stroke: #a67400;
  stroke-width: 2.4;
}

.africa-land {
  fill: rgba(0, 120, 212, 0.03);
  stroke: rgba(0, 90, 158, 0.2);
  stroke-width: 0.6;
}

.country-shape:hover,
.country-shape.active {
  fill: rgba(0, 120, 212, 0.42);
  stroke: #003966;
  stroke-width: 2.8;
}

.country-shape.home:hover,
.country-shape.home.active {
  fill: rgba(255, 185, 0, 0.52);
  stroke: #6b4500;
}

/* ========== 13 — Dynamics timeline ========== */
.version-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px
}

.version-node {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px 16px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: all .3s cubic-bezier(.22, 1, .36, 1)
}

.version-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -16px rgba(0, 120, 212, .35)
}

.version-node .v-era {
  font-family: var(--font-m);
  font-size: .68rem;
  color: var(--ink-faint);
  letter-spacing: .05em
}

.version-node .v-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .94rem;
  margin-top: 6px;
  line-height: 1.25
}

.version-node .v-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-m);
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(92, 45, 145, .6)
}

.version-node.has-projects {
  border-color: rgba(0, 120, 212, .35)
}

.version-node.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent
}

.version-node.active .v-era {
  color: rgba(255, 255, 255, .7)
}

.version-node.active .v-name {
  color: #fff
}

.dynamics-panel {
  margin-top: 32px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 16px 40px -24px rgba(92, 45, 145, .32)
}

.version-node .v-name-short {
  display: none;
}

.version-node .v-name-full {
  display: block;
}

@media (max-width: 768px) {
  .version-node {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .version-node .v-era {
    flex: 0 0 auto;
    min-width: 44px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark, #5c2d91);
    background: rgba(0, 120, 212, 0.08);
    padding: 4px 8px;
    border-radius: 8px;
    margin: 0;
  }

  .version-node .v-name-full {
    display: none;
  }

  .version-node .v-name-short {
    display: block;
    flex: 1 1 auto;
    font-size: 0.9rem;
    margin: 0;
  }

  .version-node .v-badge {
    position: static;
    margin-left: auto;
  }

  .version-node.active .v-era {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
  }
}

@media (max-width: 768px) {
  #dynamics #versionTimeline,
  #dynamics .version-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    flex-wrap: nowrap;
  }

  #dynamics .version-node {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 14px;
    box-sizing: border-box;
    transform: none;
    text-align: left;
  }

  #dynamics .version-node:hover {
    transform: none;
  }

  #dynamics .version-node .v-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    margin: 0;
  }

  #dynamics .version-node .v-era {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(0, 120, 212, .08);
    color: var(--primary-dark);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
  }

  #dynamics .version-node.active .v-era {
    background: rgba(255, 255, 255, .2);
    color: #fff;
  }

  #dynamics .version-node .v-name-full {
    display: block;
    width: 100%;
    padding-right: 32px;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.35;
    margin: 0;
  }

  #dynamics .version-node .v-name-short {
    display: none;
  }

  #dynamics .version-node.active .v-name-full {
    color: #fff;
  }
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

@media (max-width: 600px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

/* ========== 14 — Certifications ========== */
.cert-category {
  margin-bottom: 48px;
}

.cert-category:last-of-type {
  margin-bottom: 0;
}

.cert-category-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cert-category-tracks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-track-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: var(--primary-dark);
}

.cert-track {
  margin-bottom: 40px
}

.cert-track:last-child {
  margin-bottom: 0
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cert-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px -20px rgba(92, 45, 145, .25);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
  box-sizing: border-box;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -16px rgba(0, 120, 212, .35)
}

.cert-badge-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px
}

.cert-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
}

.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px
}

.cert-code {
  font-family: var(--font-m);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .9rem;
  margin-top: 8px;
  white-space: nowrap;
}

.cert-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
}
.cert-status.active {
  background: rgba(16, 124, 16, .1);
  color: #0b6a0b;
  border: 1px solid rgba(16, 124, 16, .25);
}
.cert-status.retired {
  background: rgba(255, 140, 0, .12);
  color: #b35900;
  border: 1px solid rgba(255, 140, 0, .3);
}
.cert-status.expired {
  background: rgba(196, 43, 28, .1);
  color: #a4262c;
  border: 1px solid rgba(196, 43, 28, .25);
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
}
.cert-footer .cert-verify {
  margin-top: 0;
}
.cert-footer .cert-status {
  margin-left: auto;
  flex-shrink: 0;
}

.cert-level {
  font-size: .64rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em
}

.cert-level.fundamentals {
  background: rgba(0, 188, 242, .14);
  color: #045c86
}

.cert-level.associate {
  background: rgba(0, 120, 212, .12);
  color: var(--primary-dark)
}

.cert-level.expert {
  background: rgba(92, 45, 145, .18);
  color: #3d1f66
}

.cert-level.autre {
  background: var(--bg-soft);
  color: var(--ink-soft)
}

.cert-title {
  font-size: .84rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px
}

.cert-date {
  font-family: var(--font-m);
  font-size: .72rem;
  color: var(--ink-faint);
  margin-top: 3px
}

.cert-id {
  font-family: var(--font-m);
  font-size: .68rem;
  color: var(--ink-faint);
  opacity: .75;
  letter-spacing: .01em
}

.cert-verify {
  font-family: var(--font-m);
  font-size: .7rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all .25s ease
}

.cert-card:hover .cert-verify {
  opacity: 1;
  transform: translateX(0)
}

@media (max-width: 880px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px;
  }

  .cert-badge-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin-top: 2px;
    object-fit: contain;
  }

  .cert-body {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .cert-top {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
  }

  .cert-code {
    margin-top: 6px;
  }

  .cert-title {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .cert-id,
  .cert-date {
    font-size: 0.72rem;
  }
}

@media (max-width: 420px) {
  .cert-card {
    gap: 10px;
    padding: 12px;
  }

  .cert-badge-img {
    width: 44px;
    height: 44px;
  }
}

.cert-total {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--amber);
  background: rgba(92, 45, 145, .08);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-m);
  font-size: .85rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.cert-standalone {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.cert-standalone .cert-total,
#certTotal {
  font-family: var(--font-m);
  font-size: .85rem;
  color: #045c86;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: block;
}

#certTotal,
.cert-total {
  margin-top: 28px;
  display: block;
}

/* ========== 15 — Education & languages ========== */
.edu-lang-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px
}

.edu-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  margin-bottom: 18px;
  box-shadow: 0 10px 26px -20px rgba(92, 45, 145, .25);
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  gap: 16px
}

.edu-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .12)
}

.edu-body {
  flex: 1;
  min-width: 0
}

.edu-card:hover {
  transform: translateX(6px)
}

.edu-degree {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px
}

.edu-inst {
  color: var(--ink-soft);
  font-size: .87rem;
  margin-bottom: 6px
}

.edu-dates {
  font-family: var(--font-m);
  font-size: .74rem;
  color: #045c86;
  font-weight: 600
}

@media(max-width:880px) {
  .edu-lang-grid {
    grid-template-columns: 1fr;
    gap: 36px
  }
}

/* ========== 16 — Contact ========== */
@media(max-width:880px) {}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  font-family: var(--font-b);
  color: var(--ink-faint);
  opacity: 1;
}

.contact-form-wrap h3 {
  font-family: var(--font-d);
}

.cf-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  min-height: 0;
  transition: background .25s ease, color .25s ease;
}

.contact-card .contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-grid #contactForm {
  margin: 0;
  padding: 0;
}

.cf-actions .cf-submit {
  width: 100%;
  flex: none;
  margin-top: 0;
}

.cf-actions .cf-reset,
.cf-actions #cfReset {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.contact-form-wrap {
  width: 100%;
}

.contact-form-wrap>h3 {
  margin: 0 0 20px 0;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

#contactForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cf-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
}

.cf-field label {
  display: block;
  font-family: var(--font-m);
  font-size: .82rem;
  font-weight: 600;
  color: #4a4846;
  margin: 0;
}

.cf-field label .req {
  color: #c42b2b;
  font-weight: 700;
  margin-left: 2px;
}

.cf-field input,
.cf-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: .95rem;
  line-height: 1.5;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.cf-field textarea {
  min-height: 140px;
  resize: vertical;
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, .12);
}

.cf-field input.cf-invalid,
.cf-field textarea.cf-invalid {
  border-color: #c42b2b;
  box-shadow: 0 0 0 3px rgba(196, 43, 43, .15);
}

.cf-error {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  color: #c42b2b;
  font-weight: 500;
}

.cf-error[hidden] {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-cards-col,
#contactCards {
  margin-top: 0;
  padding-top: 0;
}

.cf-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.cf-actions .cf-submit,
.cf-actions button.cf-submit {
  width: 100%;
  margin-top: 0;
  padding: 15px 30px;
  border-radius: 14px;
  border: 0;
  font-weight: 600;
  font-size: .94rem;
  font-family: var(--font-b);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(0, 120, 212, .6);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.cf-actions .cf-submit:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -10px rgba(0, 120, 212, .65);
}

.cf-actions .cf-reset,
.cf-actions #cfReset,
button#cfReset.btn-secondary {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: .94rem;
  text-decoration: none;
  border: 1.5px solid rgba(0, 120, 212, .35);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  font-family: var(--font-b);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background .3s ease;
}

.cf-actions .cf-reset:hover,
button#cfReset.btn-secondary:hover {
  background: rgba(0, 120, 212, .1);
  transform: translateY(-4px);
}

.cf-status:empty {
  display: none;
  padding: 0;
}

.cf-status.sending {
  display: block;
  background: rgba(0, 120, 212, .08);
  color: #004578;
  border: 1px solid rgba(0, 120, 212, .2);
  padding: 12px 14px;
  border-radius: 10px;
}

.cf-status.success {
  display: block;
  background: rgba(16, 124, 16, .1);
  color: #0b6a0b;
  border: 1.5px solid rgba(16, 124, 16, .35);
  padding: 12px 14px;
  border-radius: 10px;
}

.cf-status.error {
  display: block;
  background: rgba(164, 38, 44, .08);
  color: #a4262c;
  border: 1px solid rgba(164, 38, 44, .25);
  padding: 12px 14px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

#contactCards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  padding-right: 52px;
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px -18px rgba(92, 45, 145, .28);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
  margin-bottom: 0;
}

.contact-card:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 32px -18px rgba(0, 120, 212, .35);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(0, 120, 212, .12), rgba(0, 188, 242, .14));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-dark);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-family: var(--font-m);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-value {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  word-break: break-word;
}

.contact-card .copy-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-faint);
  transition: all .25s ease;
  padding: 0;
}

.contact-card .copy-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: rgba(0, 120, 212, .06);
}

.contact-card .copy-btn.copied {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.contact-card .copy-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-card .copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--ink);
  color: var(--surface);
  font-size: .7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.contact-card .copy-btn:hover .copy-tooltip,
.contact-card .copy-btn.copied .copy-tooltip {
  opacity: 1;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-form-col>h3 {
  margin: 0 0 20px 0;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-cards-col {
  margin-top: 0;
  padding-top: calc(1.15rem * 1.3 + 20px + 0.82rem * 1.2 + 6px);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-cards-col {
    padding-top: 0;
  }
}

.cf-status:not(.sending):not(.success):not(.error) {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  min-height: 0;
}

.cf-status:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  min-height: 0;
}

/* ========== 17 — Footer ========== */
footer p {
  font-size: .85rem;
  color: var(--ink-faint)
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: .88rem;
  color: var(--ink-faint);
}

footer {
  padding: 40px clamp(20px, 5vw, 64px);
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
}

footer .footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

footer .footer-copy {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  margin: 0;
  font-size: .88rem;
  color: var(--ink-faint);
}

footer .footer-updated {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  margin: 0;
  padding-right: 64px;
  white-space: nowrap;
  font-size: .85em;
  color: var(--ink-faint);
}

footer a {
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  footer .footer-inner {
    grid-template-columns: 1fr;
  }

  footer .footer-copy,
  footer .footer-updated {
    grid-column: 1;
    justify-self: center;
    text-align: center;
    padding-right: 0;
  }
}

/* ========== 18 — Responsive misc ========== */
img,
svg {
  display: block;
  max-width: 100%
}

a {
  color: inherit
}

ul {
  list-style: none
}

section {
  padding: 120px clamp(20px, 5vw, 64px);
  position: relative
}

@keyframes shimmer {
  to {
    background-position: 300% center
  }
}

@keyframes floatRotate {
  0%,
  100% {
    transform: rotateY(-7deg) rotateX(4deg) translateY(0)
  }

  50% {
    transform: rotateY(7deg) rotateX(-3deg) translateY(-16px)
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.float-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(0, 120, 212, .12);
  padding-top: 18px
}

.float-stats .stat {
  text-align: center
}

.float-stats .stat .num {
  font-family: var(--font-m);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.2rem
}

.float-stats .stat .label {
  font-size: .64rem;
  color: var(--ink-faint);
  margin-top: 3px;
  line-height: 1.3
}

@keyframes sweep {
  0% {
    left: -45%;
    opacity: 1
  }

  90% {
    opacity: 1
  }

  100% {
    left: 115%;
    opacity: 0
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px
}

@media(max-width:1080px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:640px) {
  .projects-grid {
    grid-template-columns: 1fr
  }
}

.tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--primary-dark)
}

.tag.tag-mode {
  background: rgba(0, 188, 242, .1);
  color: #045c86
}

.tag.tag-company {
  background: rgba(0, 120, 212, .1);
  color: var(--primary-dark)
}

.tag.tag-role {
  background: var(--bg-soft);
  color: var(--ink-soft)
}

#filterSearch {
  width: 100%;
  padding: 10px 38px 10px 37px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: .86rem;
  transition: border-color .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none
}

#filterSearch:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, .12)
}

#filterSearch::placeholder {
  color: var(--ink-faint)
}

#filterSearch::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none
}

#filterSearch::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none
}

.search-clear-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%) scale(.7);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all .2s ease
}

.search-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1)
}

.search-clear-btn:hover {
  background: rgba(92, 45, 145, .16);
  color: var(--primary-dark)
}

.search-clear-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.projects-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-faint);
  font-size: .95rem;
  background: var(--surface);
  border-radius: 16px
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -60
  }
}

.panel {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: 0 16px 40px -24px rgba(92, 45, 145, .32);
  min-height: 420px;
  display: flex;
  flex-direction: column
}

.panel-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-faint);
  font-size: .92rem;
  padding: 20px
}

.panel-empty svg {
  width: 38px;
  height: 38px;
  stroke: var(--ink-faint);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 14px
}

.panel-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.3rem
}

.panel-count {
  font-family: var(--font-m);
  font-size: .78rem;
  color: #045c86;
  font-weight: 600
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px
}

.panel-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  transition: transform .25s ease
}

.panel-item:hover {
  transform: translateX(6px)
}

.panel-item .pi-name {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 3px
}

.panel-item .pi-meta {
  font-size: .76rem;
  color: var(--ink-soft)
}

.stat-strip {
  display: flex;
  gap: 24px;
  margin-top: 20px
}

.stat-strip .s {
  text-align: left
}

.stat-strip .s .n {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark)
}

.stat-strip .s .l {
  font-size: .72rem;
  color: var(--ink-faint)
}

.lang-badge {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px -20px rgba(92, 45, 145, .25)
}

.lang-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px
}

.lang-name {
  font-weight: 700;
  font-family: var(--font-d)
}

.lang-level {
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 600
}

.lang-meter {
  height: 7px;
  background: var(--bg-soft);
  border-radius: 8px;
  overflow: hidden
}

.lang-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--teal), var(--primary));
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1)
}

.lang-badge.in-view .lang-meter-fill {
  width: var(--target)
}

.copy-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-faint);
  transition: all .25s ease
}

.copy-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: rgba(0, 120, 212, .06)
}

.copy-btn.copied {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary)
}

.copy-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--ink);
  color: var(--surface);
  font-size: .7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease
}

.copy-btn:hover .copy-tooltip,
.copy-btn.copied .copy-tooltip {
  opacity: 1
}

@keyframes ripple {
  0% {
    transform: scale(.6);
    opacity: .7
  }

  100% {
    transform: scale(1.9);
    opacity: 0
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
    scroll-behavior: auto
  }
}

.projects-note {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  background: rgba(0, 120, 212, .06);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-m);
  font-size: .8rem;
  color: var(--ink-soft);
  font-style: normal;
  letter-spacing: .01em;
}

img {
  height: auto;
  max-width: 100%;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dash-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #045c86;
  font-family: var(--font-m);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dash-reset:hover {
  color: var(--primary-dark, #5c2d91);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}