/* ==========================================================================
   AAK Plâtrerie Sàrl — feuille de style principale
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d1b2e;
  --ink-2: #16273f;
  --ink-3: #22385a;
  --blue: #3862ac;
  --blue-d: #2b4f8f;
  --teal: #23b8a6;
  --lime: #8cc63f;
  --paper: #f7f5f1;
  --stone: #ece8e1;
  --white: #ffffff;
  --text: #1f2b3d;
  --muted: #5d6879;
  --line: rgba(13, 27, 46, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--blue) 100%);
  --grad-soft: linear-gradient(120deg, rgba(35, 184, 166, 0.14), rgba(56, 98, 172, 0.14));

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(13, 27, 46, 0.35);
  --shadow-sm: 0 10px 30px -14px rgba(13, 27, 46, 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transform: translateY(-150%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5.5vw, 72px) 0; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Grain texture for plaster feel */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; }
.section--dark .eyebrow, .eyebrow--light { color: var(--teal); }
.h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.65; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 100px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  transform: translateY(101%); transition: transform 0.55s var(--ease);
  border-radius: inherit;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(35, 184, 166, 0.65); color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--grad { --bg: transparent; background: var(--grad); }
.btn--grad::before { background: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--sm { padding: 12px 20px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px;
  background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), transform 0.5s var(--ease);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.is-scrolled {
  --header-h: 72px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(13, 27, 46, 0.35);
}
.header.is-hidden { transform: translateY(-100%); }
.logo { position: relative; display: block; width: clamp(160px, 16vw, 200px); flex: none; }
.logo img { width: 100%; height: auto; transition: opacity 0.35s var(--ease); }
.logo .logo--color { position: absolute; inset: 0; opacity: 0; }
.header.is-scrolled .logo--white { opacity: 0; }
.header.is-scrolled .logo--color { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav__link {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88); padding: 6px 0; transition: color 0.3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header.is-scrolled .nav__link { color: var(--text); }
.header.is-scrolled .nav__link:hover, .header.is-scrolled .nav__link[aria-current="page"] { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
}
.header__phone span.ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); transition: background 0.3s;
}
.header__phone svg { width: 17px; height: 17px; }
.header__phone:hover span.ico { background: var(--teal); }
.header.is-scrolled .header__phone { color: var(--ink); }
.header.is-scrolled .header__phone span.ico { background: var(--grad-soft); }
.header.is-scrolled .header__phone:hover span.ico { background: var(--teal); color: #fff; }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%; position: relative;
  background: rgba(255, 255, 255, 0.14); z-index: 120;
}
.header.is-scrolled .burger { background: var(--ink); }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s, top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 28px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 140; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.7s var(--ease-io), visibility 0s linear 0.7s; visibility: hidden;
}
.nav-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path 0.7s var(--ease-io), visibility 0s; }
.mobile-menu::before {
  content: ""; position: absolute; width: 480px; height: 480px; right: -220px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 98, 172, 0.45), transparent 65%); pointer-events: none;
}
.mobile-menu::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: -200px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 184, 166, 0.28), transparent 65%); pointer-events: none;
}
.mm-top {
  position: relative; z-index: 1; flex: none; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-light);
}
.mm-top .logo { width: 170px; }
.mm-close { position: relative; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background 0.3s, transform 0.5s var(--ease); }
.mm-close:hover { background: var(--teal); transform: rotate(90deg); }
.mm-close span { position: absolute; left: 14px; right: 14px; top: 23px; height: 2px; border-radius: 2px; background: #fff; }
.mm-close span:first-child { transform: rotate(45deg); }
.mm-close span:last-child { transform: rotate(-45deg); }
.mm-body {
  position: relative; z-index: 1; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  width: 100%; max-width: 560px; margin: 0 auto; padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.mm-nav { display: flex; flex-direction: column; }
.mm-link {
  display: flex; align-items: center; gap: 16px; padding: 15px 4px;
  border-bottom: 1px solid var(--line-light); color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.35rem, 5.4vw, 1.75rem); line-height: 1.2;
  opacity: 0; transform: translateX(-24px); transition: opacity 0.45s, transform 0.6s var(--ease), color 0.3s, padding 0.4s var(--ease);
}
.mm-num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--teal); min-width: 22px; letter-spacing: 0.05em; }
.mm-label { flex: 1; }
.mm-link svg { width: 20px; height: 20px; opacity: 0.35; transition: opacity 0.3s, transform 0.4s var(--ease); }
.mm-link:hover, .mm-link:focus-visible { color: #fff; padding-left: 10px; }
.mm-link:hover svg { opacity: 1; transform: translateX(4px); }
.mm-link[aria-current="page"] { color: var(--teal); }
.mm-link[aria-current="page"] svg { opacity: 1; color: var(--teal); }
.nav-open .mm-link { opacity: 1; transform: none; transition-delay: calc(0.2s + var(--i) * 0.05s); }
.mm-foot { display: grid; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s 0.5s, transform 0.6s var(--ease) 0.5s; }
.nav-open .mm-foot { opacity: 1; transform: none; }
.mm-cta { justify-content: center; width: 100%; }
.mm-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-chip {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-light); font-family: var(--font-head); font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}
.mm-chip svg { width: 18px; height: 18px; color: var(--teal); }
.mm-chip:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.mm-addr { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); text-align: center; }
.mm-addr svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.nav-open { overflow: hidden; }
.nav-open .header { transform: none; }
@media (min-width: 1101px) { .mobile-menu { display: none; } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130; pointer-events: none;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 80vh; min-height: 80svh; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); overflow: hidden; }
.hero__slide.is-active { opacity: 1; }
.hero__slide .px { position: absolute; inset: -8% 0; }
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.18);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1.02); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(13, 27, 46, 0.55) 0%, rgba(13, 27, 46, 0.2) 35%, rgba(13, 27, 46, 0.85) 100%),
    linear-gradient(90deg, rgba(13, 27, 46, 0.75) 0%, rgba(13, 27, 46, 0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 70px); }
.hero__eyebrow { color: #fff; }
.hero__eyebrow::before { background: var(--grad); }
.hero__title { color: #fff; max-width: 14ch; margin-bottom: 22px; }
.hero .text-grad, .page-hero .text-grad, .notfound .text-grad { background-image: linear-gradient(120deg, #2fd6c1 0%, #86b1f5 100%); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(0.25s + var(--i, 0) * 0.12s); }
.is-loaded .hero__title .line > span { transform: none; }
.hero__lead { max-width: 52ch; color: rgba(255, 255, 255, 0.82); font-size: clamp(1.05rem, 1.4vw, 1.22rem); margin-bottom: 34px; }
.hero__fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(0.7s + var(--i, 0) * 0.12s); }
.is-loaded .hero__fade { opacity: 1; transform: none; }

.hero__bottom {
  position: relative; z-index: 2; border-top: 1px solid var(--line-light);
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.2), rgba(13, 27, 46, 0.55));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__bottom .container { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; }
.hero__stats { display: flex; }
.hero__stat { padding: 26px clamp(20px, 3vw, 44px) 26px 0; margin-right: clamp(20px, 3vw, 44px); border-right: 1px solid var(--line-light); }
.hero__stat:last-child { border-right: 0; margin-right: 0; }
.hero__stat strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: #fff; }
.hero__stat > span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.hero__dots { display: flex; align-items: center; gap: 10px; }
.hero__dot { width: 46px; height: 3px; background: rgba(255, 255, 255, 0.25); border-radius: 3px; overflow: hidden; position: relative; }
.hero__dot i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active i { animation: dotfill 6s linear forwards; }
.hero__dot.is-done i { transform: scaleX(1); }
@keyframes dotfill { to { transform: scaleX(1); } }
.scroll-cue {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 130px;
  writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 14px;
}
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: linear-gradient(rgba(255, 255, 255, 0.8), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: clamp(420px, 68vh, 640px); color: #fff; overflow: hidden;
  display: flex; align-items: flex-end; background: var(--ink);
}
.page-hero__bg { position: absolute; inset: 0; overflow: hidden; }
.page-hero__bg .px { position: absolute; inset: -15% 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.is-loaded .page-hero__bg img { transform: scale(1); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.6) 0%, rgba(13, 27, 46, 0.35) 45%, rgba(13, 27, 46, 0.9) 100%);
}
.page-hero .container { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(44px, 6vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); margin-bottom: 14px; }
.page-hero h1 .line { display: block; overflow: hidden; }
.page-hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease) 0.2s; }
.is-loaded .page-hero h1 .line > span { transform: none; }
.page-hero p { max-width: 56ch; color: rgba(255, 255, 255, 0.8); margin: 0; }
.crumbs { display: flex; gap: 10px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; letter-spacing: 0.04em; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 26px 0; position: relative; }
.marquee--grad { background: var(--grad); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; white-space: nowrap;
}
.marquee__item .star { width: 22px; height: 22px; color: var(--teal); flex: none; }
.marquee--grad .marquee__item .star { color: #fff; }
.marquee__item .outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / about split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split--rev { grid-template-columns: 1fr 1.05fr; }
.split--rev .split__media { order: 2; }
.collage { position: relative; aspect-ratio: 1 / 1.08; }
.collage__a, .collage__b { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.collage__a { inset: 0 22% 16% 0; }
.collage__b { width: 52%; aspect-ratio: 4 / 5; right: 0; bottom: 0; border: 8px solid var(--paper); border-radius: calc(var(--radius) + 6px); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute; left: -18px; bottom: 6%; z-index: 3; background: var(--ink); color: #fff;
  border-radius: 16px; padding: 20px 24px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.collage__badge strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.collage__badge span { font-size: 0.86rem; line-height: 1.35; color: rgba(255, 255, 255, 0.75); }
.collage__ring {
  position: absolute; right: 8%; top: -34px; z-index: 3; width: 120px; height: 120px;
  animation: spin 22s linear infinite;
}
.collage__ring text { font-family: var(--font-head); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.feature-list { display: grid; gap: 20px; margin: 26px 0 30px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.feature__ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue);
}
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; margin-bottom: 8px; }
.stat > span { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.04em; }
.section--dark .stats, .section--dark .stat { border-color: var(--line-light); }
.section--dark .stat > span { color: rgba(255, 255, 255, 0.65); }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head h2 { margin: 0; max-width: 18ch; }
.sec-head p { max-width: 44ch; margin: 0; }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.sec-head--center h2 { max-width: 22ch; }

/* ---------- Services — hover list (home) ---------- */
.svc-list { border-top: 1px solid var(--line-light); position: relative; }
.svc-row {
  position: relative; display: grid; grid-template-columns: 80px 1.1fr 1.3fr 56px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line-light); color: #fff; isolation: isolate;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--grad);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease);
}
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.svc-row__num { font-family: var(--font-head); font-size: 0.95rem; color: var(--teal); transition: color 0.4s; }
.svc-row:hover .svc-row__num { color: #fff; }
.svc-row__title { font-family: var(--font-head); font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1.1; margin: 0; color: #fff; transition: transform 0.5s var(--ease); }
.svc-row:hover .svc-row__title { transform: translateX(10px); }
.svc-row__text { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 1rem; transition: color 0.4s; }
.svc-row:hover .svc-row__text { color: rgba(255, 255, 255, 0.95); }
.svc-row__arrow {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}
.svc-row__arrow svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform 0.5s var(--ease); }
.svc-row:hover .svc-row__arrow { background: #fff; color: var(--ink); border-color: #fff; }
.svc-row:hover .svc-row__arrow svg { transform: rotate(0); }
.svc-row__thumb { display: none; }
.svc-float {
  position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg); transition: opacity 0.35s, transform 0.5s var(--ease);
}
.svc-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.svc-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 0.45s, transform 0.8s var(--ease); }
.svc-float img.is-on { opacity: 1; transform: scale(1); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 26px 28px 30px; }
.card__body h3 { font-size: 1.35rem; }
.card__body p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Parallax band ---------- */
.band { position: relative; min-height: clamp(400px, 64vh, 640px); display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.band__bg { position: absolute; inset: 0; overflow: hidden; }
.band__bg .px { position: absolute; inset: -18% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(13, 27, 46, 0.92) 0%, rgba(13, 27, 46, 0.55) 60%, rgba(13, 27, 46, 0.35) 100%); }
.band .container { position: relative; z-index: 2; }
.band__quote { font-family: var(--font-head); font-size: clamp(1.8rem, 4.2vw, 3.6rem); font-weight: 500; line-height: 1.15; color: #fff; max-width: 22ch; margin: 0 0 28px; letter-spacing: -0.02em; }
.band__quote .w { display: inline-block; opacity: 0.18; transition: opacity 0.5s; }
.band__quote .w.is-lit { opacity: 1; }
.band__sig { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.75); }
.band__sig::before { content: ""; width: 44px; height: 2px; background: var(--grad); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value {
  position: relative; padding: 34px 28px; border-radius: var(--radius); background: #fff; overflow: hidden;
  border: 1px solid var(--line); transition: transform 0.6s var(--ease), border-color 0.4s;
}
.value::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.value:hover { transform: translateY(-6px); border-color: transparent; }
.value:hover::after { transform: scaleX(1); }
.value__num { font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; line-height: 1; opacity: 0.08; position: absolute; right: 18px; top: 14px; color: var(--ink); }
.value .feature__ico { margin-bottom: 22px; }
.value h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 0.98rem; margin: 0; }

/* ---------- Horizontal gallery (home) ---------- */
.hgal { position: relative; }
.hgal__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hgal__head { margin-bottom: clamp(20px, 3vh, 32px); }
.hgal__track { display: flex; gap: 24px; padding-left: var(--gutter); will-change: transform; }
.hgal__item {
  flex: none; height: clamp(300px, 62vh, 660px); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); background: var(--stone);
}
.hgal__item img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; }
.hgal__item:hover img { transform: scale(1.06); }
.hgal__item--end {
  display: grid; place-items: center; aspect-ratio: 3 / 4; background: var(--ink); color: #fff; text-align: center; padding: 30px;
}
.hgal__item--end h3 { color: #fff; font-size: 1.8rem; }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3 320px; column-gap: 18px; }
.masonry__item {
  position: relative; display: block; margin-bottom: 18px; break-inside: avoid; border-radius: 14px; overflow: hidden;
  background: var(--stone); cursor: zoom-in;
}
.masonry__item img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 27, 46, 0.7));
  opacity: 0; transition: opacity 0.5s;
}
.masonry__item .zoom {
  position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  opacity: 0; transform: scale(0.6) rotate(-90deg); transition: opacity 0.4s, transform 0.5s var(--ease);
}
.masonry__item .zoom svg { width: 20px; height: 20px; }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover::after { opacity: 1; }
.masonry__item:hover .zoom { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 500; background: rgba(8, 16, 28, 0.94);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__stage { position: relative; width: min(92vw, 1400px); height: min(82vh, 1000px); display: grid; place-items: center; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); transition: opacity 0.35s, transform 0.5s var(--ease); }
.lb__img.is-loading { opacity: 0; transform: scale(0.96); }
.lb__btn {
  position: absolute; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; transition: background 0.3s, transform 0.3s;
}
.lb__btn:hover { background: var(--teal); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 20px; top: 20px; }
.lb__count { position: absolute; left: 24px; top: 30px; color: rgba(255, 255, 255, 0.75); font-family: var(--font-head); letter-spacing: 0.1em; font-size: 0.95rem; }
.lb__spin { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: var(--teal); animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.2s; }
.lb.is-busy .lb__spin { opacity: 1; }

/* ---------- Services detail ---------- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding: clamp(44px, 5.5vw, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail:nth-child(even) .svc-detail__media { order: 2; }
.svc-detail__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.svc-detail__media .px { position: absolute; inset: -12% 0; }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__num {
  position: absolute; left: 22px; top: 22px; z-index: 2; background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-family: var(--font-head); font-weight: 600; padding: 8px 16px; border-radius: 100px; font-size: 0.95rem;
}
.svc-detail h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.checks { display: grid; gap: 12px; margin: 26px 0 34px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; color: var(--ink); }
.checks li svg { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 50%; background: var(--grad); color: #fff; }

/* ---------- Video ---------- */
.videos { display: grid; grid-template-columns: 0.72fr 1fr; gap: 26px; align-items: start; }
.videos__col { display: grid; gap: 26px; }
.vcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.vcard video { width: 100%; height: auto; background: #000; }
.vcard--portrait video { aspect-ratio: 9 / 16; object-fit: cover; }
.vcard--land video { aspect-ratio: 16 / 9; object-fit: cover; }
.vcard__meta { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; color: rgba(255, 255, 255, 0.85); font-family: var(--font-head); }
.vcard__meta span:last-child { color: var(--teal); font-size: 0.9rem; }
.vcard__play {
  position: absolute; inset: 0 0 56px 0; display: grid; place-items: center; z-index: 2;
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.1), rgba(13, 27, 46, 0.45)); transition: opacity 0.4s;
}
.vcard__play span {
  width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); animation: pulse 2.4s infinite; transition: transform 0.4s var(--ease);
}
.vcard__play:hover span { transform: scale(1.1); }
.vcard__play svg { width: 28px; height: 28px; margin-left: 4px; }
.vcard.is-playing .vcard__play { opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); } 70% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

.video-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.video-teaser .vcard video { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: calc(var(--radius) + 10px); padding: clamp(44px, 7vw, 90px); isolation: isolate; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.cta::before { width: 520px; height: 520px; right: -140px; top: -200px; background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 65%); }
.cta::after { width: 380px; height: 380px; left: -120px; bottom: -200px; background: radial-gradient(circle, rgba(13, 27, 46, 0.35), transparent 65%); }
.cta__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0 0 14px; }
.cta p { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: 1.1rem; }
.cta__actions { display: grid; gap: 14px; justify-items: start; }
.cta__phone { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.cta__phone svg { width: 30px; height: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.info-cards { display: grid; gap: 16px; }
.info-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 22px 24px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
a.info-card:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.info-card small { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info-card strong { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; color: var(--ink); line-height: 1.35; }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--stone); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }

.form-card { background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 50px); box-shadow: var(--shadow); position: relative; }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 18px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s; outline: none; font-size: 1rem;
}
.field textarea { min-height: 170px; resize: vertical; }
.field label {
  position: absolute; left: 19px; top: 17px; color: var(--muted); pointer-events: none; font-size: 1rem;
  transform-origin: left top; transition: transform 0.3s var(--ease), color 0.3s;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(35, 184, 166, 0.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.76); color: var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d94f45; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.alert { display: none; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert.is-on { display: block; }
.alert--ok { background: rgba(35, 184, 166, 0.12); color: #137a6e; border: 1px solid rgba(35, 184, 166, 0.35); }
.alert--err { background: rgba(217, 79, 69, 0.1); color: #a8342b; border: 1px solid rgba(217, 79, 69, 0.3); }
.btn.is-busy { pointer-events: none; opacity: 0.8; }
.btn.is-busy svg { animation: spin 0.9s linear infinite; }
.cf-turnstile { min-height: 65px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-top: clamp(56px, 7vw, 90px); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -300px; top: -380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 98, 172, 0.35), transparent 65%); pointer-events: none;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.3fr; gap: 40px; position: relative; }
.footer__brand p { max-width: 36ch; }
.footer .logo { width: 210px; margin-bottom: 22px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer p { font-size: 0.98rem; }
.footer li { margin-bottom: 10px; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--teal); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; margin-top: 5px; color: var(--teal); flex: none; }
.footer .footer__big {
  display: block; width: 100%; height: auto; margin: clamp(50px, 7vw, 90px) 0 0; overflow: visible;
  font-family: var(--font-head); font-weight: 600; font-size: 150px; letter-spacing: -0.03em; user-select: none; pointer-events: none;
}
.footer__bottom { border-top: 1px solid var(--line-light); padding: 24px 0 28px; align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.9rem; position: relative; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity 0.4s, transform 0.5s var(--ease), background 0.3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg.arrow { width: 18px; height: 18px; transform: rotate(-90deg); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--reveal-bg, var(--paper)); transform-origin: 50% 0;
  transition: transform 1.3s var(--ease-io); transition-delay: calc(var(--d, 0) * 90ms);
}
.section--stone { --reveal-bg: var(--stone); }
.section--dark { --reveal-bg: var(--ink); }
.js .reveal-img img { transform: scale(1.3); transition: transform 1.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-img.is-in::after { transform: scaleY(0); }
.js .reveal-img.is-in img { transform: scale(1); }
.js .reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-left.is-in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js .reveal-scale.is-in { opacity: 1; transform: none; }
.px, [data-speed] { will-change: transform; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: #fff; position: relative; overflow: hidden; padding: 120px var(--gutter) 60px; }
.notfound h1 { font-size: clamp(7rem, 26vw, 18rem); line-height: 0.9; margin: 0; }
.notfound p { color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav, .header__phone .txt { display: none; }
  .burger { display: block; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 60px 1fr 1fr 56px; }
}
@media (max-width: 900px) {
  :root { --header-h: 74px; }
  .split, .split--rev, .svc-detail, .video-teaser, .contact-grid, .cta__grid { grid-template-columns: 1fr; }
  .split--rev .split__media, .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .collage { max-width: 560px; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .svc-row__arrow { display: none; }
  .svc-row__thumb { display: block; order: -1; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
  .svc-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-float { display: none; }
  .videos { grid-template-columns: 1fr; }
  .vcard--portrait { max-width: 420px; }
  .hero__bottom .container { flex-direction: column; gap: 0; }
  .hero__dots { padding-bottom: 20px; }
  .scroll-cue { display: none; }
  .svc-detail__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards, .values, .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 10px; }
  .stat:last-child { border-bottom: 0; }
  .hero__stats { width: 100%; justify-content: space-between; }
  .hero__stat { padding: 18px 12px 18px 0; margin-right: 12px; }
  .hero__stat > span { font-size: 0.78rem; line-height: 1.3; display: block; }
  .hero__title { max-width: none; }
  .eyebrow { letter-spacing: 0.14em; font-size: 0.74rem; }
  .btn { padding: 15px 22px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .collage__badge { left: 10px; padding: 14px 16px; }
  .collage__badge strong { font-size: 2rem; }
  .collage__ring { width: 92px; height: 92px; top: -24px; }
  .lb__prev, .lb__next { top: auto; bottom: 22px; transform: none; }
  .lb__prev { left: calc(50% - 64px); }
  .lb__next { right: calc(50% - 64px); }
  .lb__stage { height: 72vh; }
  .footer__bottom { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; }
}

/* Mobile fallback for horizontal gallery: native swipe */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .hgal { height: auto !important; }
  .hgal__sticky { position: relative; height: auto; padding: clamp(56px, 8vw, 90px) 0; }
  .hgal__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: var(--gutter); padding-bottom: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hgal__track::-webkit-scrollbar { display: none; }
  .hgal__item { scroll-snap-align: start; height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-left, .js .reveal-scale { opacity: 1; transform: none; }
  .js .reveal-img::after { display: none; }
  .js .reveal-img img { transform: none; }
  .band__quote .w { opacity: 1; }
  .marquee__track { animation: none; }
}

/* ---------- Parallax frames ---------- */
.frame { position: relative; overflow: hidden; }
.frame > .px, .collage__a > .px, .collage__b > .px { position: absolute; inset: -12% 0; }
.frame .px img, .collage .px img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; color: var(--ink);
  transition: background 0.35s, color 0.35s, transform 0.4s var(--ease), border-color 0.35s;
}
.chip svg { width: 20px; height: 20px; color: var(--teal); transition: color 0.35s; }
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-3px); }
.chip:hover svg { color: #fff; }

@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(13, 27, 46, 0.6) 0%, rgba(13, 27, 46, 0.55) 40%, rgba(13, 27, 46, 0.9) 100%); }
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Page hero (petite) ---------- */
.page-hero--small { min-height: clamp(320px, 48vh, 460px); }
.page-hero--small h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }

/* ---------- Carte (chargement après consentement) ---------- */
.map { position: relative; }
.map__consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; background: linear-gradient(135deg, #fff, var(--stone));
}
.map__consent p { max-width: 42ch; margin: 0; font-size: 0.92rem; color: var(--muted); }
.map__consent p a, .check a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.map__consent .btn-row { justify-content: center; }
.map.is-loaded .map__consent { display: none; }

/* ---------- Pages légales ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.legal__toc { position: sticky; top: 100px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 0.93rem; transition: color 0.3s, border-color 0.3s;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--teal); font-size: 0.78rem; font-weight: 600; margin-right: 6px; }
.legal__toc a:hover { color: var(--ink); border-left-color: var(--teal); }
.legal__body { max-width: 760px; }
.legal__sec { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal__sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 18px; }
.legal__sec h2 span { font-size: 0.85rem; font-weight: 600; color: var(--teal); font-family: var(--font-body); }
.legal__sec p { color: var(--text); }
.legal__sec a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal__dl { display: grid; grid-template-columns: 170px 1fr; gap: 12px 24px; margin: 0 0 18px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.legal__dl dt { font-weight: 600; color: var(--ink); font-family: var(--font-head); }
.legal__dl dd { margin: 0; color: var(--text); }
.legal__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.legal__list li { position: relative; padding-left: 24px; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; border-radius: 2px; background: var(--grad); }
.legal__updated { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
}
@media (max-width: 560px) {
  .legal__dl { grid-template-columns: 1fr; gap: 2px; padding: 20px; }
  .legal__dl dd { margin-bottom: 12px; }
}

/* Galerie : colonnes construites en JS (ordre gauche → droite) */
.masonry.is-js { columns: auto; display: flex; align-items: flex-start; gap: 18px; }
.masonry__col { flex: 1 1 0; min-width: 0; }
