/* =============================================
   METADIR SA - Premium Design System
   ============================================= */

/* --- Fonts ---
   Headings : General Sans Bold (Fontshare)
   Body     : Inter Regular (Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&display=swap');

/* --- CSS Variables — Brand palette : white / gray / black + orange --- */
:root {
  /* Brand surfaces — exact code couleurs */
  --bg-light: #ffffff;
  --bg-gray: #ececec;
  --bg-dark: #0a0a0a;
  --bg-dark-2: #0f0f0f;
  --bg-dark-3: #151515;

  /* Text on light surfaces — dark gray, never pure black */
  --text-on-light: #1f1f1f;
  --text-on-light-muted: #4a4a4a;
  --text-on-light-tertiary: #6b6b6b;
  --text-on-light-faint: #9a9a9a;

  /* Text on dark surfaces */
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.68);
  --text-on-dark-tertiary: rgba(255, 255, 255, 0.48);
  --text-on-dark-faint: rgba(255, 255, 255, 0.32);

  /* Lines & dividers */
  --line-on-light: rgba(10, 10, 10, 0.10);
  --line-on-light-strong: rgba(10, 10, 10, 0.18);
  --line-on-dark: rgba(255, 255, 255, 0.08);
  --line-on-dark-strong: rgba(255, 255, 255, 0.16);

  /* Accent — warm orange */
  --color-accent: #fe9727;
  --color-accent-hover: #ffae54;
  --color-accent-light: rgba(254, 151, 39, 0.08);
  --color-accent-glow: rgba(254, 151, 39, 0.32);

  /* Legacy aliases */
  --bg-base: var(--bg-light);
  --bg-alt: var(--bg-gray);
  --bg-elevated: var(--bg-light);
  --bg-card: var(--bg-light);
  --text-primary: var(--text-on-light);
  --text-secondary: var(--text-on-light-muted);
  --text-tertiary: var(--text-on-light-tertiary);
  --text-faint: var(--text-on-light-faint);
  --line-subtle: var(--line-on-light);
  --line-strong: var(--line-on-light-strong);
  --color-dark: #0a0a0a;
  --color-dark-2: #0f0f0f;
  --color-dark-3: #151515;
  --color-gray: var(--text-on-light-muted);
  --color-gray-light: #ececec;
  --color-gray-border: var(--line-on-light);
  --color-white: #ffffff;
  --color-orange: #fe9727;

  --font-heading: 'General Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --radius: 0;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark-section context : every selector inside swaps token aliases to dark */
.section--dark,
.section--stats,
.process-section,
.brand-moment {
  --bg-base: var(--bg-dark);
  --bg-alt: var(--bg-dark-2);
  --bg-elevated: var(--bg-dark-3);
  --text-primary: var(--text-on-dark);
  --text-secondary: var(--text-on-dark-muted);
  --text-tertiary: var(--text-on-dark-tertiary);
  --text-faint: var(--text-on-dark-faint);
  --line-subtle: var(--line-on-dark);
  --line-strong: var(--line-on-dark-strong);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-on-light);
  line-height: 1.6;
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-accent);
  color: #000;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* --- Typography
   Headings : General Sans Semi-Bold, sentence case
   (first letter capital, rest as authored).
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-on-light);
}

/* Dark sections : titles flip to white */
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5, .section--dark h6,
.section--stats h1, .section--stats h2, .section--stats h3, .section--stats h4,
.process-section h1, .process-section h2, .process-section h3, .process-section h4,
.brand-moment h1, .brand-moment h2, .brand-moment h3 {
  color: var(--text-on-dark);
}

/* Accent words in headings — orange, no italic
   (architectural line effect drawn via ::after on .word) */
h1 .accent, h2 .accent, h3 .accent, h4 .accent {
  font-style: normal;
  color: var(--color-accent);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; line-height: 1.2; }

p {
  color: var(--text-on-light-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.section--dark p,
.section--stats p,
.process-section p,
.brand-moment p {
  color: var(--text-on-dark-muted);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  position: relative;
  padding: 130px 0;
  background: var(--bg-light);
  overflow: hidden;
  isolation: isolate;
}

/* Architectural grid backdrop on every .section.
   Dark hairlines on light bg, white hairlines on dark bg.
   Moves with parallax via --parallax-y CSS variable. */
.section::before {
  content: '';
  position: absolute;
  inset: -120px 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: 100px 100px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section { padding: 90px 0; }
}

.section--gray {
  background: var(--bg-gray);
}

/* Disable the architectural grid background on this section */
.section--no-grid::before {
  display: none;
}

/* Contact form frame — white card on the gray section background */
.contact-form-frame {
  background: var(--bg-light);
  padding: 48px 44px;
  border: 1px solid var(--line-on-light);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .contact-form-frame {
    padding: 36px 26px;
  }
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--color-accent);
  margin-bottom: 22px;
  position: relative;
  padding-left: 36px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.text-center .section-label {
  padding-left: 0;
  padding-top: 18px;
}

.text-center .section-label::before {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.section-title {
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-on-light-muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.section--dark .section-subtitle,
.section--stats .section-subtitle,
.process-section .section-subtitle,
.brand-moment .section-subtitle {
  color: var(--text-on-dark-muted);
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 30px;
}

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

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--header-height);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.header.scrolled::before,
.header.header--solid::before {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
          backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 90px;
  width: auto;
}

.header__logo span {
  color: var(--color-accent);
}

.header__nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: 320px;
  background: #0a0a0a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 32px;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
  display: flex;
}

.header__nav.open {
  transform: translateX(0);
}

.header__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-white);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 0.25px;
  background: var(--color-accent);
  transition: var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

/* Dropdown - shown inline inside the burger side panel */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: block;
}

.dropdown__menu {
  display: block;
  padding: 4px 0 0 18px;
  margin-top: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.dropdown__menu a {
  display: block;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.dropdown__menu a::after {
  display: none;
}

.dropdown__menu a:hover {
  color: var(--color-accent);
}

/* Header CTA - always visible, drives conversion */
.header__cta {
  --btn-color: #ffffff;
  --btn-corner: 12px;
  --btn-line: 1px;

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--btn-color);
  background: transparent;
  border: none;
  margin-left: auto;
  margin-right: 24px;
  position: relative;
  cursor: pointer;

  background-image:
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color));
  background-size:
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner);
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
  transition: background-size 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              color 0.4s ease;
}

.header__cta::after {
  content: '\2192';
  font-size: 1em;
  transition: transform 0.35s ease;
}

.header__cta:hover {
  --btn-color: var(--color-accent);
  background-size:
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%;
}

.header__cta:hover::after {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .header__cta {
    padding: 10px 16px;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-right: 14px;
  }
  .header__cta span.full {
    display: none;
  }
}

/* Burger menu - always visible */
.header__burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--color-white);
  transition: var(--transition);
}

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

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

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

/* =============================================
   BUTTONS — 4-corner brackets only.
   No full borders, no fills. The 4 angles extend
   along the edges on hover until they meet,
   forming a complete frame. Single elegant
   interaction inspired by architectural blueprints.
   ============================================= */
.btn {
  --btn-color: var(--color-accent);
  --btn-corner: 14px;
  --btn-line: 1px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 42px;
  background: transparent;
  color: var(--btn-color);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  isolation: isolate;

  /* 8 background-images draw the 4 corner brackets (1 horizontal + 1 vertical per corner) */
  background-image:
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color)),
    linear-gradient(var(--btn-color), var(--btn-color));
  background-size:
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner),
    var(--btn-corner) var(--btn-line),
    var(--btn-line) var(--btn-corner);
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
  transition: background-size 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              color 0.4s ease;
}

.btn:hover {
  background-size:
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%,
    100% var(--btn-line),
    var(--btn-line) 100%;
}

.btn--primary { --btn-color: var(--color-accent); }
.btn--primary:hover { color: var(--color-accent-hover); }

.btn--secondary,
.btn--outline,
.btn--dark {
  --btn-color: var(--text-on-light);
}

/* outline-light is ALWAYS white — used over dark images / dark CTAs */
.btn--outline-light {
  --btn-color: #ffffff;
}

.section--dark .btn--secondary,
.section--dark .btn--outline,
.section--dark .btn--dark,
.section--stats .btn--secondary,
.section--stats .btn--outline,
.section--stats .btn--dark,
.process-section .btn--secondary,
.process-section .btn--outline,
.process-section .btn--dark,
.hero .btn--secondary,
.hero-parallax .btn--secondary {
  --btn-color: var(--text-on-dark);
}

.btn--secondary:hover,
.btn--outline:hover,
.btn--outline-light:hover,
.btn--dark:hover {
  color: var(--color-accent);
}

.btn--outline-accent { --btn-color: var(--color-accent); }
.btn--outline-accent:hover { color: var(--color-accent-hover); }

/* Ghost variant — corner brackets + full subtle border + slight bg
   Used when the corner-only style is too discreet (e.g. secondary CTA
   alongside the primary on a dark banner). */
.btn--ghost {
  --btn-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn--ghost:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn--sm {
  padding: 14px 30px;
  font-size: 0.65rem;
  --btn-corner: 11px;
}

.btn--lg {
  padding: 26px 52px;
  font-size: 0.78rem;
  --btn-corner: 16px;
}

.btn-arrow::after {
  content: '\2192';
  font-size: 1.1em;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Mobile only : hide the arrow when the button label wraps to 2+ lines.
   Set via JS when needed (.btn-arrow--wrap class). */
@media (max-width: 768px) {
  .btn-arrow--wrap::after { display: none; }
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero--small {
  min-height: 100vh;
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .hero--small {
    min-height: 100svh;
    padding-bottom: 48px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.6s ease,
              filter 0.8s ease;
  will-change: transform;
}

/* Hero with photo background — fuller opacity + parallax zoom on hover */
.hero--image .hero__bg {
  opacity: 0.55;
  filter: grayscale(20%);
  transform: scale(1.04);
}
.hero--image:hover .hero__bg {
  transform: scale(1.09);
  opacity: 0.7;
  filter: grayscale(0%);
}
.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero--image .hero__content { z-index: 2; }

/* Scroll indicator at the bottom of inner-page banners */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  animation: heroScrollFadeIn 0.8s ease 1.8s forwards;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}
.hero__scroll-line::before {
  content: '';
  position: absolute;
  top: -44px;
  left: 0;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--color-accent) 40%, var(--color-accent) 60%, transparent);
  animation: heroScrollDrip 2s ease-in-out infinite;
}
@keyframes heroScrollFadeIn {
  to { opacity: 1; }
}
@keyframes heroScrollDrip {
  0%   { transform: translateY(0); }
  100% { transform: translateY(88px); }
}
/* Don't duplicate the ::after line (we use .hero__scroll-line instead) */
.hero__scroll::after { display: none; }

@media (max-width: 768px) {
  .hero__scroll { bottom: 22px; font-size: 0.65rem; }
  .hero__scroll-line { height: 36px; }
}
@media (min-width: 769px) {
  .hero__scroll { gap: 0; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.hero__features {
  display: flex;
  gap: 24px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.hero__features li::before {
  content: '\2014';
  color: var(--color-accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Geometric decoration */
.hero__decor {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 500px;
  height: 500px;
  border: 0.25px solid rgba(139, 170, 61, 0.12);
  border-radius: 0;
  transform: rotate(45deg);
  z-index: 1;
}

.hero__decor::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 60px;
  right: 60px;
  bottom: 60px;
  border: 0.25px solid rgba(139, 170, 61, 0.08);
  border-radius: 0;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 90px 0 70px;
  max-width: 1100px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 40px 30px;
  position: relative;
  /* Position-based scale (set by JS scroll handler), lerped for smoothness */
  --stat-scale: 0.85;
  transform: scale(var(--stat-scale));
  transform-origin: center center;
  will-change: transform;
}

/* Subtle vertical hairline separators between stats */
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 5.5vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 18px;

  /* Cool silver metallic gradient — brushed steel */
  background: linear-gradient(
    155deg,
    #6a6a6a 0%,
    #9a9a9a 22%,
    #d8d8d8 42%,
    #ffffff 50%,
    #d8d8d8 58%,
    #9a9a9a 78%,
    #6a6a6a 100%
  );
  background-size: 250% 100%;
  background-position: 200% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  animation: metal-shine 9s linear infinite;
}

@keyframes metal-shine {
  0%   { background-position: 200% 50%; }
  100% { background-position: -100% 50%; }
}

/* ----- Count-up entrance : opacity + upward motion (separate from shimmer) ----- */
.section--stats .stat__number {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section--stats .stat__number.is-counting {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .stat__number {
    animation: none;
    background-position: 100% 50%;
  }
  .section--stats .stat__number {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   GLOBAL METALLIC TITLE EFFECT
   Applied to every .accent .word in titles AND
   to .stat__number AND to .why-section title accent.
   Single keyframe (metal-shine) shared across all.
   ============================================= */
/* =============================================
   ACCENT WORDS — Plain orange, no decoration.
   ============================================= */
.section-title .accent .word,
.banner-title .accent .word,
.cta-banner h2 .accent .word,
.services-showcase__title .accent .word,
.engagements__title-accent .word,
.engagements__title-accent {
  font-style: normal;
  color: var(--color-accent);
}

.stat__label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section--dark .stat__label {
  color: var(--text-tertiary);
}

/* --- Cards --- */
.card {
  background: var(--bg-light);
  border-radius: 0;
  border: 1px solid var(--line-on-light);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.4s ease;
  color: var(--text-on-light);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 151, 39, 0.4);
}

.section--gray .card {
  background: var(--bg-light);
}

.section--dark .card,
.section--stats .card {
  background: var(--bg-dark-3);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
}

.card__image {
  height: 240px;
  background: var(--bg-gray);
  background-size: cover;
  background-position: center;
  position: relative;
}

.card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  color: var(--color-accent);
  font-size: 3rem;
}

.card__body {
  padding: 28px;
}

.card__body h3 {
  margin-bottom: 12px;
}

.card__body p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card__link:hover {
  gap: 14px;
}

.card__link::after {
  content: '\2192';
}

/* --- Feature Cards (icon cards) --- */
.feature-card {
  position: relative;
  padding: 40px;
  border-radius: 0;
  background: var(--bg-light);
  border: 1px solid var(--line-on-light);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 0.35s ease;
  color: var(--text-on-light);
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

/* Sliding orange accent line at the top — reveals on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -20px rgba(254, 151, 39, 0.35),
              0 8px 24px -8px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover .feature-card__icon {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(254, 151, 39, 0.12);
}

.feature-card:hover h4 {
  color: var(--color-accent);
}

.section--dark .feature-card:hover,
.section--stats .feature-card:hover {
  box-shadow: 0 24px 60px -20px rgba(254, 151, 39, 0.45),
              0 8px 24px -8px rgba(0, 0, 0, 0.4);
}

.section--dark .feature-card,
.section--stats .feature-card {
  background: var(--bg-dark-3);
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
}

.feature-card__icon {
  transition: border-color 0.35s ease, box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  border: 0.25px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.3rem;
  color: var(--color-accent);
}

/* Mask-based pictogram — colored via currentColor on parent.
   Usage: <span class="picto" style="--icon: url('assets/icons/foo.svg')"></span> */
.picto {
  display: inline-block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  /* Black SVG -> orange accent (#fe9727). */
  filter: brightness(0) saturate(100%) invert(63%) sepia(48%) saturate(2793%) hue-rotate(348deg) brightness(101%) contrast(101%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Picto entrance animation — elegant fade + subtle rise when scrolled into view.
   No `forwards` so the post-animation state returns to CSS defaults,
   allowing hover transforms to work correctly. */
@keyframes pictoIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.js-reveal .picto {
  opacity: 0;
}
.js-reveal .picto.is-revealed {
  opacity: 1;
  animation: pictoIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Desktop hover — elegant float on parent card or picto itself.
   Uses transform only (no animation replay) so picto never disappears. */
@media (hover: hover) and (min-width: 769px) {
  .feature-card:hover .picto,
  .mat-item:hover .picto,
  .contact-info__item:hover .picto,
  a:hover > .picto,
  .picto:hover {
    transform: translateY(-3px) scale(1.08);
  }
  .feature-card:hover .feature-card__icon {
    transform: translateY(-3px);
  }
}

.feature-card__icon .picto {
  width: 32px;
  height: 32px;
}

.feature-card h4 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Process / Steps --- */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding: 30px;
  counter-increment: step;
}

.process__step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 0;
  background: transparent;
  border: 0.25px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.process__step h4 {
  margin-bottom: 10px;
}

.process__step p {
  font-size: 0.9rem;
}

/* Connector line between steps */
.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 55px;
  right: -20px;
  width: 40px;
  height: 0.25px;
  background: var(--color-gray-border);
}

/* --- Trust / Logo Slider --- */
.logo-slider {
  position: relative;
  overflow: hidden;
  padding: 5px 0;
}

.logo-slider__track-wrapper {
  overflow: hidden;
  position: relative;
}

.logo-slider__track {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: logo-scroll 30s linear infinite;
  width: max-content;
}

.logo-slider__track--reverse {
  animation: logo-scroll-reverse 30s linear infinite;
}

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

@keyframes logo-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.logo-slider__item {
  flex-shrink: 0;
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  transition: transform 0.3s ease;
}

.logo-slider__item:hover {
  transform: translateY(-10px);
}

.logo-slider__item img {
  height: 150px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  opacity: 0.7;
  /* Force monochrome black on light bg */
  filter: brightness(0);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-slider__item:hover img {
  opacity: 1;
}

/* On dark sections, invert to white */
.section--dark .logo-slider__item img,
.section--stats .logo-slider__item img {
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.logo-slider__item:hover img {
  opacity: 1;
}

/* Fade edges */
/* Edge fades disabled — logos enter and exit cleanly without gradient masks */
.logo-slider__track-wrapper::before,
.logo-slider__track-wrapper::after {
  display: none;
}

@media (max-width: 768px) {
  .logo-slider__item {
    height: 110px;
    padding: 0 22px;
  }
  .logo-slider__item img {
    height: 85px;
    max-width: 200px;
  }
}

/* Legacy fallback */
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.trust-logos__item {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-gray);
  opacity: 0.4;
  transition: var(--transition);
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-logos__item:hover {
  opacity: 1;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--bg-light);
  border-radius: 0;
  padding: 44px;
  border: 1px solid var(--line-on-light);
  border-left: 2px solid var(--color-accent);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.4s ease;
}

.testimonial:hover {
  border-color: rgba(254, 151, 39, 0.4);
  border-left-color: var(--color-accent);
  transform: translateY(-3px);
}

.section--dark .testimonial,
.section--gray .testimonial {
  background: var(--bg-light);
}

.testimonial__text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-on-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.testimonial__text::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 0;
  vertical-align: -0.6em;
  margin-right: 4px;
}

.testimonial__author {
  font-weight: 500;
  color: var(--text-on-light-tertiary);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Why Choose Us --- */
.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 0;
  background: var(--color-white);
  border: 0.25px solid var(--color-gray-border);
  transition: var(--transition);
}

.why-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}

.why-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  border: 0.25px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.why-item__content h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.why-item__content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: #0a0a0a;
  border-radius: 0;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* =============================================
   CTA banner WITH MOCKUP
   Mockup is anchored to the bottom-left corner of
   the dark frame. It rises from below on scroll
   via parallax (--parallax-mockup CSS variable).
   ============================================= */
.cta-banner--mockup {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) 2fr;
  align-items: center;
  gap: 40px;
  text-align: center;
  padding: 90px 60px;
  min-height: 480px;
}

.cta-banner__mockup-wrap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  max-width: 380px;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.cta-banner__mockup {
  position: absolute;
  left: 0;
  bottom: 0;
  /* Height-driven sizing : never exceeds the wrapper height,
     so the image is never clipped at the top. Width is auto
     and capped to wrapper width. */
  height: 82%;
  width: auto;
  max-width: 100%;
  display: block;
  /* Initial state offset down — JS lerp moves it toward 0 on scroll */
  transform: translate3d(0, var(--parallax-mockup, 100%), 0);
  will-change: transform;
}

.cta-banner__content {
  grid-column: 2;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-banner--mockup .cta-banner__content h2 {
  margin-bottom: 18px;
  max-width: 560px;
}

.cta-banner--mockup .cta-banner__content p {
  margin-bottom: 32px;
  max-width: 480px;
}

@media (max-width: 900px) {
  .cta-banner--mockup {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    padding: 56px 0 0 0;
    min-height: auto;
    text-align: center;
  }

  .cta-banner__content {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    padding: 0 28px;
  }

  .cta-banner--mockup .cta-banner__content p {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-banner__mockup-wrap {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    height: 280px;
    margin: 0;
    overflow: hidden;
  }

  .cta-banner__mockup {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: 90%;
    margin-left: 0;
    transform: translate3d(0, var(--parallax-mockup, 100%), 0);
  }
}

/* --- Forms --- */
.form {
  max-width: 700px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-on-light-tertiary);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--line-on-light-strong);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 300;
  color: var(--text-on-light);
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-on-light-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(254, 151, 39, 0.03);
  box-shadow: 0 0 0 3px rgba(254, 151, 39, 0.08);
}

/* Dark-section forms */
.section--dark .form-group label,
.section--stats .form-group label {
  color: var(--text-on-dark-tertiary);
}

.section--dark .form-group input,
.section--dark .form-group select,
.section--dark .form-group textarea,
.section--stats .form-group input,
.section--stats .form-group select,
.section--stats .form-group textarea {
  border-color: var(--line-on-dark-strong);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.03);
}

.section--dark .form-group input::placeholder,
.section--dark .form-group textarea::placeholder,
.section--stats .form-group input::placeholder,
.section--stats .form-group textarea::placeholder {
  color: var(--text-on-dark-faint);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group input[type="file"] {
  padding: 12px;
  background: var(--bg-gray);
  cursor: pointer;
}

/* --- Multi-step Form (Fullscreen) --- */
.wizard--fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wizard--fullscreen .wizard__step {
  height: 100vh;
  height: 100dvh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 60px;
  animation: wizardFadeIn 0.5s ease forwards;
  overflow-y: auto;
}

.wizard--fullscreen .wizard__step.active {
  display: flex;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard--fullscreen .wizard__step-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.wizard--fullscreen h3,
.wizard--fullscreen .wizard__title {
  margin-bottom: 28px;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
}
.wizard__title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.wizard--fullscreen .wizard__options {
  gap: 12px;
}

.wizard--fullscreen .wizard__option {
  padding: 16px 20px;
  font-size: 0.9rem;
}

/* Validation shake */
@keyframes wizardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.wizard__step--shake {
  animation: wizardShake 0.3s ease;
}

/* Inline wizard (for contact page) */
.wizard--inline {
  max-width: 100%;
}

.wizard--inline .wizard__step {
  display: none;
  animation: wizardFadeIn 0.4s ease forwards;
}

.wizard--inline .wizard__step.active {
  display: block;
}

.wizard--inline .wizard__progress {
  margin-bottom: 28px;
}

.wizard--inline h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: left;
}

.wizard--inline .wizard__options {
  gap: 10px;
}

.wizard--inline .wizard__option {
  padding: 14px 16px;
  font-size: 0.85rem;
  text-align: center;
}

.wizard--inline .wizard__actions {
  margin-top: 24px;
}

.wizard--inline .wizard__step-count {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.wizard--fullscreen .wizard__options {
  margin-bottom: 0;
}

.wizard--fullscreen .wizard__actions {
  margin-top: 48px;
  justify-content: center;
  gap: 16px;
}

.wizard--fullscreen > .wizard__progress {
  display: none;
}

.wizard--fullscreen .wizard__step-count {
  margin-bottom: 6px;
}

.wizard--fullscreen .wizard__step-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}

.wizard__step-bar span,
.wizard__step-bar .wbar {
  width: 28px;
  height: 2px;
  background: var(--color-gray-border);
  transition: background 0.3s ease, width 0.3s ease;
  display: inline-block;
}

.wizard__step-bar span.filled,
.wizard__step-bar .wbar.done {
  background: var(--color-accent);
  width: 36px;
}

.wizard--fullscreen .wizard__step-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* Wizard intro badges */
.wizard-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 32px 0;
  flex-wrap: nowrap;
}

.wizard-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-dark);
}

.wizard-badge__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Mobile : stack vertically so the 3 badges stay fully on screen */
@media (max-width: 768px) {
  .wizard-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 24px auto;
    max-width: 280px;
  }
  .wizard-badge {
    font-size: 0.88rem;
    width: 100%;
  }
  .wizard-badge__icon {
    width: 32px;
    height: 32px;
  }
}

/* SVG draw-in animations */
.badge-circle {
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  animation: badgeDraw 1.2s ease forwards;
}

.badge-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: badgeDraw 0.6s 0.8s ease forwards;
}

.badge-inner {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  animation: badgeDraw 0.8s 0.4s ease forwards;
}

.badge-hand {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  animation: badgeDraw 0.5s 1s ease forwards;
}

.badge-lock {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: badgeDraw 0.7s 0.8s ease forwards;
}

@keyframes badgeDraw {
  to { stroke-dashoffset: 0; }
}

/* Subtle pulse after draw */
.wizard-badge__icon {
  animation: badgePulse 3s 2s ease-in-out infinite;
}

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

.wizard {
  max-width: 640px;
  margin: 0 auto;
}

.wizard__progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.wizard__dot {
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: var(--color-gray-border);
  transition: var(--transition);
}

.wizard__dot.active {
  background: var(--color-accent);
  width: 36px;
}

.wizard__step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.wizard__step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard__step h3 {
  text-align: center;
  margin-bottom: 30px;
}

.wizard__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wizard__option {
  padding: 22px;
  border: 0.25px solid var(--color-gray-border);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.wizard__option:hover,
.wizard__option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.wizard__actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

/* --- Job Cards --- */
.job-card {
  background: var(--color-white);
  border: 0.25px solid var(--color-gray-border);
  border-radius: 0;
  padding: 40px;
  transition: var(--transition);
}

.job-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.job-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.job-card__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.job-card__meta span {
  font-size: 0.85rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-card__meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.job-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.job-card__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.job-card__tag {
  padding: 6px 16px;
  background: transparent;
  border: 0.25px solid var(--color-gray-border);
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-dark);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon .picto { width: 32px; height: 32px; }

.contact-info__icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  border: 0.25px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info__text h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info__text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.map-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  filter: grayscale(30%);
  transition: filter 0.4s ease;
  border: 1px solid rgba(0,0,0,0.08);
}
.map-embed:hover { filter: grayscale(0%); }
.map-embed iframe { width: 100%; height: 320px; }

.map-placeholder {
  width: 100%;
  height: 300px;
  border-radius: 0;
  background: var(--color-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 0.25px solid var(--color-gray-border);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 0.25px solid rgba(255,255,255,0.08);
}

.footer__brand h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer__brand h3 span {
  color: var(--color-accent);
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 5px 0;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.footer__col a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 0.25px solid rgba(255,255,255,0.12);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

/* --- Divider --- */
.divider {
  width: 50px;
  height: 0.25px;
  background: var(--color-accent);
  border-radius: 0;
  margin: 24px 0 34px;
}

.text-center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* --- List styled --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-dark);
}

.check-list li::before {
  content: '\2014';
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 300;
  flex-shrink: 0;
}

.section--dark .check-list li {
  color: rgba(255,255,255,0.85);
}

.check-list li:has(.picto-box)::before { display: none; }

/* Line breaks active only on mobile (used inside hero titles to control wrapping) */
.mobile-br { display: none; }
@media (max-width: 768px) {
  .mobile-br { display: inline; }
}

/* Job profession filter chips */
.job-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.job-filter {
  padding: 10px 22px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  color: rgba(0,0,0,0.65);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.job-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-dark);
}
.job-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.job-card.is-hidden { display: none; }

/* Generic mobile stepper — reused by jobs & why-join sections */
.mobile-stepper {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(0,0,0,0.75);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.mobile-stepper__current {
  color: var(--color-accent);
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}
.mobile-stepper__sep { color: rgba(0,0,0,0.3); }
.mobile-stepper__total {
  color: rgba(0,0,0,0.55);
  min-width: 24px;
  text-align: left;
}
.mobile-stepper__bar {
  flex: 1;
  max-width: 120px;
  margin-left: 12px;
  height: 2px;
  background: rgba(0,0,0,0.12);
  overflow: hidden;
}
.mobile-stepper__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Stepper placed inside a dark bg section (e.g. .section--bg "Plus qu'un emploi") */
.section--bg .mobile-stepper,
.section--dark .mobile-stepper,
.section--realisations .mobile-stepper { color: rgba(255,255,255,0.75); }
.section--bg .mobile-stepper__sep,
.section--dark .mobile-stepper__sep,
.section--realisations .mobile-stepper__sep { color: rgba(255,255,255,0.3); }
.section--bg .mobile-stepper__total,
.section--dark .mobile-stepper__total,
.section--realisations .mobile-stepper__total { color: rgba(255,255,255,0.55); }
.section--bg .mobile-stepper__bar,
.section--dark .mobile-stepper__bar,
.section--realisations .mobile-stepper__bar { background: rgba(255,255,255,0.15); }
@media (max-width: 768px) {
  .mobile-stepper { display: flex; }
}

/* End-of-section CTA — centered, breathing margin above */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Team member cards — same DNA as realisation tiles (corner brackets, B&W → color) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.team-card {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 3 / 4;
  isolation: isolate;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.5s ease;
  filter: grayscale(40%) brightness(0.85);
}
.team-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-image:
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff);
  background-size:
    18px 1px, 1px 18px,
    18px 1px, 1px 18px,
    18px 1px, 1px 18px,
    18px 1px, 1px 18px;
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
}
.team-card__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  transform: translateY(8px);
  opacity: 0.95;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  color: #fff;
}
.team-card__role {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.team-card:hover {
  transform: translateY(-4px);
}
.team-card:hover .team-card__img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.team-card:hover::before { opacity: 1; }
.team-card:hover .team-card__info { transform: translateY(0); }

@media (max-width: 900px) {
  .team-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-card {
    flex: 0 0 72%;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
  }
}

/* Team dots — mobile only */
.team-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.team-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.team-dots button:hover { background: rgba(0,0,0,0.4); }
.team-dots button.active {
  background: var(--color-accent);
  transform: scale(1.3);
}
@media (max-width: 900px) {
  .team-dots { display: flex; }
}

/* Audience split — architects / professionals vs private clients */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.audience-card {
  position: relative;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.audience-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 50px -20px rgba(254, 151, 39, 0.3);
}
.audience-card:hover::before { transform: scaleX(1); }
.audience-card__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.audience-card h3 { margin: 0; font-size: 1.4rem; }
.audience-card p { margin: 0; font-size: 0.92rem; color: var(--text-on-light-muted); }
.audience-card .btn { align-self: flex-start; margin-top: 8px; }
.section--dark .audience-card,
.section--realisations .audience-card,
.section--bg .audience-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.section--dark .audience-card h3,
.section--realisations .audience-card h3,
.section--bg .audience-card h3 { color: #fff; }
.section--dark .audience-card p,
.section--realisations .audience-card p,
.section--bg .audience-card p { color: rgba(255,255,255,0.75); }
@media (max-width: 768px) {
  .audience-split { grid-template-columns: 1fr; }
  .audience-card { padding: 28px 24px; }
}
.section-cta--left {
  justify-content: flex-start;
  margin-top: 32px;
}

/* Dark wrapper section for realisations */
.section--realisations {
  background: #0d0d0d;
  color: var(--text-on-dark);
}
.section--realisations .section-title { color: var(--color-white); }
.section--realisations .section-label { color: rgba(255,255,255,0.55); }

/* Section with background image */
.section--bg {
  position: relative;
  color: var(--text-on-dark);
  isolation: isolate;
  overflow: hidden;
}
.section--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.78) 100%);
  z-index: 1;
}
.section--bg > * { position: relative; z-index: 2; }
.section--bg h1, .section--bg h2, .section--bg h3, .section--bg h4 { color: var(--color-white); }
.section--bg p { color: rgba(255,255,255,0.8); }
.section--bg .section-label { color: rgba(255,255,255,0.55); }
.section--bg .section-subtitle { color: rgba(255,255,255,0.75); }
.section--bg .feature-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-on-dark);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.section--bg .feature-card h4 { color: var(--color-white); }
.section--bg .feature-card p { color: rgba(255,255,255,0.75); }

/* =============================================
   REALISATIONS — architect-review gallery on desktop,
   horizontal snap carousel on mobile.
   Corner brackets overlay INSIDE the photo on hover.
   ============================================= */
.realisations {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: 180px 180px;
  gap: 12px;
  margin-top: 40px;
}
.realisation {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  isolation: isolate;
}
.realisation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.4s ease;
  filter: grayscale(25%) brightness(0.95);
}

/* Corner brackets INSIDE the photo (inset 10px), revealed on hover */
.realisation::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;

  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(#ffffff, #ffffff);
  background-size:
    18px 1px, 1px 18px,
    18px 1px, 1px 18px,
    18px 1px, 1px 18px,
    18px 1px, 1px 18px;
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-repeat: no-repeat;
}
.realisation__plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 4;
  pointer-events: none;
}
.realisation__plus::before,
.realisation__plus::after {
  content: '';
  position: absolute;
  background: #fff;
}
.realisation__plus::before { width: 11px; height: 1px; }
.realisation__plus::after { width: 1px; height: 11px; }

/* Hover caption — filename-derived label */
.realisation__caption {
  position: absolute;
  left: 14px;
  right: 54px;
  bottom: 14px;
  padding: 8px 12px;
  background: rgba(10,10,10,0.82);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  z-index: 4;
  border-left: 2px solid var(--color-accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.realisation:hover .realisation__caption,
.realisation.is-active .realisation__caption {
  opacity: 1;
  transform: translateY(0);
}
/* Always visible on mobile carousel */
@media (max-width: 900px) {
  .realisation__caption { opacity: 1; transform: none; }
}

.realisation:hover,
.realisation.is-active {
  transform: translateY(-2px);
}
.realisation:hover img,
.realisation.is-active img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.realisation:hover::before,
.realisation.is-active::before { opacity: 1; }
.realisation:hover .realisation__plus,
.realisation.is-active .realisation__plus {
  opacity: 1;
  transform: translateY(0);
}

/* Two-row asymmetric layout (8 cols / 2 rows) */
.realisations:not(.realisations--large) .realisation:nth-child(1) { grid-column: span 3; grid-row: 1; }
.realisations:not(.realisations--large) .realisation:nth-child(2) { grid-column: span 2; grid-row: 1; }
.realisations:not(.realisations--large) .realisation:nth-child(3) { grid-column: span 3; grid-row: 1; }
.realisations:not(.realisations--large) .realisation:nth-child(4) { grid-column: span 2; grid-row: 2; }
.realisations:not(.realisations--large) .realisation:nth-child(5) { grid-column: span 3; grid-row: 2; }
.realisations:not(.realisations--large) .realisation:nth-child(6) { grid-column: span 2; grid-row: 2; }
.realisations:not(.realisations--large) .realisation:nth-child(7) { grid-column: span 1; grid-row: 2; }

/* Large variant — portfolio gallery (21+ photos), auto-flow editorial masonry */
.realisations--large {
  grid-template-rows: auto;
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
}
.realisations--large .realisation { grid-column: span 2; grid-row: span 2; }
.realisations--large .realisation:nth-child(4n+1) { grid-column: span 3; grid-row: span 3; }
.realisations--large .realisation:nth-child(7n+3) { grid-column: span 3; grid-row: span 2; }
.realisations--large .realisation:nth-child(5n+4) { grid-column: span 2; grid-row: span 3; }

/* =============================================
   PORTFOLIO — 2-row carousel with filter chips
   ============================================= */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.portfolio-filter {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.portfolio-filter:hover {
  border-color: var(--color-accent);
  color: #fff;
}
.portfolio-filter.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.portfolio-carousel {
  position: relative;
  margin-top: 40px;
}
.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 220px);
  grid-auto-columns: calc((100% - 24px) / 4);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  scroll-snap-align: start;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.4s ease;
  filter: grayscale(25%) brightness(0.95);
}
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 10px; right: 10px; bottom: 10px; left: 10px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-image:
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff),
    linear-gradient(#fff,#fff), linear-gradient(#fff,#fff);
  background-size:
    18px 1px, 1px 18px, 18px 1px, 1px 18px,
    18px 1px, 1px 18px, 18px 1px, 1px 18px;
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat;
}
.portfolio-item:hover img,
.portfolio-item.is-active img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.portfolio-item:hover::before,
.portfolio-item.is-active::before { opacity: 1; }
.portfolio-item:hover .realisation__caption,
.portfolio-item.is-active .realisation__caption {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-item:hover .realisation__plus,
.portfolio-item.is-active .realisation__plus {
  opacity: 1;
  transform: translateY(0);
}
/* Items filtered out */
.portfolio-item.is-hidden {
  display: none;
}

/* Prev/next arrows */
.portfolio-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.portfolio-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}
.portfolio-nav--prev { left: -22px; }
.portfolio-nav--next { right: -22px; }

@media (max-width: 900px) {
  .portfolio-track {
    grid-template-rows: repeat(2, 180px);
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 10px;
  }
  .portfolio-nav { display: none; }
}
@media (max-width: 600px) {
  .portfolio-track {
    grid-template-rows: repeat(2, 150px);
    grid-auto-columns: 72%;
  }
}

/* Portfolio stepper — visible on mobile only */
.portfolio-stepper {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.portfolio-stepper__current {
  color: var(--color-accent);
  font-weight: 600;
  min-width: 24px;
  text-align: right;
}
.portfolio-stepper__sep {
  color: rgba(255,255,255,0.3);
}
.portfolio-stepper__total {
  color: rgba(255,255,255,0.6);
  min-width: 24px;
  text-align: left;
}
.portfolio-stepper__bar {
  flex: 1;
  max-width: 120px;
  margin-left: 12px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.portfolio-stepper__fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (max-width: 900px) {
  .portfolio-stepper { display: flex; }
}

/* ===== Mobile : horizontal snap carousel ===== */
@media (max-width: 900px) {
  .realisations {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 4px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
  }
  .realisations::-webkit-scrollbar { display: none; }

  .realisation,
  .realisation:nth-child(n) {
    flex: 0 0 78%;
    grid-column: auto;
    grid-row: auto;
    height: 260px;
    scroll-snap-align: center;
  }
  .realisation::before { opacity: 1; }
  .realisation img { filter: grayscale(0%) brightness(1); }
}

/* Carousel dots indicator */
.realisations-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.realisations-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.realisations-dots button:hover { background: rgba(255,255,255,0.55); }
.realisations-dots button.active {
  background: var(--color-accent);
  transform: scale(1.3);
}
@media (max-width: 900px) {
  .realisations-dots { display: flex; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lightboxIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* Material accordion — + toggles to - when expanded */
.mat-item {
  flex-direction: column;
  align-items: stretch !important;
  gap: 0 !important;
}
.mat-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.mat-item__label {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text-on-light);
}
.mat-item__desc .accent {
  color: var(--color-accent);
  font-weight: 500;
}
.mat-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.25s ease;
}
.mat-toggle::before,
.mat-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mat-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.mat-toggle:hover { background: var(--color-accent-hover); }
.mat-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.mat-toggle[aria-expanded="true"]::after { opacity: 0; }

.mat-item__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  opacity: 0;
  padding: 0 0 0 56px;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}
.mat-item.is-open .mat-item__desc {
  max-height: 300px;
  opacity: 1;
  padding: 14px 0 6px 56px;
}
.section--dark .mat-item__desc,
.section--gray .mat-item__desc { color: rgba(0,0,0,0.7); }

/* Dynamic image panel synced with material accordion */
.mat-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}
.mat-showcase__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mat-showcase__img.is-active {
  opacity: 1;
  transform: scale(1.02);
}

/* Caption — sticky label at the bottom of the showcase */
.mat-showcase__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 16px;
  background: rgba(10,10,10,0.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 3;
  border-left: 2px solid var(--color-accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mat-showcase__caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .mat-showcase { min-height: 260px; }
}

/* =============================================
   Inset corner brackets animation on non-banner images.
   Adds a framing "architect" feel to every content image
   (excluding hero backgrounds and .section--bg background layers).
   Apply to: .mat-showcase, .img-placeholder, .home-service, .realisation, .app-card
   ============================================= */
.img-frame,
.mat-showcase,
.img-placeholder:not(.no-frame) {
  position: relative;
}
.img-frame::before,
.img-frame::after,
.mat-showcase::before,
.mat-showcase::after,
.img-placeholder:not(.no-frame)::before,
.img-placeholder:not(.no-frame)::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-color: var(--color-accent);
  border-style: solid;
  border-width: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.img-frame::before,
.mat-showcase::before,
.img-placeholder:not(.no-frame)::before {
  top: 12px;
  left: 12px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}
.img-frame::after,
.mat-showcase::after,
.img-placeholder:not(.no-frame)::after {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}
.img-frame:hover::before,
.mat-showcase:hover::before,
.img-placeholder:not(.no-frame):hover::before {
  width: 48px;
  height: 48px;
  transform: translate(-4px, -4px);
}
.img-frame:hover::after,
.mat-showcase:hover::after,
.img-placeholder:not(.no-frame):hover::after {
  width: 48px;
  height: 48px;
  transform: translate(4px, 4px);
}

/* Apply the same corner-bracket expand on .app-card and .home-service and .realisation */
.app-card,
.home-service,
.realisation { position: relative; }
.app-card::before,
.home-service::before,
.realisation::before {
  /* existing rules already set for .realisation — keep, add subtle one for others */
}
.app-card > .app-card__bg,
.home-service > .home-service__bg {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== Applications cards with background image — horizontal carousel ===== */
.app-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  margin-top: 40px;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
.app-grid::-webkit-scrollbar { display: none; }
.app-card {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3);
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.5s ease;
  z-index: 0;
  filter: grayscale(15%) brightness(0.85);
}
.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  transition: background 0.5s ease;
}
.app-card__content {
  position: relative;
  z-index: 2;
}
.app-card h4 {
  color: #fff;
  margin-bottom: 8px;
}
.app-card p {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  margin: 0;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(254, 151, 39, 0.35);
}
.app-card:hover .app-card__bg {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}
.app-card:hover::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}

/* Mobile : one card visible at a time */
@media (max-width: 900px) {
  .app-grid {
    gap: 12px;
    padding: 4px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
  }
  .app-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
    min-height: 260px;
  }
}

/* Progress dots under the app carousel — visible on all breakpoints */
.app-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.app-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.app-dots button:hover { background: rgba(0,0,0,0.4); }
.app-dots button.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* App carousel wrapper (for nav arrows) */
.app-carousel {
  position: relative;
}
.app-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-light);
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.app-nav:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
.app-nav--prev { left: -22px; }
.app-nav--next { right: -22px; }

@media (max-width: 900px) {
  .app-nav { display: none; }
}
.picto-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 0.25px solid var(--color-accent);
  flex-shrink: 0;
}
.picto-box .picto {
  width: 28px;
  height: 28px;
}

/* --- Image Placeholder --- */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 0;
  background: linear-gradient(135deg, #2c2c2c 0%, #3a3a3a 100%);
  border: 0.25px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .process__step::after { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .header__nav {
    width: 100%;
  }

  .grid--2, .grid--3, .grid--4,
  .grid--2-1, .grid--1-2 {
    grid-template-columns: 1fr;
  }

  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 20px; }
  .stat:not(:last-child)::after { display: none; }

  .hero { min-height: 80vh; }
  .hero--small { min-height: 100svh; padding-bottom: 48px; }
  .hero__decor { display: none; }

  .cta-banner { padding: 40px 24px; }
  .cta-banner--mockup { padding: 56px 0 0 0; }
  .cta-banner--mockup .cta-banner__content { padding: 0 24px; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }

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

  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { text-align: center; justify-content: center; }

  /* Hero banners : both CTAs share the same width on mobile */
  .hero .btn-group,
  .hero-parallax .btn-group {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero .btn-group .btn,
  .hero-parallax .btn-group .btn {
    width: 100%;
    min-width: 0;
  }

  /* Mobile carousels : "Plus qu'un emploi" cards + job listings + valeurs */
  .section--bg .grid--4,
  #postes .grid--3,
  .values-slider {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 20px 20px;
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
  }
  .section--bg .grid--4::-webkit-scrollbar,
  #postes .grid--3::-webkit-scrollbar,
  .values-slider::-webkit-scrollbar { display: none; }

  .section--bg .grid--4 > *,
  #postes .grid--3 > *,
  .values-slider > * {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  /* Center every CTA on mobile */
  .section-cta,
  .section-cta--left { justify-content: center; }
  .wizard__actions { justify-content: center; }
  .audience-card .btn { align-self: center; }
  .engagements__cta { margin-left: auto; margin-right: auto; }
}

/* =============================================
   Hero Parallax Banner
   ============================================= */

.hero-parallax {
  position: relative;
  width: 100%;
  height: 200vh;
  background: #000;
  z-index: 1;
  overflow: hidden;
}

/* Fixed layer: video + text stay in place */
.hero-parallax__fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-parallax__fixed .btn,
.hero-parallax__fixed a {
  pointer-events: auto;
}

.hero-parallax__black {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  z-index: 0;
}

.hero-parallax__content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 650px;
  padding: 0 24px;
}

/* Everything after hero needs higher z-index to sit on top */
.hero-parallax ~ * {
  position: relative;
  z-index: 20;
}

.hero-parallax__title {
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s 0.3s ease forwards;
}

.hero-parallax__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s 0.6s ease forwards;
}

.hero-parallax__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s 0.9s ease forwards;
}

.hero-parallax__btns .btn {
  height: 64px;
  padding: 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-parallax__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  opacity: 0;
  animation: heroFadeUp 1s 1.3s ease forwards;
}

.hero-parallax__scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Scrolling layers: absolute inside hero, positioned at bottom */
.hero-parallax__scroll-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 15;
  will-change: transform;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-parallax__scroll-front {
  z-index: 14;
}

/* Stats on pure black, seamless with building's faded bottom */
/* =============================================
   STATS SECTION — High-impact cinematic numbers
   Deep black background, layered industrial
   textures, parallax, metallic depth on numbers.
   ============================================= */
.section--stats {
  position: relative;
  z-index: 20;
  background: #000000;
  overflow: hidden;
  padding: 140px 0 150px;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Disable the global .section ::before grid here — stats has its own */
.section--stats::before {
  display: none;
}

/* Layered background wrapper — moves with parallax (slower than content) */
.stats-fx {
  position: absolute;
  inset: -120px 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* Architectural grid : faint hairlines forming a structure pattern */
.stats-fx__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100px 100px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 25%, transparent 85%);
}

/* Cursor-reactive cool light — soft gray spotlight */
.section--stats::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 720px at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 25%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section--stats:hover::after {
  opacity: 1;
}

.section--stats > .container {
  position: relative;
  z-index: 2;
}

.hero-parallax__img {
  position: absolute;
  pointer-events: none;
}

.hero-parallax__img--back {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: none;
  height: auto;
}

.hero-parallax__img--front {
  bottom: 25%;
  left: 0;
  width: 40%;
  max-width: 550px;
  height: auto;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

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

@media (max-width: 768px) {
  .hero-parallax {
    height: 130vh;
  }
  /* Scroll-layer compressé et ancré en bas : les 2 calques montent ensemble (JS) */
  .hero-parallax__scroll-layer {
    height: 70vh;
    bottom: 0;
  }
  .hero-parallax__img--back {
    width: 135%;
    bottom: 20vh;
  }
  .hero-parallax__img--front {
    width: 55%;
    left: 0;
    bottom: calc(20vh + 18%);
  }
  .hero-parallax__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-parallax {
    height: 120vh;
  }
  .hero-parallax__scroll-layer {
    height: 60vh;
  }
  .hero-parallax__img--back {
    width: 150%;
    bottom: 22vh;
  }
  .hero-parallax__img--front {
    width: 62%;
    bottom: calc(22vh + 20%);
  }
}

/* --- Animations --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: slideUp 0.6s ease forwards;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--color-accent);
}

/* =============================================
   Floating Contact Widget (FAB)
   Square, industrial, bracket-echoing aesthetic
   to match the header DEVIS CTA.
   ============================================= */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  animation: fabIntro 0.6s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.fab__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.fab__option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fab.is-open .fab__options {
  pointer-events: auto;
}

.fab.is-open .fab__option {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fab.is-open .fab__option:nth-child(3) { transition-delay: 0.06s; }
.fab.is-open .fab__option:nth-child(2) { transition-delay: 0.14s; }
.fab.is-open .fab__option:nth-child(1) { transition-delay: 0.22s; }

.fab__label {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  line-height: 1;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fab__option:hover .fab__label,
.fab__option:focus-visible .fab__label {
  opacity: 1;
  transform: translateX(0);
}

.fab__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: var(--color-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}

.fab__icon svg {
  width: 22px;
  height: 22px;
}

.fab__option:hover .fab__icon,
.fab__option:focus-visible .fab__icon {
  background: var(--color-accent);
  color: #0a0a0a;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.fab__option--whatsapp:hover .fab__icon,
.fab__option--whatsapp:focus-visible .fab__icon {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.fab__main {
  position: relative;
  width: 62px;
  height: 62px;
  padding: 0;
  background: var(--color-accent);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 14px 38px -10px rgba(254, 151, 39, 0.6),
              0 6px 16px -6px rgba(0, 0, 0, 0.35);
}

.fab__main:hover {
  background: var(--color-accent-hover);
}

.fab__main:active {
  transform: scale(0.96);
}

/* Corner brackets — echo the DEVIS header CTA on hover */
.fab__main::before,
.fab__main::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--color-accent);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.fab__main::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
  transform: translate(4px, 4px);
}

.fab__main::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
  transform: translate(-4px, -4px);
}

.fab__main:hover::before,
.fab__main:hover::after,
.fab.is-open .fab__main::before,
.fab.is-open .fab__main::after {
  opacity: 1;
  transform: translate(0, 0);
}

.fab__main-icon {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab__main svg {
  position: absolute;
  width: 26px;
  height: 26px;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fab__icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.fab.is-open .fab__icon--bubble {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.fab.is-open .fab__icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Pulse ring — subtle attention grabber, disabled when open */
.fab__pulse {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-accent);
  pointer-events: none;
  animation: fabPulse 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  opacity: 0;
}

@keyframes fabPulse {
  0% { opacity: 0.75; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(1.55); }
}

.fab.is-open .fab__pulse,
.fab__main:hover .fab__pulse {
  animation-play-state: paused;
  opacity: 0;
}

@media (max-width: 768px) {
  .fab {
    bottom: 18px;
    right: 18px;
    gap: 12px;
  }
  .fab__main {
    width: 56px;
    height: 56px;
  }
  .fab__icon {
    width: 44px;
    height: 44px;
  }
  /* On mobile, labels always visible left of icons for discoverability */
  .fab__label {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab,
  .fab__option,
  .fab__main,
  .fab__main svg,
  .fab__pulse {
    animation: none !important;
    transition: none !important;
  }
  .fab { opacity: 1; transform: none; }
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

.section--dark .breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* =============================================
   Welding Sparks Effect for Hero H1
   ============================================= */

/* --- Sparks Text Wrapper --- */
.sparks-text {
  position: relative;
  display: inline-block;
}

/* --- Sweeping Light Shimmer (::before) --- */
.sparks-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(254, 151, 39, 0.06) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(254, 151, 39, 0.06) 70%,
    transparent 100%
  );
  animation: sparks-shimmer 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes sparks-shimmer {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 200%; opacity: 0; }
}

/* --- Spark Particles (::after) --- */
.sparks-text::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  pointer-events: none;
  z-index: 2;
  animation: sparks-particles 4s ease-in-out infinite;
  opacity: 0;
  box-shadow:
    /* Top edge sparks */
    12px -4px 0 0.5px #fe9727,
    38px -6px 0 0.3px #ffffff,
    75px -3px 0 0.5px #fe9727,
    120px -5px 0 0.4px rgba(254,151,39,0.8),
    180px -2px 0 0.3px #ffffff,
    220px -7px 0 0.5px #fe9727,
    /* Right edge sparks */
    calc(100% + 3px) 8px 0 0.4px #fe9727,
    calc(100% + 5px) 22px 0 0.3px #ffffff,
    calc(100% + 2px) 38px 0 0.5px #fe9727,
    /* Bottom edge sparks */
    30px calc(100% + 3px) 0 0.4px rgba(254,151,39,0.7),
    90px calc(100% + 5px) 0 0.3px #ffffff,
    160px calc(100% + 2px) 0 0.5px #fe9727,
    240px calc(100% + 6px) 0 0.4px #fe9727,
    /* Left edge sparks */
    -4px 12px 0 0.5px #fe9727,
    -6px 30px 0 0.3px #ffffff,
    -3px 45px 0 0.4px rgba(254,151,39,0.8),
    /* Scattered sparks */
    50px 10px 0 0.3px rgba(255,255,255,0.6),
    140px -8px 0 0.4px #fe9727,
    200px 5px 0 0.3px rgba(254,151,39,0.5),
    260px -3px 0 0.5px #ffffff;
}

@keyframes sparks-particles {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 0.7; }
  30%  { opacity: 0.9; transform: translate(-1px, -1px); }
  50%  { opacity: 0.4; transform: translate(1px, 0); }
  70%  { opacity: 0.8; transform: translate(0, -1px); }
  85%  { opacity: 0.3; }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* --- Individual Spark Dots --- */
.spark {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fe9727;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.spark::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(254, 151, 39, 0.3);
}

/* Spark animation variants */
.spark--1 {
  top: -4px;
  left: 15%;
  animation: spark-fly-1 5s 0.5s ease-in-out infinite;
}

.spark--2 {
  top: 50%;
  right: -4px;
  left: auto;
  background: #ffffff;
  animation: spark-fly-2 7s 1.2s ease-in-out infinite;
}

.spark--2::before {
  background: rgba(255, 255, 255, 0.3);
}

.spark--3 {
  bottom: -4px;
  top: auto;
  left: 60%;
  animation: spark-fly-3 6s 2s ease-in-out infinite;
}

.spark--4 {
  top: 20%;
  left: -4px;
  background: #ffffff;
  animation: spark-fly-4 8s 0.8s ease-in-out infinite;
}

.spark--4::before {
  background: rgba(255, 255, 255, 0.3);
}

.spark--5 {
  top: -4px;
  left: 75%;
  animation: spark-fly-1 6.5s 3s ease-in-out infinite;
}

.spark--6 {
  bottom: -4px;
  top: auto;
  left: 30%;
  background: #ffffff;
  animation: spark-fly-3 5.5s 1.5s ease-in-out infinite;
}

.spark--6::before {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes spark-fly-1 {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  8%   { opacity: 1; transform: translate(0, 0) scale(1); }
  20%  { opacity: 0.8; transform: translate(2px, -6px) scale(0.8); }
  30%  { opacity: 0; transform: translate(4px, -12px) scale(0); }
  100% { opacity: 0; transform: translate(4px, -12px) scale(0); }
}

@keyframes spark-fly-2 {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  8%   { opacity: 1; transform: translate(0, 0) scale(1); }
  20%  { opacity: 0.7; transform: translate(6px, -3px) scale(0.8); }
  30%  { opacity: 0; transform: translate(10px, -6px) scale(0); }
  100% { opacity: 0; transform: translate(10px, -6px) scale(0); }
}

@keyframes spark-fly-3 {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  8%   { opacity: 1; transform: translate(0, 0) scale(1); }
  20%  { opacity: 0.7; transform: translate(-2px, 6px) scale(0.8); }
  30%  { opacity: 0; transform: translate(-3px, 10px) scale(0); }
  100% { opacity: 0; transform: translate(-3px, 10px) scale(0); }
}

@keyframes spark-fly-4 {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  8%   { opacity: 1; transform: translate(0, 0) scale(1); }
  20%  { opacity: 0.8; transform: translate(-5px, -2px) scale(0.8); }
  30%  { opacity: 0; transform: translate(-9px, -4px) scale(0); }
  100% { opacity: 0; transform: translate(-9px, -4px) scale(0); }
}

/* --- Subtle text glow on the sparks-text heading --- */
.sparks-text h1,
.sparks-text > * {
  text-shadow:
    0 0 20px rgba(254, 151, 39, 0.08),
    0 0 40px rgba(254, 151, 39, 0.04);
  animation: sparks-text-glow 5s ease-in-out infinite;
}

@keyframes sparks-text-glow {
  0%   { text-shadow: 0 0 20px rgba(254,151,39,0.08), 0 0 40px rgba(254,151,39,0.04); }
  50%  { text-shadow: 0 0 25px rgba(254,151,39,0.14), 0 0 50px rgba(254,151,39,0.07); }
  100% { text-shadow: 0 0 20px rgba(254,151,39,0.08), 0 0 40px rgba(254,151,39,0.04); }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .sparks-text::before,
  .sparks-text::after,
  .spark,
  .sparks-text h1,
  .sparks-text > * {
    animation: none;
    opacity: 0;
  }
  .sparks-text h1,
  .sparks-text > * {
    opacity: 1;
    text-shadow: none;
  }
}

/* =============================================
   Services Showcase (Dior-style full-screen panels)
   ============================================= */

.services-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100vh;
  gap: 0;
}

.services-showcase__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  height: 100%;
}

/* Background image */
.services-showcase__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-showcase__panel:hover .services-showcase__bg {
  transform: scale(1.08);
}

/* Dark overlay */
.services-showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0.7) 100%);
  transition: background 0.5s ease;
}

.services-showcase__panel:hover .services-showcase__overlay {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.45) 0%, rgba(20, 20, 20, 0.85) 100%);
}

/* Content */
.services-showcase__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 100%;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Title - always visible */
.services-showcase__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--color-white);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Decorative line under title */
.services-showcase__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 18px auto 0;
  transition: width 0.5s ease;
}

.services-showcase__panel:hover .services-showcase__title::after {
  width: 70px;
}

/* Action area : stacks default CTA and reveal in same grid cell */
.services-showcase__action {
  margin-top: 28px;
  display: grid;
  grid-template-areas: "stack";
  width: 100%;
}

.services-showcase__cta-default,
.services-showcase__reveal {
  grid-area: stack;
  justify-self: center;
}

/* Default CTA - "En savoir plus" visible by default */
.services-showcase__cta-default {
  align-self: start;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.services-showcase__panel:hover .services-showcase__cta-default {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

/* Reveal content - hidden by default, appears on hover */
.services-showcase__reveal {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.45s ease 0.05s, transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s;
  pointer-events: none;
}

.services-showcase__panel:hover .services-showcase__reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-showcase__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 340px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-showcase {
    grid-template-columns: 1fr;
    height: auto;
  }

  .services-showcase__panel {
    height: 70vh;
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .services-showcase__panel {
    height: 60vh;
    min-height: 420px;
  }

  .services-showcase__reveal {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .services-showcase__cta-default {
    display: none;
  }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS (Magazine feel)
   Opt-in via .js-reveal on <html> (added by JS)
   so content stays visible if JS fails.
   ============================================= */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Variants */
.js-reveal [data-reveal="fade"] {
  transform: none;
}

.js-reveal [data-reveal="left"] {
  transform: translateX(-40px);
}

.js-reveal [data-reveal="right"] {
  transform: translateX(40px);
}

.js-reveal [data-reveal="left"].is-revealed,
.js-reveal [data-reveal="right"].is-revealed {
  transform: translateX(0);
}

.js-reveal [data-reveal="scale"] {
  transform: scale(0.96);
}

.js-reveal [data-reveal="scale"].is-revealed {
  transform: scale(1);
}

/* Stagger children */
.js-reveal [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.95s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.95s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal [data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0s; }
.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.1s; }
.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.2s; }
.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.3s; }
.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.4s; }
.js-reveal [data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.5s; }

/* =============================================
   Whisper-style word reveal (inspired by gsap WhisperText)
   Words split into spans, staggered fade-in on scroll
   ============================================= */
.js-reveal .reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translate(-18px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.js-reveal .reveal-words.is-revealed .word {
  opacity: 1;
  transform: translate(0, 0);
}

/* Variants — set on the host element */
.js-reveal .reveal-words--up .word { transform: translate(0, 24px); }
.js-reveal .reveal-words--up.is-revealed .word { transform: translate(0, 0); }

.js-reveal .reveal-words--right .word { transform: translate(20px, 0); }
.js-reveal .reveal-words--right.is-revealed .word { transform: translate(0, 0); }

/* Words don't break in the middle */
.js-reveal .reveal-words .word { white-space: nowrap; }

/* Banner title — clean white text. Accent words inherit the
   global metal-shine animation defined globally. No drop-shadow. */
.banner-title .word {
  color: #ffffff;
}

/* =============================================
   Hero content (subtitle + buttons) — hidden
   until first scroll, then fades in on demand.
   .hero-content-pending = hidden initial state (no transition).
   .hero-content-ready = transition enabled (added after first paint).
   .hero-content-revealed = revealed (added on scroll/timeout).
   ============================================= */
.js-reveal .hero-content-pending {
  opacity: 0;
  transform: translateY(20px);
}

.js-reveal .hero-content-pending.hero-content-ready {
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal .hero-content-pending.hero-content-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .hero-content-pending {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal],
  .js-reveal [data-reveal-stagger] > *,
  .js-reveal .reveal-words > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   Premium card refinements
   ============================================= */
.card {
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.6s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 151, 39, 0.35);
  box-shadow: 0 30px 60px -25px rgba(20, 20, 20, 0.18);
}

/* Refined divider — hairline accent */
.divider {
  width: 56px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 0 28px;
  opacity: 0.85;
}

.text-center .divider {
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   HOMEPAGE SERVICES — Image cards, touching,
   accordion-style hover reveal on desktop,
   click-to-unfold on mobile.
   ============================================= */
.home-services {
  display: flex;
  width: 100%;
  padding: 0 60px;
  margin-top: 40px;
  box-sizing: border-box;
  gap: 0;
}

.home-service {
  position: relative;
  flex: 1;
  height: 440px;
  overflow: hidden;
  cursor: pointer;
  color: var(--color-white);
  transition: flex 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.home-service:last-child {
  border-right: none;
}

/* Desktop hover : hovered card grows, others shrink — image effectively
   spreads across more of the row */
@media (hover: hover) and (min-width: 769px) {
  .home-services:hover .home-service { flex: 0.7; }
  .home-services:hover .home-service:hover { flex: 2.6; }
}

.home-service__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark);
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1;
}

.home-service:hover .home-service__bg {
  transform: scale(1.06);
}

.home-service__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.25) 0%, rgba(15, 15, 15, 0.78) 100%);
  transition: background 0.6s ease;
  z-index: 2;
}

.home-service:hover .home-service__overlay {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.45) 0%, rgba(15, 15, 15, 0.88) 100%);
}

.home-service__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-service__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  color: var(--color-white);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-service__title::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-accent);
  margin: 18px auto 0;
  transition: width 0.5s ease;
}

.home-service:hover .home-service__title::after {
  width: 64px;
}

.home-service__reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.5s ease,
              margin-top 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  margin-top: 0;
  pointer-events: none;
}

.home-service:hover .home-service__reveal {
  max-height: 360px;
  opacity: 1;
  margin-top: 22px;
  pointer-events: auto;
}

.home-service__reveal p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile-only "+/-" circular toggle button */
.home-service__toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--color-white);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.home-service__toggle-label {
  /* Hidden on mobile — replaced by the +/- icon only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-service__toggle-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.home-service__toggle-icon::before,
.home-service__toggle-icon::after {
  content: '';
  position: absolute;
  background: var(--color-white);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-service__toggle-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
}

.home-service__toggle-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  margin-left: -0.75px;
}

.home-service.is-expanded .home-service__toggle-icon::after {
  transform: scaleY(0);
}

.home-service.is-expanded .home-service__toggle {
  transform: rotate(180deg);
}

/* ----- MOBILE : horizontal rectangles, click to unfold ----- */
@media (max-width: 768px) {
  .home-services {
    flex-direction: column;
    padding: 0 16px;
    gap: 12px;
  }

  .home-service {
    height: 130px;
    flex: 0 0 auto;
    border-right: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: height 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .home-service.is-expanded {
    height: auto;
    min-height: 360px;
  }

  .home-service__content {
    position: absolute;
    inset: 0;
    padding: 24px 70px 24px 28px;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
  }

  .home-service.is-expanded .home-service__content {
    padding: 28px 28px 32px;
    justify-content: flex-end;
  }

  .home-service__title {
    font-size: 1.25rem;
  }

  .home-service__title::after {
    margin: 12px 0 0;
  }

  .home-service.is-expanded .home-service__title::after {
    width: 52px;
  }

  /* Override desktop hover behaviour on touch devices */
  .home-service__reveal {
    max-height: 0;
  }

  .home-service:hover .home-service__reveal {
    max-height: 0;
    margin-top: 0;
  }

  .home-service.is-expanded .home-service__reveal {
    max-height: 400px;
    opacity: 1;
    margin-top: 18px;
    pointer-events: auto;
  }

  .home-service__reveal p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: none;
  }

  .home-service__toggle {
    display: inline-flex;
  }

  .home-service.is-expanded .home-service__toggle {
    background: rgba(254, 151, 39, 0.2);
    border-color: var(--color-accent);
    transform: rotate(180deg);
  }
}

/* =============================================
   PAGE TRANSITION OVERLAY
   Black panel slides in from right on link click,
   then slides out to left on next page load.
   ============================================= */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 99999;
  pointer-events: none;
  transform: translateX(100%);
  will-change: transform;
}

.page-transition.is-animated {
  transition: transform 0.65s cubic-bezier(0.7, 0, 0.3, 1);
}

.page-transition.is-cover {
  transform: translateX(0);
}

.page-transition.is-leave {
  transform: translateX(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}

/* =============================================
   PROCESS SECTION — Fixed background + 3 steps
   The architectural image stays fixed in viewport
   while the steps scroll over it. Step labels
   fade in elegantly. No more big metallic numbers.
   ============================================= */
.process-section {
  position: relative;
  background: #0a0a0a;
  color: var(--color-white);
  padding: 140px 0 160px;
  overflow: hidden;
  isolation: isolate;
}

/* Fixed background image */
.process-section__bg {
  position: absolute;
  inset: 0;
  background-image: var(--process-bg, url('../assets/img/process-bg.jpg'));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay to keep text legible over the fixed photo */
.process-section__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.86) 0%, rgba(10, 10, 10, 0.78) 50%, rgba(10, 10, 10, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Mobile fallback : background-attachment: fixed is glitchy on iOS */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .process-section__bg {
    background-attachment: scroll;
  }
}

.process-section .container,
.process-section .process-steps {
  position: relative;
  z-index: 2;
}

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

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.62);
}

/* ----- Steps wrapper + central breadcrumb line ----- */
.process-steps {
  position: relative;
  max-width: 1240px;
  margin: 90px auto 0;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.process-steps__line {
  position: absolute;
  left: 50%;
  top: 60px;
  bottom: 60px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(254, 151, 39, 0.45) 8%,
    rgba(254, 151, 39, 0.45) 92%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.process-step {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  /* Scroll-driven : --step-active goes from 0 (far) to 1 (centered)
     Opacity follows the proximity to the viewport center.
     Updated by JS via lerp for buttery smooth transitions. */
  --step-active: 0;
  opacity: calc(0.18 + var(--step-active) * 0.82);
  transform: translateY(calc((1 - var(--step-active)) * 24px));
  transition: none;
  will-change: opacity, transform;
}

/* Step 1, 3 : row anchored to LEFT half */
.process-step:not(.process-step--reverse) {
  justify-content: flex-start;
  padding-right: 50%;
}

/* Step 2 : row anchored to RIGHT half (broken composition) */
.process-step--reverse {
  justify-content: flex-end;
  padding-left: 50%;
}

/* Inner row : number + text close together */
.process-step__row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 50px 0 30px;
}

.process-step--reverse .process-step__row {
  flex-direction: row-reverse;
  padding: 0 30px 0 50px;
}

/* Checkpoint dot on the central line */
.process-step__checkpoint {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #0a0a0a;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow:
    0 0 0 6px rgba(254, 151, 39, 0.18),
    0 0 30px rgba(254, 151, 39, 0.55);
  transition: box-shadow 0.6s ease, transform 0.6s ease;
}

.process-step.is-revealed .process-step__checkpoint {
  animation: checkpoint-pulse 3s ease-in-out infinite;
}

@keyframes checkpoint-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(254, 151, 39, 0.18),
      0 0 30px rgba(254, 151, 39, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(254, 151, 39, 0.10),
      0 0 40px rgba(254, 151, 39, 0.7);
  }
}

/* (Big metallic numbers removed — only step labels remain) */

/* ----- Step textual content ----- */
.process-step__content {
  flex: 1 1 auto;
  max-width: 360px;
}

.process-step__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
  padding-left: 48px;
  position: relative;
}

.process-step__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--color-accent);
}

.process-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  text-transform: none;
  color: var(--color-white);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.process-step__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  margin: 0;
}

/* ----- Reveal animations on scroll ----- */
/* Process steps are scroll-driven via --step-active CSS variable
   set in site.js. No is-revealed triggers needed here. */

.process-section__cta {
  margin-top: 90px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .process-section { padding: 100px 0 110px; }

  .process-steps {
    margin: 90px auto 0;
    padding: 0 24px 0 60px;
    gap: 70px;
  }

  /* Breadcrumb line on the left edge on mobile (32px from .process-steps origin) */
  .process-steps__line {
    left: 32px;
    transform: none;
  }

  .process-step,
  .process-step--reverse {
    min-height: auto;
    padding: 0 !important;
    justify-content: flex-start;
  }

  /* Checkpoint must land ON the breadcrumb line.
     The .process-step starts at x=60 (padding-left of .process-steps).
     The line sits at x=32 from .process-steps origin.
     So the checkpoint center must be at -28px relative to .process-step left
     to land at x=32 (60 + (-28) = 32). */
  .process-step__checkpoint {
    left: -28px;
    top: 32px;
    transform: translate(-50%, -50%);
  }

  .process-step__row,
  .process-step--reverse .process-step__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    width: 100%;
  }

  .process-step__content,
  .process-step--reverse .process-step__content {
    text-align: left;
    max-width: 100%;
  }

  .process-step__label {
    padding-left: 0;
    padding-top: 6px;
  }

  .process-step__label::before {
    display: none;
  }

  .process-section__cta { margin-top: 80px; }
}

/* =============================================
   ENGAGEMENTS — Editorial gallery panels
   Each engagement is a clean horizontal panel with
   a large background image, soft overlay, minimal
   text and a single corner-bracket CTA. No cards,
   no boxed layouts — pure architectural composition.
   ============================================= */
.engagements {
  position: relative;
  padding: 140px 0 150px;
  background: var(--bg-light);
  overflow: hidden;
  isolation: isolate;
}

.engagements::before {
  content: '';
  position: absolute;
  inset: -120px 0;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: 100px 100px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* ----- Intro ----- */
.engagements__intro {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px 100px;
}

.engagements__intro .section-label {
  margin-bottom: 28px;
}

.engagements__subtitle {
  font-size: 1.05rem;
  color: var(--text-on-light-muted);
  font-weight: 300;
  line-height: 1.85;
  max-width: 540px;
  margin: 0;
}

/* ----- Engagement panels list ----- */
.engagements__list {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.engagement {
  position: relative;
  height: 360px;
  overflow: hidden;
  isolation: isolate;
}

/* Large background image */
.engagement__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.engagement__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: brightness(0.9) saturate(0.92);
}

.engagement:hover .engagement__media img {
  transform: scale(1.1);
}

/* Soft dark overlay for text legibility */
.engagement__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.75) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.25) 100%
  );
  transition: background 0.8s ease;
}

.engagement:hover .engagement__overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.6) 45%,
    rgba(10, 10, 10, 0.3) 100%
  );
}

/* Content sits over the image */
.engagement__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  max-width: 620px;
  color: #ffffff;
}

.engagement__index {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.22em;
  margin-bottom: 20px;
}

.engagement__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #ffffff;
  margin: 0 0 22px;
}

.engagement__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 300;
  line-height: 1.78;
  max-width: 420px;
  margin: 0 0 32px;
}

/* Engagement CTA inherits the global .btn corner-bracket style.
   Force white color since they sit on dark image overlay. */
.engagement__cta {
  --btn-color: #ffffff;
  align-self: flex-start;
  padding: 18px 36px;
}

.engagement__cta:hover {
  color: var(--color-accent);
}

/* ----- Bottom CTA below the panels ----- */
.engagements__cta {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 100px auto 0;
  padding: 0 60px;
  text-align: center;
}

.engagements__cta .btn {
  display: inline-flex;
}

/* ----- Reveal animations ----- */
.js-reveal .engagement {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-reveal .engagement.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .engagements { padding: 100px 0; }

  .engagements__intro {
    padding: 0 24px 70px;
  }

  .engagements__list {
    padding: 0 24px;
    gap: 36px;
  }

  .engagement {
    height: auto;
    min-height: 380px;
  }

  .engagement__content {
    padding: 50px 36px;
    max-width: 100%;
  }

  .engagement__overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.78) 100%
    );
  }

  .engagements__cta {
    margin-top: 70px;
    padding: 0 24px;
  }
}

/* =============================================
   BRAND MOMENT — Cinematic text mask hero
   "METADIR SA" acts as a window onto a building
   image. Background-attachment: fixed creates
   a natural parallax as the user scrolls.
   ============================================= */
.brand-moment {
  position: relative;
  background: var(--bg-base);
  padding: 200px 0 220px;
  overflow: hidden;
  isolation: isolate;
}

/* Sky : warm overhead orange glow + cool bottom hint — dark theme */
.brand-moment__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(254, 151, 39, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 90% 35% at 50% 100%, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Architectural grid as midground depth layer */
.brand-moment__building {
  position: absolute;
  inset: -120px 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 25%, transparent 90%);
  pointer-events: none;
  z-index: 2;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* Inner wrapper for centered composition */
.brand-moment__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* Tiny refined caption above the title */
.brand-moment__caption {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  position: relative;
  padding: 0 36px;
}

.brand-moment__caption::before,
.brand-moment__caption::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.brand-moment__caption::before { left: 0; }
.brand-moment__caption::after  { right: 0; }

/* Foreground : the text mask itself.
   The building image is clipped to the text shape.
   background-attachment: fixed creates a parallax effect
   as the user scrolls — different parts of the building
   appear inside the typography. */
.brand-moment__text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;

  background-image: url('../assets/img/facades-innovantes.png');
  background-size: 110% auto;
  background-position: center 40%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  /* Premium color grading + warm orange glow on dark theme */
  filter:
    drop-shadow(0 30px 60px rgba(254, 151, 39, 0.18))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6))
    saturate(0.9)
    contrast(1.08)
    brightness(0.95);
}

/* Mobile : background-attachment fixed is glitchy on iOS,
   fall back to a static cover behaviour. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .brand-moment {
    padding: 120px 0 140px;
  }
  .brand-moment__inner {
    gap: 40px;
  }
  .brand-moment__text {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    font-size: clamp(72px, 22vw, 180px);
  }
  .brand-moment__building {
    filter: blur(40px) brightness(1.05) saturate(0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-moment__text {
    filter:
      drop-shadow(0 20px 40px rgba(20, 20, 20, 0.2))
      saturate(0.88);
  }
}
