@charset "UTF-8";

/* Prevent image and video downloading */
img, iframe, video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

img {
  -webkit-touch-callout: none;
}

/* ES FACE Font Family - All Weights */
@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-ThinItalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Regular.woff') format('woff');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Italic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Regular.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Regular.woff') format('woff');
  font-weight: 450;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Italic.woff') format('woff');
  font-weight: 450;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Medium.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-MediumItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Bold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-BoldItalic.woff') format('woff');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-Bold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'ES Face';
  src: url('../fonts/ESFace-BoldItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
}

/* Variables CSS */

:root {
  --primary-color: #8b0000;
  --secondary-color: #6b0000;
  --text-dark: #8b0000;
  --text-light: #666;
  --bg-light: #f8f8f3;
  --bg-white: #f8f8f3;
  --border-color: #e0e0e0;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --font-primary: 'ES Face', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-serif: 'ES Face', 'Georgia', 'Times New Roman', serif;
  --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --text-dark: #ffffff;
  --text-light: #ffffff;
  --bg-light: #2b0302;
  --bg-white: #2b0302;
  --border-color: #ffffff;
}

[data-theme="dark"] * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><circle cx="6" cy="6" r="4" fill="%23ffffff"/></svg>'), auto;
}

[data-theme="dark"] a,
[data-theme="dark"] button,
[data-theme="dark"] [onclick],
[data-theme="dark"] [role="button"],
[data-theme="dark"] .footer-nav-link {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><line x1="2" y1="2" x2="18" y2="18" stroke="%23ffffff" stroke-width="2"/><line x1="18" y1="2" x2="2" y2="18" stroke="%23ffffff" stroke-width="2"/></svg>') 10 10, crosshair !important;
}

/* Text selection styles for light theme */
::selection {
  background-color: #001487;
  color: #ffffff;
}

::-moz-selection {
  background-color: #001487;
  color: #ffffff;
}

/* Text selection styles for dark theme */
[data-theme="dark"] ::selection {
  background-color: #ffffff;
  color: #001487;
}

[data-theme="dark"] ::-moz-selection {
  background-color: #ffffff;
  color: #001487;
}

/* Base Styles */
* {
  box-sizing: border-box;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><circle cx="6" cy="6" r="4" fill="%238B0000"/></svg>'), auto;
}

/* Cursor crosshair for clickable links */
a,
button,
[onclick],
[role="button"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><line x1="2" y1="2" x2="18" y2="18" stroke="%238b0000" stroke-width="2"/><line x1="18" y1="2" x2="2" y2="18" stroke="%238b0000" stroke-width="2"/></svg>') 10 10, crosshair !important;
}

body {
  font-family: 'ES Face', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 100;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Force Thin weight (100) for all text elements */
* {
  font-weight: 100 !important;
}

.music-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-block;
  transition: var(--transition);
  filter: brightness(0) saturate(100%) invert(9%) sepia(100%) saturate(5458%) hue-rotate(0deg) brightness(0.55) contrast(100%);
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  padding: 0.2rem;
  box-sizing: border-box;
}

[data-theme="dark"] .music-icon {
  filter: brightness(0) invert(1);
  border-color: #ffffff;
}

/* Allow specific weights only when explicitly needed (for future use) */

main {
  flex: 1;
  padding-top: 45px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header & Navigation */
.header {
  background-color: transparent;
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
  min-height: 45px;
}

[data-theme="dark"] .header {
  background-color: transparent;
}

.nav-container {
  width: 100%;
  padding: 0.3rem clamp(14px, calc(2.5vw + 4px), 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  body:has(.home-grid) .nav-container {
    max-width: calc(7 / 12 * 100%);
    padding-right: clamp(14px, calc(2.5vw + 4px), 34px);
  }
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex: 0 0 auto;
}


.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 100;
  font-style: italic;
  font-size: calc(0.95rem - 1px);
  transition: var(--transition);
  position: relative;
  padding: 0.1rem 0.5rem;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50px;
  background: transparent;
  text-transform: lowercase;
  transform: scale(1);
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: transparent;
  transform: scale(1.05);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 700 !important;
  font-style: italic;
}

.nav-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.1rem 0.5rem;
  color: var(--text-dark);
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: auto;
  border-radius: 50px;
}

.nav-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: scale(1.05);
}

.nav-button .icon,
.nav-button .music-icon {
  display: inline-block;
  transition: var(--transition);
}

.nav-button.active .icon,
.nav-button.active .music-icon {
  animation: pulse 1s ease-in-out;
}

/* Toggle Switch Style */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--primary-color) !important;
  border-radius: 50px;
  background: transparent;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: all 0.5s ease-in-out;
}

[data-theme="dark"] .toggle-slider {
  left: 2px;
  right: auto;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f3 0%, #f8f8f3 100%);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 100;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  font-weight: 100;
}

/* Home Page Hero */
.home-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  z-index: 2;
}

.home-content-top {
  grid-column: span 7;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(45px + clamp(15px, 2vw + 8px, 40px)) clamp(25px, 2vw + 15px, 50px) 0;
  padding-left: clamp(14px, calc(2.5vw + 4px), 34px);
  padding-bottom: clamp(20px, 3vw + 10px, 40px);
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}

.hero-title-home {
  font-family: var(--font-serif);
  font-size: calc(clamp(2rem, 4.5vw + 1rem, 5rem) - 20px);
  font-weight: 400 !important;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
  text-align: left;
}

.btn-discover {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 100;
  font-size: 0.95rem;
  transition: var(--transition);
  text-transform: lowercase;
  background: transparent;
  margin-left: 0;
  vertical-align: baseline;
}

@media (min-width: 769px) {
  .btn-discover {
    display: none;
  }
}

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

.btn-discover:hover {
  transform: scale(1.05);
  background-color: transparent;
}

.home-video-bottom {
  grid-column: 8 / -1;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  min-height: 0;
  z-index: 10;
  position: relative;
}

.home-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-image-container {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #8b0000 0%, #6b0000 50%, #4b0000 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback si l'image n'est pas chargée */
.hero-image-placeholder:not([style*="background-image"])::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #8b0000 0%, #6b0000 50%, #4b0000 100%);
  opacity: 1;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 100;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

/* Features Section */
.features {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.feature-card {
  padding: var(--spacing-md);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h2 {
  font-size: 1.5rem;
  font-weight: 100;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Page Header */
.page-header {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 100;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  font-weight: 100;
}

/* About Page */
.about-content {
  padding: var(--spacing-xl) 0;
}

.about-section {
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-section h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.about-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.value-item {
  padding: var(--spacing-md);
  text-align: center;
  background-color: var(--bg-light);
  border-radius: 8px;
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-color);
}

.value-item p {
  color: var(--text-light);
}

/* Work Page - Horizontal Slider */
.work-main {
  height: calc(100vh - 45px);
  overflow: hidden;
  padding-top: 45px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-slider-section {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-slider-container {
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  display: flex;
  align-items: center;
}

.work-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.work-slider-track {
  display: flex;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(14px, calc(2.5vw + 4px), 34px);
  gap: clamp(10px, calc(2.5vw - 5px), 45px);
  min-width: fit-content;
}

.work-slide {
  flex: 0 0 auto;
  width: clamp(400px, 40vw, 600px);
  height: calc(80vh - 38px);
  display: flex;
  flex-direction: column;
}

.work-slide-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><line x1="2" y1="2" x2="18" y2="18" stroke="%23000" stroke-width="2"/><line x1="18" y1="2" x2="2" y2="18" stroke="%23000" stroke-width="2"/></svg>') 10 10, crosshair;
}


.work-slide-image {
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-light);
}

.work-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.work-slide-link:hover .work-slide-image img {
  opacity: 0.8;
}

.work-slide-title {
  margin-top: clamp(8px, 1.2vw, 15px);
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 500 !important;
  font-family: var(--font-serif);
  color: var(--text-dark);
  text-align: left;
  line-height: 1.3;
  position: relative;
  padding-left: clamp(30px, 3.5vw, 50px);
}

.work-slide-title::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1;
}

.project-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md) 0;
  margin-top: auto;
  text-align: center;
}

.footer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* The Studio Page */
.studio-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 60px;
  position: relative;
  z-index: 2;
}

.studio-main:has(.home-grid),
.studio-hero:has(.home-grid) {
  padding-top: 0;
}

.studio-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  padding: 0;
  min-height: 0;
  position: relative;
}

.studio-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(25px, 3vw + 15px, 60px) clamp(15px, 1.5vw + 8px, 30px);
  padding: clamp(25px, 3vw + 15px, 60px) clamp(25px, 2vw + 15px, 50px);
  padding-left: clamp(14px, calc(2.5vw + 4px), 34px);
  align-items: start;
  height: calc(100vh - 60px);
  min-height: 0;
  overflow: hidden;
}

.studio-top-left {
  grid-column: span 5;
  grid-row: 1;
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-left: 0;
}

.studio-top-right {
  grid-column: 9 / span 4;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 100%;
  padding-left: 0;
}

.studio-bottom-left {
  grid-column: span 4;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding-left: 0;
}

.studio-bottom-right-team {
  grid-column: 9 / span 4;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.studio-bottom-right-contact {
  grid-column: 12 / span 1;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.studio-main-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.5vw + 0.7rem, 2.5rem);
  font-weight: 100;
  color: var(--text-dark);
  line-height: 1.25;
  margin: 0;
  max-height: 100%;
  overflow: hidden;
}

@media (min-width: 769px) {
  .studio-main-text {
    font-weight: 400 !important;
  }
}

@media (min-width: 1200px) {
  .studio-main-text {
    line-height: 1.3;
  }
}

@media (min-width: 1600px) {
  .studio-main-text {
    line-height: 1.35;
  }
}

.text-medium {
  font-weight: 400 !important;
}

.studio-description {
  font-size: clamp(0.85rem, 1vw + 0.4rem, 1.1rem);
  font-weight: 400;
  color: #8b0000;
  line-height: 1.5;
  margin: 0;
  width: 100%;
}

[data-theme="dark"] .studio-description {
  color: #ffffff;
}

@media (max-width: 768px) {
  .studio-description {
    font-size: calc(clamp(0.85rem, 1vw + 0.4rem, 1.1rem) - 3px);
    padding-bottom: var(--spacing-md);
    margin-bottom: 0;
    position: relative;
  }
  
  .studio-description::after {
    display: none;
  }
}

@media (min-width: 769px) {
  .studio-description,
  .footer-team-column,
  .footer-contact-column {
    margin-top: 60px;
  }
}

@media (min-width: 1024px) {
  .studio-description {
    line-height: 1.6;
  }
}

@media (min-width: 1440px) {
  .studio-description {
    line-height: 1.7;
  }
}

.studio-image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.studio-image-slider-container {
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.studio-image-slide {
  flex: 0 0 calc(100% / 6);
  width: calc(100% / 6);
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 0;
  box-sizing: border-box;
}


.footer-team-column,
.footer-contact-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 100%;
}

.footer-contact-column {
  text-align: left;
  align-self: flex-start;
}

.footer-team-column p,
.footer-contact-column p {
  font-weight: 100;
  font-size: clamp(0.8rem, 0.7vw + 0.5rem, 0.95rem);
  color: #8b0000;
  line-height: 1.4;
  margin: 0;
}

[data-theme="dark"] .footer-team-column p,
[data-theme="dark"] .footer-contact-column p {
  color: #ffffff;
}

@media (min-width: 1024px) {
  .footer-team-column p,
  .footer-contact-column p {
    line-height: 1.5;
  }
}

@media (min-width: 1440px) {
  .footer-team-column p,
  .footer-contact-column p {
    line-height: 1.6;
  }
}

.footer-title {
  font-weight: 100;
  font-size: clamp(0.8rem, 0.7vw + 0.5rem, 0.95rem);
  color: #8b0000;
  margin-bottom: var(--spacing-xs);
}

[data-theme="dark"] .footer-title {
  color: #ffffff;
}

@media (max-width: 768px) {
  .studio-bottom-right-team {
    position: relative;
  }
  
  .studio-bottom-right-team::after {
    display: none;
  }
  
  .footer-team-column {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  
  .footer-team-column p,
  .footer-contact-column p {
    font-size: calc(clamp(0.8rem, 0.7vw + 0.5rem, 0.95rem) - 3px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding-top: 60px;
  }

  .nav-container {
    flex-wrap: nowrap;
    padding: 0.5rem clamp(15px, 2vw + 10px, 30px);
    gap: clamp(0.2rem, 1vw, 0.5rem);
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: auto;
  }

  .nav-link {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    padding: 0.1rem clamp(0.2rem, 1vw, 0.4rem);
  }
  
  .toggle-switch {
    width: clamp(30px, 8vw, 40px);
    height: clamp(16px, 4vw, 20px);
  }
  
  .toggle-slider {
    width: clamp(8px, 2.5vw, 12px);
    height: clamp(8px, 2.5vw, 12px);
  }
  
  .music-icon {
    width: clamp(1.4rem, 4.5vw, 1.9rem);
    height: clamp(1.4rem, 4.5vw, 1.9rem);
  }
  
  .studio-main-text {
    font-size: calc(clamp(2rem, 4.5vw + 1rem, 5rem) - 20px + 7px);
    font-weight: 400 !important;
  }
  
  .text-medium {
    font-weight: 400 !important;
  }

  .hero {
    min-height: 60vh;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .features-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .work-main {
    height: calc(100vh - 45px);
    overflow: hidden;
  }

  .work-slider-section {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .work-slider-track {
    padding: 0 clamp(15px, 2vw + 10px, 30px);
    gap: clamp(15px, 2vw, 30px);
    justify-content: flex-start;
  }

  .work-slide {
    width: clamp(280px, 70vw, 400px);
    height: 70vh;
  }

  .work-slide {
    width: clamp(280px, 70vw, 400px);
    height: 70vh;
  }

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

  .container {
    padding: 0 var(--spacing-sm);
  }

  .about-section {
    padding: 0 var(--spacing-sm);
  }

  /* Studio page mobile layout */
  .studio-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  
  .home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 50vh;
    gap: 0;
    padding: 0;
    height: auto;
    min-height: auto;
    overflow: visible;
    margin-top: 0;
  }

  .studio-top-left {
    grid-column: 1 / -1;
    grid-row: 1;
    align-items: flex-start;
    height: auto;
    padding: 0;
    padding-left: clamp(14px, calc(2.5vw + 4px), 34px);
    padding-right: var(--spacing-md);
  }

  .studio-top-right {
    grid-column: 1 / span 2;
    grid-row: 2;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .studio-image-placeholder {
    min-height: 300px;
    height: 300px;
    width: 100%;
  }
  
  .studio-image-slider-container {
    height: 100%;
  }
  
  .studio-image-slide {
    height: 100%;
  }

  .home-content-top {
    grid-column: 1;
    grid-row: 1;
    padding: var(--spacing-md);
    padding-left: clamp(10px, 1.5vw + 5px, 20px);
    padding-top: var(--spacing-md);
    justify-content: center;
  }

  .hero-title-home {
    margin-top: 40px;
    font-size: calc(clamp(2rem, 4.5vw + 1rem, 5rem) - 20px + 7px);
  }

  .home-video-bottom {
    grid-column: 1;
    grid-row: 2;
    height: 50vh;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }
  
  .home-video {
    width: 100%;
    height: 100%;
  }
  
  .home-content-top {
    background-color: transparent;
  }

  .studio-bottom-left {
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: flex-start;
    height: auto;
    padding: 0;
    padding-left: clamp(14px, calc(2.5vw + 4px), 34px);
    padding-right: var(--spacing-md);
  }

  /* Mettre l'équipe et les contacts côte à côte sur 2 colonnes */
  .studio-bottom-right-team {
    grid-column: 1;
    grid-row: 4;
    align-items: flex-start;
    height: auto;
    padding: 0;
    padding-left: clamp(10px, 1.5vw + 5px, 20px);
    padding-right: var(--spacing-sm);
  }

  .studio-bottom-right-contact {
    grid-column: 2;
    grid-row: 4;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
    padding: 0;
    padding-left: var(--spacing-sm);
    padding-right: clamp(10px, 1.5vw + 5px, 20px);
  }
  
  .studio-bottom-right-contact .footer-contact-column {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .footer-contact-column {
    text-align: left;
    font-style: italic;
  }
  
  .footer-contact-column p {
    font-style: italic;
  }
  
  .footer-team-column,
  .footer-contact-column {
    flex: 0 0 auto;
    width: auto;
  }
  
  .footer-team-column {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-wrap: nowrap;
    padding: 0.5rem clamp(10px, 1.5vw + 5px, 20px);
    gap: clamp(0.1rem, 0.8vw, 0.3rem);
  }

  .nav-item {
    flex: 0 0 auto;
  }
  
  .nav-link {
    font-size: clamp(0.65rem, 1.8vw, 0.8rem);
    padding: 0.05rem clamp(0.15rem, 0.8vw, 0.3rem);
  }
  
  .toggle-switch {
    width: clamp(28px, 7vw, 35px);
    height: clamp(14px, 3.5vw, 18px);
  }
  
  .toggle-slider {
    width: clamp(7px, 2vw, 10px);
    height: clamp(7px, 2vw, 10px);
  }
  
  .music-icon {
    width: clamp(1.2rem, 4vw, 1.7rem);
    height: clamp(1.2rem, 4vw, 1.7rem);
  }
}

/* Music Player Modal */
.music-modal {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform-origin: top right;
  transform: scale(0.8);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.25s ease;
  pointer-events: none;
}

.music-modal.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: all;
}

.music-modal-content {
  background-color: var(--bg-white);
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.25rem);
  max-width: 240px;
  width: 240px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Augmenter la largeur du modal sur les pages the studio et work (desktop) */
@media (min-width: 769px) {
  body:has(.studio-main):not(:has(.home-grid)) .music-modal-content,
  body:has(.work-main) .music-modal-content,
  body:has(.project-main) .music-modal-content {
    max-width: calc(240px + (100vw / 12) - 11px);
    width: calc(240px + (100vw / 12) - 11px);
  }
}

.music-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 0;
  font-size: 1.25rem;
  color: var(--text-dark);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.4rem;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: 100;
}

.music-modal-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.music-modal-thumbnail {
    width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
}

.music-thumbnail-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 120px;
  border: 1px solid var(--primary-color);
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  object-fit: cover;
  filter: none;
  display: block;
  background-color: #000;
}

video.music-thumbnail-icon {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

[data-theme="dark"] .music-thumbnail-icon {
  border-color: #ffffff;
}

.music-modal-content audio {
  width: 100%;
  height: 32px;
  outline: none;
}

.music-modal-content audio::-webkit-media-controls-panel {
  background-color: var(--bg-white);
  padding: 0 4px !important;
}

.music-modal-content audio::-webkit-media-controls-play-button,
.music-modal-content audio::-webkit-media-controls-pause-button {
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-left: -4px !important;
  margin-right: 4px !important;
}

.music-modal-content audio::-webkit-media-controls-mute-button {
  margin-right: -4px !important;
  margin-left: 4px !important;
}

.music-modal-content audio::-webkit-media-controls-timeline {
  margin: 0 4px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* Dark mode: white music bar and white control buttons */
[data-theme="dark"] .music-modal-content audio::-webkit-media-controls-panel {
  background-color: transparent;
}

[data-theme="dark"] .music-modal-content audio::-webkit-media-controls-timeline {
  background-color: #ffffff;
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .music-modal-content audio::-webkit-media-controls-play-button,
[data-theme="dark"] .music-modal-content audio::-webkit-media-controls-pause-button,
[data-theme="dark"] .music-modal-content audio::-webkit-media-controls-mute-button {
  background-color: #ffffff;
  border-radius: 50%;
}

.music-modal-content audio::-webkit-media-controls-current-time-display,
.music-modal-content audio::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

@media (max-width: 768px) {
  .music-modal {
    right: 0;
    left: auto;
    transform-origin: top right;
  }

  .music-modal-content {
    max-width: 220px;
    width: 220px;
    padding: 1rem;
  }
  
  .music-modal-close {
    padding: 0;
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    line-height: 1;
  }

  .music-thumbnail-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100px;
    padding: 0;
    border-radius: 0;
  }
}

/* Project Page - Horizontal Slider (identical to work page) */
body:has(.project-main) {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  body:has(.project-main) {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.project-main {
  height: calc(100vh - 45px);
  overflow: hidden;
  padding-top: 45px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-slider-wrapper {
    flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
}

.project-slider-section {
  height: 100%;
    width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-slider-container {
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  display: flex;
  align-items: center;
}

.project-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.project-slider-track {
  display: flex;
  height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 clamp(14px, calc(2.5vw + 4px), 34px);
  gap: clamp(10px, calc(2.5vw - 5px), 45px);
  min-width: fit-content;
}

.project-slide {
  flex: 0 0 auto;
  width: clamp(400px, 40vw, 600px);
  height: calc(80vh - 38px);
  overflow: visible;
  background-color: transparent;
  display: flex;
  align-items: flex-start;
  padding-top: 0;
}

.project-slide-horizontal {
  width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 1.5);
  min-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 1.5);
  max-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 1.5);
  height: calc(80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem));
  align-self: flex-start;
}

.project-slide-video-container {
  width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 16 / 9);
  min-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 16 / 9);
  max-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 16 / 9);
  height: calc(80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem));
  align-self: flex-start;
}

.project-slide-video-container-vertical {
  width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 9 / 16);
  min-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 9 / 16);
  max-width: calc((80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem)) * 9 / 16);
  height: calc(80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem));
  align-self: flex-start;
}

.project-slide-image {
  width: 100%;
  height: calc(80vh - 38px - clamp(8px, 1.2vw, 15px) - clamp(0.75rem, 1.2vw, 1rem));
  overflow: hidden;
  background-color: var(--bg-light);
}

.project-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-slide-video {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-light);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-slide-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-slide-video iframe.loaded {
  opacity: 1;
}

.project-text-section {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 clamp(14px, calc(2.5vw + 4px), 34px);
  padding-bottom: clamp(15px, 1.5vw, 25px);
  padding-top: 0;
  background-color: var(--bg-white);
  z-index: 10;
}

.project-text-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(15px, 1.5vw + 8px, 30px);
  align-items: start;
  padding: 0;
  margin: 0;
}

.project-slide-title {
  grid-column: span 3;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  font-weight: 500 !important;
  color: var(--text-dark);
  line-height: 1.2;
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
}

.project-slide-description {
  grid-column: 4 / -2;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 100;
  color: var(--text-dark);
  line-height: 1.6;
  font-family: var(--font-serif);
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  /* Transform project pages to vertical list on mobile */
  body:has(.project-main) {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .project-main {
    height: auto !important;
    min-height: calc(100vh - 45px);
    overflow: visible !important;
    flex-direction: column;
    padding-bottom: var(--spacing-md);
  }

  /* Hide horizontal scroll carousel */
  .project-slider-container {
    overflow-x: visible;
    overflow-y: visible;
    height: auto;
  }

  .project-slider-track {
    flex-direction: column;
    padding: 0;
    gap: clamp(8px, 1vw, 12px);
    align-items: stretch;
    width: 100%;
  }

  /* Move title and description to top */
  .project-text-section {
    position: static;
    order: -1;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    padding-top: 60px;
    padding-bottom: var(--spacing-md);
    margin-top: 0;
    margin-bottom: 0;
    background-color: transparent;
    z-index: 1;
  }

  .project-text-grid {
    display: block;
    grid-template-columns: none;
    gap: 0;
  }

  .project-slide-title {
    grid-column: auto;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: var(--spacing-sm);
  }

  .project-slide-description {
    grid-column: auto;
    font-size: clamp(0.55rem, 0.8vw, 0.7rem);
    margin-bottom: 0;
  }

  /* Display all slides as vertical list with header width */
  .project-slide {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    margin-bottom: clamp(8px, 1vw, 12px);
    padding: 0;
    box-sizing: border-box;
  }
  
  .project-slide:last-child {
    margin-bottom: 0;
  }

  .project-slide-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    aspect-ratio: auto;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    box-sizing: border-box;
    margin-bottom: clamp(8px, 1vw, 12px);
  }

  .project-slide-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    padding: 0;
  }
  
  /* Direct images in project-slide (without project-slide-image wrapper) */
  .project-slide > img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    box-sizing: border-box;
  }
  
  /* Horizontal images: EXACT same width as header - break out of container */
  .project-slide-horizontal {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px) !important;
    box-sizing: border-box !important;
  }
  
  .project-slide-horizontal .project-slide-image {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    margin: 0;
    display: block;
    overflow: hidden;
  }
  
  .project-slide-horizontal .project-slide-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Vertical images: match video width on mobile */
  .project-slide-vertical .project-slide-image {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    box-sizing: border-box;
    margin: 0;
    display: block;
  }
  
  .project-slide-vertical .project-slide-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
  }

  .project-slide-video-container,
  .project-slide-video-container-vertical {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    box-sizing: border-box;
  }

  .project-slide-video {
    width: 100%;
    height: auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
  }

  .project-slide-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .project-slide-horizontal {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 clamp(10px, 1.5vw + 5px, 20px);
    box-sizing: border-box;
  }
}

/* Footer */
.site-footer {
  width: 100%;
  padding: clamp(10px, 1.5vw, 15px) 0 clamp(13px, calc(2vw - 2px), 23px);
  background-color: var(--bg-white);
  border-top: none;
  position: relative;
}

.footer-content {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: 100 !important;
  color: var(--text-dark);
  font-family: var(--font-serif);
  position: relative;
  padding-left: clamp(14px, calc(2.5vw + 4px), 34px);
  padding-right: clamp(14px, calc(2.5vw + 4px), 34px);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .site-footer {
    padding: clamp(5px, 1vw, 8px) 0 clamp(6px, 1.5vw, 10px);
  }

  .footer-content {
    font-size: clamp(0.35rem, 0.8vw, 0.45rem);
    gap: clamp(4px, 1vw, 8px);
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-left: clamp(10px, 1.5vw + 5px, 20px);
    padding-right: clamp(10px, 1.5vw + 5px, 20px);
    position: relative !important;
    min-height: 1.2rem;
  }

  /* Exclude project pages from mobile footer modifications */
  body:not(:has(.project-main)) .footer-content span {
    font-size: clamp(0.35rem, 0.8vw, 0.45rem) !important;
    line-height: 1.2;
    margin: 0;
    position: static !important;
    white-space: nowrap;
  }

  /* Show all elements on mobile - same as desktop */
  body:not(:has(.project-main)) .footer-content span:nth-child(1),
  body:not(:has(.project-main)) .footer-content span:nth-child(3) {
    display: inline !important;
  }
}

@media (min-width: 769px) {
  body:has(.home-grid) .footer-content {
    max-width: 50%;
    padding-right: clamp(14px, calc(2.5vw + 4px), 34px);
  }
  
  body:has(.home-grid) .footer-content span:last-child {
    right: clamp(14px, calc(2.5vw + 4px), 34px);
  }
}

/* Footer alignment is handled by JavaScript for work.html and project pages */
body:has(.project-main) .footer-content span:nth-child(2),
body:has(.project-main) .footer-content span:nth-child(3) {
  left: auto;
}

/* Default footer alignment for other pages */
body:not(:has(.project-main)):not(:has(.work-main)) .footer-content span:first-child {
  position: absolute;
  left: clamp(14px, calc(2.5vw + 4px), 34px);
}

body:not(:has(.project-main)):not(:has(.work-main)) .footer-content span:last-child {
  position: absolute;
  right: clamp(14px, calc(2.5vw + 4px), 34px);
}

/* Project page footer navigation - alignment handled by JavaScript */
body:has(.project-main) .footer-copyright {
  position: absolute;
  right: clamp(14px, calc(2.5vw + 4px), 34px);
  text-align: right;
  white-space: nowrap;
}

.footer-project-nav {
  /* Opacity removed from parent - each link has its own */
}

.arrow-right {
  display: inline-block;
  margin-left: 0.25em;
}

.footer-spacer {
  display: inline-block;
  width: 2em; /* Tabulation width */
}

.footer-nav-link {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><line x1="2" y1="2" x2="18" y2="18" stroke="%238b0000" stroke-width="2"/><line x1="18" y1="2" x2="2" y2="18" stroke="%238b0000" stroke-width="2"/></svg>') 10 10, crosshair !important;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
  opacity: 0.6;
  display: inline-block;
}

@media (max-width: 768px) {
  .footer-project-nav .footer-nav-link {
    opacity: 1;
    font-size: calc(1em + 3px);
  }
}

.footer-nav-link:hover {
  opacity: 1;
}

/* Floating Particles Animation in Header */
.header .particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Limit particles width on home page to not overlap video (desktop only) */
@media (min-width: 769px) {
  body:has(.home-grid) .header .particles-container {
    width: calc(7 / 12 * 100%);
    max-width: calc(7 / 12 * 100%);
    overflow: hidden;
  }
  
  /* Adjust particle positions to use full available width within the container */
  body:has(.home-grid) .header .particle-1 {
    left: 5%;
  }
  
  body:has(.home-grid) .header .particle-2 {
    left: 30%;
  }
  
  body:has(.home-grid) .header .particle-3 {
    left: 60%;
  }
  
  body:has(.home-grid) .header .particle-4 {
    left: 85%;
  }
  
  /* Use animations that work within the limited width */
  body:has(.home-grid) .header .particle-1 {
    animation: float1HomePage 30s infinite ease-in-out;
  }
  
  body:has(.home-grid) .header .particle-2 {
    animation: float2HomePage 36s infinite ease-in-out;
    animation-delay: -6s;
  }
  
  body:has(.home-grid) .header .particle-3 {
    animation: float3HomePage 32s infinite ease-in-out;
    animation-delay: -12s;
  }
  
  body:has(.home-grid) .header .particle-4 {
    animation: float4HomePage 34s infinite ease-in-out;
    animation-delay: -8s;
  }
  
  @keyframes float1HomePage {
    0% {
      transform: translate(0, 0) scale(1);
    }
    25% {
      transform: translate(calc(7 / 12 * 100vw * 0.25), -8px) scale(1.1);
    }
    50% {
      transform: translate(calc(-7 / 12 * 100vw * 0.15), 6px) scale(0.9);
    }
    75% {
      transform: translate(calc(7 / 12 * 100vw * 0.2), -5px) scale(1.05);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }
  
  @keyframes float2HomePage {
    0% {
      transform: translate(0, 0) scale(1);
    }
    20% {
      transform: translate(calc(-7 / 12 * 100vw * 0.2), 8px) scale(1.15);
    }
    40% {
      transform: translate(calc(7 / 12 * 100vw * 0.3), -10px) scale(0.85);
    }
    60% {
      transform: translate(calc(7 / 12 * 100vw * 0.15), 6px) scale(1.1);
    }
    80% {
      transform: translate(calc(-7 / 12 * 100vw * 0.1), -8px) scale(0.95);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }
  
  @keyframes float3HomePage {
    0% {
      transform: translate(0, 0) scale(1);
    }
    30% {
      transform: translate(calc(7 / 12 * 100vw * 0.35), -10px) scale(1.1);
    }
    60% {
      transform: translate(calc(-7 / 12 * 100vw * 0.25), 8px) scale(0.9);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }
  
  @keyframes float4HomePage {
    0% {
      transform: translate(0, 0) scale(1);
    }
    25% {
      transform: translate(calc(-7 / 12 * 100vw * 0.3), 6px) scale(1.2);
    }
    50% {
      transform: translate(calc(7 / 12 * 100vw * 0.25), -10px) scale(0.85);
    }
    75% {
      transform: translate(calc(-7 / 12 * 100vw * 0.15), 5px) scale(1.1);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }
}

/* Hide particles on project pages */
body:has(.project-main) .header .particles-container {
  display: none;
}

/* Particles spread across full width on non-home and non-project pages */
body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-1 {
  left: 5%;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-2 {
  left: 25%;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-3 {
  left: 55%;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-4 {
  left: 80%;
}

/* Animations for full width on non-home and non-project pages */
body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-1 {
  animation: float1FullWidth 55s infinite ease-in-out;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-2 {
  animation: float2FullWidth 65s infinite ease-in-out;
  animation-delay: -10s;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-3 {
  animation: float3FullWidth 60s infinite ease-in-out;
  animation-delay: -18s;
}

body:not(:has(.home-grid)):not(:has(.project-main)) .header .particle-4 {
  animation: float4FullWidth 62s infinite ease-in-out;
  animation-delay: -14s;
}

@keyframes float1FullWidth {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(calc(100vw * 0.15), -8px) scale(1.1);
  }
  50% {
    transform: translate(calc(-100vw * 0.1), 6px) scale(0.9);
  }
  75% {
    transform: translate(calc(100vw * 0.12), -5px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float2FullWidth {
  0% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(calc(-100vw * 0.12), 8px) scale(1.15);
  }
  40% {
    transform: translate(calc(100vw * 0.18), -10px) scale(0.85);
  }
  60% {
    transform: translate(calc(100vw * 0.1), 6px) scale(1.1);
  }
  80% {
    transform: translate(calc(-100vw * 0.08), -8px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float3FullWidth {
  0% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(calc(100vw * 0.2), -10px) scale(1.1);
  }
  60% {
    transform: translate(calc(-100vw * 0.15), 8px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float4FullWidth {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(calc(-100vw * 0.18), 6px) scale(1.2);
  }
  50% {
    transform: translate(calc(100vw * 0.15), -10px) scale(0.85);
  }
  75% {
    transform: translate(calc(-100vw * 0.1), 5px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.header .particle {
  position: absolute;
  border-radius: 50%;
  background: var(--text-dark);
  opacity: 0.6;
  pointer-events: none;
}

.header .particle-1 {
  width: 6px;
  height: 6px;
  top: 20%;
  left: 5%;
  animation: float1 15s infinite ease-in-out;
}

.header .particle-2 {
  width: 8px;
  height: 8px;
  top: 60%;
  left: 20%;
  animation: float2 18s infinite ease-in-out;
  animation-delay: -3s;
}

.header .particle-3 {
  width: 5px;
  height: 5px;
  top: 40%;
  left: 35%;
  animation: float3 16s infinite ease-in-out;
  animation-delay: -6s;
}

.header .particle-4 {
  width: 7px;
  height: 7px;
  top: 75%;
  left: 50%;
  animation: float4 17s infinite ease-in-out;
  animation-delay: -2s;
}

[data-theme="dark"] .header .particle {
  background: #ffffff;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header .particles-container {
    width: 100vw;
    left: 0;
    right: 0;
  }

  .header .particle-1 {
    width: 3px;
    height: 3px;
    left: 0%;
  }

  .header .particle-2 {
    width: 4px;
    height: 4px;
    left: 25%;
  }

  .header .particle-3 {
    width: 2px;
    height: 2px;
    left: 50%;
  }

  .header .particle-4 {
    width: 3px;
    height: 3px;
    left: 75%;
  }

  @keyframes float1 {
    0% {
      transform: translate(0, 0) scale(1);
    }
    25% {
      transform: translate(calc(100vw * 0.4), -8px) scale(1.1);
    }
    50% {
      transform: translate(calc(-100vw * 0.3), 6px) scale(0.9);
    }
    75% {
      transform: translate(calc(100vw * 0.5), -5px) scale(1.05);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }

  @keyframes float2 {
    0% {
      transform: translate(0, 0) scale(1);
    }
    20% {
      transform: translate(calc(-100vw * 0.4), 8px) scale(1.15);
    }
    40% {
      transform: translate(calc(100vw * 0.5), -10px) scale(0.85);
    }
    60% {
      transform: translate(calc(100vw * 0.3), 6px) scale(1.1);
    }
    80% {
      transform: translate(calc(-100vw * 0.2), -8px) scale(0.95);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }

  @keyframes float3 {
    0% {
      transform: translate(0, 0) scale(1);
    }
    30% {
      transform: translate(calc(100vw * 0.5), -10px) scale(1.1);
    }
    60% {
      transform: translate(calc(-100vw * 0.4), 8px) scale(0.9);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }

  @keyframes float4 {
    0% {
      transform: translate(0, 0) scale(1);
    }
    25% {
      transform: translate(calc(-100vw * 0.5), 6px) scale(1.2);
    }
    50% {
      transform: translate(calc(100vw * 0.4), -10px) scale(0.85);
    }
    75% {
      transform: translate(calc(-100vw * 0.3), 5px) scale(1.1);
    }
    100% {
      transform: translate(0, 0) scale(1);
    }
  }
}

@keyframes float1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -8px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 6px) scale(0.9);
  }
  75% {
    transform: translate(25px, -5px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  20% {
    transform: translate(-25px, 8px) scale(1.15);
  }
  40% {
    transform: translate(35px, -10px) scale(0.85);
  }
  60% {
    transform: translate(20px, 6px) scale(1.1);
  }
  80% {
    transform: translate(-15px, -8px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(40px, -10px) scale(1.1);
  }
  60% {
    transform: translate(-30px, 8px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float4 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-35px, 6px) scale(1.2);
  }
  50% {
    transform: translate(30px, -10px) scale(0.85);
  }
  75% {
    transform: translate(-20px, 5px) scale(1.1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

