﻿:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #111111;
  --text-muted: #3a3a38;
  --text-soft: #6b6b66;
  --border: #111111;
  --border-strong: #111111;
  --shadow: 4px 4px 0 #111111;
  --shadow-soft: 3px 3px 0 #111111;
  --border-width-structure: 1px;
  --border-width-action: 2px;
  --line-subtle: rgba(17, 17, 17, 0.22);
  --shadow-interactive: var(--shadow-soft);
  --shadow-emphasis: var(--shadow);
  --control-min-size: 44px;
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --focus: #e4002b;
  --primary: #e4002b;
  --primary-contrast: #ffffff;
  --primary-soft: rgba(228, 0, 43, 0.10);
  --chip-bg: #ffffff;
  --chip-bg-hover: #f2efe8;
  --chip-text: #111111;
  --accent-soft: rgba(228, 0, 43, 0.08);
  --accent-line: #e4002b;
  --accent-line-soft: rgba(228, 0, 43, 0.5);
  --accent-line-faint: rgba(17, 17, 17, 0.14);
  --accent-profile: #e4002b;
  --accent-skills: #e4002b;
  --accent-experience: #e4002b;
  --accent-projects: #e4002b;
  --accent-formation: #e4002b;
  --accent-contact: #e4002b;
  --detail-glow-x: 74%;
  --detail-glow-y: 18%;
  --detail-glow-strength: 0.2;

  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-card: 0px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;

  --font-size-0: clamp(0.84rem, 0.8rem + 0.18vw, 0.92rem);
  --font-size-1: clamp(0.95rem, 0.9rem + 0.24vw, 1.05rem);
  --font-size-2: clamp(1.06rem, 1rem + 0.34vw, 1.2rem);
  --font-size-3: clamp(1.35rem, 1.12rem + 0.82vw, 1.72rem);
  --font-size-4: clamp(2.5rem, 1.72rem + 2.8vw, 4.8rem);

  --line-height-tight: 1.08;
  --line-height-heading: 1.14;
  --line-height-base: 1.68;

  --max-width: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Satoshi", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-height-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.cursor-enhanced,
body.cursor-enhanced a,
body.cursor-enhanced button,
body.cursor-enhanced [role="button"],
body.cursor-enhanced .btn,
body.cursor-enhanced .timeline-item,
body.cursor-enhanced .contact-link {
  cursor: none !important;
}

::selection {
  color: var(--primary-contrast);
  background: color-mix(in srgb, var(--primary) 88%, transparent);
}

.cursor-halo,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 0.22s ease,
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.cursor-halo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 216, 212, 0.32);
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--focus) 12%, transparent), transparent);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 22px color-mix(in srgb, var(--primary) 48%, transparent);
}

body.cursor-visible .cursor-halo,
body.cursor-visible .cursor-dot {
  opacity: 1;
}

body.cursor-hovering .cursor-halo {
  width: 64px;
  height: 64px;
  border-color: color-mix(in srgb, var(--primary) 44%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent), color-mix(in srgb, var(--focus) 4%, transparent), transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--primary) 16%, transparent);
}

body.cursor-hovering .cursor-dot {
  transform: translate3d(-50%, -50%, 0) scale(1.4);
  background: color-mix(in srgb, var(--primary) 32%, white);
}

body.cursor-pressing .cursor-halo {
  width: 32px;
  height: 32px;
}

body.cursor-pressing .cursor-dot {
  transform: translate3d(-50%, -50%, 0) scale(0.72);
}

.motion-fade-up,
.motion-glow-soft,
.motion-float-soft,
.motion-sheen {
  will-change: transform, opacity;
}

body.js-enabled .motion-sequence .motion-fade-up {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  animation: motionFadeUp 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-delay-1 {
  animation-delay: 100ms;
}

.motion-delay-2 {
  animation-delay: 180ms;
}

.motion-delay-3 {
  animation-delay: 260ms;
}

.motion-delay-4 {
  animation-delay: 340ms;
}

.motion-delay-5 {
  animation-delay: 420ms;
}

.motion-glow-soft {
  animation: motionTextGlow 5.6s ease-in-out infinite;
}

body.js-enabled .motion-sequence .motion-glow-soft.motion-fade-up {
  animation:
    motionFadeUp 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    motionTextGlow 5.6s ease-in-out 1.1s infinite;
}

.motion-float-soft {
  animation: motionFloatSoft 7.5s ease-in-out infinite;
}

body.js-enabled .motion-sequence .motion-float-soft.motion-fade-up {
  animation:
    motionFadeUp 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    motionFloatSoft 7.5s ease-in-out 1.15s infinite;
}

.motion-sheen {
  overflow: hidden;
}

.motion-sheen::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px -32%;
  width: 34%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  opacity: 0;
  transform: translateX(-160%) skewX(-18deg);
}

.motion-sheen:hover::after,
.motion-sheen:focus-visible::after {
  opacity: 1;
  animation: motionSheenSweep 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: var(--line-height-heading);
}

p,
ul {
  margin-top: 0;
}

body.detail-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 300;
  transform: translateY(-180%);
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(10, 6, 22, 0.96);
  color: var(--text);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.22s ease;
}

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

.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;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(rgba(216, 216, 212, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 216, 212, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(150, 152, 158, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 152, 158, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px, auto;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px, 0 0;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.page-bg::before {
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(210, 208, 199, 0.07), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(216, 216, 212, 0.05), transparent 22%),
    radial-gradient(circle at 72% 76%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 26%),
    linear-gradient(180deg, transparent 3rem, var(--accent-line-faint) 3rem, var(--accent-line-faint) 3.08rem, transparent 3.08rem),
    linear-gradient(180deg, transparent calc(100% - 3.08rem), var(--accent-line-faint) calc(100% - 3.08rem), var(--accent-line-faint) calc(100% - 3rem), transparent calc(100% - 3rem));
  opacity: 0.82;
}

.page-bg::after {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(210, 208, 199, 0.045), transparent 45%),
    linear-gradient(180deg, rgba(4, 5, 7, 0.12), rgba(4, 5, 7, 0.72));
}


.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 72%, transparent), color-mix(in srgb, var(--focus) 92%, transparent));
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--primary) 22%, transparent);
  transition: width 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 140;
}

.scroll-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--focus) 78%, white) 0%, color-mix(in srgb, var(--primary) 46%, transparent) 34%, transparent 72%);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--focus) 54%, transparent),
    0 0 34px color-mix(in srgb, var(--primary) 38%, transparent);
  filter: blur(5px);
  opacity: 0.76;
  transform: translateY(-50%) scale(0.95);
}

.hero,
.section,
footer.section {
  width: var(--max-width);
  margin: 0 auto;
}

.hero {
  padding: 0;
}

.top-nav {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: var(--max-width);
  padding: 0.8rem 1rem;
  border: 1px solid rgba(216, 216, 212, 0.28);
  border-radius: 999px;
  background: rgba(37, 38, 44, 0.82);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 14px 38px rgba(4, 5, 7, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  z-index: 120;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.scrolled {
  background: rgba(33, 34, 40, 0.94);
  border-color: rgba(216, 216, 212, 0.34);
  box-shadow:
    0 18px 44px rgba(4, 5, 7, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.14rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-left: 0.85rem;
  min-width: 0;
}

.menu a,
.meta-chip,
.btn,
.filter-btn,
.skill-chip,
.detail-close,
.item-toggle,
.contact-link {
  -webkit-tap-highlight-color: transparent;
}

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(216, 216, 212, 0.14);
}

main section,
footer {
  scroll-margin-top: 7.5rem;
}

.hero-content,
.section,
footer.section,
.timeline-item,
.project-card,
.detail-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-content::before,
.section::before,
footer.section::before,
.timeline-item::before,
.project-card::before,
.detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 32%, transparent 72%, rgba(255, 255, 255, 0.02));
  opacity: 0.7;
}

.hero-content {
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem) 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(18rem, 0.86fr);
  gap: clamp(1.4rem, 1rem + 1.5vw, 2.5rem);
  align-items: end;
  min-height: min(78vh, 760px);
  isolation: isolate;
}

.hero-content::before {
  display: none;
  content: none;
}

.hero-content::after {
  display: none;
  content: none;
}

.hero-content > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  font-size: var(--font-size-4);
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

.intro {
  max-width: 34rem;
  margin-top: var(--space-4);
  color: var(--text);
  font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.2rem);
  line-height: 1.62;
}

.quick-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  list-style: none;
  align-content: end;
}

.quick-meta li {
  margin: 0;
}

.meta-chip {
  width: 100%;
  min-height: 64px;
  justify-content: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(216, 216, 212, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--chip-text);
  font: inherit;
  font-size: var(--font-size-1);
  line-height: 1;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.cta-row,
.filters,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row {
  margin-top: var(--space-5);
}

.cta-row .btn {
  border-radius: 10px;
}

.hero-content .cta-row {
  width: auto;
}

.hero-content .cta-row .btn.primary {
  min-width: 15.5rem;
}

.btn,
.filter-btn,
.skill-chip,
.interest-tag {
  height: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font: inherit;
  font-size: var(--font-size-1);
  line-height: 1;
}

.btn {
  position: relative;
  border-radius: var(--radius-card);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.btn.primary {
  color: var(--primary-contrast);
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 18%, transparent);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px color-mix(in srgb, var(--primary) 20%, transparent);
}

.btn.secondary,
.filter-btn,
.skill-chip {
  background: rgba(255, 255, 255, 0.03);
  color: var(--chip-text);
  cursor: pointer;
}

.btn.secondary:hover,
.filter-btn:hover,
.skill-chip:hover,
.meta-chip:hover,
.menu-toggle:hover,
.detail-close:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
}

.section,
footer.section {
  margin-top: 0;
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
}

.section-open,
footer.section.section-open {
  display: grid;
  align-content: start;
  gap: clamp(1rem, 0.7rem + 0.8vw, 1.45rem);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.section-open::before,
footer.section.section-open::before {
  display: none;
  content: none;
}

.timeline-item::before,
.project-card::before,
.detail-card::before,
.profile-summary::before,
.profile-summary-item::before,
.detail-slot::before {
  display: none;
  content: none;
}

.section-contained,
footer.section.section-contained {
  display: grid;
  align-content: start;
  gap: clamp(1rem, 0.75rem + 0.6vw, 1.25rem);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-open .section-head,
footer.section.section-open .section-head,
.section-contained .section-head,
footer.section.section-contained .section-head {
  margin-bottom: 0;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 2.15rem);
  letter-spacing: -0.04em;
}

.bento-card .section-head h2 {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.78rem;
}

.bento-card .section-head h2::after {
  display: none;
  content: none;
}

.bento-card .section-head h2::before {
  display: none;
  content: none;
}

.nav-contact-cta {
  min-height: 40px;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 16%, transparent);
}

.nav-contact-cta:hover {
  transform: translateY(-2px) scale(1.01);
}

.timeline-shell {
  display: grid;
  grid-template-columns: minmax(11.5rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.timeline-nav {
  position: sticky;
  top: calc(var(--space-8) + 5.5rem);
  display: grid;
  gap: 0.7rem;
  padding-top: 0.6rem;
  align-self: start;
}

.timeline-nav__button {
  width: 100%;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(216, 216, 212, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-nav__button:hover,
.timeline-nav__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 221, 216, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.timeline-nav__button.is-active {
  border-color: color-mix(in srgb, var(--primary) 36%, rgba(222, 221, 216, 0.18));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 85%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 24px rgba(3, 8, 17, 0.14);
}

.timeline-nav__year {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-nav__label {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.timeline {
  --timeline-progress: 0%;
  position: relative;
  display: grid;
  gap: 0.95rem;
  max-height: min(42rem, calc(100dvh - 11rem));
  overflow-y: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.35rem;
  padding-left: 1.75rem;
  padding-right: 0.45rem;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 1.5rem;
  bottom: 1rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(216, 216, 212, 0.12);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 1.5rem;
  width: 2px;
  height: var(--timeline-progress);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--focus) 86%, white), var(--primary));
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 18%, transparent);
  transition: height 0.28s ease;
}

.timeline::-webkit-scrollbar {
  width: 0.7rem;
}

.timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.timeline::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 30%, rgba(255, 255, 255, 0.08));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.timeline-item {
  position: relative;
  margin-left: 0;
  overflow: visible;
  border-radius: var(--radius-card);
  border: 0;
  background: none;
  box-shadow: none;
  isolation: isolate;
  transition: transform 0.22s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: -1.3rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 76%, var(--primary));
  border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--bg) 94%, transparent),
    0 0 18px color-mix(in srgb, var(--primary) 16%, transparent);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(216, 216, 212, 0.2);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 30%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(3, 8, 17, 0.14);
  transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline-item:hover,
.timeline-item:focus-within,
.timeline-item.is-active,
.timeline-item.open {
  transform: translateY(-1px);
}

.timeline-item:hover::after,
.timeline-item:focus-within::after,
.timeline-item.is-active::after,
.timeline-item.open::after {
  border-color: color-mix(in srgb, var(--primary) 36%, rgba(222, 221, 216, 0.22));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 11%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 32px rgba(3, 8, 17, 0.18),
    0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent);
}

.timeline-item.is-active::before,
.timeline-item.open::before {
  transform: scale(1.18);
  background: color-mix(in srgb, var(--focus) 78%, white);
  border-color: color-mix(in srgb, var(--focus) 72%, white);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--bg) 94%, transparent),
    0 0 22px color-mix(in srgb, var(--primary) 26%, transparent);
}

.timeline-item__year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgba(216, 216, 212, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.item-toggle {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: auto;
  padding: 1rem 4.8rem 0.35rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
}

.timeline-item__title {
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.12rem);
  font-weight: 700;
  line-height: 1.36;
}

.timeline-item__period {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-content {
  display: grid;
  gap: 0.72rem;
  overflow: hidden;
  padding: 0 1.1rem 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.item-content p {
  margin: 0;
}

.item-content ul {
  margin: 0;
  padding-left: 1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.26s ease, opacity 0.22s ease, transform 0.22s ease;
}

.item-content li + li {
  margin-top: 0.35rem;
}

.timeline-item.open .item-content ul,
.timeline-item.is-active .item-content ul {
  max-height: 64rem;
  opacity: 1;
  transform: translateY(0);
}

.filters {
  align-items: center;
  padding: 0.32rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
  max-width: 100%;
  gap: 0.5rem;
}

.filter-btn,
.skill-chip {
  font-weight: 600;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.filters .filter-btn {
  min-height: 40px;
  height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.96rem;
}

.filter-btn.active,
.skill-chip.active {
  color: var(--text);
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}

#projets .projects-toolbar {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(216, 216, 212, 0.12);
  border-radius: calc(var(--radius-card) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.015);
}

#projets .projects-intro {
  max-width: 56ch;
  margin: 0;
  color: var(--text-muted);
}

#projets .projects-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}

#projets .filters {
  margin: 0;
  padding: 0.45rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

#projets .filter-btn {
  gap: 0.6rem;
  padding-inline: 1rem;
}

#projets .filter-btn__count {
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

#projets .filter-btn.active .filter-btn__count {
  background: color-mix(in srgb, var(--primary) 28%, rgba(255, 255, 255, 0.12));
}

#projets .filter-status {
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.interest-tag {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(216, 216, 212, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: var(--chip-text);
  cursor: default;
  user-select: none;
}

.availability-lead,
.contact-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 34ch;
}

.bento-availability .availability-lead,
.bento-contact .contact-intro {
  margin-top: 0.35rem;
}

.availability-grid,
.contact-meta {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.availability-item,
.contact-meta-item {
  min-height: 7.5rem;
  display: grid;
  align-content: start;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(216, 216, 212, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.availability-label,
.contact-meta-label {
  margin: 0 0 0.45rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.availability-value,
.contact-meta-value {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.62;
  font-weight: 600;
  text-wrap: pretty;
}

.availability-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.contact-merged {
  display: grid;
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: stretch;
}

.contact-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  border: 1px solid rgba(216, 216, 212, 0.12);
  border-radius: calc(var(--radius-card) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.028), transparent 55%),
    rgba(255, 255, 255, 0.018);
}

.contact-panel-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-panel--availability .availability-lead,
.contact-panel--reach .contact-intro {
  max-width: 38ch;
  margin-top: 0.85rem;
}

.contact-panel--availability .availability-grid {
  grid-template-columns: 1fr;
}

.contact-panel--availability .availability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-panel--availability .interest-tag {
  width: auto;
}

.contact-panel--reach .contact-link {
  margin-top: 1.3rem;
}

.contact-panel--reach .contact-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel--reach .cta-row {
  margin-top: 1.25rem;
}

.project-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  position: relative;
  min-height: 100%;
  padding: 1.35rem;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.015);
  box-shadow: 0 10px 24px rgba(3, 8, 17, 0.12);
  transition: opacity 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card::after {
  display: none;
  content: none;
}

#projets .project-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 0;
}

#projets .projects-viewer {
  display: grid;
  gap: 1rem;
  margin-top: var(--space-4);
  padding: 1rem;
  border: 1px solid rgba(216, 216, 212, 0.12);
  border-radius: calc(var(--radius-card) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
}

#projets .projects-viewer__bar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 0.1rem;
}

#projets .projects-viewer__nav {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(216, 216, 212, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}

#projets .projects-viewer__nav:hover:not(:disabled),
#projets .projects-viewer__nav:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(222, 221, 216, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

#projets .projects-viewer__nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#projets .projects-viewer__position {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#projets .projects-viewer__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}

#projets .projects-viewer__dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
#projets .projects-viewer__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

#projets .projects-viewer__dot:hover::before,
#projets .projects-viewer__dot:focus-visible::before {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.28);
}

#projets .projects-viewer__dot.is-active::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

#projets .project-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: auto;
  padding: 1.45rem;
}

#projets .project-card__eyebrow,
#projets .project-card__tags,
#projets .project-card__meta {
  display: none;
}

#projets .project-card[hidden],
#projets .project-card.hidden {
  display: none;
}

#projets .project-card.is-current {
  animation: projectViewerFade 0.32s ease;
}

#projets .project-card__head {
  display: grid;
  gap: 0.55rem;
}

#projets .project-card__eyebrow {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#projets .project-card h3 {
  margin: 0;
}

#projets .project-card__body {
  margin: 0;
}

#projets .project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#projets .project-card__tags li {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(216, 216, 212, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--chip-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

#projets .project-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 0;
}

#projets .project-card__meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

#projets .project-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(216, 216, 212, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

#projets .project-card:hover .project-card__cta,
#projets .project-card:focus-visible .project-card__cta {
  transform: translateX(2px);
  border-color: rgba(222, 221, 216, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.project-card:hover {
  border-color: rgba(222, 221, 216, 0.28);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  display: none;
  content: none;
}

.project-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem);
}

.project-card p:last-child {
  margin-bottom: 0;
}

.project-card .tags {
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card.hidden,
.project-card[hidden] {
  display: none;
}

@keyframes projectViewerFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 1.08rem + 0.7vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.interactive-item {
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.interactive-item:hover,
.interactive-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(222, 221, 216, 0.28);
}

.project-card:hover {
  border-color: rgba(222, 221, 216, 0.28);
  box-shadow: 0 14px 28px rgba(3, 8, 17, 0.14);
}

.timeline-item:hover,
.timeline-item.open {
  box-shadow: 0 14px 28px rgba(3, 8, 17, 0.14);
}

.interactive-item p,
.interactive-item li,
.project-card p,
.section p,
footer p {
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.interactive-item:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

body.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.js-enabled .reveal.navigation-target {
  transition-delay: 0ms !important;
  transition-duration: 0.18s !important;
}

@keyframes motionFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes motionFloatSoft {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }

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

@keyframes motionTextGlow {
  0% {
    text-shadow: 0 0 0 color-mix(in srgb, var(--focus) 0%, transparent);
  }

  50% {
    text-shadow: 0 0 24px color-mix(in srgb, var(--focus) 14%, transparent);
  }

  100% {
    text-shadow: 0 0 0 color-mix(in srgb, var(--focus) 0%, transparent);
  }
}

@keyframes motionSheenSweep {
  0% {
    transform: translateX(-160%) skewX(-18deg);
  }

  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

.detail-page {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.detail-page.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-page.mode-sheet {
  place-items: stretch end;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 10, 17, 0.68);
  backdrop-filter: blur(10px);
}

.detail-page.mode-sheet .detail-backdrop {
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--focus) 12%, transparent), transparent 20%),
    radial-gradient(circle at 72% 58%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 24%),
    rgba(6, 10, 17, 0.58);
  backdrop-filter: blur(14px);
  animation: detailBackdropPulse 7s ease-in-out infinite;
}

.detail-card {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(82vh, 780px);
  overflow: auto;
  padding: 2rem 2rem 2.4rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  scrollbar-gutter: stable;
  border-radius: 28px;
  transform: translateY(18px) scale(0.99);
  opacity: 0.98;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.detail-page.open .detail-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.detail-page.mode-sheet .detail-card {
  width: min(540px, calc(100vw - 0.75rem));
  max-height: 100vh;
  height: 100vh;
  padding: 1rem 1rem 1.8rem;
  border-radius: 32px 0 0 32px;
  border-left: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at var(--detail-glow-x) var(--detail-glow-y), color-mix(in srgb, var(--focus) 20%, transparent), transparent 22%),
    radial-gradient(circle at 18% 112%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  box-shadow: -28px 0 64px rgba(2, 7, 16, 0.34);
  transform: translate3d(38px, 0, 0) scale(0.985);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  overflow-x: hidden;
}

.detail-page.open.mode-sheet .detail-card {
  transform: translate3d(0, 0, 0) scale(1);
}

.detail-page.mode-sheet .detail-card::before {
  inset: -20% auto auto -26%;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--focus) 12%, transparent), transparent);
  filter: blur(12px);
  opacity: 0.95;
  animation: detailAuroraFloat 12s ease-in-out infinite;
}

.detail-page.mode-sheet .detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, transparent 44%, rgba(255, 255, 255, 0.06) 50%, transparent 56%, transparent 100%);
  opacity: 0;
  transform: translateX(-125%);
}

.detail-page.open.mode-sheet .detail-card::after {
  animation: detailBeamSweep 1.35s cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.detail-page.mode-sheet .detail-card > * {
  position: relative;
  z-index: 1;
}

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.detail-close {
  min-height: 46px;
  padding: 0.55rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--chip-text);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.detail-kicker {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-hero {
  display: grid;
  gap: 1rem;
}

#detail-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.8rem, 1.22rem + 1.8vw, 2.8rem);
  text-wrap: balance;
}

#detail-body {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: var(--font-size-2);
  line-height: 1.74;
}

.detail-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

footer {
  margin-bottom: var(--space-8);
}

.bento-main {
  position: relative;
  isolation: isolate;
  width: var(--max-width);
  margin: 0 auto var(--space-8);
  padding-top: calc(var(--space-9) + var(--space-7));
}

.bento-main::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border-radius: var(--radius-xl);
  pointer-events: none;
  background:
    linear-gradient(rgba(194, 216, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 216, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(126, 157, 214, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 157, 214, 0.045) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
  opacity: 0.28;
  z-index: 0;
}

.bento-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.bento-grid > .section,
.bento-grid > footer.section {
  width: auto;
  margin: 0;
  height: 100%;
}

.bento-card {
  padding: clamp(1.35rem, 1rem + 0.9vw, 2rem);
}

.bento-profil {
  --primary: var(--accent-profile);
  --focus: #c9fff2;
  --primary-soft: color-mix(in srgb, var(--accent-profile) 17%, transparent);
}

.bento-competences {
  --primary: var(--accent-skills);
  --focus: #ffe3a6;
  --primary-soft: color-mix(in srgb, var(--accent-skills) 16%, transparent);
}

.bento-experience {
  --primary: var(--accent-experience);
  --focus: #b9dcff;
  --primary-soft: color-mix(in srgb, var(--accent-experience) 15%, transparent);
}

.bento-projets {
  --primary: var(--accent-projects);
  --focus: #edc6ff;
  --primary-soft: color-mix(in srgb, var(--accent-projects) 15%, transparent);
}

.bento-formations {
  --primary: var(--accent-formation);
  --focus: #ffc6bd;
  --primary-soft: color-mix(in srgb, var(--accent-formation) 15%, transparent);
}

.bento-contact {
  --primary: var(--accent-contact);
  --focus: #8ee7cf;
  --primary-soft: color-mix(in srgb, var(--accent-contact) 15%, transparent);
}

.bento-card::after,
.profile-summary,
.projects-toolbar,
.projects-viewer,
.contact-panel {
  border-color: color-mix(in srgb, var(--primary) 18%, var(--border));
}

.bento-hero-card {
  grid-column: 1 / -1;
  grid-row: 1;
}

.bento-hero-card.hero-content {
  margin-top: 0;
}

.profile-content {
  display: grid;
  gap: 1.35rem;
}

.profile-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.profile-summary {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 1.35rem 1.45rem;
  border: 1px solid rgba(216, 216, 212, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 10px 24px rgba(3, 8, 17, 0.12);
}

.profile-summary::before {
  display: none;
  content: none;
}

.profile-kicker,
.profile-focus-title {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-lead {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 500;
  text-wrap: pretty;
  max-width: none;
}

.profile-support {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 500;
  max-width: none;
}

.profile-disclosure {
  display: grid;
  gap: 1.3rem;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: start;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--border-strong) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 42%, rgba(255, 255, 255, 0.02));
  color: var(--chip-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.profile-toggle::-webkit-details-marker {
  display: none;
}

.profile-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.22s ease;
}

.profile-disclosure[open] .profile-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.profile-toggle:hover,
.profile-toggle:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--primary-soft) 64%, rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
}

.profile-toggle:focus-visible {
  outline: none;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.85rem;
  padding-top: 0.4rem;
}

.profile-summary-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(216, 216, 212, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.profile-summary-item::before {
  display: none;
  content: none;
}

.profile-summary-label {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(216, 216, 212, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-summary-value {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.66;
}

.profile-focus {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.15rem;
}

.profile-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-focus-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--border-strong) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 58%, rgba(255, 255, 255, 0.02));
  color: var(--chip-text);
  font-size: 0.9rem;
  line-height: 1.2;
}

.bento-competences .skill-chip {
  min-height: 2.75rem;
  height: auto;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--border-strong) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-soft) 58%, rgba(255, 255, 255, 0.02));
  color: var(--chip-text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.profile-highlight {
  position: relative;
  min-height: 100%;
  padding: 1rem 1.05rem 1.12rem;
  border: 1px solid rgba(216, 216, 212, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: default;
  user-select: text;
}

.profile-highlight::before {
  display: none;
  content: none;
}

.profile-highlight-label {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.profile-highlight-value {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.66;
}

.bento-profil {
  grid-column: 1 / 8;
  grid-row: 2;
  align-self: start;
}

.bento-grid > .bento-profil {
  height: auto;
}

.bento-projets {
  grid-column: 8 / 13;
  grid-row: 2;
}

.bento-experience {
  grid-column: 1 / 8;
  grid-row: 3 / span 2;
}

.bento-competences {
  grid-column: 8 / 13;
  grid-row: 3;
}

.bento-formations {
  grid-column: 8 / 13;
  grid-row: 4;
}

.bento-contact {
  grid-column: 1 / 13;
  grid-row: 5;
}

.bento-contact {
  align-self: stretch;
}

.bento-contact {
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .intro,
.hero-content .cta-row {
  grid-column: 1;
}

.hero-content .quick-meta {
  grid-column: 2;
}

.bento-projets .project-grid {
  grid-template-columns: 1fr;
  margin-top: var(--space-4);
}

.bento-formations .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-4);
}

.bento-formations .project-card:last-child {
  grid-column: 1 / -1;
}

.bento-formations .project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

.bento-formations .project-card h3 {
  min-height: 3.05rem;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.bento-competences .skill-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bento-contact .cta-row {
  margin-top: 1.35rem;
  gap: 0.8rem;
  align-items: stretch;
}

.bento-contact .btn.primary {
  min-width: 14rem;
}

.bento-contact .btn.secondary {
  min-width: 11rem;
}

.bento-contact .section-head {
  min-height: auto;
  margin-bottom: 0;
}

.bento-contact .section-head h2 {
  margin: 0;
}

@media (max-width: 1120px) {
  .bento-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .bento-profil,
  .bento-experience,
  .bento-contact {
    grid-column: span 8;
    grid-row: auto;
  }

  .bento-projets,
  .bento-competences,
  .bento-formations {
    grid-column: span 4;
    grid-row: auto;
  }

  .hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-content h1 {
    max-width: 12ch;
  }

  .hero-content .quick-meta {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-overview {
    grid-template-columns: 1fr;
  }

  .profile-summary-grid {
    grid-template-columns: 1fr;
  }

  .availability-grid,
  .contact-meta {
    grid-template-columns: 1fr;
  }

  .contact-merged {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 920px) {
  .bento-main {
    padding-top: calc(var(--space-8) + var(--space-8));
  }

  .top-nav {
    padding: 0.85rem;
    border-radius: 28px;
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav-actions {
    gap: 0.5rem;
    padding-left: 0.65rem;
  }

  .timeline-shell {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .availability-tags,
  .bento-contact .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bento-contact .btn.primary,
  .bento-contact .btn.secondary {
    width: 100%;
    min-width: 0;
  }

  .bento-contact .section-head {
    min-height: auto;
  }

  .menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid rgba(216, 216, 212, 0.22);
    border-radius: 24px;
    background: rgba(10, 15, 26, 0.96);
    backdrop-filter: blur(18px) saturate(110%);
    box-shadow: 0 20px 44px rgba(3, 8, 17, 0.34);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.24s ease, opacity 0.24s ease;
  }

  .menu.open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
  }

  .menu a {
    justify-content: flex-start;
    width: 100%;
  }

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

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

  .bento-hero-card,
  .bento-profil,
  .bento-experience,
  .bento-projets,
  .bento-competences,
  .bento-formations,
  .bento-contact {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-content .quick-meta,
  .bento-competences .skill-cloud,
  .bento-formations .project-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
  }

  .filters {
    width: 100%;
    border-radius: 26px;
  }

  #projets .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.7rem;
    width: 100%;
    border-radius: 24px;
  }

  #projets .filters .filter-btn {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
  }

  #projets .projects-viewer__bar {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0;
  }

  #projets .projects-viewer__pagination {
    width: 100%;
    justify-content: flex-start;
  }

  #projets .projects-toolbar__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  #projets .filter-status {
    padding: 0.75rem 0.9rem;
    white-space: normal;
  }

  .profile-highlights {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.2rem;
  }

  .timeline::before,
  .timeline::after {
    left: 0.16rem;
  }

  .timeline-item::before {
    left: -1.04rem;
  }

  .timeline-item__year {
    position: static;
    margin: 1rem 1rem 0;
    justify-self: start;
  }

  .item-toggle {
    padding-top: 0.75rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 640px) {
  .top-nav {
    top: var(--space-2);
    width: min(100vw - 1rem, 100%);
  }

  .top-nav-actions {
    gap: 0.4rem;
    padding-left: 0.5rem;
  }

  .nav-contact-cta {
    padding-inline: 0.8rem;
    font-size: 0.92rem;
  }

  .hero-content,
  .section,
  footer.section,
  .bento-card {
    padding: 1.1rem;
  }

  .section.section-open,
  footer.section.section-open {
    padding: 0;
  }

  .hero-content {
    border-radius: var(--radius-card);
  }

  .eyebrow {
    margin-bottom: 0.8rem;
  }

  .intro {
    margin-top: 1rem;
    font-size: 1.02rem;
  }

  .cta-row,
  .skill-cloud,
  .filters {
    width: 100%;
  }

  #projets .projects-toolbar__actions,
  #projets .filter-status {
    width: 100%;
  }

  #projets .projects-toolbar {
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 22px;
  }

  #projets .projects-intro {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .cta-row > *,
  .skill-cloud > *,
  .filters > * {
    flex: 1 1 auto;
  }

  #projets .filters {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 20px;
  }

  #projets .filters > * {
    flex: initial;
  }

  #projets .filters .filter-btn {
    min-height: 3rem;
    padding-inline: 0.95rem;
    border-radius: 18px;
  }

  #projets .projects-viewer {
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 22px;
  }

  #projets .projects-viewer__bar {
    gap: 0.65rem;
  }

  #projets .projects-viewer__nav {
    flex: 1 1 calc(50% - 0.35rem);
    justify-content: center;
  }

  #projets .projects-viewer__position {
    width: 100%;
    order: -1;
  }

  #projets .projects-viewer__pagination {
    justify-content: flex-start;
  }

  #projets .filter-btn__count {
    min-width: 1.65rem;
    height: 1.65rem;
    font-size: 0.75rem;
  }

  #projets .filter-status {
    padding: 0.7rem 0.85rem;
    border-radius: 18px;
    font-size: 0.88rem;
  }

  #projets .project-card {
    padding: 1.2rem;
    gap: 0.9rem;
  }

  #projets .project-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    padding-left: 0.95rem;
  }

  .timeline::before {
    left: 0.12rem;
  }

  .timeline-item::after {
    left: -0.88rem;
  }

  .item-toggle {
    grid-template-columns: 1fr;
  }

  .item-toggle span:last-child {
    white-space: normal;
  }

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

  .detail-card {
    width: calc(100vw - 1rem);
    padding: 1.25rem 1.1rem 1.5rem;
  }

  .detail-page.mode-sheet .detail-card {
    width: calc(100vw - 0.3rem);
    border-radius: 22px 0 0 22px;
  }

  .detail-topbar {
    align-items: flex-start;
  }

  .detail-page.mode-sheet .detail-slots {
    grid-template-columns: 1fr;
  }

  .detail-page.mode-sheet .detail-hero {
    padding: 1rem;
  }

  .detail-close {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  body.js-enabled .reveal,
  body.js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .motion-fade-up,
  body.js-enabled .motion-sequence .motion-fade-up,
  .motion-float-soft,
  .motion-glow-soft,
  .detail-page.mode-sheet .detail-topbar,
  .detail-page.mode-sheet .detail-hero,
  .detail-page.mode-sheet .detail-slot {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .cursor-halo,
  .cursor-dot {
    display: none !important;
  }
}

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

  /* Mockup d'apercu = decoratif : inutile a l'impression (les facts texte restent) */
  .project-card__preview { display: none !important; }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  body {
    overflow: visible !important;
    line-height: 1.42;
    font-family: "Satoshi", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 10.5pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-bg,
  .top-nav,
  .filters,
  .timeline-nav,
  .scroll-progress,
  .detail-page,
  .skip-link,
  .menu-toggle,
  .hero-photo-card,
  #print-cv,
  #copy-email,
  .hero-content .cta-row {
    display: none !important;
  }

  .bento-main,
  .bento-grid,
  .timeline-shell {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .hero,
  .section,
  footer.section,
  .hero-content,
  .timeline-item,
  .project-card,
  .detail-card {
    width: 100% !important;
    margin: 0 0 6mm !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .hero-content::before,
  .hero-content::after,
  .section::before,
  footer.section::before,
  .timeline::after,
  .timeline-item::before,
  .timeline-item::after,
  .project-card::before,
  .detail-card::before,
  .timeline::before,
  .bento-main::before {
    display: none !important;
    content: none !important;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  span,
  button {
    color: #000 !important;
  }

  h1,
  h2,
  h3 {
    font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif !important;
    break-after: avoid;
  }

  h1 {
    max-width: none !important;
    margin: 0 0 3mm !important;
    font-size: 24pt !important;
    line-height: 1.05 !important;
  }

  h2 {
    margin: 0 0 2.5mm !important;
    font-size: 14pt !important;
  }

  h3 {
    margin: 0 0 1.5mm !important;
    font-size: 11.5pt !important;
  }

  p,
  li,
  a,
  button,
  .meta-chip,
  .skill-chip,
  .interest-tag,
  .contact-link {
    font-size: 10.2pt !important;
    line-height: 1.42 !important;
    text-align: left !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }

  .eyebrow,
  .detail-kicker,
  .project-card .tags {
    color: #444 !important;
    font-size: 8pt !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
  }

  .intro,
  .item-content,
  .project-card p,
  .section p,
  footer p,
  .interactive-item p,
  .interactive-item li,
  .item-toggle span:last-child {
    color: #111 !important;
  }

  .hero-content,
  .project-grid,
  .bento-formations .project-grid,
  .bento-competences .skill-cloud,
  .hero-content .quick-meta,
  .bento-contact .cta-row {
    display: block !important;
  }

  .hero-content {
    min-height: auto !important;
  }

  .hero-content .quick-meta,
  .skill-cloud {
    margin: 3mm 0 0 !important;
    padding: 0 !important;
  }

  .hero-content .quick-meta li {
    list-style: none !important;
    margin: 0 0 1.5mm !important;
    padding: 0 !important;
  }

  .meta-chip,
  .skill-chip,
  .interest-tag,
  .contact-link,
  .bento-contact .cta-row a,
  .item-toggle {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .section-head {
    display: block !important;
    margin-bottom: 2.5mm !important;
  }

  .timeline {
    display: block !important;
    padding-left: 0 !important;
  }

  .timeline-item,
  .project-card,
  .bento-interets,
  .bento-formations,
  .bento-competences,
  .bento-projets,
  .bento-contact {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .item-toggle {
    min-height: auto !important;
    padding: 0 0 1.5mm !important;
  }

  .item-toggle span:first-child {
    font-weight: 700 !important;
  }

  .item-toggle span:last-child {
    display: block !important;
    margin-top: 0.5mm !important;
    white-space: normal !important;
    font-weight: 500 !important;
  }

  .item-content {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 2mm !important;
  }

  .item-content ul {
    margin: 0 !important;
  }

  .project-card {
    margin-bottom: 3mm !important;
  }

  .project-card.hidden {
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
    pointer-events: auto !important;
  }

  .project-card[hidden] {
    display: block !important;
  }

  .bento-contact .cta-row {
    margin-top: 2mm !important;
  }

  .bento-contact .cta-row a {
    margin: 0 0 1.5mm !important;
    text-decoration: none !important;
  }

  .bento-contact .cta-row a[href^="tel:"]::after,
  .bento-contact .cta-row a[href*="linkedin.com"]::after {
    content: " : " attr(href);
    color: #111 !important;
    font-weight: 400;
  }

  a,
  .contact-link {
    text-decoration: none !important;
  }

  .reveal,
  body.js-enabled .reveal,
  body.js-enabled .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}




.skill-chip-centered {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 190px);
}


.hero-photo-card {
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
  align-self: center;
  width: 100%;
  margin: 0;
}

.hero-photo-frame {
  position: relative;
  padding: 0.42rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 60%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(3, 8, 17, 0.14);
  backdrop-filter: blur(12px);
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0.24rem;
  border-radius: 20px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.hero-photo-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  background:
    linear-gradient(180deg, rgba(14, 24, 42, 0.82), rgba(7, 15, 30, 0.98));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo-image {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-photo-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.03) 0%, rgba(6, 10, 18, 0.12) 56%, rgba(6, 10, 18, 0.34) 100%);
}

.hero-photo-image::after {
  content: "";
  position: absolute;
  inset: auto 12% 10%;
  height: 26%;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent), transparent 68%);
  filter: blur(14px);
}

.hero-photo-visual span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 27, 0.7);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-photo-card figcaption {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.9rem;
  padding: 0 0.35rem;
  text-align: center;
  justify-items: center;
}

.hero-photo-card figcaption strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.hero-photo-card figcaption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.detail-slot {
  position: relative;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}

.detail-slot::before {
  display: none;
  content: none;
}

.detail-slot-label {
  margin: 0 0 0.7rem;
  padding-top: 0.7rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-slot-value {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
}

.detail-page.mode-sheet .detail-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 0.25rem;
}

.detail-page.mode-sheet .detail-card {
  padding-bottom: 2rem;
}

.detail-page.mode-sheet .detail-topbar {
  position: sticky;
  top: -1rem;
  z-index: 3;
  margin: -1rem -1rem 0;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.96), rgba(10, 15, 26, 0.78) 78%, rgba(10, 15, 26, 0));
  backdrop-filter: blur(16px);
}

.detail-page.mode-sheet .detail-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.detail-page.mode-sheet .detail-hero {
  position: relative;
  gap: 1.25rem;
  padding: 0.35rem 0 0.4rem;
  isolation: isolate;
}

.detail-page.mode-sheet #detail-title {
  max-width: none;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3.15rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: pretty;
}

.detail-page.mode-sheet #detail-body {
  max-width: none;
  max-width: 26ch;
  padding-left: 0;
  border-left: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.08rem);
  line-height: 1.78;
}

.detail-page.mode-sheet .detail-hero::before {
  content: "";
  position: absolute;
  inset: -2rem -1rem auto auto;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--focus) 18%, transparent), transparent);
  filter: blur(18px);
  opacity: 0.9;
  z-index: -1;
  animation: detailGlowDrift 10s ease-in-out infinite;
}

.detail-page.mode-sheet .detail-hero::after {
  display: none;
  content: none;
}

.detail-page.mode-sheet #detail-slot-context-wrap,
.detail-page.mode-sheet #detail-slot-objectives-wrap,
.detail-page.mode-sheet #detail-slot-deliverables-wrap,
.detail-page.mode-sheet #detail-slot-impact-wrap {
  grid-column: 1 / -1;
}

.detail-page.mode-sheet #detail-slot-impact-wrap {
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--primary) 2%, transparent)),
    rgba(255, 255, 255, 0.02);
}

.detail-page.mode-sheet #detail-slot-impact-wrap::before {
  display: none;
  content: none;
}

.detail-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(216, 216, 212, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #eef3fc;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.detail-page.mode-sheet .detail-topbar,
.detail-page.mode-sheet .detail-hero,
.detail-page.mode-sheet .detail-slot {
  opacity: 0;
  transform: translateY(18px);
}

.detail-page.open.mode-sheet .detail-topbar,
.detail-page.open.mode-sheet .detail-hero,
.detail-page.open.mode-sheet .detail-slot {
  opacity: 1;
  transform: translateY(0);
}

.detail-page.mode-sheet .detail-topbar {
  transition: opacity 0.36s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-page.mode-sheet .detail-hero {
  transition: opacity 0.42s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-page.mode-sheet .detail-slot {
  --detail-slot-offset-x: 0px;
  --detail-slot-offset-y: 18px;
  transition:
    opacity 0.38s ease,
    transform 0.74s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease,
    background-color 0.24s ease,
    box-shadow 0.24s ease;
  transform-origin: top center;
  will-change: transform, opacity;
  transform: translate3d(var(--detail-slot-offset-x), var(--detail-slot-offset-y), 0) rotateX(7deg);
}

.detail-page.open.mode-sheet .detail-topbar {
  transition-delay: 80ms;
}

.detail-page.open.mode-sheet .detail-hero {
  transition-delay: 140ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(1) {
  transition-delay: 180ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(2) {
  transition-delay: 230ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(3) {
  transition-delay: 280ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(4) {
  transition-delay: 330ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(5) {
  transition-delay: 380ms;
}

.detail-page.open.mode-sheet .detail-slot:nth-child(6) {
  transition-delay: 430ms;
}

.detail-page.mode-sheet .detail-slot:nth-child(odd) {
  --detail-slot-offset-x: -12px;
  --detail-slot-offset-y: 20px;
}

.detail-page.mode-sheet .detail-slot:nth-child(even) {
  --detail-slot-offset-x: 12px;
  --detail-slot-offset-y: 24px;
}

.detail-page.open.mode-sheet .detail-slot {
  transform: translate3d(0, 0, 0) rotateX(0deg);
}

.detail-page.mode-sheet .detail-slot:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(222, 221, 216, 0.24);
  box-shadow: 0 20px 40px rgba(3, 8, 17, 0.22);
}

.detail-page.mode-sheet .detail-chip {
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.detail-page.mode-sheet .detail-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(216, 216, 212, 0.24);
}

.detail-card::-webkit-scrollbar {
  width: 10px;
}

.detail-card::-webkit-scrollbar-track {
  background: transparent;
}

.detail-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(216, 216, 212, 0.22);
  background-clip: padding-box;
}

@keyframes detailGlowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate3d(-0.6rem, 0.8rem, 0) scale(1.06);
    opacity: 1;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
}

@keyframes detailAuroraFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(1rem, 1.4rem, 0) scale(1.1);
    opacity: 0.95;
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
}

@keyframes detailBeamSweep {
  0% {
    opacity: 0;
    transform: translateX(-125%);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(125%);
  }
}

@keyframes detailBackdropPulse {
  0% {
    opacity: 0.96;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.96;
  }
}







/* --- CV fix: align carousel project card content with the nav controls (no nested-card inset) --- */
#projets .projects-viewer .project-card {
  border: none;
  background: none;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}
#projets .projects-viewer .project-card::before,
#projets .projects-viewer .project-card::after {
  display: none;
  content: none;
}
/* --- CV rework: balanced 2-column bento (independent stacks, no fragile spans) --- */
.bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bento-columns {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.bento-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.bento-col--main { flex: 7 1 0; }
.bento-col--side { flex: 5 1 0; }
.bento-col > .section { width: auto; margin: 0; height: auto; }
@media (max-width: 900px) {
  .bento-columns { flex-direction: column; }
  .bento-col--main, .bento-col--side { flex: 1 1 auto; width: 100%; }
}
/* --- CV rework: stretch left column so Experiences fills, bottoms aligned --- */
.bento-columns { align-items: stretch; }
.bento-col--main > .bento-experience { flex: 1 1 auto; }
@media (max-width: 900px) {
  .bento-col--main > .bento-experience { flex: 0 1 auto; }
}
/* --- CV rework: Experiences timeline — full width, no nested scroll, no redundant nav --- */
.timeline-nav { display: none !important; }
.timeline-shell { display: block; }
.timeline {
  max-height: none;
  overflow: visible;
  padding-left: 0;
  padding-right: 0;
}
.timeline-item__year { display: none; }
/* Cards d'experience flush avec le titre H2 : on retire le rail + les pastilles
   (redondants avec le style "carte bordee") qui creaient un retrait de 28px. */
.timeline::before,
.timeline::after,
.timeline-item::before { display: none !important; content: none !important; }
/* --- CV rework: robust column balance (shorter column's last card fills) --- */
.bento-col > .section:last-child { flex: 1 1 auto; }
@media (max-width: 900px) {
  .bento-col > .section:last-child { flex: 0 1 auto; }
}
/* --- CV rework: merged compact Disponibilite & contact --- */
.contact-merged--compact {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-merged--compact .availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.contact-merged--compact .availability-item {
  padding: 0.85rem 1rem;
}
.contact-merged--compact .contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-top: 0.25rem;
}
.contact-merged--compact .cta-row {
  margin-top: 0;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .contact-merged--compact .availability-grid { grid-template-columns: 1fr; }
  .contact-merged--compact .contact-bar { flex-direction: column; align-items: flex-start; }
}
/* --- CV rework: compact status chips (auto width) --- */
.contact-merged--compact .availability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-merged--compact .availability-tags .interest-tag {
  width: auto;
  flex: 0 0 auto;
}
/* --- CV rework: align email vertically with CTA buttons --- */
.contact-merged--compact .contact-bar .contact-link {
  margin: 0;
}
/* --- CV rework: flatten fact items so text aligns at section edge --- */
.contact-merged--compact .availability-item {
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.contact-merged--compact .availability-item::before,
.contact-merged--compact .availability-item::after {
  display: none;
  content: none;
}
/* --- CV rework: align Contact card content with other bento cards --- */
#contact.bento-contact {
  padding: clamp(1.35rem, 1rem + 0.9vw, 2rem);
}
/* --- CV rework: studio (Flowdee) link in contact --- */
.contact-merged--compact .contact-studio {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.contact-merged--compact .contact-studio a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.contact-merged--compact .contact-studio a:hover { text-decoration: underline; }
/* --- CV rework: coherent contact (no residual min-height, grouped identity) --- */
.contact-merged--compact .availability-item { min-height: 0; }
.contact-merged--compact .contact-identity {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.contact-merged--compact .contact-identity .contact-studio { margin: 0; }
/* --- CV: phone in contact identity --- */
.contact-merged--compact .contact-identity .contact-phone {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.contact-merged--compact .contact-identity .contact-phone:hover { color: var(--primary); }
/* --- CV: balanced hero (text grouped, centered vs photo) --- */
.hero-content { align-items: center; align-content: center; }
.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.7rem + 0.8vw, 1.5rem);
}
.hero-text .eyebrow { margin-bottom: 0; }
.hero-text .intro { margin-top: 0; }
.hero-text .cta-row { margin-top: clamp(0.3rem, 0.1rem + 0.4vw, 0.8rem); }
.hero-photo-card { grid-row: auto; }
/* ============================================================
   CV — Polish micro-interactions (fluidite + ergonomie)
   Auto-desactive par le bloc @media (prefers-reduced-motion).
   ============================================================ */

/* 1. Courbe d'easing premium homogene */
.btn, .btn.primary, .btn.secondary, .timeline-item, .project-card,
.interactive-item, .contact-link, .contact-phone, .menu a,
.item-toggle, .detail-close, .project-card__cta {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Survols plus vivants (le lift des boutons primaires existe deja) */
.btn.secondary:hover { transform: translateY(-2px); }
.timeline-item:hover,
.project-card:hover { transform: translateY(-3px); }

/* 3. Retour tactile au clic (place apres les :hover pour gagner pendant l'appui) */
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.09s; }
.timeline-item:active,
.project-card:active,
.contact-link:active { transform: scale(0.985); transition-duration: 0.09s; }

/* Tags "Terrains d'intervention" : strictement fixes, aucune animation */
.profile-focus-chip,
.profile-focus-chip:hover,
.profile-focus-chip:active,
.profile-focus-chip:focus,
.profile-focus-chip:focus-visible {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* ============================================================
   Réalisations — visualiseur de projet (apercu + faits cles)
   ============================================================ */
#projets .project-card__eyebrow { display: block; }

.project-card__preview {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(216, 216, 212, 0.18);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px rgba(3, 8, 17, 0.18);
}
.project-card__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(216, 216, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 216, 212, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.pcp-chrome {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(216, 216, 212, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.pcp-chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.pcp-chrome span:first-child { background: color-mix(in srgb, var(--primary) 72%, white); }
.pcp-canvas {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
  padding: 0.95rem 1rem 1.05rem;
}
.pcp-bar {
  height: 0.7rem;
  width: 55%;
  border-radius: 6px;
  background: rgba(216, 216, 212, 0.12);
}
.pcp-bar--accent {
  width: 44%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 82%, transparent), color-mix(in srgb, var(--focus) 55%, transparent));
}
.pcp-rows { display: grid; gap: 0.45rem; }
.pcp-line { height: 0.55rem; border-radius: 5px; background: rgba(216, 216, 212, 0.1); }
.pcp-line--short { width: 68%; }
.pcp-block {
  height: 2.5rem;
  border-radius: 8px;
  border: 1px dashed rgba(216, 216, 212, 0.2);
  background: rgba(255, 255, 255, 0.022);
}

.project-card__facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.project-card__facts > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(216, 216, 212, 0.08);
}
.project-card__facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.project-card__facts dt {
  margin: 0;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-card__facts dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   Réalisations — réorganisation propre (toolbar + carrousel)
   ============================================================ */

/* Rythme vertical uniforme dans la section */
#projets .projects-toolbar { gap: 0.85rem; }
#projets .projects-viewer { margin-top: 1rem; }

/* Filtres : grille 2×2 symétrique pleine largeur (fini le wrap bancal) */
#projets .projects-toolbar__actions { display: block; }
#projets .filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
#projets .filters .filter-btn {
  width: 100%;
  justify-content: space-between;
  padding-inline: 1.05rem;
}

/* Statut redondant avec les compteurs : gardé pour lecteurs d'écran uniquement */
#projets .filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Navigation du carrousel : pied de pagination (Précédent · 1/3 + points · Suivant) */
#projets .projects-viewer__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 2;
  margin-top: 0.15rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(216, 216, 212, 0.12);
}
#projets .project-grid { order: 1; }
#projets .projects-viewer__position { order: 2; margin-left: auto; }
#projets .projects-viewer__pagination { order: 3; margin-right: auto; flex-wrap: nowrap; }
#projets .projects-viewer__nav:first-child { order: 1; }
#projets .projects-viewer__nav:last-child { order: 4; }

/* ============================================================
   Bento en rangées alignées (coutures symétriques)
   R1 : Profil | Compétences — R2 : Expériences | Réalisations + Formations
   ============================================================ */
.bento-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bento-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1rem;
  align-items: stretch;
}
.bento-row > .section { width: auto; margin: 0; height: auto; min-width: 0; }
/* Neutralise les placements herites de l'ancienne grille 12 colonnes */
.bento-row > * { grid-row: 1; grid-column: auto; }
.bento-row > :first-child { grid-column: 1; }
.bento-row > :last-child { grid-column: 2; }
.bento-row--wide { grid-template-columns: 1fr; }
.bento-row--wide > :only-child { grid-column: 1; }
.bento-stack > .section { grid-area: auto; }
.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.bento-stack > .section { width: auto; margin: 0; }

/* Cartes étirées : répartir le contenu plutôt que laisser un vide en bas */
.bento-competences {
  display: grid;
  grid-template-rows: auto 1fr;
}
.bento-competences .skill-cloud { align-content: space-evenly; }
.bento-experience {
  display: grid;
  grid-template-rows: auto 1fr;
}
.bento-experience .timeline {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-stack > .bento-formations { flex: 1 1 auto; }

@media (max-width: 900px) {
  .bento-row { grid-template-columns: 1fr; }
  .bento-row > *,
  .bento-row > :first-child,
  .bento-row > :last-child { grid-column: 1; grid-row: auto; }
}

/* ============================================================
   Profil + expertises — une seule hiérarchie, sans redondance
   ============================================================ */
.profile-expertise-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.82fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 2.2vw, 2.5rem);
  align-items: start;
}
.profile-intro {
  display: grid;
  gap: 1rem;
  padding-right: clamp(1.25rem, 2vw, 2rem);
  border-right: 2px solid var(--border);
}
.profile-intro .profile-support {
  color: var(--text);
  font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.2rem);
  line-height: 1.6;
}
.profile-promise {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.profile-promise strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-signature {
  margin: 0;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
}

.expertise-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--border);
}
.bento-profil .expertise-row {
  box-sizing: border-box;
  appearance: none;
  width: 100%;
  height: auto;
  min-height: 6.5rem;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) minmax(8.5rem, 0.42fr);
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 0.75rem;
  border: 0;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: normal;
  text-align: left;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.2s ease;
}
.expertise-row__index {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.expertise-row__content {
  display: grid;
  gap: 0.3rem;
}
.expertise-row__content strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  text-wrap: balance;
}
.expertise-row__content > span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}
.expertise-row__result {
  display: block;
  max-width: 9rem;
  justify-self: end;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bento-profil .expertise-row:hover,
.bento-profil .expertise-row:focus-visible,
.bento-profil .expertise-row.active {
  padding-inline: 1rem 0.5rem;
  background: var(--primary);
  color: #fff;
}
.bento-profil .expertise-row:hover *,
.bento-profil .expertise-row:focus-visible *,
.bento-profil .expertise-row.active * {
  color: inherit;
}

@media (max-width: 900px) {
  .profile-expertise-layout { grid-template-columns: 1fr; }
  .profile-intro {
    padding-right: 0;
    padding-bottom: 1.25rem;
    border-right: 0;
    border-bottom: 2px solid var(--border);
  }
  .bento-profil .expertise-row {
    grid-template-columns: 2rem minmax(0, 1fr);
    min-height: 5.5rem;
  }
  .expertise-row__result {
    grid-column: 2;
    justify-self: start;
    max-width: none;
    text-align: left;
  }
  .bento-formations .project-card h3 { min-height: 0; }
}

/* --- CV contact: scannable action panel --- */
.contact-merged--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-merged--compact .availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
}

.contact-merged--compact .availability-item {
  min-height: 0;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-merged--compact .availability-label {
  margin-bottom: 0.55rem;
  color: var(--primary);
}

.contact-merged--compact .availability-value {
  font-size: clamp(0.96rem, 0.9rem + 0.18vw, 1.05rem);
  line-height: 1.5;
  color: var(--text);
}

.contact-merged--compact .contact-bar {
  display: grid;
  grid-template-columns: minmax(19rem, 0.9fr) minmax(18rem, 1fr);
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 28%),
    rgba(255, 255, 255, 0.022);
}

.contact-merged--compact .contact-identity {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.25rem 0.4rem;
}

.contact-merged--compact .contact-identity .contact-link {
  width: fit-content;
  margin: 0;
  font-size: clamp(1.45rem, 1.08rem + 1.1vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.contact-merged--compact .contact-identity .contact-phone {
  width: fit-content;
  font-size: 1.02rem;
  color: var(--text);
}

.contact-merged--compact .contact-studio {
  line-height: 1.55;
}

.contact-merged--compact .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-self: center;
  margin-top: 0;
}

.contact-merged--compact .cta-row .btn {
  width: auto;
  min-width: 0;
  min-height: 3.55rem;
  padding-inline: 1.2rem;
  white-space: nowrap;
  font-size: clamp(0.92rem, 0.86rem + 0.18vw, 1rem);
}

@media (max-width: 760px) {
  .contact-merged--compact .availability-grid,
  .contact-merged--compact .contact-bar,
  .contact-merged--compact .cta-row {
    grid-template-columns: 1fr;
  }

  .contact-merged--compact .contact-bar {
    padding: 0.85rem;
  }
}

/* ============================================================
   Chemin de lecture — numéros de séquence + état actif renforcé
   ============================================================ */
.bento-card .section-head h2[data-index]::before {
  content: attr(data-index) " / 03";
  display: block;
  order: -1;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  opacity: 0.9;
}

/* Nav : section active clairement éclairée (pas seulement au survol) */
.menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(216, 216, 212, 0.14);
  border: 1px solid rgba(216, 216, 212, 0.32);
  font-weight: 700;
}

/* ============================================================
   SKIN — Swiss editorial + néobrutalisme maîtrisé (papier + rouge #E4002B)
   Prime sur les règles héritées du thème sombre.
   ============================================================ */

/* Fond papier propre : on neutralise les halos/grilles pensés pour le sombre */
.page-bg { background: var(--bg) !important; }
.page-bg::before,
.page-bg::after { display: none !important; content: none !important; }

/* Angles vifs partout */
.section, footer.section, .timeline-item, .project-card, .detail-card,
.hero-photo-card, .hero-photo-frame, .btn, .filter-btn, .skill-chip, .meta-chip,
.profile-focus-chip, .interest-tag, .item-toggle, .top-nav, .menu a,
.availability-item, .project-card__preview, .profile-summary-item, .approach-pillar,
.detail-close, .contact-bar, .filters, .projects-viewer, .projects-viewer__nav,
.projects-viewer__dot, .filter-btn__count, .project-card__tags li {
  border-radius: 0 !important;
}

/* Cartes / panneaux : blanc, bordure encre épaisse, ombre dure décalée */
.section, footer.section, .project-card, .detail-card, .projects-viewer {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}

/* Timeline : chaque expérience = carte brutaliste (via ::after) */
.timeline-item::after {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
}
.timeline-item:hover::after,
.timeline-item:focus-within::after,
.timeline-item.is-active::after,
.timeline-item.open::after {
  border-color: var(--primary) !important;
  box-shadow: 8px 8px 0 var(--primary) !important;
  background: var(--surface) !important;
}

/* Sous-cartes internes : blanc + bordure encre (sans ombre pour ne pas surcharger) */
.approach-pillar, .profile-summary-item, .availability-item, .project-card__preview {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  box-shadow: none !important;
}

/* Boutons */
.btn {
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow-soft) !important;
  font-weight: 700 !important;
}
.btn.primary { background: var(--primary) !important; color: #fff !important; }
.btn.secondary { background: var(--surface) !important; color: var(--text) !important; }
.btn:hover { transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0 #111111 !important; }
.btn:active { transform: translate(0, 0) !important; box-shadow: 2px 2px 0 #111111 !important; }

/* Chips / tags / filtres : rectangulaires, bordure encre, fond blanc */
.skill-chip, .filter-btn, .meta-chip, .profile-focus-chip, .interest-tag,
.project-card__tags li {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
}
.skill-chip.active, .filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--border) !important;
}
.skill-chip:hover, .filter-btn:hover, .meta-chip:hover {
  background: var(--chip-bg-hover) !important;
}

/* Header : barre blanche, bordure encre, ombre dure */
.top-nav {
  background: var(--surface) !important;
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
}
.top-nav.scrolled { background: var(--surface) !important; }
.menu a { color: var(--text-muted) !important; border: 0 !important; background: transparent !important; }
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--primary) !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 700 !important;
}

/* Modale détail : voile sombre + carte papier */
.detail-page { background: rgba(17, 17, 17, 0.5) !important; }
.detail-card { background: var(--surface) !important; }

/* Titres : grotesque fort */
h1 { font-weight: 800 !important; }
.bento-card .section-head h2 { font-weight: 800 !important; }

/* Filet gauche des sous-cartes / colonnes en rouge accent */
.profile-summary-label { border-bottom-color: var(--accent-line-soft) !important; }

/* ============================================================
   Réalisations — hiérarchie et ergonomie du visualiseur
   Un seul conteneur, contenu prioritaire, navigation explicite.
   ============================================================ */
#projets .projects-viewer {
  padding: clamp(1rem, 0.8rem + 0.7vw, 1.4rem) !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#projets .projects-viewer .project-card {
  gap: 1rem;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

#projets .projects-viewer .project-card:hover,
#projets .projects-viewer .project-card:focus-visible {
  transform: none;
  box-shadow: none !important;
}

#projets .project-card__head {
  gap: 0.4rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--primary);
}

#projets .project-card__eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
}

#projets .project-card h3 {
  font-size: clamp(1.25rem, 1.12rem + 0.4vw, 1.55rem);
  line-height: 1.18;
  text-wrap: balance;
}

#projets .project-card__body {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  text-wrap: pretty;
}

#projets .project-card__facts {
  gap: 0;
  border-top: 2px solid var(--border);
}

#projets .project-card__facts > div {
  grid-template-columns: minmax(5.5rem, 0.26fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--accent-line-soft);
}

#projets .project-card__facts > div:last-child {
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border);
}

#projets .project-card__facts dt {
  padding-top: 0.1rem;
  color: var(--primary);
  font-weight: 800;
}

#projets .project-card__facts dd {
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#projets .project-card__tags {
  gap: 0.45rem;
}

#projets .project-card__tags li {
  min-height: 1.9rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.76rem;
}

#projets .project-card__footer {
  padding-top: 0;
}

#projets .project-card__cta {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 3px 3px 0 var(--border);
}

#projets .project-card__cta::after {
  content: "→";
  margin-left: 0.55rem;
  font-size: 1rem;
}

#projets .project-card:hover .project-card__cta,
#projets .project-card:focus-visible .project-card__cta {
  transform: translate(-1px, -1px);
  border-color: var(--border);
  background: var(--primary);
  box-shadow: 4px 4px 0 var(--border);
}

#projets .projects-viewer__bar {
  border-top: 2px solid var(--border);
}

#projets .projects-viewer__nav {
  min-height: 2.85rem;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

#projets .projects-viewer__nav:first-child::before {
  content: "←";
  margin-right: 0.45rem;
}

#projets .projects-viewer__nav:last-child::after {
  content: "→";
  margin-left: 0.45rem;
}

@media (max-width: 640px) {
  #projets .projects-viewer {
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1rem !important;
  }

  #projets .project-card__preview {
    display: none !important;
  }

  #projets .projects-viewer .project-card {
    gap: 1rem;
  }

  #projets .project-card__head {
    padding-left: 0.75rem;
  }

  #projets .project-card h3 {
    font-size: 1.35rem;
  }

  #projets .project-card__facts > div,
  #projets .project-card__facts > div:last-child {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.8rem 0;
  }

  #projets .project-card__facts dt {
    padding-top: 0;
  }

  #projets .project-card__footer {
    width: 100%;
  }

  #projets .project-card__cta {
    width: 100%;
    min-height: 3rem;
  }

  #projets .projects-viewer__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.65rem;
    width: 100%;
    padding-top: 1rem;
  }

  #projets .projects-viewer__nav:first-child {
    grid-column: 1;
    justify-self: stretch;
  }

  #projets .projects-viewer__position {
    grid-column: 2;
    width: auto;
    margin: 0;
    justify-self: center;
    order: initial;
  }

  #projets .projects-viewer__pagination {
    display: none;
  }

  #projets .projects-viewer__nav:last-child {
    grid-column: 3;
    justify-self: stretch;
  }

  #projets .projects-viewer__nav {
    min-width: 0;
    min-height: 3rem;
    padding-inline: 0.65rem;
    font-size: 0.82rem;
  }
}

/* Réalisations — barre de filtre compacte et statut visible */
#projets {
  gap: 1rem;
}

#projets .projects-toolbar {
  display: grid;
  gap: 0.7rem;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#projets .projects-intro {
  margin: 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

#projets .projects-toolbar__actions {
  display: grid;
  gap: 0.65rem;
}

#projets .filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

#projets .filters .filter-btn {
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: none;
  white-space: normal;
}

#projets .filters .filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 3px 3px 0 var(--border);
  transform: translate(-1px, -1px);
}

#projets .filters .filter-btn:hover:not(.active),
#projets .filters .filter-btn:focus-visible:not(.active) {
  background: var(--chip-bg-hover) !important;
  transform: translateY(-1px);
}

#projets .filter-btn__count {
  min-width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface)) !important;
  border: 0 !important;
  color: var(--text) !important;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

#projets .filter-btn.active .filter-btn__count {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

#projets .filter-status {
  position: static;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}

#projets .filter-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  background: var(--primary);
}

#projets .project-card__preview {
  display: none !important;
}

#projets .projects-viewer {
  margin-top: 0.25rem !important;
  padding-top: 0.5rem !important;
}

@media (max-width: 420px) {
  #projets .filters {
    grid-template-columns: 1fr;
  }
}

/* Réalisations — largeur pleine et adaptation à son conteneur */
.bento-row--linear {
  grid-template-columns: minmax(0, 1fr);
}

.bento-row--linear > :first-child,
.bento-row--linear > :last-child {
  grid-column: 1;
  grid-row: auto;
}

#projets {
  container-type: inline-size;
  min-width: 0;
}

#projets .projects-toolbar,
#projets .projects-toolbar__actions,
#projets .filters,
#projets .projects-viewer,
#projets .project-grid,
#projets .project-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

#projets .filters .filter-btn,
#projets .projects-viewer__nav,
#projets .project-card__cta {
  box-sizing: border-box;
}

#projets .project-card:focus {
  outline: 0;
}

#projets .project-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

#projets .projects-viewer__bar {
  margin-top: 1rem;
}

@container (min-width: 56rem) {
  #projets .filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #projets .projects-viewer .project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
    grid-template-areas:
      "head facts"
      "body facts"
      "tags facts"
      "footer facts";
    gap: 1rem clamp(2rem, 4cqi, 3.5rem);
    align-items: start;
  }

  #projets .project-card__head {
    grid-area: head;
  }

  #projets .project-card__body {
    grid-area: body;
  }

  #projets .project-card__facts {
    grid-area: facts;
    align-self: stretch;
    padding-left: clamp(1.25rem, 2.5cqi, 2rem);
    border-top: 0;
    border-left: 2px solid var(--border);
  }

  #projets .project-card__tags {
    grid-area: tags;
  }

  #projets .project-card__footer {
    grid-area: footer;
  }
}

@container (max-width: 34rem) {
  #projets .filters {
    grid-template-columns: 1fr;
  }

  #projets .project-card__facts > div,
  #projets .project-card__facts > div:last-child {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  #projets .projects-viewer__pagination {
    display: none;
  }
}

/* Détail des réalisations — fenêtre éditoriale compacte */
.detail-page.mode-sheet {
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.detail-page.mode-sheet .detail-backdrop {
  background: rgba(17, 17, 17, 0.66);
  backdrop-filter: blur(5px);
  animation: none;
}

.detail-page.mode-sheet .detail-card {
  container-type: inline-size;
  width: min(100%, 68rem);
  height: auto;
  max-height: min(92dvh, 56rem);
  padding: 0;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  border: 2px solid var(--border) !important;
  border-radius: 0;
  background: var(--surface) !important;
  box-shadow: 10px 10px 0 var(--border) !important;
  transform: translateY(1rem) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.detail-page.open.mode-sheet .detail-card {
  transform: translateY(0) scale(1);
}

.detail-page.mode-sheet .detail-card::before,
.detail-page.mode-sheet .detail-card::after,
.detail-page.mode-sheet .detail-hero::before,
.detail-page.mode-sheet .detail-hero::after {
  display: none;
  content: none;
  animation: none;
}

.detail-page.mode-sheet .detail-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0;
  padding: 0.9rem clamp(1rem, 2.5cqi, 1.6rem);
  border-bottom: 2px solid var(--border);
  background: var(--surface) !important;
  backdrop-filter: none;
}

.detail-page.mode-sheet .detail-kicker {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.detail-page.mode-sheet .detail-close {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem 0.55rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-page.mode-sheet .detail-close-icon {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

.detail-page.mode-sheet .detail-close:hover,
.detail-page.mode-sheet .detail-close:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: none;
}

.detail-page.mode-sheet .detail-close:hover .detail-close-icon,
.detail-page.mode-sheet .detail-close:focus-visible .detail-close-icon {
  background: #fff;
  color: var(--primary);
}

.detail-page.mode-sheet .detail-close:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.detail-page.mode-sheet .detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  align-items: end;
  gap: clamp(1.5rem, 4cqi, 3.5rem);
  margin: 0;
  padding: clamp(1.5rem, 4cqi, 3rem) clamp(1rem, 4cqi, 3rem);
  border-bottom: 2px solid var(--border);
  isolation: auto;
}

.detail-page.mode-sheet #detail-title {
  max-width: 13ch;
  font-size: clamp(2.15rem, 6.2cqi, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.detail-page.mode-sheet #detail-body {
  max-width: 40ch;
  padding: 0 0 0.2rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.55cqi, 1.1rem);
  line-height: 1.65;
}

.detail-page.mode-sheet .detail-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 clamp(1rem, 4cqi, 3rem) clamp(1.25rem, 3cqi, 2.25rem);
}

.detail-page.mode-sheet .detail-slot,
.detail-page.mode-sheet #detail-slot-context-wrap,
.detail-page.mode-sheet #detail-slot-role-wrap,
.detail-page.mode-sheet #detail-slot-objectives-wrap,
.detail-page.mode-sheet #detail-slot-deliverables-wrap,
.detail-page.mode-sheet #detail-slot-tools-wrap,
.detail-page.mode-sheet #detail-slot-impact-wrap {
  grid-column: auto;
  min-height: 0;
  padding: clamp(1rem, 2.2cqi, 1.5rem) clamp(0.75rem, 2.2cqi, 1.5rem);
  border: 0;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.detail-page.mode-sheet .detail-slot:nth-child(odd) {
  padding-left: 0;
  border-right: 1px solid var(--border) !important;
}

.detail-page.mode-sheet .detail-slot:nth-child(even) {
  padding-right: 0;
}

.detail-page.mode-sheet .detail-slot-label {
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.detail-page.mode-sheet .detail-slot-value {
  color: var(--text);
  font-size: clamp(0.92rem, 1.45cqi, 1rem);
  line-height: 1.6;
}

.detail-page.mode-sheet .detail-slot:hover {
  transform: none;
  border-color: var(--border);
  background: transparent;
  box-shadow: none;
}

.detail-page.mode-sheet .detail-tools-list {
  gap: 0.45rem;
}

.detail-page.mode-sheet .detail-chip {
  min-height: 1.9rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
}

.detail-page.mode-sheet .detail-chip:hover {
  transform: none;
  border-color: var(--primary);
  background: var(--chip-bg-hover);
}

@media (max-width: 720px) {
  .detail-page.mode-sheet {
    place-items: stretch;
    padding: 0;
  }

  .detail-page.mode-sheet .detail-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
  }

  .detail-page.mode-sheet .detail-topbar {
    padding: 0.7rem 0.85rem;
  }

  .detail-page.mode-sheet .detail-close {
    min-width: 2.75rem;
    padding: 0.45rem;
  }

  .detail-page.mode-sheet .detail-close > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .detail-page.mode-sheet .detail-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.9rem;
    padding: 1.25rem 1rem 1.4rem;
  }

  .detail-page.mode-sheet #detail-title {
    max-width: 15ch;
    font-size: clamp(2rem, 11vw, 3.15rem);
    line-height: 0.96;
  }

  .detail-page.mode-sheet #detail-body {
    max-width: 46ch;
    padding: 0;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .detail-page.mode-sheet .detail-slots {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.25rem;
  }

  .detail-page.mode-sheet .detail-slot,
  .detail-page.mode-sheet .detail-slot:nth-child(odd),
  .detail-page.mode-sheet .detail-slot:nth-child(even) {
    padding: 0.95rem 0;
    border-right: 0 !important;
  }
}

/* ============================================================
   Responsive consolidation — navigation + hero
   Prevents the portrait from creating an implicit grid column.
   ============================================================ */

@media (min-width: 701px) and (max-width: 1120px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 0.7fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    min-height: auto;
    align-items: center;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .hero-photo-card {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 22rem);
    max-width: none;
    justify-self: end;
  }

  .hero-content h1 {
    max-width: 11ch;
  }
}

@media (max-width: 920px) {
  .menu a {
    min-height: 48px;
  }

  .contact-merged--compact .contact-link,
  .contact-merged--compact .contact-phone,
  .contact-merged--compact .contact-studio a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  :root {
    --max-width: calc(100% - 1.5rem);
  }

  .top-nav {
    top: 0.5rem;
    width: calc(100% - 1rem);
    min-height: 4.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
  }

  .brand {
    min-width: 0;
    min-height: 44px;
    overflow: hidden;
    padding-inline: 0.2rem;
    font-size: clamp(0.84rem, 3.8vw, 0.98rem);
    text-overflow: ellipsis;
  }

  .top-nav-actions {
    padding-left: 0;
  }

  .nav-contact-cta {
    display: none;
  }

  .menu-toggle {
    min-width: 4.4rem;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--border);
    border-radius: 0;
    background: var(--primary);
    color: #fff;
    box-shadow: 4px 4px 0 var(--border);
    font-size: 0.92rem;
    font-weight: 800;
    transition:
      transform 0.16s ease,
      box-shadow 0.16s ease,
      background-color 0.16s ease,
      color 0.16s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    border-color: var(--border);
    background: var(--primary);
    color: #fff;
    box-shadow: 5px 5px 0 var(--border);
    transform: translate(-1px, -1px);
  }

  .menu-toggle:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
  }

  .menu-toggle:active,
  .menu-toggle[aria-expanded="true"] {
    border-color: var(--border);
    background: var(--primary);
    color: #fff;
    box-shadow: 2px 2px 0 var(--border);
    transform: translate(2px, 2px);
  }

  .menu {
    top: calc(100% + 0.5rem);
    gap: 0;
    padding: 0.45rem;
    border: 2px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: none;
  }

  .menu a {
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    color: var(--text) !important;
  }

  .menu a:hover,
  .menu a:focus-visible,
  .menu a[aria-current="page"] {
    background: var(--primary) !important;
    color: #fff !important;
  }

  .bento-main {
    padding-top: 6.25rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    gap: 1.15rem;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 13vw, 3.35rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .hero-content .intro {
    max-width: 32ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.58;
    text-wrap: pretty;
  }

  .hero-content .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
  }

  .hero-content .cta-row .btn,
  .hero-content .cta-row .btn.primary {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
  }

  .hero-photo-card {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .hero-photo-frame {
    width: 100%;
    padding: 0.35rem;
  }

  .hero-photo-visual {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hero-photo-image {
    background-position: center 18%;
  }

  .hero-photo-card figcaption {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.65rem;
    padding: 0;
    text-align: left;
  }

  .contact-merged--compact .contact-link,
  .contact-merged--compact .contact-phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .hero-content {
    padding: 1.1rem;
  }

  .hero-content h1 {
    font-size: clamp(2.45rem, 12.5vw, 3rem);
  }

  .hero-photo-visual {
    aspect-ratio: 3 / 2;
  }
}

/* ============================================================
   Réalisations — résumé sur la page, détail à la demande
   ============================================================ */

#projets .projects-viewer .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "body"
    "footer";
  gap: 1rem;
  align-items: start;
}

#projets .project-card__head {
  grid-area: head;
}

#projets .project-card__body {
  grid-area: body;
  margin: 0;
}

#projets .project-card__footer {
  grid-area: footer;
  width: auto;
  margin: 0;
  padding-top: 0.25rem;
  border: 0;
}

#projets .project-card__cta {
  appearance: none;
  width: fit-content;
  min-height: 48px;
  padding: 0.72rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 3px 3px 0 var(--border);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

#projets .project-card:hover .project-card__cta,
#projets .project-card:focus-visible .project-card__cta {
  transform: none;
  box-shadow: 3px 3px 0 var(--border);
}

#projets .project-card__cta:hover,
#projets .project-card__cta:focus-visible {
  transform: translate(-1px, -1px);
  background: var(--primary);
  box-shadow: 5px 5px 0 var(--border);
}

#projets .project-card__cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

#projets .project-card__cta:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--border);
}

@container (min-width: 56rem) {
  #projets .projects-viewer .project-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "head footer"
      "body footer";
    gap: 0.75rem clamp(2rem, 4cqi, 4rem);
    align-items: center;
  }

  #projets .project-card__footer {
    align-self: center;
    justify-self: end;
    padding: 0;
  }
}

@container (max-width: 34rem) {
  #projets .project-card__footer,
  #projets .project-card__cta {
    width: 100%;
  }
}

#projets .projects-viewer .project-card[hidden],
#projets .projects-viewer .project-card.hidden {
  display: none;
}

/* ============================================================
   CV éditorial — informations statiques et rapidement scannables
   ============================================================ */

.expertise-list--cv .expertise-row--static {
  grid-template-columns: 2.25rem minmax(0, 1fr);
  min-height: 5.25rem;
  padding: 1rem 0.75rem;
  cursor: default;
}

.bento-profil .expertise-row--static:hover,
.bento-profil .expertise-row--static:focus-visible,
.bento-profil .expertise-row--static.active {
  padding: 1rem 0.75rem;
  background: transparent;
  color: var(--text);
}

.bento-profil .expertise-row--static .expertise-row__index {
  color: var(--primary);
}

.bento-profil .expertise-row--static .expertise-row__content > span {
  color: var(--text-muted);
}

.bento-formations .project-card {
  cursor: default;
}

.bento-formations .project-card:hover {
  transform: none;
}

/* ============================================================
   2026 editorial polish — hierarchy, density and accessibility
   Final cascade layer: preserves the current content and behavior.
   ============================================================ */

/* Structural surfaces are quiet; elevation is reserved for actions. */
.section,
footer.section {
  border: var(--border-width-structure) solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

.section::before,
footer.section::before {
  display: none !important;
  content: none !important;
}

.bento-profil,
.bento-experience,
.bento-formations,
.bento-contact {
  --focus: var(--primary);
}

.bento-card {
  padding: clamp(1.25rem, 0.95rem + 0.85vw, 1.8rem);
}

.section-open,
footer.section.section-open {
  gap: clamp(1rem, 0.8rem + 0.55vw, 1.35rem);
}

.section-head {
  padding-bottom: 0.9rem;
  border-bottom: var(--border-width-structure) solid var(--line-subtle);
}

.bento-card .section-head h2 {
  gap: 0.55rem;
}

/* Header: retain the neobrutalist signature at a lower visual weight. */
.top-nav,
.top-nav.scrolled {
  min-height: 3.75rem;
  padding: 0.45rem 0.7rem;
  border: var(--border-width-action) solid var(--border) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-emphasis) !important;
}

.brand {
  min-height: var(--control-min-size);
}

.menu a {
  min-height: var(--control-min-size);
  padding: 0.4rem 0.7rem;
}

.menu a[aria-current="page"] {
  color: var(--primary) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

/* Buttons: primary actions carry elevation, secondary actions stay flat. */
.btn {
  min-height: var(--control-min-size);
  border: var(--border-width-action) solid var(--border) !important;
  transition:
    transform var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease !important;
}

.btn.primary {
  box-shadow: var(--shadow-interactive) !important;
}

.btn.secondary {
  box-shadow: none !important;
}

.btn.primary:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: var(--shadow-emphasis) !important;
}

.btn.secondary:hover {
  transform: none !important;
  background: var(--chip-bg-hover) !important;
  box-shadow: none !important;
}

.btn:active,
.btn.primary:active,
.btn.secondary:active {
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0 var(--border) !important;
}

/* Hero: editorial split, stable portrait and shorter first viewport. */
.hero-content {
  min-height: min(68vh, 660px);
  padding-inline: 0;
  gap: clamp(2rem, 3.8vw, 4rem);
}

.hero-photo-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-photo-frame {
  border: var(--border-width-structure) solid var(--border) !important;
  background: var(--surface);
  box-shadow: none !important;
}

.hero-photo-card figcaption {
  color: var(--text-muted);
}

/* Expertise: informational rows, not selectable cards. */
#profil {
  box-shadow: none !important;
}

.expertise-list {
  border-top: 0;
}

.expertise-list--cv .expertise-row--static,
.bento-profil .expertise-row--static:hover,
.bento-profil .expertise-row--static:focus-visible,
.bento-profil .expertise-row--static.active {
  min-height: 0;
  padding: 0.95rem 0.25rem;
  border-bottom: var(--border-width-structure) solid var(--line-subtle);
}

.expertise-list--cv .expertise-row--static:last-child {
  border-bottom: 0;
}

/* Experiences: an editorial chronology with separators and clear dates. */
#experience {
  box-shadow: none !important;
}

.timeline {
  gap: 0;
  padding: 0;
}

.timeline-item,
.timeline-item:hover,
.timeline-item:focus-within,
.timeline-item.is-active,
.timeline-item.open {
  transform: none !important;
  box-shadow: none !important;
}

.timeline-item::after,
.timeline-item:hover::after,
.timeline-item:focus-within::after,
.timeline-item.is-active::after,
.timeline-item.open::after {
  border: 0 !important;
  border-bottom: var(--border-width-structure) solid var(--line-subtle) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.timeline-item:first-child::after {
  border-top: var(--border-width-structure) solid var(--line-subtle) !important;
}

.timeline-item:hover::after,
.timeline-item:focus-within::after {
  background: color-mix(in srgb, var(--bg) 56%, white) !important;
}

.timeline-item.is-active::after,
.timeline-item.open::after {
  border-left: 3px solid var(--primary) !important;
  background: color-mix(in srgb, var(--primary) 3%, white) !important;
}

.item-toggle {
  min-height: 4.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 1rem 3.2rem 1rem 1rem;
}

.item-toggle::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: var(--border-width-structure) solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.item-toggle[aria-expanded="true"]::after {
  content: "−";
  background: var(--text);
  color: var(--surface);
}

.timeline-item__title {
  font-size: clamp(1.05rem, 0.98rem + 0.34vw, 1.28rem);
  line-height: 1.28;
}

.timeline-item__period {
  justify-self: end;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.item-content {
  max-width: 72ch;
  gap: 0.55rem;
  padding: 0 3.2rem 1.1rem 1rem;
}

/* Training is reference information: simple columns, no card elevation. */
.bento-formations .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-top: var(--border-width-structure) solid var(--line-subtle);
  border-bottom: var(--border-width-structure) solid var(--line-subtle);
}

.bento-formations .project-card,
.bento-formations .project-card:hover {
  min-height: 0;
  padding: 1.15rem;
  border: 0 !important;
  border-right: var(--border-width-structure) solid var(--line-subtle) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bento-formations .project-card:last-child {
  grid-column: auto;
  border-right: 0 !important;
}

.bento-formations .project-card h3 {
  min-height: 0;
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

/* Contact remains the closing emphasis, with one controlled hard shadow. */
#contact {
  border: var(--border-width-action) solid var(--border) !important;
  box-shadow: var(--shadow-emphasis) !important;
}

.contact-merged--compact .availability-grid {
  gap: 0;
}

.contact-merged--compact .availability-item {
  padding: 0.9rem 1rem;
  border: 0 !important;
  border-right: var(--border-width-structure) solid var(--line-subtle) !important;
  background: transparent;
  box-shadow: none !important;
}

.contact-merged--compact .availability-item:first-child {
  padding-left: 0;
}

.contact-merged--compact .availability-item:last-child {
  padding-right: 0;
  border-right: 0 !important;
}

.contact-merged--compact .contact-bar {
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  padding: 1.1rem 0 0;
  border: 0;
  border-top: var(--border-width-structure) solid var(--line-subtle);
  background: transparent;
}

.contact-merged--compact .contact-identity {
  padding: 0;
}

.contact-merged--compact .contact-identity .contact-link,
.contact-merged--compact .contact-identity .contact-phone {
  min-height: var(--control-min-size);
  display: inline-flex;
  align-items: center;
}

/* A robust WCAG-oriented focus treatment, independent of color alone. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.interactive-item:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .bento-formations .project-grid {
    grid-template-columns: 1fr;
  }

  .bento-formations .project-card,
  .bento-formations .project-card:last-child {
    border-right: 0 !important;
    border-bottom: var(--border-width-structure) solid var(--line-subtle) !important;
  }

  .bento-formations .project-card:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 920px) {
  .menu {
    visibility: hidden;
  }

  .menu.open {
    visibility: visible;
  }
}

@media (max-width: 700px) {
  .top-nav,
  .top-nav.scrolled {
    min-height: 3.75rem;
    padding: 0.4rem 0.55rem;
    box-shadow: var(--shadow-interactive) !important;
  }

  .menu-toggle,
  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    min-width: 4.25rem;
    min-height: var(--control-min-size);
    box-shadow: var(--shadow-interactive);
  }

  .menu {
    box-shadow: var(--shadow-emphasis);
  }

  .bento-main {
    padding-top: 5.6rem;
  }

  .hero-content {
    min-height: 0;
    gap: 1.75rem;
    padding: 0.75rem 0 0;
  }

  .hero-content h1 {
    font-size: clamp(2.45rem, 12vw, 3.15rem);
  }

  .hero-photo-card {
    margin-top: 0.25rem;
  }

  .hero-photo-frame {
    padding: 0.3rem;
  }

  .hero-photo-card figcaption {
    margin-top: 0.5rem;
  }

  .bento-card,
  #contact.bento-contact {
    padding: 1.1rem;
  }

  .section-head {
    padding-bottom: 0.75rem;
  }

  .item-toggle {
    min-height: var(--control-min-size);
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.95rem 3rem 0.85rem 0.75rem;
  }

  .timeline-item__period {
    justify-self: start;
    white-space: normal;
  }

  .item-content {
    padding: 0 0.75rem 1rem;
  }

  .contact-merged--compact .availability-grid {
    grid-template-columns: 1fr;
  }

  .contact-merged--compact .availability-item,
  .contact-merged--compact .availability-item:first-child,
  .contact-merged--compact .availability-item:last-child {
    padding: 0.8rem 0;
    border-right: 0 !important;
    border-bottom: var(--border-width-structure) solid var(--line-subtle) !important;
  }

  .contact-merged--compact .availability-item:last-child {
    border-bottom: 0 !important;
  }

  .contact-merged--compact .contact-bar {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .contact-merged--compact .contact-identity .contact-link {
    font-size: clamp(1.22rem, 6.2vw, 1.65rem);
    overflow-wrap: anywhere;
  }

  .contact-merged--compact .cta-row,
  .contact-merged--compact .cta-row .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: clamp(2.35rem, 11.8vw, 2.9rem);
  }

  .hero-photo-visual {
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   Mobile refinement — compact scan, safe controls and menu clarity
   ============================================================ */
@media (max-width: 700px) {
  body {
    line-height: 1.6;
  }

  .top-nav,
  .top-nav.scrolled {
    top: max(0.5rem, env(safe-area-inset-top));
  }

  .menu {
    top: calc(100% + 0.4rem);
    max-height: calc(100dvh - 5.5rem);
    padding: 0.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu a {
    min-height: 46px;
    padding: 0.65rem 0.75rem;
  }

  .menu a:hover,
  .menu a:focus-visible,
  .menu a[aria-current="page"] {
    background: var(--primary) !important;
    color: #fff !important;
    text-decoration: none;
  }

  .bento-grid {
    gap: 0.85rem;
  }

  .bento-rows,
  .bento-row {
    gap: 0.85rem;
  }

  .hero-content {
    gap: 1.25rem;
  }

  .hero-text {
    gap: 1rem;
  }

  .hero-content .eyebrow {
    max-width: 40ch;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .hero-content .intro {
    max-width: 34ch;
    line-height: 1.55;
  }

  .hero-content .cta-row {
    gap: 0.6rem;
  }

  .hero-content .cta-row .btn,
  .hero-content .cta-row .btn.primary {
    min-height: 48px;
  }

  .hero-photo-card {
    margin-top: 0.1rem;
  }

  .hero-photo-card figcaption {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  #profil > .section-head,
  #experience > .section-head {
    padding: 0.65rem 0.75rem 0.75rem;
  }

  .expertise-list--cv .expertise-row--static,
  .bento-profil .expertise-row--static:hover,
  .bento-profil .expertise-row--static:focus-visible,
  .bento-profil .expertise-row--static.active {
    padding-block: 0.8rem;
  }

  .expertise-row__content > span {
    line-height: 1.4;
  }

  .item-toggle {
    gap: 0.25rem;
    padding: 0.8rem 2.75rem 0.75rem 0.75rem;
  }

  .item-toggle::after {
    right: 0.75rem;
  }

  .timeline-item__title {
    font-size: clamp(1rem, 4.45vw, 1.08rem);
    line-height: 1.27;
  }

  .timeline-item__period {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .item-content {
    gap: 0.45rem;
    padding: 0 0.75rem 0.85rem;
    line-height: 1.55;
  }

  .item-content ul {
    line-height: 1.5;
  }

  .item-content li + li {
    margin-top: 0.25rem;
  }

  .bento-formations .project-card,
  .bento-formations .project-card:hover {
    padding: 0.9rem 0.75rem;
  }

  .bento-formations .project-card h3 {
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }

  .bento-formations .project-card p {
    line-height: 1.55;
  }

  .contact-merged--compact {
    gap: 0.75rem;
  }

  .contact-merged--compact .availability-item,
  .contact-merged--compact .availability-item:first-child,
  .contact-merged--compact .availability-item:last-child {
    padding-block: 0.65rem;
  }

  .contact-merged--compact .availability-label {
    margin-bottom: 0.35rem;
  }

  .contact-merged--compact .availability-value {
    line-height: 1.45;
  }

  .contact-merged--compact .contact-bar {
    gap: 0.75rem;
    padding-top: 0.85rem;
  }

  .contact-merged--compact .contact-identity {
    gap: 0.2rem;
  }

  .contact-merged--compact .contact-studio {
    line-height: 1.45;
  }

  .contact-merged--compact .cta-row {
    gap: 0.6rem;
  }

  .contact-merged--compact .cta-row .btn {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 0.84rem;
  }

  .menu-toggle,
  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    min-width: 4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 11.5vw, 2.72rem);
  }

  #experience .section-head h2 {
    font-size: 1.4rem;
  }

  .contact-merged--compact .contact-identity .contact-link {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .btn {
    transition: none !important;
  }

  .hero-photo-card {
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================================
   CV layout — identity rail + professional record
   ============================================================ */
.cv-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(17.5rem, 23vw, 19.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0;
}

.cv-sidebar {
  min-width: 0;
}

.cv-sidebar__panel {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: var(--border-width-action) solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-emphasis);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.cv-sidebar__portrait {
  order: 1;
  margin: 0;
  border: var(--border-width-structure) solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.cv-sidebar__portrait img {
  display: block;
  width: 100%;
  height: clamp(9.5rem, 17vh, 11.5rem);
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(0.88) contrast(1.02);
}

.cv-sidebar__identity {
  order: 2;
  display: grid;
  gap: 0.6rem;
}

.cv-sidebar__name {
  margin: 0;
  color: var(--primary);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cv-sidebar__identity h1 {
  max-width: 8ch;
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: clamp(2.15rem, 3.1vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.cv-sidebar__identity > p:last-child {
  max-width: 29ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.cv-sidebar__status {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: var(--border-width-structure) solid var(--line-subtle);
  background: var(--bg);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cv-sidebar__status > span {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.cv-sidebar__contact {
  order: 4;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border-top: var(--border-width-structure) solid var(--line-subtle);
  font-style: normal;
}

.cv-sidebar__contact > div {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.42rem 0;
  border-bottom: var(--border-width-structure) solid var(--line-subtle);
}

.cv-sidebar__contact span,
.cv-sidebar__nav-label {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.cv-sidebar__contact p,
.cv-sidebar__contact a {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18rem;
}

.cv-sidebar .top-nav,
.cv-sidebar .top-nav.scrolled {
  position: static;
  inset: auto;
  order: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
  backdrop-filter: none;
  flex: 0 0 auto;
}

.cv-sidebar__mobilebar {
  display: none;
}

.cv-sidebar__nav-label {
  margin: 0;
}

.cv-sidebar .menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.cv-sidebar .menu a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  justify-content: start;
  min-height: 2.3rem;
  padding: 0.38rem 0;
  border: 0 !important;
  border-bottom: var(--border-width-structure) solid var(--line-subtle) !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
}

.cv-sidebar .menu a > span {
  color: var(--primary);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cv-sidebar .menu a:hover,
.cv-sidebar .menu a:focus-visible,
.cv-sidebar .menu a[aria-current="page"] {
  padding-left: 0.4rem;
  color: var(--primary) !important;
  text-decoration: none;
}

.cv-sidebar .menu a[aria-current="page"]::after {
  content: "●";
  justify-self: end;
  color: var(--primary);
  font-size: 0.58rem;
}

.cv-sidebar__actions {
  order: 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  flex: 0 0 auto;
}

.cv-sidebar__actions .btn {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  text-align: center;
}

.cv-layout .bento-main {
  width: 100%;
  min-width: 0;
  margin: 0 0 var(--space-8);
  padding-top: 0;
}

.cv-layout .bento-main::before {
  display: none;
  content: none;
}

.cv-layout .bento-grid {
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.cv-layout main section,
.cv-layout footer {
  scroll-margin-top: 1rem;
}

.cv-layout .profile-summary {
  display: block;
  min-height: 0;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  border: var(--border-width-action) solid var(--border) !important;
  background:
    linear-gradient(90deg, var(--primary) 0 0.35rem, transparent 0.35rem),
    var(--surface) !important;
  box-shadow: var(--shadow-emphasis) !important;
}

.profile-summary .hero-text {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
}

.profile-summary .eyebrow,
.profile-summary .intro {
  margin: 0;
}

.profile-summary__title {
  max-width: 17ch;
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.profile-summary .intro {
  max-width: 47ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.profile-summary__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 54rem;
  margin: 0.8rem 0 0;
  padding: 0;
  border-top: var(--border-width-structure) solid var(--line-subtle);
  border-bottom: var(--border-width-structure) solid var(--line-subtle);
  list-style: none;
}

.profile-summary__facts li {
  min-width: 0;
  padding: 0.8rem 0.85rem 0.8rem 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-summary__facts li + li {
  padding-left: 0.85rem;
  border-left: var(--border-width-structure) solid var(--line-subtle);
}

.profile-summary__link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-self: start;
  width: fit-content;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
}

.profile-summary__link span {
  color: var(--primary);
  font-size: 1.15rem;
  transition: transform var(--motion-fast) ease;
}

.profile-summary__link:hover span {
  transform: translateY(0.2rem);
}

.profile-summary__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.profile-summary__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.profile-summary__cta-row .btn {
  gap: 0.5rem;
}

.profile-summary__portfolio-arrow {
  font-size: 1.05em;
  line-height: 1;
}

.profile-summary__portfolio-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 44ch;
}

@media (max-width: 1100px) {
  .cv-layout {
    grid-template-columns: 16.75rem minmax(0, 1fr);
    width: min(100% - 1.25rem, 1180px);
    gap: 0.85rem;
    padding-top: 0.65rem;
  }

  .cv-sidebar__panel {
    top: 0.65rem;
    max-height: calc(100dvh - 1.3rem);
    padding: 0.85rem;
  }

  .cv-sidebar__portrait img {
    height: 8.75rem;
  }

  .cv-sidebar__identity h1 {
    font-size: 2.2rem;
  }

  .cv-sidebar__contact > div {
    grid-template-columns: 4.6rem minmax(0, 1fr);
  }

  .cv-sidebar__actions {
    grid-template-columns: 1fr;
  }

  .cv-layout .profile-summary {
    padding: clamp(1.65rem, 3.6vw, 3rem);
  }
}

@media (max-width: 920px) {
  .cv-layout {
    display: block;
    width: min(100% - 1.25rem, 760px);
    padding-top: 0.65rem;
  }

  .cv-sidebar__panel {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    grid-template-areas:
      "nav nav"
      "portrait identity"
      "portrait status"
      "contact contact"
      "actions actions";
    gap: 0.8rem 1rem;
    max-height: none;
    overflow: visible;
  }

  .cv-sidebar .top-nav,
  .cv-sidebar .top-nav.scrolled {
    position: relative;
    inset: auto;
    grid-area: nav;
    order: 0;
    display: block;
  }

  .cv-sidebar__mobilebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 2.85rem;
    padding-bottom: 0.75rem;
    border-bottom: var(--border-width-structure) solid var(--line-subtle);
  }

  .cv-sidebar__mobilebar .brand {
    min-height: var(--control-min-size);
    padding: 0;
    font-size: 0.9rem;
  }

  .cv-sidebar .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.75rem;
    min-height: var(--control-min-size);
    padding: 0.55rem 0.75rem;
    border: var(--border-width-action) solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-interactive);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .cv-sidebar .menu-toggle:hover,
  .cv-sidebar .menu-toggle:focus-visible {
    background: var(--primary);
    color: var(--primary-contrast);
  }

  .cv-sidebar__nav-label {
    display: none;
  }

  .cv-sidebar .menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    z-index: 130;
    display: none;
    width: 100%;
    max-height: min(24rem, calc(100dvh - 5rem));
    padding: 0.45rem 0.7rem;
    overflow-y: auto;
    border: var(--border-width-action) solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-emphasis);
  }

  .cv-sidebar .menu.open {
    display: grid;
  }

  .cv-sidebar .menu a {
    min-height: 2.9rem;
    padding: 0.55rem 0.25rem;
  }

  .cv-sidebar__portrait {
    grid-area: portrait;
    align-self: stretch;
  }

  .cv-sidebar__portrait img {
    height: 100%;
    min-height: 10rem;
  }

  .cv-sidebar__identity {
    grid-area: identity;
    align-self: end;
  }

  .cv-sidebar__identity h1 {
    max-width: none;
    font-size: clamp(2rem, 6.8vw, 3.25rem);
  }

  .cv-sidebar__identity > p:last-child {
    max-width: 45ch;
  }

  .cv-sidebar__status {
    grid-area: status;
    align-self: start;
  }

  .cv-sidebar__contact {
    grid-area: contact;
    grid-template-columns: 1fr 1fr;
  }

  .cv-sidebar__contact > div:nth-child(odd) {
    padding-right: 0.8rem;
  }

  .cv-sidebar__contact > div:nth-child(even) {
    padding-left: 0.8rem;
    border-left: var(--border-width-structure) solid var(--line-subtle);
  }

  .cv-sidebar__actions {
    grid-area: actions;
    grid-template-columns: 1fr 1fr;
  }

  .cv-layout .bento-main {
    margin-top: 0.85rem;
  }

  .cv-layout main section,
  .cv-layout footer {
    scroll-margin-top: 0.75rem;
  }

  .cv-layout .profile-summary {
    padding: clamp(1.5rem, 6vw, 3rem);
  }

  .profile-summary__title {
    font-size: clamp(2.25rem, 8.4vw, 4rem);
  }
}

@media (max-width: 560px) {
  .cv-layout {
    width: calc(100% - 0.75rem);
    padding-top: 0.4rem;
  }

  .cv-sidebar__panel {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.7rem 0.8rem;
    padding: 0.75rem;
    box-shadow: 3px 3px 0 var(--border);
  }

  .cv-sidebar__portrait img {
    min-height: 7.6rem;
    object-position: center 20%;
  }

  .cv-sidebar__name {
    font-size: 0.64rem;
  }

  .cv-sidebar__identity {
    gap: 0.42rem;
  }

  .cv-sidebar__identity h1 {
    font-size: clamp(1.85rem, 9.6vw, 2.7rem);
    line-height: 0.95;
  }

  .cv-sidebar__identity > p:last-child {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .cv-sidebar__status {
    padding: 0.48rem 0.55rem;
    font-size: 0.66rem;
  }

  .cv-sidebar__contact {
    grid-template-columns: 1fr;
  }

  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 6rem minmax(0, 1fr);
    padding: 0.48rem 0;
    border-left: 0;
  }

  .cv-sidebar__actions .btn {
    min-height: 2.9rem;
    font-size: 0.76rem;
  }

  .cv-layout .profile-summary {
    padding: 1.5rem 1.1rem 1.65rem;
    box-shadow: 3px 3px 0 var(--border) !important;
  }

  .profile-summary .hero-text {
    gap: 0.85rem;
  }

  .profile-summary__title {
    max-width: 14ch;
    font-size: clamp(2.1rem, 11vw, 2.85rem);
  }

  .profile-summary .intro {
    font-size: 0.96rem;
  }

  .profile-summary__facts {
    grid-template-columns: 1fr;
    margin-top: 0.45rem;
  }

  .profile-summary__facts li,
  .profile-summary__facts li + li {
    padding: 0.65rem 0;
    border-left: 0;
  }

  .profile-summary__facts li + li {
    border-top: var(--border-width-structure) solid var(--line-subtle);
  }
}

@media print {
  .cv-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    width: 100%;
    padding: 0;
  }

  .cv-sidebar__panel {
    position: static;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .cv-sidebar__actions,
  .cv-sidebar .top-nav {
    display: none !important;
  }

  .cv-layout .profile-summary {
    box-shadow: none !important;
  }
}

/* ============================================================
   Ergonomic pass — faster scan, calmer density, larger targets
   ============================================================ */
.cv-layout {
  grid-template-columns: clamp(19rem, 24vw, 21rem) minmax(0, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.cv-sidebar__panel {
  gap: 0.8rem;
}

.cv-sidebar__identity > p:last-child {
  font-size: 0.92rem;
  line-height: 1.48;
}

.cv-sidebar__contact > div {
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.65rem;
}

.cv-sidebar__contact p,
.cv-sidebar__contact a {
  font-size: 0.84rem;
  line-height: 1.4;
}

.cv-sidebar .menu a {
  min-height: 2.6rem;
  padding: 0.45rem 0.5rem;
  transition:
    padding-left var(--motion-fast) ease,
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.cv-sidebar .menu a:hover,
.cv-sidebar .menu a:focus-visible,
.cv-sidebar .menu a[aria-current="page"] {
  padding-left: 0.7rem;
  background: var(--primary-soft) !important;
  color: var(--text) !important;
  box-shadow: inset 3px 0 0 var(--primary);
}

.cv-sidebar .menu a[aria-current="page"] {
  font-weight: 800;
}

.cv-sidebar .menu a[aria-current="page"]::after {
  display: none;
  content: none;
}

.cv-sidebar__actions .btn {
  min-height: 3rem;
}

.cv-layout .profile-summary {
  padding: clamp(2rem, 3.2vw, 3rem);
}

.profile-summary .hero-text {
  gap: 0.85rem;
}

.profile-summary__title {
  max-width: 19ch;
  font-size: clamp(2.8rem, 4.2vw, 4rem);
  line-height: 0.98;
}

.profile-summary .intro {
  max-width: 58ch;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.profile-summary__facts {
  gap: 0.75rem;
  margin-top: 0.45rem;
  border-bottom: 0;
}

.profile-summary__facts li,
.profile-summary__facts li + li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  border-left: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.profile-summary__facts li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.3rem;
  background: var(--primary);
}

.profile-summary__link {
  min-height: var(--control-min-size);
  margin-top: 0;
  padding-block: 0.45rem;
}

.cv-layout .bento-card {
  padding: clamp(1.5rem, 2.2vw, 2.15rem);
}

.cv-layout .profile-summary {
  padding: clamp(2rem, 3.2vw, 3rem);
}

.cv-layout .section-head {
  margin-bottom: 0.25rem;
  padding-bottom: 1rem;
}

.cv-layout .section-head h2 {
  line-height: 1.05;
  text-wrap: balance;
}

.expertise-list--cv {
  max-width: 64rem;
}

.expertise-list--cv .expertise-row--static,
.bento-profil .expertise-row--static:hover,
.bento-profil .expertise-row--static:focus-visible,
.bento-profil .expertise-row--static.active {
  padding-block: 1rem;
}

.expertise-row__content > strong {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.3;
}

.expertise-row__content > span {
  max-width: 75ch;
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.timeline-item .item-toggle {
  min-height: 4rem;
}

.timeline-item__title {
  line-height: 1.25;
  text-wrap: pretty;
}

.timeline-item .item-content {
  font-size: 0.98rem;
  line-height: 1.65;
}

.timeline-item .item-content > p,
.timeline-item .item-content > ul {
  max-width: 76ch;
}

.timeline-item .item-content li + li {
  margin-top: 0.35rem;
}

.bento-formations .project-card {
  min-height: 0;
}

.contact-merged--compact .availability-value,
.contact-merged--compact .contact-studio {
  max-width: 52ch;
  text-wrap: pretty;
}

@media (max-width: 1100px) and (min-width: 921px) {
  .cv-layout {
    grid-template-columns: 17.5rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .cv-sidebar__panel {
    gap: 0.65rem;
  }

  .cv-sidebar__portrait img {
    height: 8rem;
  }

  .cv-sidebar__identity h1 {
    font-size: 2.05rem;
  }

  .cv-sidebar__identity > p:last-child {
    font-size: 0.82rem;
  }

  .cv-sidebar__contact > div {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    padding-block: 0.35rem;
  }

  .cv-sidebar__contact p,
  .cv-sidebar__contact a {
    font-size: 0.78rem;
  }

  .cv-sidebar .menu a {
    min-height: 2.35rem;
    padding-block: 0.35rem;
  }

  .cv-sidebar__actions .btn {
    min-height: 2.8rem;
  }

  .profile-summary__title {
    font-size: clamp(2.6rem, 4.4vw, 3.5rem);
  }
}

@media (max-width: 920px) {
  .cv-layout {
    display: block;
  }

  .cv-sidebar__panel {
    gap: 0.8rem 1rem;
  }

  .cv-sidebar .menu a {
    min-height: 3rem;
  }

  .cv-layout .profile-summary {
    padding: clamp(1.65rem, 5vw, 2.5rem);
  }

  .profile-summary__title {
    max-width: 17ch;
    font-size: clamp(2.45rem, 7.2vw, 3.4rem);
  }

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

@media (max-width: 560px) {
  .cv-sidebar__panel {
    gap: 0.7rem 0.8rem;
  }

  .cv-sidebar__identity > p:last-child {
    font-size: 0.78rem;
  }

  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .cv-layout .profile-summary {
    padding: 1.4rem 1.1rem 1.55rem;
  }

  .profile-summary__title {
    max-width: 14ch;
    font-size: clamp(2rem, 10.2vw, 2.65rem);
  }

  .profile-summary__facts {
    display: none;
  }

  .cv-layout .bento-card {
    padding: 1.25rem 1rem;
  }

  .timeline-item .item-content {
    font-size: 0.92rem;
  }
}

/* Sidebar viewport rail: full-height on desktop, natural flow on mobile. */
@media (min-width: 921px) {
  .cv-sidebar__panel {
    height: calc(100dvh - 2rem);
    max-height: none;
  }

  .cv-sidebar__actions {
    margin-top: auto;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cv-sidebar__panel {
    height: calc(100dvh - 1.3rem);
  }
}

@media (max-width: 920px) {
  .cv-sidebar__panel {
    height: auto;
    max-height: none;
  }

  .cv-sidebar__actions {
    margin-top: 0;
  }
}

/* Readability and responsive continuity. */
.cv-sidebar__identity > p:last-child {
  font-size: 0.95rem;
  line-height: 1.52;
}

.cv-sidebar__contact span,
.cv-sidebar__nav-label {
  font-size: 0.72rem;
  line-height: 1.35;
}

.cv-sidebar__contact p,
.cv-sidebar__contact a {
  font-size: 0.88rem;
  line-height: 1.45;
}

.cv-sidebar .menu a {
  font-size: 0.9rem;
  line-height: 1.35;
}

.cv-sidebar__status {
  font-size: 0.78rem;
  line-height: 1.4;
}

.cv-sidebar__actions .btn {
  font-size: 0.82rem;
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cv-sidebar__portrait img {
    height: 7.6rem;
  }

  .cv-sidebar__identity h1 {
    font-size: 2.15rem;
  }

  .cv-sidebar__identity > p:last-child {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .cv-sidebar__contact span,
  .cv-sidebar__nav-label {
    font-size: 0.7rem;
  }

  .cv-sidebar__contact p,
  .cv-sidebar__contact a {
    font-size: 0.84rem;
  }

  .cv-sidebar .menu a {
    min-height: 2.45rem;
    font-size: 0.88rem;
  }

  .cv-sidebar__actions .btn {
    font-size: 0.84rem;
  }
}

@media (min-width: 561px) and (max-width: 700px) {
  .profile-summary__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-summary__facts li:last-child {
    grid-column: 1 / -1;
    border-top: var(--border-width-structure) solid var(--line-subtle);
  }
}

@media (max-width: 360px) {
  .cv-sidebar__panel {
    grid-template-columns: 5.4rem minmax(0, 1fr);
    grid-template-areas:
      "nav nav"
      "portrait identity"
      "status status"
      "contact contact"
      "actions actions";
  }

  .cv-sidebar__portrait {
    align-self: stretch;
  }

  .cv-sidebar__portrait img {
    min-height: 9.25rem;
  }

  .cv-sidebar__identity {
    align-self: center;
  }

  .cv-sidebar__identity h1 {
    font-size: clamp(1.8rem, 9.4vw, 2.15rem);
  }

  .cv-sidebar__status {
    min-height: var(--control-min-size);
  }

  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 5.8rem minmax(0, 1fr);
  }

  .cv-sidebar__actions {
    gap: 0.45rem;
  }

  .cv-sidebar__actions .btn {
    padding-inline: 0.35rem;
    font-size: 0.78rem;
  }

  .cv-layout .profile-summary {
    padding-inline: 0.95rem;
  }

  .profile-summary__title {
    font-size: clamp(1.9rem, 10vw, 2.25rem);
  }
}

/* Desktop rail rhythm: use the available height instead of compressing groups. */
@media (min-width: 921px) {
  .cv-sidebar__panel {
    gap: 1rem;
  }

  .cv-sidebar__portrait {
    margin-bottom: 0.1rem;
  }

  .cv-sidebar__identity {
    gap: 0.7rem;
  }

  .cv-sidebar__status {
    padding: 0.65rem 0.75rem;
  }

  .cv-sidebar__contact > div {
    padding-block: 0.52rem;
  }

  .cv-sidebar .top-nav,
  .cv-sidebar .top-nav.scrolled {
    gap: 0.65rem;
  }

  .cv-sidebar .menu a {
    min-height: 2.75rem;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cv-sidebar__panel {
    gap: 0.75rem;
  }

  .cv-sidebar__identity {
    gap: 0.55rem;
  }

  .cv-sidebar__status {
    padding-block: 0.58rem;
  }

  .cv-sidebar__contact > div {
    padding-block: 0.42rem;
  }

  .cv-sidebar .menu a {
    min-height: 2.55rem;
  }
}

/* Custom industrial pictograms — one stroke system, no external icon set. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.ui-icon--meta {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--primary);
  stroke-width: 1.9;
}

.ui-icon--action {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.9;
}

.ui-icon--fact {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.05rem;
  color: var(--primary);
  stroke-width: 1.8;
}

.ui-icon--link {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary);
  stroke-width: 2;
  transition: transform var(--motion-fast) ease;
}

.cv-sidebar__contact > div {
  grid-template-columns: 7.25rem minmax(0, 1fr);
}

.cv-sidebar__contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
}

.btn .ui-icon {
  margin-right: 0.45rem;
}

.btn.secondary .ui-icon {
  color: var(--primary);
}

.profile-summary__facts li::before {
  display: none;
  content: none;
}

.profile-summary__link:hover .ui-icon--link {
  transform: translateY(0.2rem);
}

.contact-identity > .contact-link,
.contact-identity > .contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.contact-identity > .contact-link .ui-icon,
.contact-identity > .contact-phone .ui-icon {
  color: var(--primary);
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cv-sidebar__panel {
    gap: 0.68rem;
  }

  .cv-sidebar__contact > div {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    padding-block: 0.38rem;
  }

  .ui-icon--meta {
    width: 0.9rem;
    height: 0.9rem;
  }

  .cv-sidebar .menu a {
    min-height: 2.5rem;
  }
}

@media (max-width: 560px) {
  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 6.85rem minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 6.85rem minmax(0, 1fr);
    gap: 0.45rem;
  }

  .cv-sidebar__contact span {
    gap: 0.3rem;
    font-size: 0.68rem;
  }

  .btn .ui-icon {
    margin-right: 0.32rem;
  }
}

/* Distribute spare rail height between content groups instead of one blank area. */
@media (min-width: 921px) {
  .cv-sidebar__panel {
    justify-content: space-between;
  }

  .cv-sidebar__actions {
    margin-top: 0;
  }
}

/* Contact metadata: strict icon / label / value alignment. */
.cv-sidebar__contact > div,
.cv-sidebar__contact > div:nth-child(odd),
.cv-sidebar__contact > div:nth-child(even) {
  grid-template-columns: 1rem 5.4rem minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: center;
}

.cv-sidebar__contact > div > .ui-icon--meta {
  grid-column: 1;
  justify-self: center;
}

.cv-sidebar__contact > div > span {
  grid-column: 2;
  display: block;
  min-width: 0;
  letter-spacing: 0.08em;
}

.cv-sidebar__contact > div > p,
.cv-sidebar__contact > div > a {
  grid-column: 3;
  min-width: 0;
}

@media (max-width: 360px) {
  .cv-sidebar__contact > div,
  .cv-sidebar__contact > div:nth-child(odd),
  .cv-sidebar__contact > div:nth-child(even) {
    grid-template-columns: 0.95rem 5.1rem minmax(0, 1fr);
    column-gap: 0.4rem;
  }
}

/* Identity emphasis: stronger name contrast and a taller portrait crop. */
.cv-sidebar__name {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.085em;
}

@media (min-width: 1101px) {
  .cv-sidebar__portrait img {
    height: clamp(11.75rem, 21vh, 13.75rem);
    object-position: center 20%;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cv-sidebar__portrait img {
    height: 9.5rem;
    object-position: center 20%;
  }

  .cv-sidebar__name {
    font-size: 0.86rem;
  }
}

@media (max-width: 560px) {
  .cv-sidebar__name {
    font-size: 0.8rem;
    letter-spacing: 0.07em;
  }
}
