/* The first scene stays complete and readable while JS is unavailable. */
.hero { overflow: clip; }
.hero-image-wrap { overflow: clip; }
.hero[data-hero-carousel-initialized] { touch-action: pan-y pinch-zoom; }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; margin: 0; visibility: hidden; opacity: 0; }
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-slide.is-outgoing { visibility: visible; opacity: 1; z-index: 1; }
.hero-slide.is-incoming { visibility: visible; opacity: 1; z-index: 2; }
.hero .hero-slide .hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; translate: none; transform: scale(1.025);
  animation: none; will-change: auto;
}
html[data-motion-ready] .hero-slides {
  inset: -7% -3%; width: 106%; height: 114%;
  translate: var(--dd-hero-x, 0px) var(--dd-hero-y, 0px);
}
.hero-slide[data-project="kitchen"] .hero-image { object-position: 50% 58%; }
.hero-slide[data-project="hero-lounge"] .hero-image,
.hero-slide[data-project="lounge"] .hero-image { object-position: center 58%; }
.hero-slide[data-project="hero-suite"] .hero-image,
.hero-slide[data-project="suite"] .hero-image { object-position: center 53%; }
.hero-slide[data-project="hero-contemporain-bleu"] .hero-image,
.hero-slide[data-project="hero-convivial-ocre"] .hero-image,
.hero-slide[data-project="hero-organique-sauge"] .hero-image,
.hero-slide[data-project="hero-urbain-bordeaux"] .hero-image { object-position: center 56%; }
.hero[data-hero-carousel-initialized] .hero-slide.is-active .hero-image {
  animation: heroSceneDrift 20s ease-out both;
  animation-play-state: paused;
}
.hero[data-hero-playing="true"] .hero-slide.is-active .hero-image { animation-play-state: running; }
.hero-shade { pointer-events: none; }

.hero-carousel-controls {
  position: absolute; z-index: 4; right: 4.5%; bottom: 156px;
  display: flex; align-items: center; gap: 5px;
  width: min(480px, 48vw); color: #fff;
}
.hero-carousel-controls[hidden] { display: none; }
.hero-carousel-controls button {
  position: relative; display: grid; place-items: center; flex: 0 0 42px;
  width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff4d;
  border-radius: 50%; background: #12191228; color: #fff;
  font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(9px);
  transition: background .22s ease, border-color .22s ease;
}
.hero-carousel-controls button:hover { background: #ffffff21; border-color: #ffffffa6; }
.hero-carousel-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hero-carousel-controls [data-hero-pause] { margin-left: 4px; font-size: 13px; }
.hero-carousel-controls [data-hero-pause][aria-pressed="true"] { background: #ffffff24; }
.hero-slide-selectors { display: flex; flex: 1; align-items: center; justify-content: center; min-width: 0; }
.hero-slide-selectors button {
  width: 31px; flex: 1 1 31px; height: 42px; min-width: 25px;
  border: 0; background: transparent; backdrop-filter: none; border-radius: 4px;
  font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .5px;
  color: #ffffffb0;
}
.hero-slide-selectors button::after {
  content: ''; position: absolute; left: 7px; right: 7px; bottom: 5px;
  height: 2px; border-radius: 1px; background: #ffffff40;
  transform: scaleX(.55); transition: transform .25s ease, background .25s ease;
}
.hero-slide-selectors button:hover { background: #ffffff12; }
.hero-slide-selectors button[aria-current="true"] { color: #fff; }
.hero-slide-selectors button[aria-current="true"]::after { transform: scaleX(1); background: #fff; }
.hero-carousel-controls::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px;
  height: 1px; background: #ffffff35; pointer-events: none;
}
.hero-carousel-controls::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -12px; z-index: 1;
  height: 1px; background: #fff; transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}
.hero[data-hero-playing="true"][data-hero-cycle="a"] .hero-carousel-controls::before { animation: heroAmbianceProgressA var(--hero-period, 8000ms) linear both; }
.hero[data-hero-playing="true"][data-hero-cycle="b"] .hero-carousel-controls::before { animation: heroAmbianceProgressB var(--hero-period, 8000ms) linear both; }
.hero[data-hero-carousel-initialized] .hero-project { width: 336px; border-top: 0; }
.hero-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes heroSceneDrift { from { transform: scale(1.025); } to { transform: scale(1.085); } }
@keyframes heroAmbianceProgressA { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroAmbianceProgressB { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Keep the primary action left of the ten-scene controls on compact desktops. */
@media (min-width: 901px) and (max-width: 1250px) {
  .hero .hero-bottom { display: block; max-width: 340px; }
  .hero .hero-bottom .button { margin-top: 18px; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .hero[data-hero-carousel-initialized] .hero-project { width: 300px; }
}
@media (max-width: 640px) {
  .hero-carousel-controls { left: 6%; right: 6%; bottom: 62px; width: auto; max-width: 340px; gap: 8px; }
  .hero-carousel-controls button { width: 44px; height: 44px; flex-basis: 44px; }
  .hero-slide-selectors button { width: 30px; flex: 1 1 30px; min-width: 25px; }
  .hero[data-hero-carousel-initialized] .hero-project {
    left: 6%; right: 6%; bottom: 123px; width: auto; max-width: 340px; padding: 0;
  }
  .hero[data-hero-carousel-initialized] .hero-project .project-sample { font-size: 8px; letter-spacing: 1px; }
  .hero[data-hero-carousel-initialized] .hero-project strong { font-size: 17px; margin: 5px 0; }
  .hero[data-hero-carousel-initialized] .hero-project > span:last-child { font-size: 10px; }
  .hero[data-hero-carousel-initialized] .hero-scroll { bottom: 20px; }
  .hero[data-hero-carousel-initialized] .hero-content { top: 34%; }
}
@media (max-width: 380px) {
  .hero-carousel-controls [data-hero-prev],
  .hero-carousel-controls [data-hero-next] { display: none; }
  .hero[data-hero-carousel-initialized] .hero-content { top: 32%; }
  .hero[data-hero-carousel-initialized] .hero-bottom { margin-top: 21px; }
  .hero[data-hero-carousel-initialized] .hero-bottom p { font-size: 12px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-slides { translate: 0 0; }
  .hero[data-hero-carousel-initialized] .hero-slide.is-active .hero-image { animation: none; transform: scale(1.025); }
  .hero-carousel-controls button, .hero-slide-selectors button::after { transition: none; }
}
