/* ================================================================
   PORTFOLIO JOHAN ROISSE
   Direction Artistique : Hobro Digital Inspired
   Palette : #0A0A0A (noir) + #F5F0EB (crème)
   Typo   : Space Grotesk (display) + Inter (body)
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --black: #0A0A0A;
  --cream: #F5F0EB;
  --black-rgb: 10, 10, 10;
  --cream-rgb: 245, 240, 235;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --gap: 0.875rem;
  --section-pad: clamp(5rem, 12vh, 10rem);
  --page-pad: clamp(1.25rem, 3vw, 3rem);

  /* UI */
  --radius: 12px;
  --nav-height: 80px;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Lenis smooth scroll overrides */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cream);
  background: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
}

body.menu-open,
body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

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

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

/* Hide default cursor when custom cursor is active */
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor .bento-item,
body.has-cursor .featured-project,
body.has-cursor .project-modal-close,
body.has-cursor .modal-nav-btn,
body.has-cursor .reel-card,
body.has-cursor .reel-sound-btn {
  cursor: none;
}

/* ── Custom Cursor ─────────────────────────────────────────────── */
.cursor,
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  will-change: transform;
  display: none;
}

body.has-cursor .cursor,
body.has-cursor .cursor-follower {
  display: block;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--cream);
  margin-left: -4px;
  margin-top: -4px;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              margin 0.3s var(--ease-out-expo),
              background 0.3s;
}

.cursor.cursor-hover {
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  background: rgba(var(--cream-rgb), 0.12);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--cream-rgb), 0.25);
  margin-left: -20px;
  margin-top: -20px;
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease-out-expo),
              height 0.4s var(--ease-out-expo),
              margin 0.4s var(--ease-out-expo),
              opacity 0.3s;
}

.cursor-follower.cursor-hover {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  opacity: 0.4;
}

/* ── Liquid Glass Navigation ──────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.15rem var(--page-pad);
  pointer-events: none;
  display: flex;
  justify-content: center;
  transition: padding 0.4s var(--ease-out-expo);
  transform: translateZ(0);
  will-change: transform;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Unified Liquid Glass Capsule (Slimmer, Wider, True Glass) ─ */
.nav-pill {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 10, 14, 0.28);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
              inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
              inset 0 -1px 1px rgba(255, 255, 255, 0.08);
  gap: 4px;
  user-select: none;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}

/* ── Nav Logo (Integrated Inside Pill) ─────────────────────────── */
.nav-logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-logo:hover {
  opacity: 0.95;
  transform: scale(1.05);
}

.nav-logo-img {
  height: 22px;
  width: auto;
  max-width: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.8));
}

.nav-logo-dot {
  color: #8B5CF6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.85);
}

/* ── Subtle Glass Divider ──────────────────────────────────────── */
.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 3px;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── Animated Liquid Sliding Glider ───────────────────────────── */
.nav-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.6),
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  opacity: 0;
}

.nav-glider.ready {
  opacity: 1;
}

/* ── Nav Categories (Slimmer Height, Wider Padding) ───────────── */
.nav-item {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.38rem 1.35rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(var(--cream-rgb), 0.7);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.2s ease;
}

.nav-item:hover {
  color: rgba(var(--cream-rgb), 0.95);
}

.nav-item.active {
  color: #FFFFFF;
  font-weight: 600;
}

.nav-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-item.active .nav-icon {
  transform: scale(1.05);
}

/* ── Mobile Navigation Bar & Drawer (Liquid Glass) ─────────────── */
.nav-mobile-bar {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  pointer-events: none;
}

.mobile-menu.open {
  display: block;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(12, 12, 16, 0.9);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7),
              inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
              inset 0 -1px 1px rgba(255, 255, 255, 0.08);
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
}

.mobile-menu-brand-img {
  height: 26px;
  width: auto;
  max-width: 52px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}

.mobile-menu-brand-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(var(--cream-rgb), 0.5);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-close:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--cream);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-item.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26) 0%, rgba(109, 40, 217, 0.14) 100%);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.mobile-nav-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #8B5CF6;
  opacity: 0.9;
}

.mobile-nav-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mobile-nav-arrow {
  width: 18px;
  height: 18px;
  stroke: rgba(var(--cream-rgb), 0.35);
  transition: transform 0.25s var(--ease-out-expo), stroke 0.25s ease;
}

.mobile-nav-item.active .mobile-nav-arrow {
  stroke: #8B5CF6;
  transform: translate(2px, -2px);
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(var(--cream-rgb), 0.75);
}

.mobile-menu-sub {
  font-size: 0.72rem;
  color: rgba(var(--cream-rgb), 0.4);
}

body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* ── Section Labels ────────────────────────────────────────────── */
.about-label,
.projects-label,
.contact-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.label-line {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.45;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: calc(var(--nav-height) + 2rem) var(--page-pad) 4rem;
  position: relative;
}

.hero-content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-left {
  flex: 1 1 0;
  min-width: 0;
  max-width: 820px;
  z-index: 2;
}

.hero-name-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.65rem;
  width: fit-content;
}

@keyframes nameShimmer {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(var(--cream-rgb), 0));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(var(--cream-rgb), 0.25));
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9.5vw, 9.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  color: var(--cream);
  text-transform: uppercase;
  display: inline-block;
  width: fit-content;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  animation: nameShimmer 6s ease-in-out infinite;
}

.hero-name-line {
  display: block;
  white-space: nowrap;
  width: fit-content;
}

.char {
  display: inline-block;
  will-change: transform, opacity, color;
  transition: color 0.15s ease;
  transform-origin: 50% 50%;
}

.char.scrambling {
  color: rgba(var(--cream-rgb), 0.45);
  transform: translateY(-2px);
}

.char.resolved {
  color: var(--cream);
  text-shadow: 0 0 16px rgba(var(--cream-rgb), 0.75);
}

/* ── Hero Role Rotator (Prominent Single-Element Display) ───────── */
.hero-role-wrapper {
  position: relative;
  height: clamp(2.4rem, 4.4vw, 3.8rem);
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
  width: 100%;
  max-width: 100%;
}

.hero-role-box {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.hero-role-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: rgba(var(--cream-rgb), 0.95);
  white-space: nowrap;
  line-height: 1;
  will-change: transform, opacity;
}

/* Initial state for hero info */
.hero-info {
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 400;
  color: rgba(var(--cream-rgb), 0.55);
  margin-bottom: 0;
}

/* ── Hero Gallery (Harmonious Balanced Bento Mosaic) ───────────── */
.hero-right {
  flex: 0 0 490px;
  width: 490px;
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 490px;
  height: 460px;
  position: relative;
}

.hero-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(var(--cream-rgb), 0.12);
  background: rgba(var(--cream-rgb), 0.04);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  transition: border-color 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
  will-change: transform;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.hero-gallery-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: rgba(var(--black-rgb), 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--cream-rgb), 0.15);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 3;
  pointer-events: none;
}

@media (hover: hover) {
  .hero-gallery-item:hover {
    border-color: rgba(var(--cream-rgb), 0.35);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.8);
    z-index: 5;
  }

  .hero-gallery-item:hover img {
    transform: scale(1.06);
  }
}

/* Gallery Item B: Tall Photography Portrait (Left Column, spans 2 rows) */
.hero-gallery-b {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
}

/* Gallery Item A: Cinematic widescreen (Top Right) */
.hero-gallery-a {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
}

/* Gallery Item C: Captation & Live Video (Bottom Right) */
.hero-gallery-c {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  filter: contrast(1.05);
}

/* ── Scroll Indicator ──────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.scroll-text {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(var(--cream-rgb), 0.35);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(var(--cream-rgb), 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--cream-rgb), 0.6);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* ── About ─────────────────────────────────────────────────────── */
.about {
  background: var(--cream);
  color: var(--black);
  padding: var(--section-pad) var(--page-pad);
}

.about-inner {
  max-width: 1600px;
  margin: 0 auto;
}

.about-label .label-line {
  background: var(--black);
}

.about-content {
  margin-bottom: 3rem;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* Word-wrap spans created by TextSplitter */
.word-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.word {
  display: inline-block;
}

.about-text {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 680px;
  color: rgba(var(--black-rgb), 0.65);
  line-height: 1.75;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(var(--black-rgb), 0.13);
  border-radius: 100px;
  color: var(--black);
  transition: background 0.35s var(--ease-out-expo),
              color 0.35s var(--ease-out-expo),
              border-color 0.35s var(--ease-out-expo);
}

@media (hover: hover) {
  .skill-tag:hover {
    background: var(--black);
    color: var(--cream);
    border-color: var(--black);
  }
}

/* ── Projects ──────────────────────────────────────────────────── */
.projects {
  padding: var(--section-pad) var(--page-pad);
}

.projects-header {
  max-width: 1600px;
  margin: 0 auto 3rem;
}

.projects-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ── Featured Flagship Video (Film Phare — Vidéo Autoplay) ────────── */
.featured-project-wrap {
  max-width: 1220px;
  margin: 0 auto 3.5rem;
}

.featured-project {
  position: relative;
  border-radius: calc(var(--radius) * 1.35);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(var(--cream-rgb), 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  max-height: 460px;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: border-color 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.featured-project:focus-visible {
  border-color: rgba(var(--cream-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--cream-rgb), 0.2);
}

.featured-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.featured-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.85);
  transition: transform 1.2s var(--ease-out-expo), filter 0.6s ease;
}

.featured-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.4) 45%,
    rgba(10, 10, 10, 0.25) 100%
  );
  pointer-events: none;
}

/* Sound Toggle Button (Discret & Élégant) */
.featured-sound-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.featured-sound-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.featured-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  z-index: 4;
  pointer-events: none;
}

.featured-top-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: rgba(10, 10, 14, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
}

.featured-duration {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(var(--cream-rgb), 0.7);
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
}

.featured-bottom-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
}

.featured-text {
  max-width: 540px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 2.1rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.featured-desc {
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
  color: rgba(var(--cream-rgb), 0.8);
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 480px;
}

.featured-action {
  flex-shrink: 0;
}

.featured-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 100px;
  background: rgba(var(--cream-rgb), 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(var(--cream-rgb), 0.25);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.35s var(--ease-out-expo), border-color 0.35s ease, transform 0.35s var(--ease-out-expo);
}

@media (hover: hover) {
  .featured-project:hover {
    border-color: rgba(var(--cream-rgb), 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
  }

  .featured-project:hover .featured-video-bg {
    transform: scale(1.03);
    filter: brightness(0.92);
  }

  .featured-project:hover .featured-action-btn {
    background: rgba(var(--cream-rgb), 0.22);
    border-color: rgba(var(--cream-rgb), 0.45);
    transform: translateX(4px);
  }
}

/* ── Bento Grid ────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(260px, 310px)) minmax(200px, 260px);
  gap: var(--gap);
  max-width: 1600px;
  margin: 0 auto;
  grid-template-areas:
    "a a b e"
    "a a c e"
    "d d f g"
    "h h h h";
}

.bento-a { grid-area: a; }
.bento-b { grid-area: b; }
.bento-c { grid-area: c; }
.bento-d { grid-area: d; }
.bento-e { grid-area: e; }
.bento-f { grid-area: f; }
.bento-g { grid-area: g; }
.bento-h { grid-area: h; }

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(var(--cream-rgb), 0.04);
}

.bento-img {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
  will-change: transform;
}

.bento-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(var(--black-rgb), 0.82) 0%,
    rgba(var(--black-rgb), 0.15) 45%,
    transparent 65%
  );
  transition: background 0.6s var(--ease-out-expo);
  z-index: 2;
}

.bento-category {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: rgba(var(--cream-rgb), 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--cream-rgb), 0.07);
}

.bento-info {
  transform: translateY(10px);
  transition: transform 0.55s var(--ease-out-expo);
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.bento-desc {
  font-size: 0.82rem;
  color: rgba(var(--cream-rgb), 0.55);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out-expo) 0.06s,
              transform 0.45s var(--ease-out-expo) 0.06s;
  max-width: 340px;
}

.bento-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bento-explore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--cream-rgb), 0.14);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
}

/* Desktop hover effects */
@media (hover: hover) {
  .bento-item:hover .bento-img img {
    transform: scale(1.06);
  }

  .bento-item:hover .bento-content {
    background: linear-gradient(
      to top,
      rgba(var(--black-rgb), 0.92) 0%,
      rgba(var(--black-rgb), 0.45) 55%,
      rgba(var(--black-rgb), 0.25) 100%
    );
  }

  .bento-item:hover .bento-info {
    transform: translateY(0);
  }

  .bento-item:hover .bento-desc {
    opacity: 1;
    transform: translateY(0);
  }

  .bento-item:hover .bento-explore-badge {
    opacity: 1;
    transform: translateY(0);
    background: rgba(147, 51, 234, 0.4);
    border-color: rgba(168, 85, 247, 0.45);
  }
}

/* Touch devices — always show info */
@media (hover: none) {
  .bento-desc {
    opacity: 1;
    transform: translateY(0);
  }

  .bento-info {
    transform: translateY(0);
  }

  .bento-explore-badge {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Reels Instagram & Communauté (Section Fond Blanc & Centré) ──── */
.reels-section {
  background: #FFFFFF;
  color: var(--black);
  padding: var(--section-pad) var(--page-pad);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.reels-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* En-tête Centré & Aéré */
.reels-center-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(1.6rem, 3.2vw, 2.2rem);
}

/* Titre & Sous-titre Centrés */
.reels-title-block {
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
  text-align: center;
}

/* Badge Live Sync Temps Réel */
.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: #059669;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.reels-title-dark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}

.reels-subtitle-dark {
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  color: rgba(10, 10, 10, 0.52);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Compteurs de Followers Sans Bulles (Centrés & Typographiques) */
.live-social-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 0;
  width: 100%;
  max-width: 820px;
}

.social-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
  padding: 0.35rem 0.8rem;
  background: none;
  border: none;
  will-change: transform;
}

.social-stat-item:hover .stat-counter {
  color: #1a1a24;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.stat-counter {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.035em;
  line-height: 1;
  display: inline-block;
  transition: color 0.3s ease, transform 0.25s ease;
}

.stat-counter.count-updated {
  color: #10B981;
  transform: scale(1.05);
}

.stat-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-network-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
}

.stat-icon-insta {
  color: #E1306C;
}

.stat-icon-tiktok {
  color: #000000;
}

.stat-label-text {
  font-size: 0.8rem;
  color: rgba(10, 10, 10, 0.45);
  font-weight: 400;
  transition: color 0.25s ease;
}

.social-stat-item:hover .stat-label-text {
  color: var(--black);
}

.social-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(10, 10, 10, 0.12);
  flex-shrink: 0;
  align-self: center;
}

/* Grille Fixe des 4 Réels (Fond Blanc & Centré) */
.reels-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.reels-carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  width: 100%;
  padding: 0.5rem 0.2rem;
}

/* Reel Card (Format 9:16) */
.reel-card {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #0E0E12;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  cursor: pointer;
  will-change: transform, box-shadow;
}

@media (hover: hover) {
  .reel-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(147, 51, 234, 0.35) !important;
    border-color: rgba(147, 51, 234, 0.5) !important;
  }

  .reel-card:hover .reel-video {
    transform: scale(1.08) !important;
  }

  .reel-card:hover .reel-scrim {
    opacity: 0.8 !important;
  }

  .reel-card:hover .reel-content {
    transform: translateY(-4px) !important;
  }

  .reel-card:hover .reel-title {
    color: #FFFFFF !important;
  }
}

.reel-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.reel-card:hover .reel-video {
  transform: scale(1.06);
}

.reel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 14, 0.82) 0%,
    rgba(10, 10, 14, 0.32) 30%,
    transparent 58%,
    rgba(10, 10, 14, 0.28) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.reel-card:hover .reel-scrim {
  opacity: 0.88;
}

/* Top Bar: Network Badge + Sound Toggle */
.reel-top-bar {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.22rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.reel-network-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.reel-tiktok-icon {
  color: #25F4EE;
  flex-shrink: 0;
}

.reel-insta-icon {
  color: #FD1D1D;
  flex-shrink: 0;
}

.reel-sound-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.reel-sound-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

/* Reel Content: Title, Stats, Audio Tag */
.reel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.95rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.reel-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  color: rgba(var(--cream-rgb), 0.7);
}

.reel-views {
  font-weight: 600;
  color: var(--cream);
}

.reel-dot {
  opacity: 0.5;
}

.reel-tag {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
}

.reel-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.reel-audio {
  font-size: 0.64rem;
  color: rgba(var(--cream-rgb), 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Project Viewer Modal (Liquid Glass Overlay) ─────────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.84);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  cursor: pointer;
}

.project-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1020px;
  height: 88dvh;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: rgba(13, 13, 17, 0.88);
  backdrop-filter: blur(40px) saturate(210%);
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8), 0 0 60px rgba(147, 51, 234, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.42s var(--ease-out-expo);
}

.project-modal.open .project-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 14, 0.6);
  flex-shrink: 0;
  gap: 1rem;
}

.modal-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
}

.modal-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

/* Modal Body */
.project-modal-body {
  padding: 1.25rem 1.8rem 1.8rem;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 0px !important;
  min-height: 0 !important;
}

.project-modal-body::-webkit-scrollbar {
  width: 6px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.project-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Main Media Stage (En premier dans le modal) */
.modal-media-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 0.75rem;
}

.modal-media-stage {
  position: relative;
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(54vh, 460px);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 10, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: max-width 0.35s ease, aspect-ratio 0.35s ease;
}

.modal-media-stage.is-vertical {
  aspect-ratio: 9 / 16 !important;
  max-width: 320px !important;
  max-height: min(56vh, 480px) !important;
}

/* Boutons de navigation en overlay sur les côtés de la vidéo */
.modal-stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
}

.modal-stage-prev {
  left: 0.85rem;
}

.modal-stage-next {
  right: 0.85rem;
}

.modal-stage-nav-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

/* Ambient Blur Background (Flou lumineux sur les côtés au lieu du noir vide) */
.modal-video-ambient {
  position: absolute !important;
  inset: -15% !important;
  width: 130% !important;
  height: 130% !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: hidden !important;
  filter: blur(40px) saturate(180%) brightness(0.65);
  opacity: 0.88;
  transform: scale(1.15);
  transition: opacity 0.5s ease;
}

.modal-ambient-blur-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal-video-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 14, 0.12) 20%, rgba(10, 10, 14, 0.75) 100%);
  pointer-events: none;
}

.modal-video-wrap video,
.modal-video-wrap .modal-player {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: min(54vh, 460px) !important;
  object-fit: contain; /* L'intégralité du cadrage vidéo est préservée */
  display: block !important;
  background: transparent !important; /* Rend les côtés transparents pour révéler le flou d'ambiance */
  outline: none;
}

.modal-video-wrap iframe.modal-player {
  border: none !important;
  border-radius: 12px !important;
  background: #000000 !important;
}

.modal-media-stage.is-vertical video,
.modal-media-stage.is-vertical .modal-player {
  aspect-ratio: 9 / 16 !important;
  max-height: min(56vh, 480px) !important;
}

.modal-single-hero-img {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: min(54vh, 460px) !important;
  object-fit: contain;
  display: block !important;
  background: transparent !important;
}

/* Barre de navigation compacte & métadonnées juste sous la vidéo */
.modal-substage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 0.65rem;
  flex-wrap: wrap;
}

.modal-nav-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.45rem;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.modal-counter-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(var(--cream-rgb), 0.85);
  padding: 0 0.3rem;
}

.modal-current-index {
  color: #fff;
  font-weight: 700;
}

.modal-counter-sep {
  opacity: 0.35;
}

.modal-total-count {
  opacity: 0.5;
}

.modal-tags-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(var(--cream-rgb), 0.7);
  background: rgba(var(--cream-rgb), 0.05);
  border: 1px solid rgba(var(--cream-rgb), 0.1);
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
}

.modal-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(var(--cream-rgb), 0.82);
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

/* Gallery Section */
.modal-gallery-section {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 0.5rem;
}

.modal-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.modal-gallery-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.modal-gallery-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(var(--cream-rgb), 0.5);
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.modal-gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.modal-gallery-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  font-size: 0.7rem;
  color: rgba(var(--cream-rgb), 0.88);
}

/* ── Marquee ───────────────────────────────────────────────────── */
.marquee-section {
  padding: 1.6rem 0;
  background: #08080C;
  color: #FFFFFF;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 5;
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-content {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeScroll 32s linear infinite;
}

.marquee:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 1;
  flex-shrink: 0;
  transition: color 0.3s ease, filter 0.3s ease;
}

.marquee-accent {
  background: linear-gradient(135deg, #E9D5FF 0%, #C084FC 45%, #A855F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.45));
}

.marquee-outline {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.07em;
}

.marquee-spark {
  color: #A855F7;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.85));
  flex-shrink: 0;
  user-select: none;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee-section {
    padding: 1.15rem 0;
  }
  .marquee-group {
    gap: 1.4rem;
    padding-right: 1.4rem;
  }
  .marquee-item {
    font-size: clamp(1rem, 3.8vw, 1.35rem);
  }
  .marquee-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
  }
  .marquee-spark {
    font-size: 0.95rem;
  }
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact {
  background: var(--cream);
  color: var(--black);
  padding: clamp(4.5rem, 7vw, 7rem) var(--page-pad) 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.contact-inner {
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label .label-line {
  background: var(--black);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.3rem;
}

.contact-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  color: rgba(var(--black-rgb), 0.65);
  max-width: 500px;
  margin-bottom: 2.2rem;
  line-height: 1.65;
}

/* Direct Badges (SVG + Space Grotesk) */
.contact-direct-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.contact-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(var(--black-rgb), 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.35s var(--ease-out-expo);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
}

div.contact-badge-item {
  cursor: default;
}

.contact-badge-item:hover {
  background: #FFFFFF;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 24px -6px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.contact-badge-item .badge-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(var(--black-rgb), 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-badge-item:hover .badge-icon-wrap {
  background: #7C3AED;
  color: #FFFFFF;
}

.contact-badge-item .badge-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-badge-item .badge-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(var(--black-rgb), 0.45);
}

.contact-badge-item .badge-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-badge-item .badge-arrow {
  font-size: 0.9rem;
  margin-left: 0.2rem;
  color: rgba(var(--black-rgb), 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-badge-item:hover .badge-arrow {
  transform: translate(3px, -3px);
  color: #7C3AED;
}

.contact-socials-heading {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(var(--black-rgb), 0.45);
  margin-bottom: 0.9rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.45rem;
  border: 1px solid rgba(var(--black-rgb), 0.12);
  border-radius: 100px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease,
              color 0.3s ease,
              border-color 0.3s ease;
  will-change: transform;
}

.contact-link-arrow {
  font-size: 0.85em;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

@media (hover: hover) {
  .contact-link:hover {
    background: var(--black);
    color: var(--cream);
    border-color: var(--black);
  }

  .contact-link:hover .contact-link-arrow {
    transform: translate(3px, -3px);
  }
}

/* ── Formulaire de Contact ── */
.contact-form-container {
  width: 100%;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(var(--black-rgb), 0.1);
  border-radius: 24px;
  padding: clamp(1.8rem, 3.2vw, 2.75rem);
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  transition: border-color 0.3s ease;
}

.form-card-header {
  margin-bottom: 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(var(--black-rgb), 0.08);
}

.form-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(var(--black-rgb), 0.75);
}

.form-req {
  color: #7C3AED;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 0.88rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--black);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--black-rgb), 0.12);
  border-radius: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.form-input::placeholder {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(var(--black-rgb), 0.35);
}

.form-input:focus {
  background: #FFFFFF;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.form-input.is-invalid {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.03);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #DC2626;
  min-height: 15px;
  line-height: 1.2;
  display: none;
  padding-left: 0.2rem;
}

.form-error.active {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.95rem 1.95rem;
  background: var(--black);
  color: var(--cream);
  border: 1px solid var(--black);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.contact-submit-btn .submit-btn-arrow {
  display: inline-block;
  font-size: 0.9em;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-submit-btn:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  box-shadow: 0 10px 28px -6px rgba(124, 58, 237, 0.4);
  color: #FFFFFF;
}

.contact-submit-btn:hover .submit-btn-arrow {
  transform: translate(3px, -3px);
}

.contact-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Note RGPD / Confidentialité sous le formulaire ── */
.form-privacy-note {
  font-family: var(--font-body);
  font-size: 0.77rem;
  line-height: 1.45;
  color: rgba(var(--black-rgb), 0.55);
  max-width: 320px;
  margin: 0;
}

.form-privacy-link {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}

.form-privacy-link:hover {
  color: #7C3AED;
}

.form-status-alert {
  display: none;
  padding: 1.05rem 1.35rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: formAlertFade 0.4s ease;
}

@keyframes formAlertFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-status-alert.success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #065F46;
}

.form-status-alert.error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #991B1B;
}

.form-status-alert .alert-icon {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.form-status-alert .alert-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-status-alert .alert-title {
  font-weight: 700;
  font-family: var(--font-display);
}

.form-status-alert .alert-link {
  color: #065F46;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 0 2rem;
  margin-top: auto;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-name {
  font-size: 0.8rem;
  color: var(--black);
  font-weight: 600;
  font-family: var(--font-display);
}

.footer-dot {
  font-size: 0.8rem;
  color: rgba(var(--black-rgb), 0.3);
}

.footer-role,
.footer-location {
  font-size: 0.78rem;
  color: rgba(var(--black-rgb), 0.45);
  font-weight: 400;
  font-family: var(--font-body);
}

.footer-legal-link {
  font-size: 0.78rem;
  color: rgba(var(--black-rgb), 0.48);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-body);
  transition: color 0.25s ease;
}

.footer-legal-link:hover {
  color: #7C3AED;
  text-decoration: underline;
}

.footer-year {
  font-size: 0.78rem;
  color: rgba(var(--black-rgb), 0.38);
  font-weight: 500;
  font-family: var(--font-body);
}

/* ================================================================
   PAGE MENTIONS LÉGALES & RGPD (mentions-legales.html)
   Bespoke Dark Liquid Glass Bento Design — Direction Artistique JR
   ================================================================ */

.legal-body {
  background-color: #08080C;
  color: var(--cream);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(139, 92, 246, 0.08), transparent 60%);
  background-attachment: fixed;
}

/* ── Top Floating Navigation Pill (Identical to Main Portfolio) ── */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem var(--page-pad);
  display: flex;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.6) 65%, transparent 100%);
  transition: padding 0.3s ease;
}

.legal-nav-pill {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
              inset 0 1px 1.5px rgba(255, 255, 255, 0.35),
              inset 0 -1px 1px rgba(255, 255, 255, 0.08);
  gap: 6px;
}

.legal-nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.legal-nav-logo:hover {
  opacity: 0.95;
  transform: scale(1.05);
}

.legal-nav-logo-img {
  height: 22px;
  width: auto;
  max-width: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.legal-nav-logo:hover .legal-nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.8));
}

.legal-nav-logo .dot {
  color: #8B5CF6;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.85);
}

.legal-nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 2px;
}

.legal-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.35s var(--ease-out-expo);
  text-decoration: none;
}

.legal-nav-back:hover {
  background: #7C3AED;
  border-color: #7C3AED;
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.legal-nav-back svg {
  transition: transform 0.3s ease;
}

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

/* ── Main Layout ── */
.legal-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(160px, 20vh, 215px) 1.5rem 6rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ── Hero Section ── */
.legal-hero {
  margin-bottom: 3.5rem;
  max-width: 920px;
}

.legal-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.legal-label .label-line {
  width: 28px;
  height: 2px;
  background: #A855F7;
  display: inline-block;
}

.legal-label .label-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C084FC;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.legal-title .title-accent {
  background: linear-gradient(135deg, #FFFFFF 30%, #C084FC 80%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-intro {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.75);
  margin-bottom: 2rem;
  max-width: 780px;
}

/* ── 3 Highlights Pills Strip ── */
.legal-highlights-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.highlight-pill {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.35s var(--ease-out-expo);
}

.highlight-pill:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(124, 58, 237, 0.15);
}

.highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C084FC;
  flex-shrink: 0;
}

.highlight-info h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.highlight-info p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(245, 240, 235, 0.6);
  margin: 0;
}

/* ── Bento Grid for Legal Articles ── */
.legal-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.legal-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35),
              inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.legal-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 28px rgba(124, 58, 237, 0.12);
  transform: translateY(-3px);
}

.card-span-7 {
  grid-column: span 7;
}

.card-span-5 {
  grid-column: span 5;
}

.card-span-6 {
  grid-column: span 6;
}

.card-span-12 {
  grid-column: span 12;
}

.legal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C084FC;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.legal-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.legal-card-desc {
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(245, 240, 235, 0.72);
  margin-bottom: 1.25rem;
}

/* ── Meta Pills & Key-Values Inside Bento ── */
.legal-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.legal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-detail-label {
  font-size: 0.82rem;
  color: rgba(245, 240, 235, 0.5);
  font-weight: 500;
}

.legal-detail-val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
}

.legal-detail-val a {
  color: #C084FC;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-detail-val a:hover {
  color: #FFFFFF;
}

/* ── Big Metric Stat in Card ── */
.legal-stat-box {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
}

.legal-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #10B981;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.legal-stat-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 240, 235, 0.6);
}

/* ── Interactive Process Flow Steps ── */
.legal-flow-steps {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.flow-step {
  padding: 0.55rem 0.95rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
}

.flow-arrow {
  color: #A855F7;
  font-size: 0.9rem;
}

/* ── Rights Grid Inside Card ── */
.rights-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.right-tag-item {
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.right-tag-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.right-tag-desc {
  font-size: 0.76rem;
  color: rgba(245, 240, 235, 0.55);
  line-height: 1.4;
}

/* ── Final Direct CTA Card ── */
.legal-card.cta-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(14, 14, 20, 0.7);
  border-color: rgba(168, 85, 247, 0.35);
  padding: 3rem;
  align-items: center;
  text-align: center;
}

.cta-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(245, 240, 235, 0.75);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.cta-buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  background: #7C3AED;
  border: 1px solid #7C3AED;
  padding: 0.85rem 1.85rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
  box-shadow: 0 10px 28px -6px rgba(124, 58, 237, 0.5);
}

.legal-btn-primary:hover {
  background: #6D28D9;
  border-color: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(124, 58, 237, 0.65);
}

.legal-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.35s var(--ease-out-expo);
}

.legal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ── Dark Liquid Glass Footer ── */
.legal-footer-dark {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(245, 240, 235, 0.45);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legal-footer-dark a {
  color: rgba(245, 240, 235, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-footer-dark a:hover {
  color: #FFFFFF;
}

/* ── Responsive Tablet & Mobile ── */
@media (max-width: 960px) {
  .legal-wrapper {
    padding-top: 140px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

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

  .card-span-7,
  .card-span-5,
  .card-span-6 {
    grid-column: span 12;
  }

  .rights-tag-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .legal-wrapper {
    padding-top: 125px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .legal-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet (≤1024px) ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --gap: 0.7rem;
    --nav-height: 68px;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
  }

  .hero-right {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .hero-gallery {
    max-width: 540px;
    height: 420px;
    margin: 0 auto;
  }

  .hero-name {
    font-size: clamp(3.2rem, 11vw, 7.5rem);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "a a"
      "a a"
      "b e"
      "c e"
      "d d"
      "f g"
      "h h";
  }

  .bento-grid > * {
    min-height: 230px;
  }

  .bento-a {
    min-height: 360px;
  }

  .reels-carousel-container {
    max-width: 600px;
  }

  .reels-carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Mobile & Small Tablet (≤860px) — Hamburger & Clean Mobile Hero ─ */
@media (max-width: 860px) {
  :root {
    --gap: 0.5rem;
    --section-pad: clamp(3.5rem, 8vh, 5rem);
    --page-pad: 1.15rem;
    --nav-height: 64px;
    --radius: 12px;
  }

  /* Navigation: Switch desktop pill to mobile bar */
  .nav-header {
    padding: 0.85rem var(--page-pad);
  }

  .nav-inner {
    justify-content: space-between;
    width: 100%;
  }

  .nav-pill {
    display: none !important;
  }

  .nav-mobile-bar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    pointer-events: none;
  }

  .nav-mobile-logo {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 10, 14, 0.42);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
                inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-mobile-logo-img {
    height: 22px;
    width: auto;
    max-width: 44px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  }

  .nav-mobile-logo:active {
    transform: scale(0.95);
  }

  .nav-hamburger {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 10, 14, 0.42);
    backdrop-filter: blur(28px) saturate(210%);
    -webkit-backdrop-filter: blur(28px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
                inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease;
  }

  .nav-hamburger:active {
    transform: scale(0.92);
  }

  .hamburger-box {
    position: relative;
    width: 20px;
    height: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--cream);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.25s ease;
  }

  .nav-hamburger.active .line-1 {
    transform: translateY(5px) rotate(45deg);
    background-color: #8B5CF6;
  }

  .nav-hamburger.active .line-2 {
    transform: translateY(-5px) rotate(-45deg);
    background-color: #8B5CF6;
  }

  /* Hero: Full 100% black screen on load — zero white bleed */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(var(--nav-height) + 1.2rem);
    padding-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vh, 2.2rem);
    width: 100%;
  }

  .hero-left {
    width: 100%;
    max-width: 100%;
  }

  .hero-name-wrapper {
    margin-bottom: 0.45rem;
  }

  .hero-name {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
    margin-bottom: 0;
  }

  /* Clean role rotator display without overflow clipping */
  .hero-role-wrapper {
    height: 2.8rem;
    margin-bottom: 0.55rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-role-box {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2px 0;
  }

  .hero-role-text {
    font-size: clamp(1.4rem, 5.8vw, 1.95rem);
    line-height: 1.25;
    color: rgba(var(--cream-rgb), 0.95);
    white-space: nowrap;
    display: inline-block;
  }

  .hero-subtitle {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    color: rgba(var(--cream-rgb), 0.65);
  }

  /* Gallery: Shifted down into the black space to perfectly balance the screen */
  .hero-right {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
  }

  .hero-gallery {
    width: 100%;
    max-width: 480px;
    height: clamp(340px, 48vh, 440px);
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    margin: 0 auto;
  }

  .hero-gallery-item {
    border-radius: 16px;
  }

  .hero-gallery-badge {
    bottom: 10px;
    left: 10px;
    padding: 0.26rem 0.65rem;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .about-title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  .about-text {
    font-size: 0.95rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
  }

  .projects-title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  /* Featured Flagship Video — Mobile */
  .featured-project-wrap {
    margin-bottom: 1.5rem;
  }

  .featured-project {
    aspect-ratio: auto;
    min-height: 360px;
    border-radius: var(--radius);
  }

  .featured-sound-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
  }

  .featured-overlay-content {
    padding: 1.2rem;
  }

  .featured-bottom-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .featured-title {
    font-size: 1.35rem;
  }

  .featured-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-action-btn {
    padding: 0.5rem 1.1rem;
    font-size: 0.75rem;
  }

  /* Project Viewer Modal — Mobile */
  .project-modal {
    padding: 0;
  }

  .project-modal-dialog {
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .project-modal-header {
    padding: 0.9rem 1.2rem;
  }

  .project-modal-body {
    padding: 1.1rem 1.2rem;
  }

  .modal-media-stage-wrap {
    margin-bottom: 0.6rem;
  }

  .modal-media-stage,
  .modal-video-wrap,
  .modal-video-wrap video,
  .modal-player,
  .modal-single-hero-img {
    max-height: 38vh;
  }

  .modal-stage-nav-btn {
    width: 32px;
    height: 32px;
  }

  .modal-stage-prev {
    left: 0.5rem;
  }

  .modal-stage-next {
    right: 0.5rem;
  }

  .modal-substage-bar {
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .modal-nav-wrap {
    gap: 0.35rem;
    padding: 0.22rem 0.4rem;
  }

  .modal-nav-btn {
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
  }

  .modal-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .modal-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "f"
      "g"
      "h";
  }

  .bento-grid > * {
    min-height: 260px;
  }

  .bento-a {
    min-height: 340px;
  }

  .bento-e {
    min-height: 320px;
  }

  .bento-h {
    min-height: 200px;
  }

  .bento-content {
    padding: 1.1rem;
  }

  .bento-title {
    font-size: 1rem;
  }

  /* Reels Instagram Mobile & Tablet (Fond Blanc & Centré) */
  .reels-section {
    padding: clamp(3.5rem, 8vh, 5rem) var(--page-pad);
  }

  .reels-center-header {
    margin-bottom: 1.5rem;
  }

  .reels-title-block {
    margin-bottom: 1.1rem;
  }

  .live-social-numbers {
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 0;
  }

  .reels-carousel-container {
    max-width: 440px;
    margin: 0 auto;
  }

  .reels-carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .contact {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(3.5rem, 8vh, 5rem);
    overflow-x: hidden;
    max-width: 100%;
  }

  .contact-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    width: 100%;
  }

  .contact-title {
    font-size: clamp(1.9rem, 9.5vw, 3.2rem);
    word-break: break-word;
  }

  .contact-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    max-width: 100%;
  }

  .contact-direct-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.8rem;
  }

  .contact-badge-item {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0.8rem 1.1rem;
    box-sizing: border-box;
    overflow: hidden;
  }

  .contact-badge-item .badge-text-group {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .contact-badge-item .badge-val {
    font-size: clamp(0.78rem, 3.8vw, 0.95rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }

  .contact-badge-item .badge-arrow {
    flex-shrink: 0;
  }

  .contact-links {
    flex-direction: column;
    gap: 0.65rem;
  }

  .contact-link {
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.25rem;
    box-sizing: border-box;
  }

  .scroll-indicator {
    display: none;
  }

  .marquee-content span {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  /* Form Container & Card */
  .contact-form-container {
    width: 100%;
    max-width: 100%;
  }

  .contact-form-card {
    padding: clamp(1.35rem, 4.5vw, 2rem) clamp(1rem, 3.8vw, 1.5rem);
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .form-card-header {
    margin-bottom: 1.3rem;
    padding-bottom: 0.9rem;
  }

  .form-card-title {
    font-size: 1.35rem;
  }

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

  /* CRITICAL: 16px font-size to prevent iOS Safari from zooming the viewport on tap */
  .form-input,
  .form-textarea {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
  }

  .form-textarea {
    resize: none;
    min-height: 110px;
  }

  .form-bottom {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .contact-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
    box-sizing: border-box;
  }

  .form-privacy-note {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .footer {
    padding: 2rem 0 1.5rem;
  }
}

/* ── Modern Smartphone & Mobile (≤600px) — Covers Xiaomi 14T, iPhone Pro Max, Samsung Galaxy & Small Phones ── */
@media (max-width: 600px) {
  .live-social-numbers {
    flex-direction: column;
    gap: 1.6rem;
    width: 100%;
  }

  .social-stat-divider {
    display: none;
  }

  .hero-name {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    word-break: break-word;
  }

  .hero-role-text {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
  }

  .hero-gallery {
    height: clamp(320px, 46vh, 400px);
    gap: 10px;
    max-width: 100%;
  }

  .hero-gallery-badge {
    bottom: 8px;
    left: 8px;
    padding: 0.22rem 0.55rem;
    font-size: 0.6rem;
  }

  .mobile-menu-panel {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 1.2rem 1.1rem 1.4rem;
  }

  .about-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .contact-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .reels-carousel-container {
    max-width: 100%;
    width: 100%;
  }

  .reels-carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
  }
}

/* ── Large Screens (≥1800px) ───────────────────────────────────── */
@media (min-width: 1800px) {
  .bento-grid {
    grid-template-rows: repeat(3, minmax(320px, 400px)) minmax(250px, 300px);
  }
}

/* ── Reduced Motion (Safe fallbacks) ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

