/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f2ece4;
  --bg-dark: #e8e0d4;
  --text: #1a1a1a;
  --text-light: #5a5549;
  --accent: #c44d2b;
  --cream: #f5f0ea;
  --card-bg: rgba(255, 252, 247, 0.6);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}


/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10001;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(26, 26, 26, 0.4);
  background: radial-gradient(circle, transparent 40%, rgba(26, 26, 26, 0.05) 41%, transparent 55%, rgba(26, 26, 26, 0.05) 56%, transparent 70%);
  transition: width 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
              height 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
              border-color 0.3s ease,
              background 0.3s ease;
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: radial-gradient(circle, transparent 35%, rgba(196, 77, 43, 0.08) 36%, transparent 55%, rgba(196, 77, 43, 0.08) 56%, transparent 75%);
}

@media (hover: none), (max-width: 768px) {
  .cursor-dot, .cursor-ring {
    display: none;
  }
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [class*="thumb-item"] {
  cursor: none;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ===== INTRO SCREEN ===== */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro.leaving {
  opacity: 0;
  pointer-events: none;
}

.intro.gone {
  display: none;
}

/* Intro déjà vue — masquer instantanément (classe posée dans <head> avant le rendu) */
html.intro-done .intro {
  display: none;
}

.intro-content {
  text-align: center;
}

.intro-hint {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.intro-turntable {
  position: relative;
  width: 520px;
  height: 400px;
  margin: 0 auto;
}

.intro-vinyl {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  position: absolute;
  left: 50px;
  top: calc(50% - 170px);
  background: radial-gradient(
    circle,
    #1a1a1a 0%, #111 15%, #222 16%, #111 17%,
    #1a1a1a 18%, #222 30%, #111 31%, #1a1a1a 32%,
    #222 45%, #111 46%, #1a1a1a 47%, #222 60%,
    #111 61%, #1a1a1a 62%, #222 78%, #111 79%,
    #1a1a1a 80%, #333 95%, #222 100%
  );
  box-shadow:
    0 0 0 3px #333,
    0 0 0 6px #222,
    0 20px 60px rgba(0,0,0,0.3);
}

.intro-vinyl .vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a03820);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.intro-vinyl .vinyl-logo {
  width: 60%;
  height: 60%;
  object-fit: contain;
  border-radius: 50%;
}

/* Tonearm for intro — SVG approach */
.intro-tonearm {
  position: absolute;
  right: 30px;
  top: 10px;
  transform-origin: 50% 6.92%;
  transform: rotate(-15deg);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  cursor: pointer;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.intro.playing .intro-tonearm {
  transform: rotate(38deg);
}

.intro-skip {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.6;
  letter-spacing: 0.03em;
}

/* Hidden state for nav/content before intro completes */
.nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav.visible {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.6s ease 0.3s;
}

@media (max-width: 768px) {
  .intro-turntable {
    width: 280px;
    height: 280px;
  }
  .intro-vinyl {
    width: 200px;
    height: 200px;
    left: 15px;
    top: calc(50% - 100px);
  }
  .intro-vinyl .vinyl-label {
    width: 55px;
    height: 55px;
  }
  .intro-tonearm {
    right: 10px;
    top: 20px;
    width: 38px;
    height: 170px;
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(242, 236, 228, 0.95);
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  padding: 0.8rem 2.5rem;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.nav-logo:hover {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Warm static base — sober foundation */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(196, 77, 43, 0.08), transparent 65%),
    radial-gradient(ellipse 60% 80% at 10% 20%, rgba(26, 26, 26, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Sound waves emanating from the vinyl */
.hero-waves {
  position: absolute;
  top: 50%;
  right: 10%;
  width: 380px;
  height: 380px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.hero-waves span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 77, 43, 0.35);
  opacity: 0;
  animation: soundWave 5s ease-out infinite;
  will-change: transform, opacity;
}

.hero-waves span:nth-child(1) { animation-delay: 0s; }
.hero-waves span:nth-child(2) { animation-delay: 1.25s; }
.hero-waves span:nth-child(3) { animation-delay: 2.5s; }
.hero-waves span:nth-child(4) { animation-delay: 3.75s; }

@keyframes soundWave {
  0% {
    transform: scale(0.4);
    opacity: 0;
    border-color: rgba(196, 77, 43, 0.4);
  }
  15% {
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
    border-color: rgba(196, 77, 43, 0);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 77, 43, 0.25);
}

/* Vinyl record */
.hero-vinyl {
  flex: 0 0 auto;
  will-change: transform;
}

.vinyl-container {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-record {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  will-change: transform;
  background: radial-gradient(
    circle,
    #1a1a1a 0%,
    #111 15%,
    #222 16%,
    #111 17%,
    #1a1a1a 18%,
    #222 30%,
    #111 31%,
    #1a1a1a 32%,
    #222 45%,
    #111 46%,
    #1a1a1a 47%,
    #222 60%,
    #111 61%,
    #1a1a1a 62%,
    #222 78%,
    #111 79%,
    #1a1a1a 80%,
    #333 95%,
    #222 100%
  );
  position: relative;
  box-shadow:
    0 0 0 3px #333,
    0 0 0 6px #222,
    0 20px 60px rgba(0,0,0,0.3);
}

.vinyl-record::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg,
      rgba(255, 255, 255, 0.08) 25deg,
      rgba(255, 255, 255, 0.14) 45deg,
      rgba(255, 255, 255, 0.06) 70deg,
      transparent 110deg,
      transparent 180deg,
      rgba(255, 255, 255, 0.05) 220deg,
      rgba(255, 255, 255, 0.10) 250deg,
      transparent 290deg,
      transparent 360deg);
  pointer-events: none;
}


.vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a03820);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.vinyl-logo {
  width: 60%;
  height: 60%;
  object-fit: contain;
  border-radius: 50%;
}

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.groove-1 { top: 22%; left: 22%; width: 56%; height: 56%; }
.groove-2 { top: 28%; left: 28%; width: 44%; height: 44%; }
.groove-3 { top: 34%; left: 34%; width: 32%; height: 32%; }
.groove-4 { top: 40%; left: 40%; width: 20%; height: 20%; }

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

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Tonearm */
.tonearm {
  position: absolute;
  top: -10px;
  right: 10px;
  transform-origin: 50% 6.92%;
  transform: rotate(-25deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  cursor: pointer;
  transition: transform 1.3s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 2;
}

.tonearm.on-vinyl {
  transform: rotate(15deg);
}


/* ===== MUSIC NOTES BURST (CTA click) ===== */
.music-note {
  position: fixed;
  pointer-events: none;
  font-size: 1.6rem;
  color: var(--accent);
  z-index: 9999;
  user-select: none;
  font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  text-shadow: 0 2px 8px rgba(196, 77, 43, 0.25);
  will-change: transform, opacity;
  animation: floatNote 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes floatNote {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.4);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(var(--mx, 0), -20px) rotate(var(--r1, 0deg)) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--mx, 0) * 1.3), -120px) rotate(var(--r2, 0deg)) scale(0.85);
    opacity: 0;
  }
}

/* Burst pulse — subtle wave intensification when needle hits vinyl */
.hero-waves.burst span {
  animation: soundWaveBurst 1.6s ease-out;
}

.hero-waves.burst span:nth-child(1) { animation-delay: 0s; }
.hero-waves.burst span:nth-child(2) { animation-delay: 0.12s; }
.hero-waves.burst span:nth-child(3) { animation-delay: 0.24s; }
.hero-waves.burst span:nth-child(4) { animation-delay: 0.36s; }

@keyframes soundWaveBurst {
  0% {
    transform: scale(0.5);
    opacity: 0;
    border-color: rgba(196, 77, 43, 0.7);
    border-width: 2px;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
    border-color: rgba(196, 77, 43, 0);
    border-width: 1px;
  }
}


/* ===== SECTIONS ===== */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.04);
  line-height: 1;
  margin-bottom: -2rem;
  user-select: none;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-title .light {
  font-weight: 400;
  color: var(--text-light);
}

.section-title .accent {
  color: var(--accent);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(242, 236, 228, 0.3));
}

.about-image img {
  width: 100%;
  object-fit: cover;
}

.about-vinyl-deco {
  position: absolute;
  bottom: -30px;
  right: -30px;
  z-index: 2;
}

.mini-vinyl {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 0%, #111 40%, #333 80%, #222 100%);
  animation: spin 6s linear infinite;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.mini-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-light);
}

.about-text p strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about-downloads {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.download-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.download-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.download-pill:hover {
  background: var(--accent);
  color: #fff;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(26, 26, 26, 0.06);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(26, 26, 26, 0.05);
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.project-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.08);
  line-height: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.project-type {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-left: auto;
}

.project-body {
  display: grid;
  gap: 2rem;
}

.project-description p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.7;
}

.project-description p strong {
  color: var(--text);
}

/* Gallery */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-gallery.single {
  grid-template-columns: 1fr;
  max-width: 500px;
}

.gallery-main img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-main {
  position: relative;
  overflow: hidden;
}

.gallery-evolution {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-item img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  object-fit: cover;
}

.gallery-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

/* Stage skills */
.stage-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(196, 77, 43, 0.06);
  transform: translateY(-2px);
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.skill-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Project / experience video link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.project-link:hover {
  background: #a83a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 77, 43, 0.28);
}

/* Thumbnails grid */
.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.thumb-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.thumb-item:hover img {
  transform: scale(1.05);
}

.thumb-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumb-item:hover .thumb-overlay {
  opacity: 1;
}

.thumb-overlay span {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(26, 26, 26, 0.03);
  border-radius: 16px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-gallery {
  margin-top: 1rem;
}

.video-gallery img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* ===== CONTACT ===== */
.contact {
  padding: 6rem 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.contact-vinyl {
  flex-shrink: 0;
}

.vinyl-contact {
  width: 250px;
  height: 250px;
  animation: spin 12s linear infinite;
}

.vinyl-contact .vinyl-label {
  width: 70px;
  height: 70px;
}

.vinyl-contact .vinyl-label span {
  font-size: 1.1rem;
  animation: counter-spin 12s linear infinite;
}

.contact-content {
  flex: 1;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(26, 26, 26, 0.15);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

.contact-link:hover svg {
  stroke: var(--bg);
}

/* Download buttons */
.contact-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0;
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 0;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.download-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}

.download-btn:hover {
  background: transparent;
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: none;
  box-shadow: none;
}

@keyframes highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 77, 43, 0.5); }
  40%  { box-shadow: 0 0 0 12px rgba(196, 77, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 77, 43, 0); }
}

.download-btn.highlight-pulse {
  color: var(--accent);
  border-bottom-color: var(--accent);
  animation: highlight-pulse 1s ease 2;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero animations */
.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title .line:nth-child(1) {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .line:nth-child(2) {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-desc {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero-vinyl {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeLeft 1s ease 0.6s forwards;
}

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

@keyframes fadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vinyl-container {
    width: 280px;
    height: 280px;
  }

  .vinyl-record {
    width: 260px;
    height: 260px;
  }

  .vinyl-label {
    width: 80px;
    height: 80px;
  }

  .hero-vinyl {
    right: -2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

/* Tablette paysage / petit laptop */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }

  .hero-vinyl {
    right: -3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stage-skills {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .hero-vinyl {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }

  .vinyl-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
  }

  /* Move sound waves inside vinyl container area on mobile by matching its position */
  .hero-waves {
    position: absolute;
    right: auto;
    left: 50%;
    top: auto;
    bottom: auto;
    margin: 0;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    /* Align vertically with the vinyl: hero is flex-column centered, vinyl is at top of hero-content */
    pointer-events: none;
  }

  /* Hide waves on mobile to avoid alignment issues — vinyl alone is enough */
  .hero-waves { display: none; }

  /* Disable warm radial glow positioning that targets right side */
  .hero::before {
    background:
      radial-gradient(ellipse 80% 40% at 50% 25%, rgba(196, 77, 43, 0.10), transparent 70%),
      radial-gradient(ellipse 60% 60% at 50% 80%, rgba(26, 26, 26, 0.04), transparent 70%);
  }

  .vinyl-record {
    width: 180px;
    height: 180px;
  }

  .vinyl-label {
    width: 60px;
    height: 60px;
  }

  .vinyl-label span {
    font-size: 1rem;
  }

  .tonearm {
    display: block;
    width: 25px;
    height: 110px;
    right: 0px;
    top: -8px;
  }

  .hero-cta {
    display: inline-block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .stage-skills {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }

  .section-label {
    font-size: 5rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .project-type {
    margin-left: 0;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 5rem 1.5rem 2rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .section {
    padding: 5rem 0;
  }
}

/* ===== PAGE TRANSITIONS ===== */
@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: page-fade-in 0.35s ease both;
}

body.is-leaving {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.25s ease !important;
  pointer-events: none;
}

/* View Transitions API — smooth cross-document crossfade (no white flash)
   Supported: Chrome/Edge 126+, Safari 18.2+. Firefox falls back to is-leaving fade. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}

::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  to { opacity: 0; transform: scale(0.985); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: scale(1.015); }
}

/* Lorsque la VT API est dispo, on désactive le fondu manuel pour laisser
   le crossfade natif jouer seul. Détection via @supports pour agir avant
   le JS (évite le flash d'opacité 0 pendant le chargement). */
@supports (view-transition-name: none) {
  body { animation: none !important; }
  body.is-leaving {
    opacity: 1 !important;
    transition: none !important;
    pointer-events: auto;
  }
}

/* ===== VINYL AUDIO WIDGET ===== */
.vinyl-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  background: rgba(26, 26, 26, 0.88);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  opacity: 1;
  transform: scale(1);
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.5s ease,
    box-shadow 0.5s ease,
    opacity 0.4s ease;
  cursor: pointer;
}

.vinyl-widget.is-playing {
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  background: rgba(26, 26, 26, 0.92);
  box-shadow: 0 4px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(196, 77, 43, 0.12);
  transform: scale(1.04);
}

.vinyl-widget.widget-entering {
  opacity: 0;
  transform: scale(0.9) translateY(10px);
}

.vinyl-widget:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.vinyl-widget.hidden-by-intro {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  animation: none;
  pointer-events: none;
}



.vinyl-widget-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
  position: relative;
  transition: transform 0.15s ease;
}

.vinyl-widget-disc {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #1a1a1a 0deg, #2a2a2a 30deg, #1a1a1a 60deg,
    #2a2a2a 90deg, #1a1a1a 120deg, #2a2a2a 150deg,
    #1a1a1a 180deg, #2a2a2a 210deg, #1a1a1a 240deg,
    #2a2a2a 270deg, #1a1a1a 300deg, #2a2a2a 330deg,
    #1a1a1a 360deg
  );
  border: 2px solid #333;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.vinyl-widget.is-playing .vinyl-widget-disc {
  animation: spin-vinyl 2.5s linear infinite;
}

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

.vinyl-widget-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.vinyl-widget-groove {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0.5px solid rgba(255,255,255,0.06);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vinyl-widget-groove.g2 {
  width: 26px;
  height: 26px;
}

.vinyl-widget-icons {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vinyl-widget-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  color: #fff;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Play visible par défaut, pause cachée */
.vinyl-widget .icon-play  { opacity: 1; transform: scale(1); }
.vinyl-widget .icon-pause { opacity: 0; transform: scale(0.6); }

/* En lecture : play cachée, pause visible */
.vinyl-widget.is-playing .icon-play  { opacity: 0; transform: scale(0.6); }
.vinyl-widget.is-playing .icon-pause { opacity: 1; transform: scale(1); }

.vinyl-widget-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vinyl-widget-text.text-swap {
  opacity: 0;
  transform: translateY(3px);
}

/* ===== VINYL TOAST (easter egg) ===== */
.vinyl-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(26, 26, 26, 0.9);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 950;
}

.vinyl-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== CURSEUR DIAMANT SUR ÉLÉMENTS VINYLE ===== */
body.cursor-diamond .cursor-dot {
  width: 0;
  height: 0;
  background: transparent !important;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 10px solid var(--accent);
  border-radius: 0 !important;
}

body.cursor-diamond .cursor-ring {
  border-color: var(--accent) !important;
  opacity: 0.4;
}

/* Mobile : widget plus compact */
@media (max-width: 768px) {
  .vinyl-widget {
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  }
  .vinyl-widget-text { display: none; }
  .vinyl-widget-disc { width: 28px; height: 28px; }
  .vinyl-widget-label { width: 8px; height: 8px; }
  .vinyl-widget-groove { width: 16px; height: 16px; }
  .vinyl-widget-groove.g2 { width: 22px; height: 22px; }
}

/* ===== INNER PAGES — PAGE HERO ===== */
.page-hero {
  padding: 10rem 0 4rem;
  position: relative;
}

.page-hero .container {
  position: relative;
}

.page-hero-label {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(26, 26, 26, 0.04);
  line-height: 1;
  margin-bottom: -1.5rem;
  user-select: none;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.page-hero-title .light {
  font-weight: 400;
  color: var(--text-light);
}

.page-hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
}

.page-hero-accent {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 1.5rem;
}

/* Nav active state for inner pages */
.nav-links a.nav-active {
  color: var(--accent);
}
.nav-links a.nav-active::after {
  width: 100%;
  background: var(--accent);
}

/* Back link on inner pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.back-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 7rem 0 3rem;
  }
  .page-hero-label {
    font-size: 5rem;
  }
}

/* ===== CTA PAGES GRID (home → other pages) ===== */
.cta-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cta-page-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid rgba(26, 26, 26, 0.07);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 77, 43, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(196, 77, 43, 0.2);
}

.cta-page-card:hover::before {
  opacity: 1;
}

.cta-page-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.05);
  line-height: 1;
}

.cta-page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-page-content p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.cta-page-arrow {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: auto;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.cta-page-card:hover .cta-page-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .cta-pages-grid {
    grid-template-columns: 1fr;
  }
}
