:root {
  --bg: #0b0c0d;
  --surface: #101214;
  --text-primary: #ecebe7;
  --text-secondary: rgba(236, 235, 231, 0.55);
  --accent: #d8c06a;
  --accent-dim: rgba(216, 192, 106, 0.15);
  --line: rgba(236, 235, 231, 0.1);
  --line-strong: rgba(236, 235, 231, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cursor,
.cursor-label {
  display: none;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, -50%);
  z-index: 10000;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  .project-card,
  .service-card,
  .menu-toggle {
    cursor: none;
  }

  .cursor {
    display: block;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    mix-blend-mode: difference;
    transition:
      width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
      height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
      background 0.3s ease,
      border-color 0.3s ease;
  }

  .cursor-label {
    color: var(--bg);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
  }

  .cursor.hovering {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-color: var(--accent);
  }

  .cursor-label.visible {
    opacity: 1;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #f0e6a8);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
}

header.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 5%;
  background: transparent;
  transition: background 0.5s ease, padding 0.4s ease;
}

header.topbar.scrolled {
  padding: 18px 5%;
  background: rgba(11, 12, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-decoration: none;
}

nav.desktop-nav {
  display: flex;
  gap: 8px;
}

nav.desktop-nav a {
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}

nav.desktop-nav a:hover,
nav.desktop-nav a:focus-visible {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.header-cta,
.hero-cta {
  border: 1.5px solid var(--accent);
  border-radius: 9999px;
  color: var(--text-primary);
  text-decoration: none;
}

.header-cta {
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.35s ease, color 0.35s ease, transform 0.3s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.04);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

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

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

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

.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fullscreen-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-secondary);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  text-decoration: none;
  transform: translateY(30px);
  opacity: 0;
  transition:
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    letter-spacing 0.4s ease,
    opacity 0.4s ease;
}

.fullscreen-menu.open a {
  transform: translateY(0);
  opacity: 1;
}

.fullscreen-menu a:nth-child(1) {
  transition-delay: 0.1s;
}

.fullscreen-menu a:nth-child(2) {
  transition-delay: 0.15s;
}

.fullscreen-menu a:nth-child(3) {
  transition-delay: 0.2s;
}

.fullscreen-menu a:nth-child(4) {
  transition-delay: 0.25s;
}

.fullscreen-menu a:nth-child(5) {
  transition-delay: 0.3s;
}

.fullscreen-menu a:hover,
.fullscreen-menu a:focus-visible {
  color: var(--accent);
  letter-spacing: 0.08em;
  transform: translateX(12px);
}

.reveal,
.reveal-left,
.reveal-stagger > * {
  opacity: 0;
}

.reveal {
  transform: translateY(50px);
  transition:
    opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-60px);
  transition:
    opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-stagger > * {
  opacity: 0;
}

.reveal-stagger.visible > *:nth-child(odd) {
  animation: slide-from-left 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-stagger.visible > *:nth-child(even) {
  animation: slide-from-right 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.5s; }

@keyframes slide-from-left {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(216, 192, 106, 0.04), transparent 70%),
    linear-gradient(to bottom, rgba(11, 12, 13, 0.4), rgba(11, 12, 13, 0.88)),
    url("../images/section1.svg");
  background-size: auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Image personnalisée — écrase section1.svg */
.hero-bg[style] {
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(216, 192, 106, 0.04), transparent 70%),
    linear-gradient(to bottom, rgba(11, 12, 13, 0.4), rgba(11, 12, 13, 0.88)),
    var(--hero-img, none);
  background-size: auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay pour vidéo */
.hero-bg--overlay {
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(216, 192, 106, 0.04), transparent 70%),
    linear-gradient(to bottom, rgba(11, 12, 13, 0.45), rgba(11, 12, 13, 0.85));
  background-size: auto;
}

/* Vidéo hero */
.hero-video {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  border: none;
  pointer-events: none;
  z-index: 0;
}

.hero-bg--overlay {
  z-index: 1;
}

.hero-content,
.scroll-hint {
  z-index: 2;
}

.hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  margin-bottom: 28px;
  overflow: hidden;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.92;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero.loaded h1 .line-inner {
  transform: translateY(0);
}

.hero h1 .line:nth-child(2) .line-inner {
  transition-delay: 0.15s;
}

.hero h1 .thin {
  font-style: italic;
  font-weight: 300;
}

.hero h1 .bold {
  font-weight: 700;
}

.hero-desc {
  max-width: 460px;
  margin-bottom: 36px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.hero.loaded .hero-desc {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(20px);
  transition: color 0.4s ease, transform 0.3s ease;
}

.hero.loaded .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition:
    color 0.4s ease,
    transform 0.3s ease,
    opacity 0.8s ease 0.65s;
}

.hero-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-cta:hover::before,
.hero-cta:focus-visible::before {
  transform: scaleX(1);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: var(--bg);
}

.hero-cta:active {
  transform: scale(0.96);
}

.hero-cta .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-effect 0.55s linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-50%);
  animation: fade-in-hint 1s ease 1.5s forwards;
}

.scroll-hint span {
  color: var(--text-secondary);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-hint .arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes fade-in-hint {
  to {
    opacity: 1;
  }
}

@keyframes scroll-bounce {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
}

section {
  padding: 100px 5%;
}

.section-title {
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.section-subtitle {
  max-width: 480px;
  margin-bottom: 48px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-number {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.section-divider {
  width: 60px;
  height: 1px;
  margin-bottom: 32px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.selection {
  padding-bottom: 40px;
}

.projects-scroll-wrapper {
  position: relative;
  margin: 0 -5%;
  padding: 0 5%;
}

.projects-scroll {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-scroll::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  scroll-snap-align: start;
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--accent);
}

.img-wrapper {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.project-img {
  height: 240px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-img,
.project-card:focus-within .project-img {
  transform: scale(1.05);
}

.project-img--opera,
.project-img--vendome {
  background-image: url("../images/section5.svg");
}

.project-img--verlaine,
.project-img--galerie {
  background-image: url("../images/section6.svg");
}

.project-info {
  padding: 22px 24px;
}

.project-card h3 {
  margin-bottom: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.scroll-nav {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.scroll-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.scroll-nav button:hover,
.scroll-nav button:focus-visible {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  padding: 40px 36px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  transition: background 0.4s ease;
}

.service-card:hover,
.service-card:focus-within {
  background: rgba(216, 192, 106, 0.04);
}

.service-card::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: 0;
  left: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after,
.service-card:focus-within::after {
  opacity: 0.4;
}

.service-card h3 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

.service-card {
  cursor: pointer;
}

.service-card-hint {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-hint,
.service-card:focus-visible .service-card-hint {
  opacity: 1;
  transform: translateY(0);
}

.service-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 12, 13, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.service-popup {
  position: relative;
  max-width: 540px;
  width: 100%;
  padding: 52px 48px 48px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-popup-overlay.open .service-popup {
  transform: translateY(0) scale(1);
}

.service-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.service-popup-close:hover,
.service-popup-close:focus-visible {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-dim);
}

.service-popup-title {
  margin-bottom: 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.service-popup-divider {
  width: 48px;
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.service-popup-detail {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
}

@media (max-width: 600px) {
  .service-popup {
    padding: 44px 28px 36px;
  }
}

.method {
  position: relative;
}

.method-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.method-text {
  display: grid;
  gap: 1.4rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
}

.method-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 420px;
  margin-left: auto;
  margin-right: 20%;
}

.method-visual .circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.method-visual .circle:nth-child(1) {
  border-color: var(--accent);
  opacity: 0.15;
}

.method-visual .circle:nth-child(2) {
  width: 270px;
  height: 270px;
  opacity: 0.25;
}

.method-visual .circle:nth-child(3) {
  width: 160px;
  height: 160px;
  border-color: var(--accent);
  opacity: 0.6;
  animation: pulse-circle 3s ease-in-out infinite;
}

@keyframes pulse-circle {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.18); opacity: 0.15; }
}

.method-visual .center-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.orbit-idea {
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  animation: orbit-cw 18s linear infinite;
}

.orbit-forme {
  width: 270px;
  height: 270px;
  margin-top: -135px;
  margin-left: -135px;
  animation: orbit-ccw 12s linear infinite;
}

.orbit .method-visual-label {
  position: absolute;
  top: -10px;
  left: 50%;
  white-space: nowrap;
  color: var(--text-secondary);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
}

.orbit-idea .method-visual-label {
  transform: translateX(-50%);
  animation: counter-cw 18s linear infinite;
}

.orbit-forme .method-visual-label {
  transform: translateX(-50%);
  animation: counter-ccw 12s linear infinite;
}

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

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

@keyframes counter-cw {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}

@keyframes counter-ccw {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}

.references,
.contact {
  position: relative;
  display: flex;
  align-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.references {
  min-height: 60vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background-attachment: fixed;
  background-image: url("../images/section2.svg");
}

.contact {
  min-height: 80vh;
  background-image: url("../images/section6.svg");
}

.references .overlay,
.contact .overlay {
  position: absolute;
  inset: 0;
}

.references .overlay {
  background: linear-gradient(135deg, rgba(11, 12, 13, 0.85), rgba(11, 12, 13, 0.65));
}

.contact .overlay {
  background: linear-gradient(180deg, rgba(11, 12, 13, 0.9), rgba(11, 12, 13, 0.75));
}

.references .content {
  position: relative;
  width: 100%;
  padding: 80px 5%;
}

.contact .content {
  position: relative;
  width: 100%;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.references .section-number,
.contact .section-number {
  color: var(--accent);
}

.references p {
  max-width: 480px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.logos-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0 56px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  gap: 100px;
  width: max-content;
  animation: logos-scroll 28s linear infinite;
}

.logo-item {
  height: 100px;
  width: auto;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.logo-item:hover {
  opacity: 1;
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.contact-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.contact-headline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 360px;
  margin-bottom: 48px;
}

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

.contact-info-row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.contact-info-row:first-child {
  border-top: 1px solid var(--line);
}

.contact-info-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 48px;
}

.contact-info-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-dispo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 8px rgba(76, 175, 125, 0.6);
}

.contact-dispo-dot.unavailable {
  background: #e07070;
  box-shadow: 0 0 8px rgba(224, 112, 112, 0.6);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 18, 20, 0.7);
  color: var(--text-primary);
  padding: 14px 18px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-secondary);
}

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

.captcha-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.captcha-label {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.captcha-question {
  color: var(--accent);
  font-weight: 500;
}

.captcha-input {
  width: 120px !important;
  -moz-appearance: textfield;
}

.captcha-input::-webkit-outer-spin-button,
.captcha-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.contact-form button {
  padding: 14px;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(216, 192, 106, 0.25);
}

footer {
  padding: 48px 5%;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: center;
}

footer .footer-accent {
  color: var(--accent);
  text-decoration: none;
}

.footer-legal {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--accent);
}

@media (max-width: 900px) {
  nav.desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

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

  .method-content,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact .content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .method-visual {
    width: 100%;
    max-width: 320px;
    height: 320px;
    transform: scale(0.75);
    margin: -40px auto;
  }

  .project-card {
    flex-basis: 300px;
  }

  .contact-form .full-width {
    grid-column: 1;
  }

  .references {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-basis: 85vw;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  section {
    padding: 88px 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-stagger > *,
  .hero-desc,
  .hero-cta,
  .hero h1 .line-inner {
    opacity: 1;
    transform: none;
  }
}
