:root {
  --print-scale: 0.96;
  --a11y-text-zoom: 1;
  --bg: #e9f2ff;
  --bg-2: #deecff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: rgba(15, 46, 86, 0.16);
  --text: #0f2238;
  --muted: #355b84;
  --accent: #006fe0;
  --accent-2: #00a997;
  --accent-soft: #cfe6ff;
  --shadow: 0 16px 38px rgba(16, 41, 72, 0.13);
  --hero-indent: 0.35rem;
  --parallax-y: 0px;
  --bg-light-a: #ffffff;
  --bg-light-b: #9fd2ff;
  --bg-light-c: #a8f4e6;
  --bg-light-d: #ffd9a6;
  --bg-dark-a: #1a4e82;
  --bg-dark-b: #116387;
  --bg-dark-c: #0d5b50;
  --bg-dark-d: #7a4f17;
  --wash-light-a: rgba(86, 186, 255, 0.34);
  --wash-light-b: rgba(78, 238, 205, 0.3);
  --wash-light-c: rgba(88, 132, 255, 0.27);
  --wash-light-d: rgba(255, 173, 88, 0.24);
  --wash-dark-a: rgba(115, 194, 255, 0.29);
  --wash-dark-b: rgba(84, 228, 208, 0.25);
  --wash-dark-c: rgba(136, 152, 255, 0.24);
  --wash-dark-d: rgba(255, 177, 96, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  font-size: calc(100% * var(--a11y-text-zoom));
  min-height: 100%;
  background-color: #deecff;
}

html.dark-mode {
  background-color: #02060c;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, #ffffff);
  outline-offset: 2px;
}

html.dark-mode a:focus-visible,
html.dark-mode button:focus-visible {
  outline-color: color-mix(in srgb, var(--accent) 72%, #ffffff);
}

.skip-link {
  position: fixed;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 100;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--surface-strong) 96%, white);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Sora, sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(circle at 14% 14%, var(--bg-light-a) 0%, transparent 54%),
    radial-gradient(circle at 86% 0%, var(--bg-light-b) 0%, transparent 50%),
    radial-gradient(circle at 8% 88%, var(--bg-light-c) 0%, transparent 44%),
    radial-gradient(circle at 62% 72%, var(--bg-light-d) 0%, transparent 36%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 100%);
  background-size: 115% 115%, 125% 125%, 135% 135%, 125% 125%, 100% 100%;
  animation: ambientShift 28s ease-in-out infinite alternate;
}

body.dark-mode,
html.dark-mode body {
  --bg: #060d19;
  --bg-2: #050a14;
  --surface: rgba(18, 32, 52, 0.86);
  --surface-strong: #11233e;
  --border: rgba(159, 200, 241, 0.25);
  --text: #f2f7ff;
  --muted: #a7c0df;
  --accent: #72b9ff;
  --accent-2: #5ee9d2;
  --accent-soft: rgba(114, 185, 255, 0.29);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
  background:
    radial-gradient(circle at 12% 14%, rgba(36, 92, 170, 0.46) 0%, transparent 56%),
    radial-gradient(circle at 86% 4%, rgba(20, 112, 146, 0.38) 0%, transparent 50%),
    radial-gradient(circle at 8% 90%, rgba(18, 120, 95, 0.32) 0%, transparent 44%),
    radial-gradient(circle at 64% 76%, rgba(130, 84, 28, 0.24) 0%, transparent 36%),
    linear-gradient(165deg, #01040b 0%, #020913 46%, #04081a 72%, #01030a 100%);
  background-color: #02060c;
  background-size: 115% 115%, 125% 125%, 135% 135%, 125% 125%, 100% 100%;
  animation: ambientShiftDark 30s ease-in-out infinite alternate;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(circle at 78% 26%, var(--wash-light-a) 0%, transparent 48%),
    radial-gradient(circle at 22% 76%, var(--wash-light-b) 0%, transparent 44%),
    radial-gradient(circle at 52% 48%, var(--wash-light-c) 0%, transparent 46%),
    radial-gradient(circle at 42% 20%, var(--wash-light-d) 0%, transparent 42%);
  filter: blur(4px) saturate(128%);
  animation: colorWash 22s ease-in-out infinite alternate;
}

body.dark-mode::before,
html.dark-mode body::before {
  opacity: 0.24;
  background:
    radial-gradient(circle at 80% 24%, rgba(102, 162, 248, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 18% 74%, rgba(93, 210, 190, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 54% 52%, rgba(136, 142, 255, 0.2) 0%, transparent 48%),
    radial-gradient(circle at 42% 20%, rgba(215, 154, 86, 0.14) 0%, transparent 44%);
  filter: blur(6px) saturate(98%);
}

body.dark-mode .noise-layer,
html.dark-mode body .noise-layer {
  opacity: 0.11;
  background-image: linear-gradient(transparent 95%, rgba(196, 215, 236, 0.08) 95%);
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(transparent 95%, rgba(16, 33, 54, 0.09) 95%);
  background-size: 100% 3px;
  transform: translateY(calc(var(--parallax-y) * -0.32));
  transition: transform 0.08s linear;
}

html.performance-mode body,
html.performance-mode body.dark-mode,
html.performance-mode body::before {
  animation: none !important;
}

html.performance-mode body::before {
  filter: none;
  opacity: 0.22;
}

html.performance-mode .topbar {
  backdrop-filter: none;
}

html.performance-mode .noise-layer,
html.performance-mode .hero::after,
html.performance-mode .profile-flip {
  animation: none !important;
  transition: none !important;
}

html.performance-mode .noise-layer,
html.performance-mode .hero::after {
  transform: none !important;
}

.wrapper {
  width: min(1100px, calc(100% - clamp(1rem, 4vw, 2rem)));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  padding: calc(0.6rem + env(safe-area-inset-top)) 0 0.6rem;
  background: rgba(238, 244, 255, 0.58);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 33, 54, 0.08);
  opacity: 0;
  transform: translateY(-110%);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.dark-mode .topbar {
  background: rgba(10, 17, 28, 0.65);
}

body.scrolled .topbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: calc(var(--hero-indent) + 0.55rem);
}

.brand {
  margin: 0;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding-left: 0.5rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

body.scrolled .brand {
  opacity: 1;
  transform: translateY(0);
}

.controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cv {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1rem);
  padding: clamp(2.15rem, 3.8vw, 2.5rem) 0 2.2rem;
}

.reader-article {
  display: contents;
}

.top-boxes {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  overflow-wrap: anywhere;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 44%),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent-2) 18%, transparent) 0%, transparent 42%),
    radial-gradient(circle at 58% 88%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 47%),
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent-2) 9%, transparent)),
    var(--surface-strong);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--accent) 11%, transparent),
    var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 40%),
    linear-gradient(292deg, color-mix(in srgb, var(--accent-2) 5%, transparent), transparent 44%);
  opacity: 0.78;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 87, 179, 0.22) 0%, transparent 72%);
  transform: translateY(calc(var(--parallax-y) * -0.22));
  transition: transform 0.1s linear;
  animation: orbDrift 13s ease-in-out infinite alternate;
}

.location {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.68rem;
}

.hero-body {
  padding-left: var(--hero-indent);
}

.hero-grid {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 1rem;
  align-items: center;
}

.profile-flip {
  width: 124px;
  height: 124px;
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
  animation: avatarFloat 7s ease-in-out infinite;
}

.contacts a,
.footer-btn,
.a11y-toggle,
.a11y-action {
  min-height: 2rem;
}

.profile-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.profile-face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.profile-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-back {
  transform: rotateY(180deg);
}

.profile-flip:hover .profile-flip-inner,
.profile-flip.is-flipped .profile-flip-inner {
  transform: rotateY(180deg);
}

h1,
h2,
h3 {
  font-family: Sora, sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.05rem, 4.8vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.title {
  margin: 0.6rem 0 0;
  font-weight: 600;
  color: var(--muted);
}

.summary {
  margin: 0.85rem 0 0;
  max-width: 92ch;
  line-height: 1.55;
}

.contacts {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contacts a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.86rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.42rem 0.68rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.contacts a:hover {
  transform: translateY(-1px);
  border-color: rgba(5, 87, 179, 0.35);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  min-width: 0;
}

.contacts a,
.location {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-chip::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  display: inline-block;
  opacity: 0.85;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.chip-location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f2238'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

.chip-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 1 .737-.131l2.522 1.01c.421.168.649.623.555 1.059l-.547 2.547a.678.678 0 0 1-.661.537.678.678 0 0 1-.3-.07l-1.2-.6a11.72 11.72 0 0 0 5.56 5.56l.6-1.2a.678.678 0 0 1 .608-.37c.08 0 .16.014.237.04l2.547.547c.436.094.891-.134 1.06.555l1.009 2.522a.678.678 0 0 1-.131.737l-1.07 1.07a2.25 2.25 0 0 1-2.28.54 19.22 19.22 0 0 1-7.11-4.48 19.22 19.22 0 0 1-4.48-7.11 2.25 2.25 0 0 1 .54-2.28l1.07-1.07Z'/%3E%3C/svg%3E");
}

.chip-email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697Zm6.761 4.129L0 12.916V14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1.084l-6.761-4.09L8 9.586l-1.239-.76ZM16 11.801V4.697l-5.803 3.546L16 11.8Z'/%3E%3C/svg%3E");
}

.chip-linkedin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.521-1.248-1.342-1.248-.82 0-1.357.54-1.357 1.248 0 .694.521 1.248 1.326 1.248h.015zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169H6.349c.03.678 0 7.225 0 7.225h2.402z'/%3E%3C/svg%3E");
}

body.dark-mode .contacts a,
body.dark-mode .location {
  background: rgba(20, 33, 52, 0.95);
}

body.dark-mode .chip-location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f2f7ff'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

body.dark-mode .chip-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f2f7ff'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 1 .737-.131l2.522 1.01c.421.168.649.623.555 1.059l-.547 2.547a.678.678 0 0 1-.661.537.678.678 0 0 1-.3-.07l-1.2-.6a11.72 11.72 0 0 0 5.56 5.56l.6-1.2a.678.678 0 0 1 .608-.37c.08 0 .16.014.237.04l2.547.547c.436.094.891-.134 1.06.555l1.009 2.522a.678.678 0 0 1-.131.737l-1.07 1.07a2.25 2.25 0 0 1-2.28.54 19.22 19.22 0 0 1-7.11-4.48 19.22 19.22 0 0 1-4.48-7.11 2.25 2.25 0 0 1 .54-2.28l1.07-1.07Z'/%3E%3C/svg%3E");
}

body.dark-mode .chip-email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f2f7ff'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697Zm6.761 4.129L0 12.916V14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1.084l-6.761-4.09L8 9.586l-1.239-.76ZM16 11.801V4.697l-5.803 3.546L16 11.8Z'/%3E%3C/svg%3E");
}

body.dark-mode .chip-linkedin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f2f7ff'%3E%3Cpath d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.521-1.248-1.342-1.248-.82 0-1.357.54-1.357 1.248 0 .694.521 1.248 1.326 1.248h.015zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169H6.349c.03.678 0 7.225 0 7.225h2.402z'/%3E%3C/svg%3E");
}

h2 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.strengths {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.strengths li {
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
  line-height: 1.45;
}

.ai-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent)),
    var(--surface-strong);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.ai-list {
  gap: 0.58rem;
}

.ai-list li {
  border-left: 0;
  padding-left: 0;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-family: "Cascadia Code", "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  font-size: 0.86rem;
  line-height: 1.4;
}

.ai-list li::before {
  content: ">";
  color: var(--accent);
  margin-right: 0.46rem;
  font-weight: 700;
}

.ai-typing {
  position: relative;
}

.ai-typing.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 1.05em;
  margin-left: 0.16em;
  vertical-align: -0.16em;
  background: color-mix(in srgb, var(--accent) 84%, var(--text));
  animation: caretBlink 0.9s steps(1, end) infinite;
}

.impact-card {
  background:
    linear-gradient(150deg, rgba(5, 87, 179, 0.08), rgba(0, 138, 122, 0.08)),
    var(--surface-strong);
}

.project-box {
  background:
    linear-gradient(145deg, rgba(0, 138, 122, 0.08), rgba(5, 87, 179, 0.05)),
    var(--surface-strong);
}

#cv-project article {
  margin-top: 0.2rem;
}

#cv-project small {
  color: var(--muted);
  font-size: 0.8rem;
}

#cv-project p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-reference-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.52;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.project-reference-link:hover,
.project-reference-link:focus-visible {
  opacity: 0.84;
  text-decoration: underline;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.impact-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
}

body.dark-mode .impact-item {
  background: rgba(18, 30, 47, 0.92);
  border-color: rgba(166, 195, 227, 0.24);
}

.impact-value {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.impact-item p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.dark-mode .impact-item p {
  color: var(--muted);
}

.layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.45fr 1fr;
}

.main-col {
  display: grid;
  gap: 1rem;
}

#cv-experience article {
  position: relative;
  padding: 0.18rem 0 0.05rem 1.55rem;
  margin-top: 1.1rem;
}

#cv-experience {
  position: relative;
}

#cv-experience::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.42rem;
  left: 0.44rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(5, 87, 179, 0.4), rgba(0, 138, 122, 0.2));
}

#cv-experience article::before {
  content: "";
  position: absolute;
  left: 0.17rem;
  top: 0.4rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

#cv-experience article:first-child {
  margin-top: 0.35rem;
}

#cv-experience article:not(:last-child) {
  padding-bottom: 0.5rem;
}

#cv-experience small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

#cv-experience p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

#cv-education {
  margin: 0;
  line-height: 1.5;
  white-space: pre-line;
}

ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
}

li {
  line-height: 1.42;
}

.stealth-link,
.stealth-link:visited,
.stealth-link:hover,
.stealth-link:active {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.rail {
  display: grid;
  gap: 1rem;
}

.keywords {
  color: var(--muted);
  line-height: 1.5;
}

.footer-bar {
  position: static;
  margin-top: 0.4rem;
  padding: 0.7rem 0 calc(1rem + env(safe-area-inset-bottom));
  background: transparent;
  border-top: 1px solid rgba(16, 33, 54, 0.12);
}

body.dark-mode .footer-bar {
  background: transparent;
  border-top-color: rgba(166, 195, 227, 0.18);
}

.footer-shell {
  display: grid;
  gap: 0.5rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-row-top {
  justify-content: flex-end;
}

.footer-info {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  opacity: 0.82;
}

.footer-info a,
.footer-meta a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.footer-info a::after,
.footer-meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-info a:hover::after,
.footer-meta a:hover::after {
  transform: scaleX(1);
}

.footer-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.82;
}

.footer-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 500;
  opacity: 0.72;
  margin: 0 0.34rem 0 0.12rem;
  padding-right: 0.42rem;
  border-right: 1px solid rgba(16, 33, 54, 0.14);
}

body.dark-mode .footer-label {
  border-right-color: rgba(166, 195, 227, 0.18);
}

.footer-segment {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0.05rem;
}

.footer-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.81rem;
  font-weight: 500;
  padding: 0.2rem 0.38rem;
  cursor: pointer;
  opacity: 0.82;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.footer-btn:hover {
  opacity: 1;
  background: rgba(5, 87, 179, 0.07);
}

.footer-btn.active {
  color: var(--text);
  font-weight: 600;
  opacity: 1;
  background: rgba(5, 87, 179, 0.09);
}

body.dark-mode .footer-btn.active {
  background: rgba(97, 167, 255, 0.16);
}

.a11y-dock {
  position: fixed;
  right: clamp(0.55rem, 1.8vw, 1.15rem);
  bottom: calc(clamp(0.55rem, 1.8vw, 1.15rem) + env(safe-area-inset-bottom));
  z-index: 32;
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.a11y-toggle {
  border: 0;
  background: transparent;
  color: var(--accent);
  border-radius: 10px;
  width: 3.04rem;
  height: 3.04rem;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.a11y-toggle-icon {
  width: 1.78rem;
  height: 1.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.a11y-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.a11y-panel {
  width: min(92vw, 290px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 95%, white);
  box-shadow: var(--shadow);
  padding: 0.72rem;
}

.a11y-panel h2 {
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.55rem;
}

.a11y-actions {
  display: grid;
  gap: 0.42rem;
}

.a11y-zoom-control {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.56rem 0.56rem;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.a11y-zoom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.42rem;
}

.a11y-zoom-slider {
  width: 100%;
  accent-color: var(--accent);
}

.a11y-action {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.48rem 0.56rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.a11y-action-label {
  min-width: 0;
}

.a11y-switch {
  width: 2.15rem;
  height: 1.24rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--muted) 40%, var(--border));
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  display: inline-flex;
  align-items: center;
  padding: 0.1rem;
  flex: 0 0 auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.a11y-switch-thumb {
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-strong) 90%, white);
  border: 1px solid color-mix(in srgb, var(--muted) 28%, var(--border));
  transform: translateX(0);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.a11y-action[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 50%, transparent);
}

.a11y-action[aria-pressed="true"] .a11y-switch {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--border));
  background: color-mix(in srgb, var(--accent) 34%, var(--accent-soft));
}

.a11y-action[aria-pressed="true"] .a11y-switch-thumb {
  transform: translateX(0.9rem);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: color-mix(in srgb, white 90%, var(--accent-soft));
}

.a11y-action-reset {
  border: 1px solid color-mix(in srgb, #c43a3a 44%, var(--border));
  background: color-mix(in srgb, #c43a3a 11%, transparent);
  color: color-mix(in srgb, #8e2020 74%, var(--text));
  font-weight: 500;
  justify-content: center;
}

.a11y-action-reset:hover {
  border-color: color-mix(in srgb, #c43a3a 64%, var(--border));
  background: color-mix(in srgb, #c43a3a 17%, transparent);
}

html.dark-mode .a11y-action-reset {
  border-color: color-mix(in srgb, #ff9f9f 46%, var(--border));
  background: color-mix(in srgb, #ff6f6f 20%, transparent);
  color: #ffd9d9;
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.995);
  transition:
    opacity 0.56s cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 0.56s cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.high-contrast {
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(0, 0, 0, 0.5);
  --text: #081627;
  --muted: #133b68;
  --accent: #005ec9;
  --accent-2: #007f70;
  --accent-soft: #d6e9ff;
}

html.dark-mode.high-contrast,
html.dark-mode.high-contrast body {
  --surface: rgba(9, 17, 29, 0.98);
  --surface-strong: #0c1828;
  --border: rgba(219, 233, 252, 0.42);
  --text: #f8fbff;
  --muted: #d2e4ff;
  --accent: #8ec6ff;
  --accent-2: #78f1e2;
  --accent-soft: rgba(146, 198, 255, 0.26);
}

html.reduce-motion-force body,
html.reduce-motion-force body.dark-mode,
html.reduce-motion-force body::before,
html.reduce-motion-force .reveal,
html.reduce-motion-force .card,
html.reduce-motion-force .contacts a,
html.reduce-motion-force .footer-btn,
html.reduce-motion-force .profile-flip,
html.reduce-motion-force .hero::after,
html.reduce-motion-force .ai-typing.is-typing::after,
html.reduce-motion-force .noise-layer {
  animation: none !important;
  transition: none !important;
}

html.reading-mode .summary,
html.reading-mode #cv-experience p,
html.reading-mode #cv-project p,
html.reading-mode li {
  line-height: 1.7;
}

html.reading-mode .cv {
  width: min(1040px, calc(100% - clamp(1rem, 4vw, 2rem)));
}

html.underline-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(16, 33, 54, 0.16);
    border-color: rgba(5, 87, 179, 0.24);
  }

  body.dark-mode .card:hover {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
    border-color: rgba(97, 167, 255, 0.3);
  }
}

@keyframes orbDrift {
  0% {
    transform: translateY(calc(var(--parallax-y) * -0.22)) translateX(0);
  }

  100% {
    transform: translateY(calc(var(--parallax-y) * -0.22)) translateX(-16px);
  }
}

@keyframes avatarFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes ambientShift {
  0% {
    background-position: 14% 14%, 86% 0%, 8% 88%, 62% 72%, 50% 50%;
  }

  50% {
    background-position: 20% 9%, 80% 8%, 12% 80%, 58% 66%, 52% 48%;
  }

  100% {
    background-position: 10% 18%, 88% 4%, 6% 92%, 66% 76%, 48% 52%;
  }
}

@keyframes ambientShiftDark {
  0% {
    background-position: 14% 14%, 86% 0%, 8% 88%, 62% 72%, 50% 50%;
  }

  50% {
    background-position: 18% 10%, 82% 7%, 12% 84%, 58% 66%, 53% 47%;
  }

  100% {
    background-position: 11% 17%, 89% 3%, 7% 91%, 66% 76%, 47% 53%;
  }
}

@keyframes colorWash {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(4px) saturate(120%) hue-rotate(0deg);
  }

  50% {
    transform: translate3d(-1.6%, 1.2%, 0) scale(1.03);
    filter: blur(5px) saturate(148%) hue-rotate(10deg);
  }

  100% {
    transform: translate3d(1.8%, -1.4%, 0) scale(1.05);
    filter: blur(4px) saturate(136%) hue-rotate(-8deg);
  }
}

@keyframes caretBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 940px) {
  .top-boxes {
    grid-template-columns: 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .footer-divider {
    display: none;
  }

  .footer-row-bottom {
    order: 1;
    display: contents;
  }

  .footer-row-top {
    order: 2;
    justify-content: center;
  }

  .footer-row-bottom .footer-group[aria-label="Language"] {
    order: 1;
    justify-content: center;
  }

  .footer-meta {
    order: 3;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  body,
  body.dark-mode,
  body::before,
  .reveal,
  .card,
  .contacts a,
  .footer-btn,
  .profile-flip,
  .hero::after,
  .ai-typing.is-typing::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 620px) {
  body.dark-mode,
  html.dark-mode body {
    background:
      radial-gradient(circle at 12% 14%, rgba(36, 92, 170, 0.36) 0%, transparent 56%),
      radial-gradient(circle at 86% 4%, rgba(20, 112, 146, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 8% 90%, rgba(18, 120, 95, 0.26) 0%, transparent 44%),
      radial-gradient(circle at 64% 76%, rgba(130, 84, 28, 0.2) 0%, transparent 36%),
      linear-gradient(165deg, #010309 0%, #010711 46%, #030614 72%, #010208 100%);
  }

  .card {
    padding: 0.95rem;
  }

  .controls {
    justify-content: flex-end;
  }

  .hero-body {
    padding-left: 0.2rem;
  }

  .topbar-inner {
    padding-left: 0.2rem;
  }

  #cv-experience article {
    padding-left: 1.1rem;
  }

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

  .contacts a {
    width: 100%;
  }

  .location {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .profile-flip {
    width: 104px;
    height: 104px;
  }

  .noise-layer {
    opacity: 0.1;
    transition: none;
  }

  body::before {
    animation-duration: 30s;
    filter: blur(3px) saturate(110%);
  }

  .footer-row {
    justify-content: center;
  }

  .footer-meta a {
    display: none;
  }

  .a11y-dock {
    right: 0.45rem;
    left: 0.45rem;
    justify-items: stretch;
  }

  .a11y-toggle {
    width: 2.7rem;
    justify-self: end;
  }

  .a11y-panel {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  html,
  body {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    font-size: 11px;
    line-height: 1.28;
    color: #0f2238 !important;
    background: #ffffff !important;
  }

  body,
  html.dark-mode body,
  body.dark-mode {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --border: #d7dce3;
    --text: #0f2238;
    --muted: #345679;
    --accent: #0b5fc2;
    --accent-2: #00806f;
    --accent-soft: #dbeafe;
    --shadow: none;
    animation: none !important;
  }

  .topbar,
  .noise-layer,
  .footer-bar,
  .a11y-dock,
  .skip-link,
  body::before,
  .hero::before,
  .hero::after,
  #ai-card,
  .project-reference-link {
    display: none !important;
  }

  .wrapper {
    width: 100%;
    margin: 0;
  }

  .cv {
    gap: 0.42rem;
    padding: 0;
    margin-bottom: 2mm;
    transform-origin: top left;
    transform: scale(var(--print-scale));
    width: calc(100% / var(--print-scale));
  }

  .layout {
    gap: 0.55rem;
    grid-template-columns: 1.5fr 1fr;
  }

  .main-col,
  .rail,
  .top-boxes {
    gap: 0.42rem;
  }

  .top-boxes {
    grid-template-columns: 1fr;
  }

  .card,
  .hero,
  .ai-box,
  .project-box {
    box-shadow: none !important;
    border: 1px solid #d7dce3 !important;
    border-radius: 10px;
    background: #ffffff !important;
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 0.6rem 0.7rem;
  }

  .hero-grid {
    margin-top: 0;
    gap: 0.7rem;
    grid-template-columns: 84px 1fr;
  }

  .profile-flip {
    width: 84px;
    height: 84px;
    animation: none !important;
  }

  h1 {
    margin-top: 0.1rem;
    font-size: 1.6rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 0.86rem;
    margin-bottom: 0.4rem;
  }

  .title,
  .summary,
  .impact-item p,
  #cv-experience p,
  #cv-project p {
    color: #345679 !important;
  }

  .summary {
    margin-top: 0.35rem;
    line-height: 1.35;
  }

  .contacts {
    margin-top: 0.45rem;
    gap: 0.28rem;
  }

  .contacts a,
  .location,
  body.dark-mode .contacts a,
  body.dark-mode .location {
    font-size: 0.72rem;
    background: #ffffff !important;
    border-color: #d7dce3 !important;
    color: #0f2238 !important;
    padding: 0.22rem 0.45rem;
  }

  .contact-chip::before {
    opacity: 1;
  }

  .chip-location::before,
  body.dark-mode .chip-location::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f2238'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
  }

  .chip-phone::before,
  body.dark-mode .chip-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 1 .737-.131l2.522 1.01c.421.168.649.623.555 1.059l-.547 2.547a.678.678 0 0 1-.661.537.678.678 0 0 1-.3-.07l-1.2-.6a11.72 11.72 0 0 0 5.56 5.56l.6-1.2a.678.678 0 0 1 .608-.37c.08 0 .16.014.237.04l2.547.547c.436.094.891-.134 1.06.555l1.009 2.522a.678.678 0 0 1-.131.737l-1.07 1.07a2.25 2.25 0 0 1-2.28.54 19.22 19.22 0 0 1-7.11-4.48 19.22 19.22 0 0 1-4.48-7.11 2.25 2.25 0 0 1 .54-2.28l1.07-1.07Z'/%3E%3C/svg%3E");
  }

  .chip-email::before,
  body.dark-mode .chip-email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697Zm6.761 4.129L0 12.916V14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1.084l-6.761-4.09L8 9.586l-1.239-.76ZM16 11.801V4.697l-5.803 3.546L16 11.8Z'/%3E%3C/svg%3E");
  }

  .chip-linkedin::before,
  body.dark-mode .chip-linkedin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230f2238'%3E%3Cpath d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.521-1.248-1.342-1.248-.82 0-1.357.54-1.357 1.248 0 .694.521 1.248 1.326 1.248h.015zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169H6.349c.03.678 0 7.225 0 7.225h2.402z'/%3E%3C/svg%3E");
  }

  .strengths,
  ul {
    margin-top: 0.28rem;
    gap: 0.2rem;
  }

  .strengths li,
  li {
    line-height: 1.26;
  }

  #cv-experience article {
    margin-top: 0.52rem;
    padding-left: 1.22rem;
  }

  #cv-experience article:not(:last-child) {
    padding-bottom: 0.25rem;
  }

  #cv-experience::before {
    top: 0.2rem;
    bottom: 0.2rem;
  }

  #cv-project article,
  #cv-education {
    margin-top: 0;
  }

  .ai-list li {
    font-size: 0.73rem;
    line-height: 1.24;
    border-color: #d7dce3;
    background: #ffffff;
    padding: 0.28rem 0.42rem;
  }

  #cv-skills-mobile .mobile-chip,
  body.dark-mode #cv-skills-mobile .mobile-chip {
    color: #0f2238;
    border-color: #bfd3ea;
    background: #eef5ff;
    font-size: 0.69rem;
    padding: 0.18rem 0.42rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

#cv-skills-mobile.mobile-chip-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

#cv-skills-mobile .mobile-chip {
  list-style: none;
  padding: 0.28rem 0.62rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: color-mix(in srgb, var(--text) 92%, #000 8%);
  background: color-mix(in srgb, var(--accent-soft) 42%, #ffffff 58%);
}

#cv-skills-mobile .mobile-chip:nth-child(2n) {
  background: color-mix(in srgb, var(--accent-soft) 34%, #ffffff 66%);
}

#cv-skills-mobile .mobile-chip:nth-child(3n) {
  background: color-mix(in srgb, var(--accent-2) 10%, #ffffff 90%);
}

#cv-skills-mobile .mobile-chip:nth-child(4n) {
  background: color-mix(in srgb, var(--accent) 9%, #ffffff 91%);
}

#cv-skills-mobile .mobile-chip:nth-child(5n) {
  background: color-mix(in srgb, var(--accent-2) 8%, #ffffff 92%);
}

body.dark-mode #cv-skills-mobile .mobile-chip {
  color: #eef6ff;
  border-color: color-mix(in srgb, var(--accent) 24%, rgba(178, 207, 238, 0.34));
  background: color-mix(in srgb, var(--accent) 16%, rgba(20, 34, 54, 0.94));
}

body.dark-mode #cv-skills-mobile .mobile-chip:nth-child(2n) {
  background: color-mix(in srgb, var(--accent-2) 14%, rgba(20, 34, 54, 0.94));
}

body.dark-mode #cv-skills-mobile .mobile-chip:nth-child(3n) {
  background: color-mix(in srgb, var(--accent) 12%, rgba(22, 36, 57, 0.95));
}

body.dark-mode #cv-skills-mobile .mobile-chip:nth-child(4n) {
  background: color-mix(in srgb, var(--accent-2) 10%, rgba(22, 36, 57, 0.95));
}

body.dark-mode #cv-skills-mobile .mobile-chip:nth-child(5n) {
  background: color-mix(in srgb, var(--accent) 10%, rgba(22, 36, 57, 0.95));
}
