
:root {
  --ink: #0e0c0a;
  --paper: #f4f0e8;
  --mid: #e8e2d4;
  --faded: #7a7060;
  --rust: #a83c0a;    /* Pro */
  --col-tech: #1a5fa8;  /* Tech */
  --col-art: #2a7a4a;   /* Artiste */
  --col-author: #6a3a8a; /* Auteur */
  --gold: #b8892a;
  --gold-ink: #805b12;
  --line: rgba(14,12,10,.1);
  --display: 'Bebas Neue', sans-serif;
  --editorial: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 86px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.7; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 5vw;
  background: rgba(244,240,232,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faded); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--rust); }

/* HERO */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px;
  overflow: hidden;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5vw 6rem 6vw;
}
.hero-kicker {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 2rem;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: .88; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 2.5rem;
}
.hero-name span { display: block; color: var(--rust); }
.hero-quote {
  font-family: var(--editorial); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.6;
  color: var(--ink); max-width: 42ch; border-left: 2px solid var(--rust);
  padding-left: 1.5rem; margin-bottom: 3rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .15em;
  text-transform: uppercase; padding: .3rem .8rem;
  border: 1px solid var(--line); color: var(--faded);
  transition: all .2s; cursor: default;
}
.tag:hover { border-color: var(--rust); color: var(--rust); }
.tag.pro { border-color: var(--gold); color: var(--gold); }

.hero-text { order: 1; display: flex; flex-direction: column; justify-content: center; padding: 6rem 5vw 6rem 6vw; }
.hero-photo { order: 2; position: relative; overflow: hidden; background: #1a1510; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: .85;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,60,10,.15) 0%, transparent 60%);
}

/* SÉPARATEUR UNIVERS */
.universe-sep {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.universe-tab {
  padding: 1.4rem 2rem; cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background .2s;
  text-decoration: none; display: block;
}
.universe-tab:last-child { border-right: none; }
.universe-tab:hover { background: var(--mid); }
.universe-tab .num { font-family: var(--mono); font-size: .6rem; color: var(--rust); letter-spacing: .15em; display: block; margin-bottom: .3rem; }
.universe-tab .label { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; color: var(--ink); }

/* SECTIONS UNIVERS */
.universe { padding: 6rem 6vw; border-bottom: 1px solid var(--line); }
.universe-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 4rem; }
.universe-num { font-family: var(--display); font-size: 5rem; color: var(--line); line-height: 1; }
.universe-title { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: .02em; line-height: 1; }
.universe-intro { font-family: var(--editorial); font-style: italic; font-size: 1.35rem; color: var(--faded); max-width: 55ch; margin-top: 1rem; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 12ch 1fr;
  gap: 2rem; padding: 2rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.tl-date { font-family: var(--mono); font-size: .88rem; color: var(--rust); letter-spacing: .08em; line-height: 1.6; padding-top: .15rem; font-weight: 400; }
.tl-role { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.tl-context { font-size: .95rem; color: var(--rust); font-style: italic; margin-bottom: .6rem; }
.tl-desc { font-size: 1rem; color: var(--faded); line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tl-tag { font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; padding: .2rem .6rem; border: 1px solid var(--line); color: var(--faded); }

/* SKILLS GRID */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); margin-top: 3rem; }
.skill-block { background: var(--paper); padding: 1.8rem; }
.skill-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .8rem; }
.skill-items { font-size: 1rem; color: var(--faded); line-height: 1.8; }

/* PROJETS GRID */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; margin-top: 3rem; }
.proj-card { background: var(--mid); padding: 2rem; position: relative; overflow: hidden; transition: background .3s; }
.proj-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--rust); transition: width .4s; }
.proj-card:hover { background: #e0d9c8; }
.proj-card:hover::after { width: 100%; }
.proj-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.proj-link:hover { border-color: var(--rust); }

  .proj-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--ink);
  }
  .proj-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(14,12,10,.6));
  }
  .proj-preview-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: .6rem;
    color: var(--faded);
    letter-spacing: .1em;
  }

.proj-link.live::before { content: '●'; font-size: .5rem; color: #2d9a4e; margin-right: .2rem; }
.proj-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.proj-title { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; margin-bottom: .3rem; }
.proj-type { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; color: var(--rust); margin-bottom: .8rem; }
.proj-desc { font-size: 1rem; color: var(--faded); line-height: 1.6; }

/* ŒUVRES */
.works-list { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.work-item { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.work-title { font-family: var(--editorial); font-size: 1.3rem; font-style: italic; margin-bottom: .3rem; }
.work-sub { font-size: 1rem; color: var(--faded); line-height: 1.6; }
.work-status { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--rust); white-space: nowrap; padding-top: .3rem; }

/* ARTISTE GRID */
.artist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.artist-block h3 { font-family: var(--display); font-size: 2rem; letter-spacing: .03em; margin-bottom: 1rem; }
.artist-block p { font-size: 1rem; color: var(--faded); line-height: 1.7; margin-bottom: .8rem; }
.artist-block ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.artist-block li { font-size: 1rem; color: var(--faded); padding-left: 1rem; position: relative; }
.artist-block li::before { content: '—'; position: absolute; left: 0; color: var(--rust); }

/* GALERIE 3D — SCÈNE & VIE */
.life-gallery {
  position: relative;
  margin: 0 -6vw 4rem;
  padding: 4.2rem 6vw 4.5rem;
  overflow: hidden;
  color: var(--paper);
  background: #050505;
  border-top: 1px solid rgba(184,137,42,.16);
  border-bottom: 1px solid rgba(184,137,42,.16);
}

.gallery-heading {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-kicker {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .75rem;
}
.gallery-title {
  font-family: var(--editorial);
  font-size: clamp(2.2rem,5vw,4.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: .85rem;
}
.gallery-subtitle {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #9d9587;
}

.gallery-shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  outline: none;
}

.gallery-stage {
  position: relative;
  width: min(1240px,96vw);
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1700px;
  perspective-origin: 50% 41%;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(255,255,255,.06), transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.025), transparent 25%),
    #020202;
  border: 2px solid rgba(244,240,232,.8);
  box-shadow: 0 24px 65px rgba(0,0,0,.5);
  isolation: isolate;
}

/* Halo diffus au sol, volontairement très discret. */
.gallery-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(700px,82%);
  height: 155px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), rgba(255,255,255,.018) 36%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.gallery-track {
  --gallery-radius: 620px;
  --card-width: 170px;
  --card-height: 270px;
  position: absolute;
  left: 50%;
  top: 43%;
  width: var(--card-width);
  height: var(--card-height);
  transform-style: preserve-3d;
  transform: translate(-50%,-50%) rotateX(-4deg) rotateY(0deg);
  transition: transform .82s cubic-bezier(.2,.72,.2,1);
  will-change: transform;
  z-index: 5;
}

.gallery-card {
  --angle: 0deg;
  --depth-light: .82;
  position: absolute;
  inset: 0;
  width: var(--card-width);
  height: var(--card-height);
  margin: 0;
  overflow: visible;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transform: rotateY(var(--angle)) translateZ(var(--gallery-radius));
  transition: transform .34s cubic-bezier(.2,.72,.2,1), filter .3s ease;
  will-change: transform;
}

.gallery-face {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    0 14px 24px rgba(0,0,0,.72),
    0 0 13px rgba(255,255,255,.035);
}

.gallery-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
  filter: grayscale(1) contrast(1.08) brightness(var(--depth-light));
  transition:
    filter .34s ease,
    transform .34s cubic-bezier(.2,.72,.2,1),
    box-shadow .34s ease;
}

/*
  Vrai reflet miroir : on réutilise exactement la même image sous le panneau,
  retournée verticalement, puis on couche ce duplicata sur le sol en perspective.
*/
.gallery-floor-reflection {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 100%;
  height: 118%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 0;
  transform: rotateX(76deg) scaleY(1.52);
  opacity: .65;
  filter: blur(.8px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.48) 34%,
    rgba(0,0,0,.18) 66%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.48) 34%,
    rgba(0,0,0,.18) 66%,
    transparent 96%
  );
  transition:
    opacity .34s ease,
    filter .34s ease,
    transform .34s cubic-bezier(.2,.72,.2,1);
}

.gallery-floor-reflection img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* inversion verticale réelle du même cliché */
  transform: scaleY(-1);
  transform-origin: center;
  filter: grayscale(1) contrast(1.08) brightness(calc(var(--depth-light) * .48));
  transition: filter .34s ease;
}

/* Ombre de contact très courte : elle ancre le panneau sans remplacer le reflet. */
.gallery-card::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(100% + 2px);
  height: 19px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(0,0,0,.76);
  filter: blur(6px);
  transform: rotateX(74deg) scaleX(1.18);
  transform-origin: top center;
  pointer-events: none;
}

/* Hover : le panneau avance et le miroir suit exactement la même image. */
.gallery-card:hover,
.gallery-card.is-hovered {
  z-index: 50;
  transform: rotateY(var(--angle)) translateZ(calc(var(--gallery-radius) + 86px)) scale(1.15);
}

.gallery-card:hover .gallery-face img,
.gallery-card.is-hovered .gallery-face img {
  transform: scale(1.025);
  filter: grayscale(0) contrast(1.04) brightness(1.08) saturate(1.08);
}

.gallery-card:hover .gallery-face,
.gallery-card.is-hovered .gallery-face {
  box-shadow:
    0 26px 48px rgba(0,0,0,.82),
    0 0 30px rgba(255,255,255,.10),
    0 0 18px rgba(184,137,42,.10);
}

.gallery-card:hover .gallery-floor-reflection,
.gallery-card.is-hovered .gallery-floor-reflection {
  opacity: .72;
  filter: blur(.8px);
  transform: rotateX(76deg) scaleY(1.68);
}

.gallery-card:hover .gallery-floor-reflection img,
.gallery-card.is-hovered .gallery-floor-reflection img {
  filter: grayscale(0) contrast(1.04) brightness(.58) saturate(1.08);
}

/* Les panneaux arrière restent visibles mais plus sombres, miroir compris. */
.gallery-card[data-back='true'] .gallery-face img {
  filter: grayscale(1) contrast(1.03) brightness(.28);
}
.gallery-card[data-back='true'] .gallery-floor-reflection {
  opacity: .22;
  filter: blur(1.6px);
}
.gallery-card[data-back='true'] .gallery-floor-reflection img {
  filter: grayscale(1) brightness(.20) contrast(1.05);
}
.gallery-card[data-back='true']:hover .gallery-face img,
.gallery-card[data-back='true'].is-hovered .gallery-face img {
  filter: grayscale(0) contrast(1.04) brightness(.92) saturate(1.05);
}
.gallery-card[data-back='true']:hover .gallery-floor-reflection img,
.gallery-card[data-back='true'].is-hovered .gallery-floor-reflection img {
  filter: grayscale(0) contrast(1.02) brightness(.48) saturate(1.04);
}

.gallery-arrow {
  position: absolute;
  top: 325px;
  z-index: 40;
  width: 34px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  opacity: .8;
  filter: drop-shadow(0 2px 7px rgba(0,0,0,.9));
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-arrow.prev { left: 28px; }
.gallery-arrow.next { right: 28px; }
.gallery-arrow.prev::before { border-right: 15px solid #d8d8d8; }
.gallery-arrow.next::before { border-left: 15px solid #f1f1f1; }
.gallery-arrow:hover::before { opacity: 1; transform: scale(1.12); }

.gallery-meta {
  position: relative;
  z-index: 20;
  min-height: 42px;
  margin-top: .9rem;
  text-align: center;
}
.gallery-meta-title {
  font-family: var(--editorial);
  font-size: 1rem;
  font-weight: 400;
  color: #bdb5a8;
}
.gallery-meta-year,
.gallery-meta-caption { display: none; }

.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .55rem;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5d574e;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.gallery-dot[aria-current='true'] {
  background: var(--gold);
  transform: scale(1.35);
}
.gallery-hint {
  margin-top: .7rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6d665d;
}

.gallery-lightbox {
  width: min(94vw,1100px);
  max-height: 92vh;
  border: 1px solid rgba(184,137,42,.45);
  background: #0e0c0a;
  padding: 0;
  color: var(--paper);
  overflow: hidden;
}
.gallery-lightbox::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(4px);
}
.gallery-lightbox img {
  width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  background: #080706;
}
.gallery-lightbox-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14,12,10,.85);
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.gallery-lightbox-close:hover {
  background: rgba(168,60,10,.8);
  border-color: var(--rust);
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(184,137,42,.4);
  background: rgba(14,12,10,.75);
  color: var(--paper);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.gallery-lightbox-nav:hover {
  background: rgba(168,60,10,.8);
  border-color: var(--rust);
}
.gallery-lightbox-nav.prev { left: .8rem; }
.gallery-lightbox-nav.next { right: .8rem; }
.gallery-lightbox-caption {
  padding: .8rem 4rem 1rem;
  font-family: var(--editorial);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: rgba(244,240,232,.7);
}
.gallery-lightbox-counter {
  position: absolute;
  top: .9rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .15em;
  color: rgba(184,137,42,.7);
}
@media (max-width: 700px) {
  .gallery-lightbox { width: 100vw; max-height: 100vh; border: none; }
  .gallery-lightbox img { max-height: 75vh; }
  .gallery-lightbox-nav { width: 36px; height: 36px; font-size: 1rem; }
  .gallery-lightbox-caption { font-size: .88rem; padding: .6rem 3rem .8rem; }
}

@media (max-width: 900px) {
  .gallery-shell { max-width: 96vw; }
  .gallery-stage {
    width: 94vw;
    height: 500px;
    perspective: 1250px;
    perspective-origin: 50% 42%;
  }
  .gallery-track {
    --gallery-radius: 350px;
    --card-width: 108px;
    --card-height: 172px;
  }
  .gallery-arrow { top: 250px; }
  .gallery-arrow.prev { left: 18px; }
  .gallery-arrow.next { right: 18px; }
}

@media (max-width: 700px) {
  .life-gallery { padding-top: 3.2rem; padding-bottom: 3.5rem; }
  .gallery-title { font-size: clamp(2rem,10vw,3.2rem); }
  .gallery-subtitle { letter-spacing: .12em; }
  .gallery-stage {
    width: 96vw;
    height: 405px;
    perspective: 900px;
    perspective-origin: 50% 43%;
  }
  .gallery-track {
    --gallery-radius: 190px;
    --card-width: 82px;
    --card-height: 132px;
    top: 43%;
  }
  .gallery-card:hover,
  .gallery-card.is-hovered {
    transform: rotateY(var(--angle)) translateZ(calc(var(--gallery-radius) + 42px)) scale(1.13);
  }
  .gallery-arrow { top: 202px; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
}

@media (hover: none) {
  .gallery-card:hover {
    transform: rotateY(var(--angle)) translateZ(var(--gallery-radius));
  }
  .gallery-card:hover .gallery-face img {
    transform: none;
    filter: grayscale(1) contrast(1.08) brightness(var(--depth-light));
  }
  .gallery-card:hover .gallery-floor-reflection {
    opacity: .54;
    filter: blur(1.15px);
    transform: rotateX(76deg) scaleY(1.52);
  }
  .gallery-card:hover .gallery-floor-reflection img {
    filter: grayscale(1) contrast(1.08) brightness(calc(var(--depth-light) * .48));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .gallery-card,
  .gallery-face img,
  .gallery-floor-reflection,
  .gallery-floor-reflection img { transition: none; }
}

/* VALEURS */
.values-row { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 3rem; }
.value-word { font-family: var(--display); font-size: 2.8rem; letter-spacing: .03em; line-height: 1; color: var(--ink); }
.value-def { font-size: .82rem; color: var(--faded); font-style: italic; margin-top: .3rem; max-width: 18ch; }

/* CONTACT */
.contact-band {
  padding: 5rem 6vw; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.contact-title { font-family: var(--display); font-size: clamp(3rem, 6vw, 6rem); line-height: .9; letter-spacing: -.01em; }
.contact-title span { color: var(--rust); }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { font-family: var(--sans); font-size: 1.2rem; font-weight: 500; letter-spacing: .02em; color: #b0a890; text-decoration: none; transition: color .2s; display: flex; align-items: center; gap: .6rem; }
.contact-link:hover { color: var(--rust); }
.contact-link[href^="mailto"]::before { content: '✉'; font-size: .9rem; opacity: .5; }
.contact-link[href^="tel"]::before { content: '↗'; font-size: .9rem; opacity: .5; }
.contact-link[href^="https://github"]::before { content: '↗'; font-size: .9rem; opacity: .5; }
.contact-link:hover { color: var(--rust); }

/* FOOTER */
footer { padding: 2rem 6vw; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.footer-name { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; }
.footer-copy { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; color: var(--faded); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { height: 70vw; max-height: 420px; }
  .hero-photo img { object-position: center 20%; }
  .universe-sep { grid-template-columns: 1fr 1fr; }
  .universe-tab { border-bottom: 1px solid var(--line); }
  .tl-item { grid-template-columns: 1fr; gap: .5rem; }
  .artist-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  nav { gap: .6rem; padding: .65rem 3vw; }
  .nav-name { flex: 0 0 auto; font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }
  .nav-links {
    display: flex; flex: 1 1 auto; min-width: 0; gap: .6rem;
    overflow-x: auto; overscroll-behavior-inline: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    justify-content: flex-end;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: .68rem; letter-spacing: .06em; white-space: nowrap; }
  .universe-sep { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: clamp(3.4rem, 18vw, 4.6rem); }
}

/* SCROLL REVEAL: content remains visible unless JS is ready. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

  /* BOUTON CONTACT FLOTTANT */
  .contact-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.4rem;
    background: var(--rust);
    color: #f4f0e8;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(168,60,10,.4);
    transition: all .25s ease;
    opacity: 1;
    transform: none;
  }
  .contact-fab.visible { opacity: 1; transform: none; }
  .contact-fab:hover {
    background: #c04810;
    box-shadow: 0 6px 28px rgba(168,60,10,.55);
    transform: translateY(-2px);
  }
  .contact-fab .fab-icon {
    font-size: 1rem;
  }
  @media (max-width: 600px) {
    .contact-fab {
      bottom: 1.2rem;
      right: 1.2rem;
      padding: .65rem 1.1rem;
    }
  }



/* Original linked stylesheet from the site repository */
:root {
  --ink: #0e0c0a;
  --paper: #f4f0e8;
  --mid: #e8e2d4;
  --faded: #6f6758;
  --rust: #a83c0a;    /* Pro */
  --col-tech: #1a5fa8;  /* Tech */
  --col-art: #2a7a4a;   /* Artiste */
  --col-author: #6a3a8a; /* Auteur */
  --gold: #b8892a;
  --gold-ink: #755812;
  --focus: #8e6818;
  --line: rgba(14,12,10,.1);
  --display: 'Bebas Neue', sans-serif;
  --editorial: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 73px; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.7; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 5vw;
  background: rgba(244,240,232,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-name { font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faded); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--rust); }
.nav-links a:focus-visible,
.nav-name:focus-visible,
.universe-tab:focus-visible,
.proj-link:focus-visible,
.contact-link:focus-visible,
.hero-cta:focus-visible,
.lang-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .3rem .7rem; border: 1px solid var(--line); color: var(--faded); font-family: var(--mono); font-size: .62rem; letter-spacing: .15em; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s; }
.lang-toggle:hover { border-color: var(--rust); color: var(--rust); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 1000; padding: .7rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.nav-links a.is-active { text-decoration: underline; text-underline-offset: .4em; }

/* HERO */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px;
  overflow: hidden;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 5vw 6rem 6vw;
}
.hero-kicker {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 2rem;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: .88; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 2.5rem;
}
.hero-name span { display: block; color: var(--rust); }
.hero-quote {
  font-family: var(--editorial); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.6;
  color: var(--ink); max-width: 42ch; border-left: 2px solid var(--rust);
  padding-left: 1.5rem; margin-bottom: 3rem;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .15em;
  text-transform: uppercase; padding: .3rem .8rem;
  border: 1px solid var(--line); color: var(--faded);
  transition: all .2s; cursor: default;
}
.tag:hover { border-color: var(--rust); color: var(--rust); }
.tag.pro { border-color: var(--gold); color: var(--gold-ink); }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 1.5rem; padding: .75rem 1.1rem; border: 1px solid var(--rust); color: var(--rust); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: color .2s ease, background .2s ease; width: fit-content; }
.hero-cta:hover { background: var(--rust); color: var(--paper); }

.hero-text { order: 1; display: flex; flex-direction: column; justify-content: center; padding: 6rem 5vw 6rem 6vw; }
.hero-photo { order: 2; position: relative; overflow: hidden; background: #1a1510; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: .85;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,60,10,.15) 0%, transparent 60%);
}

/* SÉPARATEUR UNIVERS */
.universe-sep {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.universe-tab {
  padding: 1.4rem 2rem; cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background .2s;
  text-decoration: none; display: block;
}
.universe-tab:last-child { border-right: none; }
.universe-tab:hover { background: var(--mid); }
.universe-tab .num { font-family: var(--mono); font-size: .6rem; color: var(--rust); letter-spacing: .15em; display: block; margin-bottom: .3rem; }
.universe-tab .label { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; color: var(--ink); }

/* SECTIONS UNIVERS */
.universe { padding: 4.25rem 6vw; border-bottom: 1px solid var(--line); }
.universe-header { display: flex; align-items: baseline; gap: 2rem; margin-bottom: 2.75rem; }
.universe-num { font-family: var(--display); font-size: 5rem; color: var(--line); line-height: 1; }
.universe-title { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: .02em; line-height: 1; }
.universe-intro { font-family: var(--editorial); font-style: italic; font-size: 1.35rem; color: var(--faded); max-width: 55ch; margin-top: 1rem; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 12ch 1fr;
  gap: 2rem; padding: 2rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.tl-date { font-family: var(--mono); font-size: .88rem; color: var(--rust); letter-spacing: .08em; line-height: 1.6; padding-top: .15rem; font-weight: 400; }
.tl-role { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }
.tl-context { font-size: .95rem; color: var(--rust); font-style: italic; margin-bottom: .6rem; }
.tl-desc { font-size: 1rem; color: var(--faded); line-height: 1.7; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tl-tag { font-family: var(--mono); font-size: .55rem; letter-spacing: .1em; padding: .2rem .6rem; border: 1px solid var(--line); color: var(--faded); }

/* SKILLS GRID */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); margin-top: 3rem; }
.skill-block { background: var(--paper); padding: 1.8rem; }
.skill-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); margin-bottom: .8rem; }
.skill-items { font-size: 1rem; color: var(--faded); line-height: 1.8; }

/* PROJETS GRID */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px; margin-top: 3rem; }
.proj-card { background: var(--mid); padding: 2rem; position: relative; overflow: hidden; transition: background .3s; }
.proj-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--rust); transition: width .4s; }
.proj-card:hover { background: #e0d9c8; }
.proj-card:hover::after { width: 100%; }
.proj-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.proj-link:hover { border-color: var(--rust); }

  .proj-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .35rem;
    padding: 1.4rem;
    color: var(--paper);
    text-decoration: none;
    background: radial-gradient(ellipse at 80% 15%, rgba(168,60,10,.42), transparent 45%), linear-gradient(135deg, #17130f, #32261c 58%, #111);
    border: 1px solid rgba(184,137,42,.35);
    transition: border-color .2s ease, transform .2s ease;
  }
.proj-preview:hover { border-color: var(--gold); transform: translateY(-2px); }
.preview-kicker { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #dfb866; }
.preview-title { max-width: 16ch; font-family: var(--editorial); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; }
.preview-action { margin-top: .35rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #d0c5b3; }

.proj-link.live::before { content: '●'; font-size: .5rem; color: #2d9a4e; margin-right: .2rem; }
.proj-icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.proj-title { font-family: var(--display); font-size: 1.4rem; letter-spacing: .03em; margin-bottom: .3rem; }
.proj-type { font-family: var(--mono); font-size: .7rem; letter-spacing: .15em; color: var(--rust); margin-bottom: .8rem; }
.proj-desc { font-size: 1rem; color: var(--faded); line-height: 1.6; }

/* ŒUVRES */
.works-list { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.work-item { padding: 1.8rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.work-title { font-family: var(--editorial); font-size: 1.3rem; font-style: italic; margin-bottom: .3rem; }
.work-sub { font-size: 1rem; color: var(--faded); line-height: 1.6; }
.work-status { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: var(--rust); white-space: nowrap; padding-top: .3rem; }

/* ARTISTE GRID */
.artist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.artist-block h3 { font-family: var(--display); font-size: 2rem; letter-spacing: .03em; margin-bottom: 1rem; }
.artist-block p { font-size: 1rem; color: var(--faded); line-height: 1.7; margin-bottom: .8rem; }
.artist-block ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.artist-block li { font-size: 1rem; color: var(--faded); padding-left: 1rem; position: relative; }
.artist-block li::before { content: '—'; position: absolute; left: 0; color: var(--rust); }

/* GALERIE 3D — SCÈNE & VIE */
.life-gallery {
  position: relative;
  margin: 0 -6vw 4rem;
  padding: 4.2rem 6vw 4.5rem;
  overflow: hidden;
  color: var(--paper);
  background: #050505;
  border-top: 1px solid rgba(184,137,42,.16);
  border-bottom: 1px solid rgba(184,137,42,.16);
}

.gallery-heading {
  position: relative;
  z-index: 20;
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-kicker {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #e2a46f;
  margin-bottom: .75rem;
}
.gallery-title {
  font-family: var(--editorial);
  font-size: clamp(2.2rem,5vw,4.2rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: .85rem;
}
.gallery-subtitle {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #9d9587;
}

.gallery-shell {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  outline: none;
}

.gallery-stage {
  position: relative;
  width: min(1240px,96vw);
  height: 650px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1700px;
  perspective-origin: 50% 41%;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(255,255,255,.06), transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.025), transparent 25%),
    #020202;
  border: 2px solid rgba(244,240,232,.8);
  box-shadow: 0 24px 65px rgba(0,0,0,.5);
  isolation: isolate;
}

/* Halo diffus au sol, volontairement très discret. */
.gallery-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(700px,82%);
  height: 155px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), rgba(255,255,255,.018) 36%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.gallery-track {
  --gallery-radius: 620px;
  --card-width: 170px;
  --card-height: 270px;
  position: absolute;
  left: 50%;
  top: 43%;
  width: var(--card-width);
  height: var(--card-height);
  transform-style: preserve-3d;
  transform: translate(-50%,-50%) rotateX(-4deg) rotateY(0deg);
  transition: transform .82s cubic-bezier(.2,.72,.2,1);
  will-change: transform;
  z-index: 5;
}

.gallery-card {
  --angle: 0deg;
  --depth-light: .82;
  position: absolute;
  inset: 0;
  width: var(--card-width);
  height: var(--card-height);
  margin: 0;
  overflow: visible;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transform: rotateY(var(--angle)) translateZ(var(--gallery-radius));
  transition: transform .34s cubic-bezier(.2,.72,.2,1), filter .3s ease;
  will-change: transform;
}

.gallery-face {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow:
    0 14px 24px rgba(0,0,0,.72),
    0 0 13px rgba(255,255,255,.035);
}

.gallery-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
  filter: grayscale(1) contrast(1.08) brightness(var(--depth-light));
  transition:
    filter .34s ease,
    transform .34s cubic-bezier(.2,.72,.2,1),
    box-shadow .34s ease;
}

/*
  Vrai reflet miroir : on réutilise exactement la même image sous le panneau,
  retournée verticalement, puis on couche ce duplicata sur le sol en perspective.
*/
.gallery-floor-reflection {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 100%;
  height: 118%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 0;
  transform: rotateX(76deg) scaleY(1.52);
  opacity: .65;
  filter: blur(.8px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.48) 34%,
    rgba(0,0,0,.18) 66%,
    transparent 96%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.48) 34%,
    rgba(0,0,0,.18) 66%,
    transparent 96%
  );
  transition:
    opacity .34s ease,
    filter .34s ease,
    transform .34s cubic-bezier(.2,.72,.2,1);
}

.gallery-floor-reflection img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* inversion verticale réelle du même cliché */
  transform: scaleY(-1);
  transform-origin: center;
  filter: grayscale(1) contrast(1.08) brightness(calc(var(--depth-light) * .48));
  transition: filter .34s ease;
}

/* Ombre de contact très courte : elle ancre le panneau sans remplacer le reflet. */
.gallery-card::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: calc(100% + 2px);
  height: 19px;
  z-index: 2;
  border-radius: 50%;
  background: rgba(0,0,0,.76);
  filter: blur(6px);
  transform: rotateX(74deg) scaleX(1.18);
  transform-origin: top center;
  pointer-events: none;
}

/* Hover : le panneau avance et le miroir suit exactement la même image. */
.gallery-card:hover,
.gallery-card.is-hovered {
  z-index: 50;
  transform: rotateY(var(--angle)) translateZ(calc(var(--gallery-radius) + 86px)) scale(1.15);
}

.gallery-card:hover .gallery-face img,
.gallery-card.is-hovered .gallery-face img {
  transform: scale(1.025);
  filter: grayscale(0) contrast(1.04) brightness(1.08) saturate(1.08);
}

.gallery-card:hover .gallery-face,
.gallery-card.is-hovered .gallery-face {
  box-shadow:
    0 26px 48px rgba(0,0,0,.82),
    0 0 30px rgba(255,255,255,.10),
    0 0 18px rgba(184,137,42,.10);
}

.gallery-card:hover .gallery-floor-reflection,
.gallery-card.is-hovered .gallery-floor-reflection {
  opacity: .72;
  filter: blur(.8px);
  transform: rotateX(76deg) scaleY(1.68);
}

.gallery-card:hover .gallery-floor-reflection img,
.gallery-card.is-hovered .gallery-floor-reflection img {
  filter: grayscale(0) contrast(1.04) brightness(.58) saturate(1.08);
}

/* Les panneaux arrière restent visibles mais plus sombres, miroir compris. */
.gallery-card[data-back='true'] .gallery-face img {
  filter: grayscale(1) contrast(1.03) brightness(.28);
}
.gallery-card[data-back='true'] .gallery-floor-reflection {
  opacity: .22;
  filter: blur(1.6px);
}
.gallery-card[data-back='true'] .gallery-floor-reflection img {
  filter: grayscale(1) brightness(.20) contrast(1.05);
}
.gallery-card[data-back='true']:hover .gallery-face img,
.gallery-card[data-back='true'].is-hovered .gallery-face img {
  filter: grayscale(0) contrast(1.04) brightness(.92) saturate(1.05);
}
.gallery-card[data-back='true']:hover .gallery-floor-reflection img,
.gallery-card[data-back='true'].is-hovered .gallery-floor-reflection img {
  filter: grayscale(0) contrast(1.02) brightness(.48) saturate(1.04);
}

.gallery-arrow {
  position: absolute;
  top: 325px;
  z-index: 40;
  width: 48px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  opacity: .8;
  filter: drop-shadow(0 2px 7px rgba(0,0,0,.9));
  transition: opacity .2s ease, transform .2s ease;
}
.gallery-arrow.prev { left: 28px; }
.gallery-arrow.next { right: 28px; }
.gallery-arrow.prev::before { border-right: 15px solid #d8d8d8; }
.gallery-arrow.next::before { border-left: 15px solid #f1f1f1; }
.gallery-arrow:hover::before { opacity: 1; transform: scale(1.12); }

.gallery-meta {
  position: relative;
  z-index: 20;
  min-height: 42px;
  margin-top: .9rem;
  text-align: center;
}
.gallery-meta-title {
  font-family: var(--editorial);
  font-size: 1rem;
  font-weight: 400;
  color: #bdb5a8;
}
.gallery-meta-year,
.gallery-meta-caption { display: none; }

.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .55rem;
}
.gallery-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.gallery-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5d574e;
  transition: transform .2s ease, background .2s ease;
}
.gallery-dot[aria-current='true'] {
  transform: scale(1.35);
}
.gallery-dot[aria-current='true']::before { background: var(--gold); }
.gallery-card:focus-visible,
.gallery-arrow:focus-visible,
.gallery-dot:focus-visible,
.contact-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.gallery-hint {
  margin-top: .7rem;
  text-align: center;
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #bdb5a8;
}

.gallery-lightbox {
  width: min(94vw,1100px);
  max-height: 92vh;
  border: 1px solid rgba(184,137,42,.45);
  background: #0e0c0a;
  padding: 0;
  color: var(--paper);
  overflow: hidden;
}
.gallery-lightbox::backdrop {
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(4px);
}
.gallery-lightbox img {
  width: 100%;
  max-height: 82vh;
  display: block;
  object-fit: contain;
  background: #080706;
}
.gallery-lightbox-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14,12,10,.75);
  color: var(--paper);
  font-size: 1.45rem;
  cursor: pointer;
}
.gallery-lightbox-caption {
  padding: .8rem 1rem 1rem;
  font-family: var(--editorial);
  text-align: center;
}

@media (max-width: 900px) {
  .gallery-shell { max-width: 96vw; }
  .gallery-stage {
    width: 94vw;
    height: 500px;
    perspective: 1250px;
    perspective-origin: 50% 42%;
  }
  .gallery-track {
    --gallery-radius: 350px;
    --card-width: 108px;
    --card-height: 172px;
  }
  .gallery-arrow { top: 250px; }
  .gallery-arrow.prev { left: 18px; }
  .gallery-arrow.next { right: 18px; }
}

@media (max-width: 700px) {
  .life-gallery { padding-top: 3.2rem; padding-bottom: 3.5rem; }
  .gallery-title { font-size: clamp(2rem,10vw,3.2rem); }
  .gallery-subtitle { letter-spacing: .12em; }
  .gallery-stage {
    width: 96vw;
    height: 405px;
    perspective: 900px;
    perspective-origin: 50% 43%;
  }
  .gallery-track {
    --gallery-radius: 190px;
    --card-width: 82px;
    --card-height: 132px;
    top: 43%;
  }
  .gallery-card:hover,
  .gallery-card.is-hovered {
    transform: rotateY(var(--angle)) translateZ(calc(var(--gallery-radius) + 42px)) scale(1.13);
  }
  .gallery-arrow { top: 202px; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
}

@media (hover: none) {
  .gallery-card:hover {
    transform: rotateY(var(--angle)) translateZ(var(--gallery-radius));
  }
  .gallery-card:hover .gallery-face img {
    transform: none;
    filter: grayscale(1) contrast(1.08) brightness(var(--depth-light));
  }
  .gallery-card:hover .gallery-floor-reflection {
    opacity: .54;
    filter: blur(1.15px);
    transform: rotateX(76deg) scaleY(1.52);
  }
  .gallery-card:hover .gallery-floor-reflection img {
    filter: grayscale(1) contrast(1.08) brightness(calc(var(--depth-light) * .48));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* VALEURS */
.values-row { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 3rem; }
.value-word { font-family: var(--display); font-size: 2.8rem; letter-spacing: .03em; line-height: 1; color: var(--ink); }
.value-def { font-size: .82rem; color: var(--faded); font-style: italic; margin-top: .3rem; max-width: 18ch; }

/* CONTACT */
.contact-band {
  padding: 5rem 6vw; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.contact-title { font-family: var(--display); font-size: clamp(3rem, 6vw, 6rem); line-height: .9; letter-spacing: -.01em; }
.contact-title span { color: var(--rust); }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { font-family: var(--sans); font-size: 1.2rem; font-weight: 500; letter-spacing: .02em; color: #b0a890; text-decoration: none; transition: color .2s; display: flex; align-items: center; gap: .6rem; }
.contact-link:hover { color: var(--rust); }
.contact-link[href^="mailto"]::before { content: '✉'; font-size: .9rem; opacity: .5; }
.contact-link[href^="tel"]::before { content: '↗'; font-size: .9rem; opacity: .5; }
.contact-link[href^="https://github"]::before { content: '↗'; font-size: .9rem; opacity: .5; }
.contact-link:hover { color: var(--rust); }

/* FOOTER */
footer { padding: 2rem 6vw; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.footer-name { font-family: var(--display); font-size: 1rem; letter-spacing: .08em; }
.footer-copy { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; color: var(--faded); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { height: 70vw; max-height: 420px; }
  .hero-photo img { object-position: center 20%; }
  .universe-sep { grid-template-columns: 1fr 1fr; }
  .universe-tab { border-bottom: 1px solid var(--line); }
  .tl-item { grid-template-columns: 1fr; gap: .5rem; }
  .artist-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-band { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  nav { gap: .6rem; padding: .65rem 3vw; }
  .nav-name { flex: 0 0 auto; font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }
  .nav-links {
    display: flex; flex: 1 1 auto; min-width: 0; gap: .6rem;
    overflow-x: auto; overscroll-behavior-inline: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    justify-content: flex-end;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: .48rem; letter-spacing: .1em; white-space: nowrap; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .12rem; font-size: .56rem; }
  #lang-toggle { min-width: 44px; min-height: 44px; }
  .universe-sep { grid-template-columns: 1fr 1fr; }
  .hero-name { font-size: clamp(3.4rem, 18vw, 4.6rem); }
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .universe-tab { min-height: 72px; padding: 1rem; }
  .universe { padding: 4rem 5vw; }
  .contact-band { padding: 3.5rem 5vw; }
}

/* SCROLL REVEAL */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

  /* BOUTON CONTACT FLOTTANT */
  .contact-fab {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    z-index: 200;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.4rem;
    background: var(--rust);
    color: #f4f0e8;
    text-decoration: none;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(168,60,10,.4);
    transition: all .25s ease;
    opacity: 1;
    transform: translateY(0);
  }
  .js .contact-fab:not(.visible) {
    opacity: 1;
    transform: translateY(0);
  }
  .contact-fab:hover {
    background: #c04810;
    box-shadow: 0 6px 28px rgba(168,60,10,.55);
    transform: translateY(-2px);
  }
  .contact-fab .fab-icon {
    font-size: 1rem;
  }
  @media (max-width: 600px) {
    .contact-fab {
      bottom: max(.75rem, env(safe-area-inset-bottom));
      right: max(.75rem, env(safe-area-inset-right));
      padding: .65rem 1.1rem;
    }
  }

/* TIMELINE */
.frise { position: relative; max-width: 1100px; margin: 0 auto; }
.frise-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.frise-row { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: start; }
.frise-left { text-align: right; padding: .8rem 2rem .8rem 0; }
.frise-mid { display: flex; justify-content: center; padding-top: 1rem; position: relative; z-index: 1; }
.frise-right { padding: .8rem 0 .8rem 2rem; }
.dot-pro { width: 14px; height: 14px; border-radius: 50%; background: var(--rust); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--rust); }
.dot-art { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.dot-both { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--rust); box-shadow: 0 0 0 3px var(--gold); }
.dot-year { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .5rem; color: var(--faded); text-align: center; }
.f-date { font-family: var(--mono); font-size: .65rem; letter-spacing: .1em; margin-bottom: .3rem; }
.f-date.pro { color: var(--rust); }
.f-date.art { color: var(--gold-ink); }
.f-title { font-size: 1rem; color: var(--ink); font-weight: 600; margin-bottom: .2rem; }
.f-sub { font-size: .88rem; color: var(--faded); line-height: 1.5; }
.frise-year { width: 62px; height: 62px; min-width: 62px; min-height: 62px; border-radius: 50%; flex-shrink: 0; background: var(--rust); border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--rust); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 1.1rem; font-weight: 400; color: #fff; text-align: center; letter-spacing: .05em; }
.frise-year.pro { background: var(--rust); box-shadow: 0 0 0 3px var(--rust); }
.frise-year.art { background: #2a7a4a; box-shadow: 0 0 0 3px #2a7a4a; }
.frise-year.tech { background: #1a5fa8; box-shadow: 0 0 0 3px #1a5fa8; }
.frise-year.author { background: #6a3a8a; box-shadow: 0 0 0 3px #6a3a8a; }
.frise-year.both { background: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.f-date.tech { color: #1a5fa8; }
.f-date.scene { color: #2a7a4a; }
.f-date.author { color: #6a3a8a; }
.frise-sep { height: 2px; background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent); margin: .3rem 0; opacity: .8; }
@media (max-width: 700px) {
  .frise-line { left: 44px; transform: none; }
  .frise-row { grid-template-columns: 90px 1fr; }
  .frise-left { display: none; }
  .frise-mid { justify-content: center; padding-top: .9rem; }
  .frise-right { padding: .8rem 0 .8rem .8rem; }
  .frise-year { width: 56px; height: 56px; min-width: 56px; min-height: 56px; font-size: .68rem; }
  .frise-left-mobile { display: block !important; }
}
.frise-left-mobile { display: none; }




/* CURRENTLY: readable, balanced 2x2 feature cards */
.now-section {
  padding: clamp(3.5rem, 6vw, 5rem) 6vw;
  border-bottom: 1px solid rgba(244,240,232,.16);
  background: var(--ink);
  color: var(--paper);
}
.now-intro,
.now-grid { width: min(100%, 1100px); margin-inline: auto; }
.now-intro { margin-bottom: 1.6rem; }
.now-eyebrow {
  margin-bottom: .35rem;
  color: #e2ad5e;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.now-heading {
  color: var(--paper);
  font-family: var(--editorial);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.now-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid #39332a;
  background: #211d17;
}
.now-category {
  margin-bottom: .55rem;
  color: #e2ad5e;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
}
.now-title {
  margin-bottom: .55rem;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.2;
}
.now-description {
  max-width: 48ch;
  color: #d0c8b8;
  font-size: 1rem;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .now-section { padding-inline: 5vw; }
  .now-grid { grid-template-columns: 1fr; gap: .65rem; }
}


/* Mobile layout fixes: keep navigation, gallery and content centered and unobstructed. */
@media (max-width: 700px) {
  nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .15rem .6rem;
    padding: .4rem 4vw .25rem;
  }
  .nav-name {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    font-size: 1rem;
  }
  #lang-toggle { grid-column: 2; grid-row: 1; }
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: .2rem;
    overflow-x: auto;
    padding-inline: 0;
  }
  .nav-links a {
    font-size: clamp(.48rem, 2.5vw, .62rem);
    letter-spacing: .07em;
    padding-inline: .1rem;
  }
  section[id] { scroll-margin-top: 84px; }
  .hero { padding-top: 108px; }

  .gallery-shell { width: 100%; max-width: 100%; }
  .gallery-stage {
    width: min(100% - 2rem, 600px);
    margin-inline: auto;
    left: auto;
    right: auto;
  }
  .gallery-track { left: 50%; }

  .contact-fab {
    position: static;
    width: fit-content;
    max-width: calc(100% - 2rem);
    justify-content: center;
    margin: 1.25rem auto calc(1.25rem + env(safe-area-inset-bottom));
    transform: none;
  }
}

.gallery-lightbox[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(92vw, 1100px);
  height: fit-content;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.gallery-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92dvh - 5rem);
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 700px) {
  .gallery-lightbox[open] { width: min(94vw, 600px); }
  .gallery-lightbox img { max-height: calc(88dvh - 4rem); }
  .gallery-lightbox-close { top: .5rem; right: .5rem; }
}

@media (max-width: 700px) {
  /* Let vertical page scrolling pass through while horizontal swipes control the carousel. */
  .gallery-stage { touch-action: pan-y; }
}


/* Desktop layout: size the carousel to its actual container and keep contact in flow. */
.gallery-shell {
  width: min(100%, 1320px);
  max-width: 100%;
  margin-inline: auto;
}
.gallery-stage {
  width: min(100%, 1240px);
  max-width: 100%;
  margin-inline: auto;
}
.contact-fab {
  position: static;
  inset: auto;
  z-index: auto;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 1.5rem auto 2rem;
  transform: none;
}


/* Persistent contact bubble: keep the shortcut visible without covering copy. */
.contact-fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  padding: 0;
  margin: 0;
  gap: 0;
  border-radius: 50%;
}
.contact-fab .fab-icon { font-size: 1.25rem; }
.contact-fab span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-fab:hover,
.contact-fab:focus-visible {
  width: auto;
  height: 3.5rem;
  padding-inline: 1.2rem;
  border-radius: 2rem;
}
.contact-fab:hover span:last-child,
.contact-fab:focus-visible span:last-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}
@media (max-width: 700px) {
  .contact-fab {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
}


/* Improve primary navigation legibility across desktop and mobile. */
.nav-links a { font-size: .76rem; }
@media (max-width: 900px) {
  .nav-links { gap: 1rem; }
}
@media (max-width: 700px) {
  .nav-links { gap: .2rem; }
  .nav-links a {
    font-size: clamp(.58rem, 3vw, .76rem);
    letter-spacing: .07em;
  }
}


/* Make writing dates and status labels easier to scan. */
.work-status {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .work-item { gap: 1rem; }
  .work-status { font-size: .76rem; }
}


/* Make writing dates and status labels prominent and readable. */
.work-status {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  color: #862f08;
}
@media (max-width: 700px) {
  .work-item { gap: .8rem; }
  .work-status { font-size: .9rem; }
}


/* Tighter vertical rhythm for the four main sections. */
@media (max-width: 700px) {
  .universe { padding-block: 3rem; }
  .universe-header { margin-bottom: 2rem; }
}




/* Display the supplied US/UK flag beside the language label. */
.lang-toggle { gap: .4rem; min-width: 72px; padding-inline: .5rem; }
.lang-toggle .language-flag {
  display: block;
  width: 32px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}


/* Distinguish the four life sections with restrained color tints and accents. */
#pro {
  --section-accent: #a83c0a;
  background-color: #f7efeb;
  border-top: 3px solid var(--section-accent);
  border-left: 3px solid var(--section-accent);
}
#tech {
  --section-accent: #1a5fa8;
  background-color: #eef3f8;
  border-top: 3px solid var(--section-accent);
  border-left: 3px solid var(--section-accent);
}
#auteur {
  --section-accent: #6a3a8a;
  background-color: #f4eff7;
  border-top: 3px solid var(--section-accent);
  border-left: 3px solid var(--section-accent);
}
#artiste {
  --section-accent: #2a7a4a;
  background-color: #eff4ee;
  border-top: 3px solid var(--section-accent);
  border-left: 3px solid var(--section-accent);
}
#pro > div:first-child h2 { color: var(--section-accent) !important; }
.universe-num { color: var(--section-accent); opacity: .3; }
.universe-intro { color: var(--section-accent); }


/* Compact vertical rhythm across the four main life sections. */
@media (min-width: 901px) {
  .hero { min-height: 92vh; }
  .hero-text { padding-block: 4rem; }
}
#pro { padding-block: 3rem !important; }
#pro > div:first-child { margin-bottom: 2rem !important; }
#pro > div:nth-child(2) { margin-bottom: 1.5rem !important; }
.frise-left, .frise-right { padding-block: .5rem; }
#tech, #auteur, #artiste { padding-block: 3.25rem; }
.universe-header { margin-bottom: 2rem; }
.projects-grid { align-items: start; }
.proj-card { padding: 1.5rem; }
.work-item { padding-block: 1.15rem; }
.life-gallery { padding-block: 3rem; }
.gallery-stage { height: 540px; }
.gallery-arrow { top: 270px; }

@media (max-width: 900px) {
  #tech, #auteur, #artiste { padding-block: 2.75rem; }
  .gallery-stage { height: 440px; }
  .gallery-arrow { top: 220px; }
}
@media (max-width: 700px) {
  .hero-text { padding-block: 3.25rem; }
  #pro { padding-block: 2.5rem !important; }
  #pro > div:first-child { margin-bottom: 1.5rem !important; }
  #pro > div:nth-child(2) { margin-bottom: 1rem !important; }
  .frise-left, .frise-right { padding-block: .4rem; }
  #tech, #auteur, #artiste { padding-block: 2.25rem; }
  .universe-header { margin-bottom: 1.5rem; }
  .work-item { padding-block: .9rem; }
  .life-gallery { padding-block: 2.25rem; }
  .gallery-stage { height: 360px; }
  .gallery-arrow { top: 180px; }
}


/* Keep each life section on screen before the next one begins. */
#tech, #auteur, #artiste { min-height: 100vh; min-height: 100svh; }


/* Keep the four universe shortcuts visible when opening “Currently”. */
#now { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); scroll-margin-top: 72px; }



/* Make the desktop landing screen more compact while keeping its CTA in view. */
@media (min-width: 901px) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero-text { padding-block: 2.25rem; }
  .hero-kicker { margin-bottom: 1.25rem; }
  .hero-name {
    font-size: clamp(4.25rem, 7vw, 8rem);
    margin-bottom: 1.5rem;
  }
  .hero-quote {
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    line-height: 1.45;
    margin-bottom: 1.5rem;
  }
  .hero-cta { margin-top: 1rem; }
}


/* Keep every mobile menu label intact and make the row horizontally scrollable on narrow phones. */
@media (max-width: 700px) {
  .nav-links {
    justify-content: flex-start;
    gap: .25rem;
    padding-inline: .25rem .5rem;
    scroll-padding-inline: .5rem;
  }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .62rem;
    letter-spacing: .04em;
  }
}


/* Center the mobile navigation row while preserving the ability to reach every item. */
@media (max-width: 700px) {
  .nav-links {
    justify-self: center;
    width: max-content;
    max-width: 100%;
    justify-content: flex-start;
  }
}


/* Keep the four shortcut numbers below the fixed navigation when jumping to this section. */
#now { scroll-margin-top: 84px; }
@media (max-width: 700px) {
  #now { scroll-margin-top: 108px; }
}


/* Color the homepage skill tags by their corresponding life section. */
.tag.group-career { border-color: #a83c0a; color: #a83c0a; }
.tag.group-projects { border-color: #1a5fa8; color: #1a5fa8; }
.tag.group-writing { border-color: #6a3a8a; color: #6a3a8a; }
.tag.group-stage { border-color: #2a7a4a; color: #2a7a4a; }

/* Keep longer translated navigation labels on one row at tablet widths. */
@media (min-width: 701px) and (max-width: 900px) {
  nav { gap: .75rem; padding-inline: 2vw; }
  .nav-name { flex: 0 0 auto; white-space: nowrap; font-size: 1.05rem; }
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    justify-content: flex-start;
    gap: .8rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex: 0 0 auto; }
  .nav-links a { white-space: nowrap; font-size: .56rem; letter-spacing: .08em; }
  .lang-toggle { flex: 0 0 auto; }
}


/* Accessibility and small-screen overrides */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
.parallel-timelines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.75rem); max-width: 1440px; margin: 0 auto; }
.timeline-stage { position: relative; }
.parallel-track { position: relative; min-width: 0; padding: 0 .25rem; }
.parallel-track::before { content: ""; position: absolute; left: 1.8rem; top: 4.6rem; bottom: .5rem; width: 2px; background: var(--line); transform-origin: top center; }
.parallel-track--professional::before { background: var(--rust); }
.parallel-track--digital::before { background: var(--col-tech); }
.parallel-track--creative::before { background: var(--col-art); }
.parallel-track > h3 { min-height: 3.6rem; margin: 0 0 1rem; padding: 0 0 .85rem; border-bottom: 2px solid var(--line); font: .92rem var(--mono); letter-spacing: .09em; line-height: 1.45; text-transform: uppercase; }
.parallel-track--professional > h3 { color: var(--rust); border-color: var(--rust); }
.parallel-track--creative > h3 { color: var(--col-art); border-color: var(--col-art); }
.parallel-track--digital > h3 { color: var(--col-tech); border-color: var(--col-tech); }
.parallel-entry { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.parallel-year { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid var(--rust); border-radius: 50%; color: var(--rust); font: .95rem var(--display); background: var(--paper); }
.parallel-entry--art .parallel-year { border-color: var(--col-art); color: var(--col-art); }
.parallel-entry--tech .parallel-year { border-color: var(--col-tech); color: var(--col-tech); }
.parallel-entry--author .parallel-year { border-color: var(--col-author); color: var(--col-author); }
.parallel-entry--author .f-title { color: var(--col-author); }
.mobile-unified-frise .writing-work-title { color: var(--col-author); }
.parallel-copy { min-width: 0; padding-top: .25rem; }
.parallel-copy .f-date { margin-bottom: .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .07em; line-height: 1.4; }
.work-item--author .work-title, .work-item--author .work-status { color: var(--col-author); }
.mobile-unified-frise { display: none; }
.hero-cta { min-height: 54px; margin-top: 1.75rem; padding: .9rem 1.35rem; border: 1px solid var(--rust); border-radius: 2px; background: var(--rust); color: var(--paper); font-size: .72rem; font-weight: 700; letter-spacing: .1em; box-shadow: 0 5px 16px rgba(14,12,10,.16); transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.hero-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,12,10,.22); }
.hero-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 700px) { .hero-cta { min-height: 52px; margin-top: 1.4rem; padding-inline: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .hero-cta { transition: none; } .hero-cta:hover { transform: none; } }
/* Make the primary navigation easier to read at every viewport size. */
.nav-links { gap: clamp(.8rem, 1.7vw, 1.5rem); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .74rem; letter-spacing: .1em; }
@media (min-width: 701px) and (max-width: 900px) { .nav-links a { font-size: .68rem; letter-spacing: .07em; } }
@media (max-width: 700px) { .nav-links { gap: .45rem; } .nav-links a { font-size: .72rem; letter-spacing: .04em; padding-inline: .2rem; } }
@media (max-width: 760px) {
  /* Keep all three complete timelines visible as a clear vertical sequence on phones. */
  .parallel-timelines { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; width: 100%; }
  .parallel-track { padding: 1rem .85rem .65rem; border: 1px solid var(--line); border-top: 3px solid var(--rust); border-radius: 4px; background: rgba(255,255,255,.28); }
  .parallel-track--professional { border-top-color: var(--rust); }
  .parallel-track--creative { border-top-color: var(--col-art); }
  .parallel-track--digital { border-top-color: var(--col-tech); }
  .parallel-track--professional::before { background: var(--rust); }
  .parallel-track--creative::before { background: var(--col-art); }
  .parallel-track--digital::before { background: var(--col-tech); }
  .parallel-track > h3 { min-height: 0; margin-bottom: .65rem; padding-bottom: .65rem; font-size: .95rem; }
  .parallel-track::before { left: 2.4rem; top: 4.05rem; bottom: 1rem; }
  .parallel-entry { grid-template-columns: 50px minmax(0, 1fr); gap: .7rem; padding: .85rem 0; }
  .parallel-year { width: 46px; height: 46px; font-size: .9rem; }
  .parallel-copy .f-date { font-size: .84rem; letter-spacing: .04em; }
  .parallel-copy .f-title { line-height: 1.35; }
  .parallel-copy .f-sub { line-height: 1.55; overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  .parallel-timelines { display: none; }
  .mobile-unified-frise { display: block; }
  .mobile-unified-frise .frise-right .f-date { font-size: .84rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
}
@media (min-width: 901px) {
  #pro.timeline-intro .parallel-timelines { display: none; }
  #pro.timeline-intro .mobile-unified-frise { display: block; opacity: 1; transform: none; }
  #pro.timeline-splitting .mobile-unified-frise { opacity: 1; transform: none; }
  #pro.timeline-splitting .parallel-timelines { display: grid; opacity: 1; transform: none; transform-origin: top center; }
  #pro.timeline-splitting .parallel-timelines.is-revealed { opacity: 1; transform: none; }
  #pro.timeline-splitting .parallel-track { animation: none; }
  #pro.timeline-splitting .parallel-track--professional::before { animation: timelineRailGrow 2.4s cubic-bezier(.22,.8,.2,1) .05s both; }
  #pro.timeline-splitting .parallel-track--digital::before { animation: timelineRailGrow 2.4s cubic-bezier(.22,.8,.2,1) .3s both; }
  #pro.timeline-splitting .parallel-track--creative::before { animation: timelineRailGrow 2.4s cubic-bezier(.22,.8,.2,1) .55s both; }
  #pro.timeline-split .mobile-unified-frise { display: none; }
}
@keyframes timelineTrackReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes timelineRailGrow { from { transform: translateX(var(--rail-from-x, 0px)) scaleY(.02); } to { transform: translateX(0) scaleY(1); } }
@media (min-width: 761px) and (max-width: 1150px) {
  .parallel-timelines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parallel-track--digital { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1rem; }
  .parallel-track--digital > h3 { grid-column: 1 / -1; }
  .parallel-track--digital .parallel-entry { grid-template-columns: 44px minmax(0, 1fr); gap: .55rem; }
  .parallel-track--digital .parallel-year { width: 40px; height: 40px; }
}

