:root {
  --bg: #f2f6f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-strong: #ffffff;
  --text: #0f172a;
  --muted: #4b5563;
  --line: rgba(15, 23, 42, 0.12);
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --orange: #f97316;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --theme-duration: 860ms;
  --theme-ease: cubic-bezier(0.22, 0.72, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #ecf8f6 0%, #fdf8f1 45%, #eef3ff 100%);
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--theme-duration);
  animation-timing-function: var(--theme-ease);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: theme-view-old;
}

::view-transition-new(root) {
  animation-name: theme-view-new;
}

body.theme-switching,
body.theme-switching .topbar,
body.theme-switching .hero-copy,
body.theme-switching .profile-card,
body.theme-switching .section,
body.theme-switching .footer,
body.theme-switching .stat-card,
body.theme-switching .project-card,
body.theme-switching .skill-panel,
body.theme-switching .edu-card,
body.theme-switching .mission-card,
body.theme-switching .timeline-item,
body.theme-switching .contact-list li,
body.theme-switching .qr-card,
body.theme-switching .contact-action,
body.theme-switching .contact-menu-panel,
body.theme-switching .contact-menu-close,
body.theme-switching .theme-btn,
body.theme-switching .presentation-btn,
body.theme-switching .print-btn,
body.theme-switching .lang-switch,
body.theme-switching .lang-btn,
body.theme-switching .back-to-top,
body.theme-switching .section-kicker,
body.theme-switching .contact-menu-kicker,
body.theme-switching .tag-list li,
body.theme-switching .year,
body.theme-switching .profile-photo-wrap,
body.theme-switching .scroll-progress,
body.theme-switching .bg-orb,
body.theme-switching .bg-grid,
body.theme-switching .btn,
body.theme-switching .hero-subtitle,
body.theme-switching .hero-lead,
body.theme-switching .stat-label,
body.theme-switching .project-type,
body.theme-switching .impact-list li,
body.theme-switching .skill-panel ul,
body.theme-switching .edu-card ul,
body.theme-switching .timeline-item p,
body.theme-switching .mission-card p,
body.theme-switching .profile-meta p,
body.theme-switching .contact-key,
body.theme-switching .qr-card p,
body.theme-switching .footer p,
body.theme-switching .contact-action-copy span {
  transition-duration: var(--theme-duration) !important;
  transition-property: background, background-color, border-color, box-shadow, color, filter, opacity,
    backdrop-filter, -webkit-backdrop-filter !important;
  transition-timing-function: var(--theme-ease) !important;
}

.theme-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
      circle at var(--theme-x, 50vw) var(--theme-y, 14vh),
      rgba(255, 255, 255, 0.76) 0,
      rgba(204, 251, 241, 0.42) 18%,
      rgba(249, 115, 22, 0.18) 36%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  filter: blur(0);
  animation: theme-veil 1040ms var(--theme-ease) forwards;
}

.theme-transition-veil--dark {
  background: radial-gradient(
      circle at var(--theme-x, 50vw) var(--theme-y, 14vh),
      rgba(94, 234, 212, 0.4) 0,
      rgba(56, 189, 248, 0.28) 22%,
      rgba(7, 18, 32, 0.62) 52%,
      rgba(7, 18, 32, 0) 76%
    ),
    linear-gradient(160deg, rgba(8, 16, 28, 0.24), rgba(15, 118, 110, 0.16));
}

.theme-transition-veil--light {
  background: radial-gradient(
      circle at var(--theme-x, 50vw) var(--theme-y, 14vh),
      rgba(255, 255, 255, 0.82) 0,
      rgba(204, 251, 241, 0.46) 24%,
      rgba(255, 237, 213, 0.28) 48%,
      rgba(255, 255, 255, 0) 78%
    ),
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.55);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #0ea5e9, var(--orange));
  transition: width 0.1s linear;
}

body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(236, 248, 246, 0.42), rgba(253, 248, 241, 0.34), rgba(238, 243, 255, 0.44));
  backdrop-filter: blur(18px) saturate(145%) contrast(106%);
  -webkit-backdrop-filter: blur(18px) saturate(145%) contrast(106%);
  transition: opacity 0.72s ease, visibility 0.72s ease, backdrop-filter 0.72s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(0) saturate(100%) contrast(100%);
  -webkit-backdrop-filter: blur(0) saturate(100%) contrast(100%);
}

.preloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(69, 89, 112, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 89, 112, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.85), transparent 78%);
  opacity: 0.38;
}

.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0) 44%),
    radial-gradient(circle at 50% 110%, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0) 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
}

.preloader-aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  mix-blend-mode: screen;
  animation: preloader-drift 11s ease-in-out infinite;
}

.preloader-aurora--a {
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(circle at 28% 26%, rgba(17, 148, 160, 0.72), rgba(17, 148, 160, 0));
  top: -31vmax;
  left: -20vmax;
}

.preloader-aurora--b {
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(circle at 72% 32%, rgba(14, 165, 233, 0.58), rgba(14, 165, 233, 0));
  right: -20vmax;
  top: 9vh;
  animation-delay: -3.2s;
}

.preloader-aurora--c {
  width: 52vmax;
  height: 52vmax;
  background: radial-gradient(circle at 52% 52%, rgba(249, 115, 22, 0.46), rgba(249, 115, 22, 0));
  left: 10vw;
  bottom: -24vmax;
  animation-delay: -6.1s;
}

.preloader-film {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.52), transparent 38%),
    radial-gradient(circle at 52% 68%, rgba(255, 255, 255, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 46%);
  animation: preloader-gloss-float 5.2s ease-in-out infinite;
}

.preloader-film::before {
  content: "";
  position: absolute;
  inset: -24% -32%;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 16%,
    rgba(255, 255, 255, 0.55) 40%,
    rgba(255, 255, 255, 0) 64%
  );
  transform: translateX(-46%) skewX(-18deg);
  animation: preloader-gloss-sweep 2.9s ease-in-out infinite;
}

.preloader-noise {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.24;
  mix-blend-mode: soft-light;
  animation: preloader-noise-shift 3s steps(2) infinite;
}

.preloader-typography {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(96vw, 1000px);
  text-align: center;
}

.preloader-wording {
  margin: 0;
  min-height: clamp(72px, 12vw, 146px);
  display: grid;
  place-items: center;
  position: relative;
}

.preloader-wording span {
  position: absolute;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 6.2rem);
  line-height: 0.93;
  background: linear-gradient(118deg, #0f766e 0%, #0ea5e9 56%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52), 0 10px 24px rgba(8, 26, 43, 0.2);
  filter: drop-shadow(0 8px 20px rgba(8, 26, 43, 0.2));
  backface-visibility: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: preloader-word 4.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.preloader-wording span:nth-child(2) {
  animation-delay: 1.6s;
}

.preloader-wording span:nth-child(3) {
  animation-delay: 3.2s;
}

.preloader-signature {
  margin: 10px 0 0;
  text-align: center;
  color: #3f5670;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.88;
}

.preloader-stream {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(5.5vh, 32px);
  margin: 0;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.62rem, 1.25vw, 0.86rem);
  color: rgba(56, 78, 100, 0.74);
  transform: translateX(-50%);
  animation: preloader-stream 3.6s ease-in-out infinite;
}

.preloader.is-hidden .preloader-typography {
  transform: translate(-50%, -44%) scale(1.04);
  opacity: 0;
  transition: transform 0.62s ease, opacity 0.62s ease;
}

.preloader.is-hidden .preloader-stream {
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform 0.62s ease, opacity 0.62s ease;
}

.back-to-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f3f59;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 42;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(12px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.22);
  border-color: rgba(15, 118, 110, 0.35);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.5);
  outline-offset: 2px;
}

body:not(.presentation-mode) .back-to-top {
  display: none;
}

.bg-orb {
  position: fixed;
  z-index: -3;
  filter: blur(8px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.bg-orb--one {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5eead4, #14b8a6 66%, #0f766e);
  top: -120px;
  right: -120px;
}

.bg-orb--two {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, #fdba74, #fb923c 55%, #ea580c);
  left: -120px;
  bottom: -100px;
  animation-delay: 1.6s;
}

.bg-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.75), transparent 74%);
}

.topbar {
  position: sticky;
  top: 6px;
  z-index: 20;
  max-width: 1240px;
  margin: 12px auto 0;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(8, 26, 43, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transform: translate3d(0, 0, 0);
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--teal), var(--orange));
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.18);
}

.brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.97rem;
  color: #132f46;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #3a5168;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.magnetic {
  will-change: transform;
  transition: transform 0.22s ease;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topnav a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1f3951;
  opacity: 0.72;
  padding: 6px 2px;
  transition: opacity 0.2s ease;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2f6089, var(--teal), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.topnav a.is-active,
.topnav a:hover {
  opacity: 1;
  color: #0f2d47;
}

.topnav a.is-active::after,
.topnav a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 4px;
}

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

.theme-btn,
.presentation-btn,
.print-btn {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.75);
  color: #1f3f59;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.print-btn svg {
  width: 17px;
  height: 17px;
}

.theme-btn:hover,
.presentation-btn:hover,
.print-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.theme-btn.is-active,
.presentation-btn.is-active {
  background: linear-gradient(130deg, var(--teal), #0d9488);
  color: #ffffff;
  border-color: transparent;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  color: #334155;
}

.lang-btn.is-active {
  background: var(--bg-strong);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
  color: var(--text);
}

main,
.footer {
  width: min(1240px, calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0;
}

main {
  display: flex;
  flex-direction: column;
}

main > .hero {
  order: 0;
}

main > #projects {
  order: 1;
}

main > #experience {
  order: 2;
}

main > #mission {
  order: 3;
}

main > #skills {
  order: 4;
}

main > #education {
  order: 5;
}

main > section[id] {
  scroll-margin-top: 122px;
}

.hero {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 18px;
  margin-top: 16px;
  align-items: stretch;
}

.hero-copy,
.profile-card,
.section,
.footer {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-copy {
  padding: 36px;
}

.hero-chip {
  display: inline-flex;
  margin: 0;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.hero-subtitle {
  font-size: 1.09rem;
  color: #1e293b;
  margin: 16px 0 0;
  font-weight: 600;
}

.hero-lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.stat-value {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.06;
  background: linear-gradient(132deg, var(--teal), #0ea5e9, var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.stat-value[data-suffix*="plateformes"],
.stat-value[data-suffix*="platforms"] {
  font-size: clamp(1.22rem, 1.72vw, 1.95rem);
}

.stat-label {
  margin: 5px 0 0;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--teal), #0d9488);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: var(--text);
}

.btn-attention {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-attention::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: -58%;
  width: 45%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 26%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.08) 74%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 0;
  animation: btn-sweep 4.8s ease-in-out infinite;
}

.btn-attention > * {
  position: relative;
  z-index: 1;
}

.btn-attention--contact {
  animation: btn-pulse-ghost 2.8s ease-in-out infinite;
}

.btn-attention--exchange {
  animation: btn-pulse-primary 3.1s ease-in-out 0.35s infinite;
}

.contact-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.contact-menu.is-open {
  pointer-events: auto;
}

.contact-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.24s ease;
}

.contact-menu.is-open .contact-menu-backdrop {
  opacity: 1;
}

.contact-menu-panel {
  position: absolute;
  width: min(360px, calc(100vw - 24px));
  top: var(--contact-panel-top, 120px);
  left: var(--contact-panel-left, 12px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 249, 0.9));
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
  padding: 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.contact-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 82% -6%, rgba(14, 165, 233, 0.14), transparent 48%),
    radial-gradient(circle at -2% 100%, rgba(249, 115, 22, 0.16), transparent 52%);
}

.contact-menu.is-open .contact-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-menu-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: #1f3951;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.contact-menu-kicker,
.contact-menu-panel h3,
.contact-menu-intro,
.contact-menu-actions {
  position: relative;
  z-index: 1;
}

.contact-menu-kicker {
  margin: 0;
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: linear-gradient(120deg, rgba(204, 251, 241, 0.84), rgba(255, 237, 213, 0.84));
  color: #145e67;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.contact-menu-panel h3 {
  margin-top: 10px;
  font-size: 1.18rem;
  line-height: 1.26;
}

.contact-menu-intro {
  margin: 8px 0 0;
  color: #415269;
  line-height: 1.5;
  font-size: 0.92rem;
}

.contact-menu-actions {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.contact-action {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d3550;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.contact-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.contact-action-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-action--email .contact-action-icon {
  background: linear-gradient(130deg, #0ea5e9, #0369a1);
}

.contact-action--whatsapp .contact-action-icon {
  background: linear-gradient(130deg, #22c55e, #0f9f4d);
}

.contact-action--phone .contact-action-icon {
  background: linear-gradient(130deg, var(--teal), #0d9488);
}

.contact-action-copy {
  display: grid;
  gap: 2px;
}

.contact-action-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  line-height: 1.1;
}

.contact-action-copy span {
  color: #4a5b72;
  font-size: 0.86rem;
}

.profile-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-photo-wrap {
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: #ffffff;
}

.profile-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 15%;
  transition: opacity 0.34s var(--theme-ease), filter 0.34s var(--theme-ease), transform 0.34s var(--theme-ease);
}

.profile-photo.is-theme-fading {
  opacity: 0.28;
  filter: blur(8px) saturate(0.9);
  transform: scale(1.012);
}

.profile-meta h2 {
  font-size: 1.34rem;
}

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

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.contact-list li {
  border-radius: 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.contact-key {
  font-size: 0.76rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}

.qr-card {
  margin-top: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.qr-card img {
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  width: 170px;
  height: 170px;
}

.qr-card p {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
}

.section {
  margin-top: 20px;
  padding: 30px;
}

.section-head {
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 18px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: linear-gradient(120deg, rgba(204, 251, 241, 0.9), rgba(255, 237, 213, 0.88));
  color: #145e67;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.section-head p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.65;
}

.project-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  padding: 17px;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card h3 {
  font-size: 1.2rem;
}

.project-type {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.tag-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(15, 118, 110, 0.11);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: #0f766e;
  font-weight: 700;
}

.impact-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.impact-list li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--teal), var(--orange));
}

.project-card > a {
  margin-top: 14px;
  display: inline-flex;
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.skills-grid,
.edu-grid,
.mission-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

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

.skill-panel,
.edu-card,
.mission-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  padding: 17px;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-panel h3,
.edu-card h3,
.mission-card h3 {
  font-size: 1.04rem;
}

.skill-panel ul,
.edu-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #334155;
  display: grid;
  gap: 10px;
}

.timeline {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.timeline-item {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.84);
  padding: 17px;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card::after,
.timeline-item::after,
.skill-panel::after,
.edu-card::after,
.mission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 56%);
}

.project-card:hover,
.timeline-item:hover,
.skill-panel:hover,
.edu-card:hover,
.mission-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.11);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--orange));
}

.year {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-weight: 700;
  font-size: 0.82rem;
}

.timeline-item h3 {
  margin-top: 10px;
  font-size: 1.08rem;
}

.timeline-item p {
  margin: 10px 0 0;
  line-height: 1.66;
  color: #334155;
}

.timeline-label {
  display: inline-block;
  margin-right: 6px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f766e;
}

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

.mission-card p {
  margin: 10px 0 0;
  line-height: 1.64;
  color: #334155;
}

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

.footer {
  margin-top: 24px;
  margin-bottom: 30px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer p {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.i18n-inline,
.i18n-block {
  display: none;
}

body.lang-fr .i18n-inline.fr {
  display: inline;
}

body.lang-en .i18n-inline.en {
  display: inline;
}

body.lang-fr .i18n-block.fr {
  display: block;
}

body.lang-en .i18n-block.en {
  display: block;
}

body.contact-menu-open {
  overflow: hidden;
}

body.theme-dark {
  --bg: #071220;
  --bg-elevated: rgba(10, 19, 33, 0.76);
  --bg-strong: #111f32;
  --text: #e7eef8;
  --muted: #acbdd3;
  --line: rgba(148, 163, 184, 0.18);
  --teal: #2ac9bb;
  --teal-soft: rgba(42, 201, 187, 0.2);
  --orange: #f9a84f;
  --shadow: 0 24px 58px rgba(1, 6, 12, 0.48);
  background: linear-gradient(160deg, #07131f 0%, #0b1726 45%, #121e31 100%);
}

body.theme-dark .preloader {
  background: linear-gradient(155deg, rgba(5, 12, 21, 0.5), rgba(10, 19, 33, 0.44), rgba(13, 27, 43, 0.52));
}

body.theme-dark .preloader::before {
  background-image: linear-gradient(rgba(158, 182, 211, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 182, 211, 0.16) 1px, transparent 1px);
  opacity: 0.35;
}

body.theme-dark .preloader::after {
  background: radial-gradient(circle at 50% 24%, rgba(125, 177, 228, 0.2), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 110%, rgba(0, 6, 14, 0.38), rgba(0, 6, 14, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

body.theme-dark .preloader-aurora--a {
  background: radial-gradient(circle at 28% 26%, rgba(34, 211, 238, 0.46), rgba(34, 211, 238, 0));
}

body.theme-dark .preloader-aurora--b {
  background: radial-gradient(circle at 72% 32%, rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0));
}

body.theme-dark .preloader-aurora--c {
  background: radial-gradient(circle at 52% 52%, rgba(251, 146, 60, 0.34), rgba(251, 146, 60, 0));
}

body.theme-dark .preloader-film {
  background: radial-gradient(circle at 50% 34%, rgba(109, 169, 227, 0.24), transparent 40%),
    radial-gradient(circle at 50% 68%, rgba(255, 191, 124, 0.14), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 46%);
}

body.theme-dark .preloader-film::before {
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 16%,
    rgba(174, 213, 255, 0.22) 40%,
    rgba(255, 255, 255, 0) 64%
  );
}

body.theme-dark .preloader-noise {
  background-image: repeating-linear-gradient(
      0deg,
      rgba(148, 163, 184, 0.08) 0,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.05) 0,
      rgba(148, 163, 184, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.24;
}

body.theme-dark .preloader-wording span {
  background: linear-gradient(118deg, #46d2c3 0%, #59c9ff 56%, #f8ab5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 226, 255, 0.18);
  text-shadow: 0 1px 0 rgba(209, 231, 255, 0.3), 0 10px 24px rgba(2, 6, 12, 0.56);
  filter: drop-shadow(0 8px 22px rgba(2, 6, 12, 0.56));
}

body.theme-dark .preloader-signature {
  color: #a9bfd9;
}

body.theme-dark .preloader-stream {
  color: rgba(181, 202, 225, 0.74);
}

body.theme-dark .scroll-progress {
  background: rgba(5, 12, 21, 0.74);
}

body.theme-dark .bg-orb {
  opacity: 0.36;
  filter: blur(18px);
}

body.theme-dark .bg-orb--one {
  background: radial-gradient(circle at 30% 30%, #2dd4bf, #0f766e 66%, #0b3c58);
}

body.theme-dark .bg-orb--two {
  background: radial-gradient(circle at 70% 30%, #fbbf24, #f59e0b 55%, #b45309);
}

body.theme-dark .topbar {
  background: rgba(8, 16, 28, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 16px 35px rgba(1, 6, 12, 0.58);
}

body.theme-dark .brand strong {
  color: #e8f0fa;
}

body.theme-dark .brand small {
  color: #b5c6dc;
}

body.theme-dark .topnav a {
  color: #b8c8dd;
}

body.theme-dark .topnav a.is-active,
body.theme-dark .topnav a:hover {
  color: #edf4ff;
}

body.theme-dark .lang-switch {
  background: rgba(148, 163, 184, 0.18);
}

body.theme-dark .lang-btn {
  color: #c6d5e8;
}

body.theme-dark .lang-btn.is-active {
  background: rgba(10, 18, 31, 0.9);
  color: #ecf4ff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

body.theme-dark .theme-btn,
body.theme-dark .presentation-btn,
body.theme-dark .print-btn {
  background: rgba(10, 19, 33, 0.86);
  border-color: rgba(148, 163, 184, 0.3);
  color: #d7e6f8;
}

body.theme-dark .theme-btn:hover,
body.theme-dark .presentation-btn:hover,
body.theme-dark .print-btn:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

body.theme-dark .theme-btn.is-active,
body.theme-dark .presentation-btn.is-active {
  background: linear-gradient(130deg, #0b3f5d, #0f766e);
  border-color: transparent;
  color: #ffffff;
}

body.theme-dark .back-to-top {
  background: rgba(11, 23, 37, 0.9);
  border-color: rgba(148, 163, 184, 0.28);
  color: #dbe9fa;
  box-shadow: 0 14px 28px rgba(1, 6, 12, 0.5);
}

body.theme-dark .back-to-top:hover {
  border-color: rgba(94, 234, 212, 0.48);
  box-shadow: 0 16px 30px rgba(1, 6, 12, 0.62);
}

body.theme-dark .hero-copy,
body.theme-dark .profile-card,
body.theme-dark .section,
body.theme-dark .footer {
  background: rgba(10, 19, 33, 0.76);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 58px rgba(1, 6, 12, 0.46);
}

body.theme-dark .hero-subtitle {
  color: #dce8f7;
}

body.theme-dark .stat-card,
body.theme-dark .project-card,
body.theme-dark .skill-panel,
body.theme-dark .edu-card,
body.theme-dark .mission-card,
body.theme-dark .timeline-item,
body.theme-dark .contact-list li,
body.theme-dark .qr-card,
body.theme-dark .contact-action,
body.theme-dark .contact-menu-close {
  background: rgba(12, 24, 39, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .project-card,
body.theme-dark .timeline-item {
  background: linear-gradient(160deg, rgba(12, 24, 39, 0.95), rgba(12, 24, 39, 0.78));
}

body.theme-dark .contact-action {
  color: #e6eef9;
}

body.theme-dark .contact-menu-close {
  color: #d8e6f8;
}

body.theme-dark .profile-photo-wrap {
  background: #091322;
  border-color: rgba(148, 163, 184, 0.3);
}

body.theme-dark .section-kicker,
body.theme-dark .contact-menu-kicker {
  background: linear-gradient(120deg, rgba(20, 83, 95, 0.48), rgba(97, 67, 24, 0.44));
  border-color: rgba(94, 234, 212, 0.36);
  color: #dff2f4;
  box-shadow: none;
}

body.theme-dark .tag-list li {
  background: rgba(42, 201, 187, 0.16);
  border-color: rgba(94, 234, 212, 0.28);
  color: #9af4ea;
}

body.theme-dark .year {
  background: rgba(42, 201, 187, 0.16);
  color: #95f4e8;
}

body.theme-dark .project-card::after,
body.theme-dark .timeline-item::after,
body.theme-dark .skill-panel::after,
body.theme-dark .edu-card::after,
body.theme-dark .mission-card::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(148, 197, 255, 0.18), transparent 56%);
}

body.theme-dark .project-card:hover,
body.theme-dark .timeline-item:hover,
body.theme-dark .skill-panel:hover,
body.theme-dark .edu-card:hover,
body.theme-dark .mission-card:hover,
body.theme-dark .contact-action:hover {
  border-color: rgba(94, 234, 212, 0.46);
  box-shadow: 0 16px 28px rgba(1, 6, 12, 0.54);
}

body.theme-dark .section-head p,
body.theme-dark .hero-lead,
body.theme-dark .stat-label,
body.theme-dark .project-type,
body.theme-dark .impact-list li,
body.theme-dark .skill-panel ul,
body.theme-dark .edu-card ul,
body.theme-dark .timeline-item p,
body.theme-dark .mission-card p,
body.theme-dark .profile-meta p,
body.theme-dark .contact-key,
body.theme-dark .qr-card p,
body.theme-dark .footer p,
body.theme-dark .contact-action-copy span,
body.theme-dark .contact-menu-intro {
  color: #adbed2;
}

body.theme-dark .timeline-label {
  color: #8ef1e3;
}

body.theme-dark .project-card > a,
body.theme-dark .contact-list a {
  color: #74e2d8;
}

body.theme-dark .btn-ghost {
  background: rgba(11, 23, 37, 0.82);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e8f0fa;
}

body.theme-dark .contact-menu-backdrop {
  background: rgba(2, 6, 12, 0.7);
}

body.theme-dark .contact-menu-panel {
  background: linear-gradient(150deg, rgba(8, 18, 31, 0.96), rgba(14, 27, 43, 0.94));
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 54px rgba(1, 5, 10, 0.66);
}

body.theme-dark .contact-menu-panel::before {
  background: radial-gradient(circle at 82% -6%, rgba(14, 165, 233, 0.2), transparent 48%),
    radial-gradient(circle at -2% 100%, rgba(249, 115, 22, 0.2), transparent 52%);
}

body.theme-dark .contact-menu-panel h3 {
  color: #edf4ff;
}

body.presentation-mode {
  background: #f7fafc;
}

body.presentation-mode .bg-orb,
body.presentation-mode .bg-grid {
  display: none;
}

body.presentation-mode .topbar {
  position: static;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  backdrop-filter: none;
}

body.presentation-mode .hero-copy,
body.presentation-mode .profile-card,
body.presentation-mode .section,
body.presentation-mode .footer {
  box-shadow: none;
  border: 1px solid #dbe6ef;
  background: #ffffff;
}

body.presentation-mode .scroll-progress {
  opacity: 0.45;
}

body.theme-dark.presentation-mode {
  background: #0b1726;
}

body.theme-dark.presentation-mode .topbar {
  background: rgba(10, 19, 33, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
}

body.theme-dark.presentation-mode .hero-copy,
body.theme-dark.presentation-mode .profile-card,
body.theme-dark.presentation-mode .section,
body.theme-dark.presentation-mode .footer {
  border-color: rgba(148, 163, 184, 0.24);
  background: #0f1b2c;
}

body.theme-dark.presentation-mode .scroll-progress {
  opacity: 0.65;
}

body.print-preview-open {
  overflow: hidden;
}

.print-preview {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 20, 31, 0.7);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.print-preview[hidden] {
  display: none;
}

.print-preview.is-open {
  opacity: 1;
  visibility: visible;
}

.print-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.print-preview-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 34px));
  height: min(94vh, 1040px);
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(247, 255, 253, 0.97), rgba(224, 239, 240, 0.92));
  box-shadow: 0 34px 90px rgba(2, 12, 20, 0.46);
  overflow: hidden;
}

.print-preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(252, 255, 254, 0.86);
}

.print-preview-kicker {
  margin: 0 0 3px;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.print-preview-chrome h2 {
  color: #102338;
  font-size: 1.08rem;
  line-height: 1.18;
}

.print-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.print-preview-secondary,
.print-preview-primary {
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  padding: 9px 13px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.print-preview-secondary {
  background: rgba(255, 255, 255, 0.76);
  color: #1f4a58;
}

.print-preview-primary {
  background: linear-gradient(130deg, #0f766e, #2f6089 62%, #f97316);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.print-preview-shell {
  overflow: auto;
  padding: 22px;
  display: grid;
  place-items: start center;
}

.print-sheet {
  --print-bg: #edf7f5;
  --print-paper: #ffffff;
  --print-ink: #102338;
  --print-muted: #506575;
  --print-teal: #0f766e;
  --print-blue: #2f6089;
  --print-orange: #f97316;
  position: relative;
  isolation: isolate;
  width: 210mm;
  height: 297mm;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 4.2mm;
  padding: 6.2mm 6.4mm 5.8mm 8mm;
  overflow: hidden;
  color: var(--print-ink);
  background: linear-gradient(148deg, #ffffff 0%, #f1faf8 53%, #fff8f1 100%);
  border-radius: 4mm;
  box-shadow: 0 24px 80px rgba(2, 18, 28, 0.34);
  transform-origin: top center;
}

.print-preview .print-sheet {
  transform: scale(0.72);
  margin-bottom: -83mm;
}

.print-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 9% 8%, rgba(15, 118, 110, 0.17), transparent 31%),
    radial-gradient(circle at 92% 0%, rgba(47, 96, 137, 0.15), transparent 32%),
    radial-gradient(circle at 72% 76%, rgba(249, 115, 22, 0.08), transparent 34%);
}

.print-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4.8mm;
  z-index: -1;
  background: linear-gradient(180deg, var(--print-teal), var(--print-blue) 58%, var(--print-orange));
}

.print-hero {
  display: grid;
  grid-template-columns: 1fr 48mm;
  gap: 6mm;
  align-items: stretch;
}

.print-identity {
  min-width: 0;
}

.print-overline,
.print-label {
  margin: 0;
  color: var(--print-teal);
  font-size: 6.7pt;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 900;
}

.print-identity h2 {
  margin-top: 2.5mm;
  color: #0d2639;
  font-size: 25pt;
  line-height: 0.96;
  letter-spacing: 0;
}

.print-role {
  width: min(100%, 132mm);
  margin: 3mm 0 0;
  color: #29465a;
  font-size: 9.2pt;
  line-height: 1.38;
  font-weight: 700;
}

.print-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2mm;
  margin-top: 4.2mm;
}

.print-contact-strip span {
  border: 1px solid rgba(15, 118, 110, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 2mm 3mm;
  color: #254b58;
  font-size: 7.1pt;
  line-height: 1;
  font-weight: 800;
}

.print-portrait-card {
  position: relative;
  margin: 0;
  align-self: stretch;
  display: block;
  padding: 2.6mm;
  border: 0;
  border-radius: 7mm;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.print-portrait-frame {
  position: relative;
  height: 50mm;
  border-radius: 5mm;
  background: #e9f1f4;
  overflow: hidden;
}

.print-portrait-frame::after {
  content: none;
}

.print-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  border: 0;
  border-radius: 0;
}

.print-portrait-card figcaption {
  position: absolute;
  right: 3.6mm;
  bottom: 3.2mm;
  left: 3.6mm;
  margin: 0;
  padding: 1.15mm 1.4mm;
  border-radius: 2.5mm;
  background: rgba(255, 255, 255, 0.86);
  color: #3c5965;
  font-size: 6.7pt;
  line-height: 1.24;
  font-weight: 800;
  text-align: center;
}

.print-metrics {
  display: grid;
  grid-template-columns: 0.72fr 0.72fr 1.35fr;
  gap: 2.6mm;
}

.print-metrics div {
  min-height: 18mm;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 4mm;
  background: rgba(255, 255, 255, 0.74);
  padding: 3mm;
}

.print-metrics strong {
  display: block;
  color: var(--print-teal);
  font-family: "Space Grotesk", sans-serif;
  font-size: 17pt;
  line-height: 0.95;
}

.print-metrics span {
  display: block;
  margin-top: 1mm;
  color: var(--print-muted);
  font-size: 7pt;
  line-height: 1.26;
  font-weight: 800;
}

.print-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.44fr 0.86fr;
  grid-template-rows: auto 1fr;
  gap: 4.2mm;
}

.print-main,
.print-side {
  min-height: 0;
  display: grid;
  gap: 3.4mm;
  align-content: start;
}

.print-block {
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 5mm;
  background: rgba(255, 255, 255, 0.73);
  padding: 3.6mm;
}

.print-summary p:last-child {
  margin: 2.3mm 0 0;
  color: #2c4655;
  font-size: 8.6pt;
  line-height: 1.44;
  font-weight: 700;
}

.print-timeline {
  display: grid;
  gap: 2.4mm;
  margin-top: 3mm;
}

.print-timeline article {
  position: relative;
  padding-left: 4.2mm;
  border-left: 1.2mm solid rgba(15, 118, 110, 0.72);
}

.print-timeline span {
  color: #cf5f13;
  font-size: 6.8pt;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.print-timeline h3 {
  margin-top: 0.6mm;
  color: #102b3f;
  font-size: 8.6pt;
  line-height: 1.18;
}

.print-timeline p,
.print-skillset li,
.print-education li,
.print-interests li,
.print-tools p {
  color: #435b68;
  font-size: 7.35pt;
  line-height: 1.32;
}

.print-timeline p {
  margin: 1mm 0 0;
}

.print-skillset ul,
.print-education ul,
.print-interests ul {
  margin: 3mm 0 0;
  padding-left: 4.2mm;
  display: grid;
  gap: 1.8mm;
}

.print-tools p {
  margin: 3mm 0 0;
  font-weight: 800;
}

.print-closing {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3mm;
  margin-top: 2mm;
  padding: 3.4mm;
  border-radius: 5mm;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(47, 96, 137, 0.94) 58%, rgba(249, 115, 22, 0.92));
  color: #ffffff;
}

.print-closing div {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.26);
  padding-right: 3mm;
}

.print-closing div:last-child {
  border-right: 0;
  padding-right: 0;
}

.print-closing span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-family: "Space Grotesk", sans-serif;
  font-size: 7pt;
  font-weight: 900;
  line-height: 1;
}

.print-closing strong {
  display: block;
  margin-top: 1mm;
  font-family: "Space Grotesk", sans-serif;
  font-size: 8.2pt;
  line-height: 1.1;
}

.print-closing p {
  margin: 1.2mm 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 6.9pt;
  line-height: 1.25;
}

.print-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4mm;
  border-top: 1px solid rgba(15, 118, 110, 0.16);
  padding-top: 3mm;
  color: #506575;
  font-size: 6.8pt;
  line-height: 1.2;
  font-weight: 800;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, -14px);
  }
}

@keyframes btn-sweep {
  0%,
  56%,
  100% {
    left: -58%;
    opacity: 0;
  }
  8%,
  28% {
    opacity: 1;
  }
  40% {
    left: 130%;
    opacity: 0;
  }
}

@keyframes btn-pulse-ghost {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
    border-color: rgba(15, 23, 42, 0.14);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.14);
    border-color: rgba(15, 118, 110, 0.32);
  }
}

@keyframes btn-pulse-primary {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28), 0 0 0 0 rgba(15, 118, 110, 0);
  }
  50% {
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.34), 0 0 0 6px rgba(15, 118, 110, 0.16);
  }
}

@keyframes preloader-word {
  0%,
  8%,
  100% {
    opacity: 0;
    transform: translateY(18px) scale(0.982);
  }
  16%,
  34% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  44% {
    opacity: 0;
    transform: translateY(-8px) scale(1.01);
  }
}

@keyframes preloader-gloss-float {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.02) translate3d(0, -6px, 0);
  }
}

@keyframes preloader-gloss-sweep {
  0%,
  100% {
    transform: translateX(-46%) skewX(-18deg);
    opacity: 0.22;
  }
  44% {
    opacity: 0.68;
  }
  50% {
    transform: translateX(44%) skewX(-18deg);
    opacity: 0.58;
  }
}

@keyframes preloader-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -28px, 0) scale(1.06);
  }
}

@keyframes preloader-noise-shift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-1.2%, 0.7%, 0);
  }
  50% {
    transform: translate3d(0.8%, -0.5%, 0);
  }
  75% {
    transform: translate3d(-0.6%, -0.9%, 0);
  }
}

@keyframes preloader-stream {
  0% {
    opacity: 0.38;
    transform: translateX(-50%) translateY(4px);
  }
  50% {
    opacity: 0.82;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0.38;
    transform: translateX(-50%) translateY(4px);
  }
}

@keyframes theme-view-old {
  0% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
  100% {
    opacity: 0.34;
    filter: blur(12px) saturate(0.9);
    transform: scale(0.998);
  }
}

@keyframes theme-view-new {
  0% {
    opacity: 0;
    filter: blur(16px) saturate(1.14);
    transform: scale(1.012);
  }
  58% {
    opacity: 0.82;
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
}

@keyframes theme-veil {
  0% {
    opacity: 0;
    clip-path: circle(0 at var(--theme-x, 50vw) var(--theme-y, 14vh));
    filter: blur(18px) saturate(1.15);
  }
  20% {
    opacity: 0.78;
  }
  68% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    clip-path: circle(150vmax at var(--theme-x, 50vw) var(--theme-y, 14vh));
    filter: blur(2px) saturate(1);
  }
}

@media (max-width: 980px) {
  .print-preview {
    padding: 12px;
    align-items: start;
  }

  .print-preview-panel {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
    border-radius: 18px;
  }

  .print-preview-chrome {
    align-items: flex-start;
    flex-direction: column;
  }

  .print-preview-actions {
    width: 100%;
    justify-content: stretch;
  }

  .print-preview-secondary,
  .print-preview-primary {
    flex: 1;
  }

  .print-preview-shell {
    padding: 14px;
    place-items: start;
    justify-items: start;
    overflow-x: hidden;
  }

  .print-preview .print-sheet {
    transform-origin: top left;
    transform: scale(0.42);
    margin-bottom: -172mm;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }

  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #edf7f5 !important;
  }

  body {
    color: #102338 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body > :not(.print-preview) {
    display: none !important;
  }

  .print-preview,
  .print-preview[hidden] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .print-preview-backdrop,
  .print-preview-chrome {
    display: none !important;
  }

  .print-preview-panel,
  .print-preview-shell {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .print-sheet {
    display: grid !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
}

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

  .profile-photo {
    height: 360px;
  }

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

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px;
  }

  .topnav {
    row-gap: 6px;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  main,
  .footer {
    width: min(1240px, calc(100% - 20px));
  }

  .hero-copy,
  .profile-card,
  .section,
  .footer {
    border-radius: 18px;
  }

  .hero-copy,
  .profile-card,
  .section {
    padding: 20px;
  }

  .stats,
  .project-grid,
  .skills-grid,
  .mission-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    height: 290px;
  }

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

  .contact-menu-panel {
    left: 10px !important;
    right: 10px;
    width: auto;
    top: auto !important;
    bottom: 10px;
    transform: translateY(20px) scale(0.98);
  }

  .contact-menu.is-open .contact-menu-panel {
    transform: translateY(0) scale(1);
  }

  .preloader-wording {
    min-height: 58px;
  }

  .preloader-signature {
    font-size: 0.68rem;
  }

  .preloader-stream {
    bottom: max(4.2vh, 24px);
    letter-spacing: 0.14em;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .theme-transition-veil {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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