/* ==========================================================================
   BADIOLA — Architecture d'intérieur & décoration
   Landing page — 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens & reset
   -------------------------------------------------------------------------- */

:root {
  --paper: #f2eee6;
  --paper-soft: #f8f5ef;
  --paper-deep: #e7e0d4;
  --ink: #1b1a17;
  --ink-deep: #141310;
  --ink-soft: #2a2823;
  --muted: #736d62;
  --muted-light: #9a9386;
  --clay: #a96f4e;
  --clay-soft: #c99b7c;
  --olive: #4b5143;
  --line: rgba(27, 26, 23, 0.14);
  --line-light: rgba(242, 238, 230, 0.16);
  --white: #fffdf8;

  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --container-w: 1440px;
  --header-h: 92px;
  --section-y: clamp(90px, 11vw, 170px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-loading,
body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

svg {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--clay);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   02. Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--light {
  color: rgba(242, 238, 230, 0.62);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.5vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--clay);
}

.display--lg {
  font-size: clamp(2.75rem, 5vw, 5.6rem);
  line-height: 0.99;
}

.display--xl {
  font-size: clamp(3.1rem, 5.6vw, 6.4rem);
  line-height: 0.94;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(44px, 5.5vw, 84px);
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head .eyebrow {
  white-space: nowrap;
}

.section-index {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--clay);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.section-head--dark::after {
  background: var(--line-light);
}

.section-head--dark .eyebrow {
  color: rgba(242, 238, 230, 0.55);
}

.section-head--dark .section-index {
  color: var(--clay-soft);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   03. Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 12px 12px 24px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(242, 238, 230, 0.24);
  flex-shrink: 0;
  transition: transform 0.55s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
}

.btn-arrow svg {
  width: 14px;
  height: 14px;
}

.btn:hover .btn-arrow {
  transform: translate(2px, -2px);
  background: rgba(242, 238, 230, 0.12);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--clay);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  padding-right: 24px;
}

.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
  padding-left: 26px;
}

.btn--light .btn-arrow {
  border-color: rgba(27, 26, 23, 0.22);
}

.btn--light:hover {
  background: var(--clay);
  color: var(--paper);
}

.btn--light:hover .btn-arrow {
  border-color: rgba(242, 238, 230, 0.4);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.35s, border-color 0.35s;
}

.link-arrow-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}

.link-arrow-icon svg {
  width: 14px;
  height: 14px;
}

.link-arrow:hover {
  color: var(--clay);
  border-color: var(--clay);
}

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

.round-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.round-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.round-btn--light {
  border-color: rgba(242, 238, 230, 0.24);
  color: var(--paper);
}

.round-btn--light:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   04. Loader & scroll progress
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
}

.js .loader {
  display: flex;
}

.loader.is-done {
  transform: translateY(-101%);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-arch {
  width: 58px;
  height: 58px;
  animation: loaderPulse 2.4s var(--ease) infinite;
}

.loader-word {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-left: 0.22em;
}

.loader-line {
  width: 128px;
  height: 1px;
  background: rgba(242, 238, 230, 0.16);
  overflow: hidden;
}

.loader-line i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--clay-soft);
  animation: loaderLine 1.5s var(--ease) infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes loaderLine {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(340%); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   05. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: var(--paper);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(242, 238, 230, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.menu-open .site-header {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav-link.is-active {
  color: var(--clay);
}

.nav-item {
  position: relative;
}

.nav-chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.4s var(--ease);
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 230px;
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 19, 16, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.nav-dropdown a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-cta-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.header-cta-arrow svg {
  width: 13px;
  height: 13px;
}

.header-cta:hover .header-cta-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.menu-btn {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 8px;
  width: 26px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-btn span:first-child {
  top: 17px;
}

.menu-btn span:last-child {
  top: 24px;
}

.menu-open .menu-btn span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .menu-btn span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  padding-top: var(--header-h);
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0.8s;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mobile-menu-inner {
  height: calc(100dvh - var(--header-h));
  padding: clamp(24px, 4vh, 48px) var(--gutter) 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  overflow-y: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}

.mobile-nav a.is-in {
  opacity: 1;
  transform: none;
}

.mobile-nav a:hover {
  color: var(--clay);
}

.mobile-nav a span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  font-size: 13px;
}

.mobile-menu-foot > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.mobile-menu-foot a:hover {
  color: var(--clay);
}

.mobile-note {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* --------------------------------------------------------------------------
   06. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(36px, 5vw, 96px);
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: clamp(30px, 3.5vw, 58px) var(--gutter) clamp(34px, 4vw, 64px);
}

.hero-copy {
  max-width: 760px;
  padding-top: 10px;
}

.hero-eyebrow {
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.35vw, 7.1rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.038em;
}

.hero-line {
  display: block;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero-line--em {
  color: var(--clay);
  margin-top: 0.01em;
}

.hero-line em {
  font-style: italic;
}

.hero-lede {
  max-width: 470px;
  margin-top: 30px;
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(38px, 5vh, 58px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 470px;
}

.hero-meta span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta span + span {
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  height: clamp(470px, 66vh, 740px);
  min-height: 0;
}

.hero-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.7s, transform 1.4s var(--ease) 0.6s;
  transform: translate(-10px, 10px);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper-deep);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.5s var(--ease);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 2.2s var(--ease);
}

.hero-badge {
  position: absolute;
  left: clamp(-34px, -2.6vw, -18px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(20, 19, 16, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s;
}

.hero-badge-num {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--clay);
}

.hero-badge-text {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-caption {
  position: absolute;
  top: 4px;
  right: -44px;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 1s var(--ease) 1.1s;
}

body.is-ready .hero-media {
  clip-path: inset(0 0 0 0);
}

body.is-ready .hero-media img {
  transform: scale(1);
}

body.is-ready .hero-frame {
  opacity: 1;
  transform: translate(0, 0);
}

body.is-ready .hero-badge,
body.is-ready .hero-caption {
  opacity: 1;
  transform: none;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 24px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 12px;
  background: var(--clay);
  animation: scrollCue 2.2s var(--ease) infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(-14px); }
  70%, 100% { transform: translateY(36px); }
}

.hero-foot-year {
  flex-shrink: 0;
}

/* Split text */
.word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  vertical-align: top;
}

.word__in {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(1.5deg);
  transform-origin: left bottom;
  transition: transform 1.05s var(--ease-out), opacity 0.9s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 40ms);
}

[data-split].is-in .word__in {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-title .word__in {
  transition-delay: calc(0.4s + var(--w, 0) * 55ms);
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s var(--ease-out) var(--delay, 0ms),
    transform 1s var(--ease-out) var(--delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.media-mask {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.media-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.7s var(--ease-out);
}

.media-mask.is-in img {
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   07. Marquee
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 15px 0 16px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

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

.marquee-group span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 26px;
  color: rgba(242, 238, 230, 0.72);
}

.marquee-group i {
  font-style: normal;
  font-size: 9px;
  color: var(--clay-soft);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   08. Intro
   -------------------------------------------------------------------------- */

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: start;
}

.intro-grid h2 {
  max-width: 760px;
}

.intro-body {
  padding-top: 10px;
  max-width: 470px;
  justify-self: end;
}

.intro-lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 22px;
}

.intro-body p + p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.intro-signature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.signature-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.signature-role {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.intro-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(70px, 9vw, 130px);
}

.pillar {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--clay);
}

.pillar h3 {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 330px;
}

/* --------------------------------------------------------------------------
   09. Manifeste
   -------------------------------------------------------------------------- */

.manifesto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 78vh, 900px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.manifesto-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.manifesto-media img {
  width: 100%;
  height: 122%;
  top: -11%;
  position: absolute;
  object-fit: cover;
  will-change: transform;
}

.manifesto-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 19, 16, 0.42), rgba(20, 19, 16, 0.58)),
    linear-gradient(90deg, rgba(20, 19, 16, 0.5), rgba(20, 19, 16, 0.15));
}

.manifesto-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2 * var(--gutter), 1020px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 100px;
}

.manifesto blockquote {
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.manifesto blockquote em {
  font-style: italic;
  color: var(--clay-soft);
}

.manifesto-sign {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.55);
}

.manifesto-index {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 28px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.5);
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */

.services {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.services-head p {
  max-width: 350px;
  justify-self: end;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.services-list {
  position: relative;
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1.02fr) minmax(0, 1.12fr) 48px;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  padding: clamp(26px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.65s var(--ease);
}

.service-row:hover::after,
.service-row:focus-visible::after {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
  align-self: start;
  padding-top: 12px;
  transition: color 0.4s;
}

.service-name {
  font-family: var(--display);
  font-size: clamp(2rem, 3.35vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  transition: transform 0.55s var(--ease), color 0.4s;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

.service-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  transition: color 0.4s;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.4s, color 0.4s;
}

.service-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  justify-self: end;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.55s var(--ease);
}

.service-arrow svg {
  width: 18px;
  height: 18px;
}

.service-row:hover .service-num {
  color: var(--clay);
}

.service-row:hover .service-name {
  color: var(--clay);
  transform: translateX(10px);
}

.service-row:hover .service-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: rotate(45deg) scale(0.92);
}

.service-row:hover .service-tags span {
  border-color: rgba(169, 111, 78, 0.35);
  color: var(--clay);
}

/* Floating preview */
.service-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 85;
  width: 300px;
  height: 400px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-500px, -500px, 0) scale(0.92);
  transition: opacity 0.4s var(--ease);
  box-shadow: 0 30px 80px rgba(20, 19, 16, 0.22);
  will-change: transform;
}

.service-preview.is-visible {
  opacity: 1;
}

.service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 253, 248, 0.25);
}

/* --------------------------------------------------------------------------
   11. Méthode
   -------------------------------------------------------------------------- */

.process {
  background: var(--olive);
  color: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}

.process-visual {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.process-media {
  aspect-ratio: 4 / 5;
  max-height: 74vh;
  overflow: hidden;
}

.process-media img {
  object-position: 50% 52%;
  filter: saturate(0.88) contrast(1.02);
}

.process-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(20, 19, 16, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.8);
}

.process-badge span:first-child {
  color: var(--clay-soft);
}

.process-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.45);
}

.process-content {
  padding-top: 6px;
}

.process-content h2 {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.process-content .display em {
  color: var(--clay-soft);
}

.process-steps {
  border-top: 1px solid var(--line-light);
}

.process-step {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--line-light);
  opacity: 0.42;
  transition: opacity 0.6s var(--ease);
}

.process-step.is-active {
  opacity: 1;
}

.step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--clay-soft);
  padding-top: 8px;
}

.step-body h3 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step-body p {
  max-width: 470px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(242, 238, 230, 0.62);
}

/* --------------------------------------------------------------------------
   12. Réalisations
   -------------------------------------------------------------------------- */

.projects {
  background: var(--paper);
  padding-bottom: clamp(58px, 7vw, 96px);
}

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 4vw, 54px);
}

.projects-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.projects-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

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

.projects-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.projects-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  width: max-content;
  padding-left: max(var(--gutter), calc((100vw - var(--container-w)) / 2 + var(--gutter)));
  padding-right: var(--gutter);
}

.project {
  width: clamp(272px, 29.5vw, 440px);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  overflow: hidden;
  cursor: pointer;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 19, 16, 0.45));
  opacity: 0.7;
  transition: opacity 0.6s;
}

.project-overlay {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.project-overlay svg {
  width: 20px;
  height: 20px;
}

.project-media:hover img {
  transform: scale(1.05);
  filter: saturate(1.03);
}

.project-media:hover::after {
  opacity: 1;
}

.project-media:hover .project-overlay {
  opacity: 1;
  transform: none;
}

.project-meta {
  padding-top: 20px;
}

.project-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-num {
  color: var(--clay);
}

.project-title {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.35s;
}

.project:hover .project-title {
  color: var(--clay);
}

.project-desc {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.projects-foot {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  margin-top: clamp(34px, 4vw, 48px);
}

.projects-progress {
  width: min(230px, 25vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.projects-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform: scaleX(0.16);
  transform-origin: 0 50%;
  transition: transform 0.2s linear;
}

.projects-hint {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-left: auto;
}

.projects-count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
}

.projects-count-sep {
  color: var(--muted-light);
  margin-inline: 4px;
}

/* --------------------------------------------------------------------------
   13. À propos
   -------------------------------------------------------------------------- */

.about {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 0 28px 28px 0;
}

.about-frame {
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.about-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
}

.about-media img {
  object-position: center 52%;
}

.about-quote {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 6px;
  width: min(280px, 60%);
  padding: 24px 26px 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 19, 16, 0.08);
}

.about-quote-mark {
  display: block;
  font-family: var(--display);
  font-size: 46px;
  line-height: 0.55;
  height: 22px;
  color: var(--clay);
}

.about-quote p {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy h2 {
  margin-bottom: 28px;
}

.about-lead {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 540px;
}

.about-copy p + p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 14px;
}

.about-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.about-list li span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--clay);
}

.about-copy .link-arrow {
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */

.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
}

.contact .display em {
  color: var(--clay-soft);
}

.contact-lede {
  max-width: 440px;
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 238, 230, 0.6);
}

.contact-details {
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--line-light);
}

.contact-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.35s;
}

.contact-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.42);
}

.contact-value {
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -0.01em;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  justify-self: end;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
}

.contact-item:hover {
  color: var(--clay-soft);
}

.contact-item:hover .contact-icon {
  background: var(--clay-soft);
  border-color: var(--clay-soft);
  color: var(--ink);
}

.contact-item--static:hover {
  color: var(--paper);
}

.contact-note {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.38);
}

.contact-form {
  padding-top: 8px;
  color-scheme: dark;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.form-row + .form-row,
.field--full,
.consent {
  margin-top: 24px;
}

.field {
  position: relative;
}

.field label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.45);
}

.field label span {
  color: var(--clay-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 0 13px;
  border: 0;
  border-bottom: 1px solid rgba(242, 238, 230, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.35s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field select {
  cursor: pointer;
  padding-right: 26px;
}

.field select:required:invalid {
  color: rgba(242, 238, 230, 0.55);
}

.field select option {
  background: var(--ink);
  color: var(--paper);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clay-soft);
}

.field--select::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 34px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--clay-soft);
  border-bottom: 1px solid var(--clay-soft);
  transform: rotate(45deg);
  pointer-events: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #cf7c62;
}

.field-error {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  color: #d9937b;
}

.field-error--consent {
  margin-top: -10px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 10.5px;
  line-height: 1.65;
  color: rgba(242, 238, 230, 0.45);
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid rgba(242, 238, 230, 0.3);
  transition: background 0.3s, border-color 0.3s;
}

.consent input:checked + .consent-box {
  background: var(--clay);
  border-color: var(--clay);
}

.consent input:checked + .consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  transform: rotate(42deg);
}

.consent input:focus-visible + .consent-box {
  outline: 2px solid var(--clay-soft);
  outline-offset: 3px;
}

.consent a {
  color: rgba(242, 238, 230, 0.75);
  border-bottom: 1px solid rgba(242, 238, 230, 0.25);
}

.consent a:hover {
  color: var(--clay-soft);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.form-note {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.35);
}

.form-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--clay-soft);
}

.form-status.is-success {
  color: #c8d3b6;
}

/* --------------------------------------------------------------------------
   15. Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: var(--paper-soft);
  color: var(--ink);
  overflow-y: auto;
}

.lightbox::backdrop {
  background: rgba(14, 13, 11, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox[open] {
  animation: lightboxIn 0.55s var(--ease-out);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: min(78vh, 760px);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(242, 238, 230, 0.86);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.lightbox-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.lightbox-close svg {
  width: 16px;
  height: 16px;
}

.lightbox-media {
  min-height: 320px;
  background: var(--paper-deep);
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.5vw, 64px);
}

.lightbox-type {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.lightbox-title {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.lightbox-desc {
  margin-top: 20px;
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-nav .round-btn {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  color: var(--ink);
}

.lightbox-nav .round-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.lightbox-nav .round-btn svg {
  width: 16px;
  height: 16px;
}

.lightbox-count {
  min-width: 48px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lightbox-contact {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.lightbox-contact:hover {
  color: var(--clay);
  border-color: var(--clay);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 100px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-mark {
  width: 54px;
  height: 54px;
  color: var(--paper);
  flex-shrink: 0;
}

.footer-brand p {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.48);
  padding-top: 4px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.35);
}

.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 238, 230, 0.68);
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--clay-soft);
}

.footer-col a:last-child {
  margin-top: 12px;
  color: var(--paper);
}

.footer-wordmark {
  margin-top: clamp(50px, 6vw, 80px);
  text-align: center;
  line-height: 0.7;
  pointer-events: none;
}

.footer-wordmark span {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(6rem, 19.5vw, 20rem);
  line-height: 0.72;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 238, 230, 0.28);
  transition: color 0.8s var(--ease), -webkit-text-stroke-color 0.8s var(--ease);
}

.site-footer:hover .footer-wordmark span {
  color: rgba(242, 238, 230, 0.04);
  -webkit-text-stroke-color: rgba(242, 238, 230, 0.36);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(18px, 3vw, 34px);
  padding-block: 22px 30px;
  border-top: 1px solid rgba(242, 238, 230, 0.1);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 238, 230, 0.35);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom a {
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: var(--clay-soft);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* --------------------------------------------------------------------------
   17. Mentions légales
   -------------------------------------------------------------------------- */

.legal-page {
  background: var(--paper);
}

.legal-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding-block: 26px;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-back {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.legal-back:hover {
  color: var(--clay);
  border-color: var(--clay);
}

.legal-main {
  padding: calc(var(--header-h) + 60px) 0 100px;
}

.legal-container {
  width: min(100% - 2 * var(--gutter), 820px);
  margin-inline: auto;
}

.legal-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.legal-main h1 {
  margin: 18px 0 40px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.legal-content {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 42px 0 14px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.legal-content a:hover {
  color: var(--clay);
}

.legal-content ul {
  padding-left: 18px;
  list-style: disc;
}

.legal-content li::marker {
  color: var(--clay);
}

.legal-note {
  margin-top: 40px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.legal-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .hero-caption {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.3rem, 6.1vw, 6.2rem);
  }

  .service-row {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 46px;
  }

  .header-cta span:first-child {
    display: none;
  }

  .header-cta {
    padding: 0;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 20px;
  }

  .brand-sub {
    display: none;
  }

  .hero-grid {
    gap: 44px;
  }

  .about-quote {
    width: 250px;
    padding: 20px 22px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 76px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 54px);
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 10vw, 6.2rem);
  }

  .hero-visual {
    height: clamp(420px, 60vh, 620px);
    width: min(100%, 680px);
    justify-self: end;
  }

  .hero-footer {
    padding-bottom: 20px;
  }

  .hero-foot-label {
    display: none;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-body {
    justify-self: start;
    max-width: 620px;
  }

  .intro-pillars {
    gap: 28px;
  }

  .services-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .services-head p {
    justify-self: start;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .process-visual {
    position: relative;
    top: 0;
    max-width: 620px;
  }

  .process-media {
    aspect-ratio: 3 / 2;
    max-height: none;
  }

  .process-media img {
    object-position: 50% 58%;
  }

  .process-content {
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(70px, 9vw, 100px);
  }

  .about-visual {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }

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

  .contact-lede {
    max-width: 560px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .footer-cols {
    gap: 24px;
  }

  .lightbox-inner {
    grid-template-columns: 1fr;
  }

  .lightbox-media {
    max-height: 42vh;
  }

  .lightbox-media img {
    max-height: 42vh;
  }

  .lightbox-info {
    padding-top: 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: clamp(70px, 12vw, 100px);
  }

  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(3.15rem, 12.4vw, 5rem);
    line-height: 0.92;
  }

  .hero-lede {
    margin-top: 24px;
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-meta {
    margin-top: 34px;
  }

  .hero-visual {
    height: clamp(380px, 66vh, 520px);
  }

  .hero-badge {
    left: 12px;
    bottom: 14px;
    padding: 12px 15px;
  }

  .hero-frame {
    display: none;
  }

  .hero-footer {
    padding-bottom: 16px;
  }

  .scroll-cue-line {
    height: 26px;
  }

  .marquee {
    padding: 12px 0 13px;
  }

  .marquee-group span {
    padding-inline: 18px;
    font-size: 8px;
  }

  .intro-pillars {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 56px;
  }

  .pillar {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
  }

  .pillar:last-child {
    border-bottom: 1px solid var(--line);
  }

  .pillar-num {
    grid-row: span 2;
    padding-top: 3px;
  }

  .pillar h3 {
    margin: 0 0 6px;
  }

  .pillar p {
    max-width: none;
  }

  .manifesto {
    min-height: 560px;
  }

  .manifesto-index {
    display: none;
  }

  .service-row {
    grid-template-columns: 34px minmax(0, 1fr) 38px;
    gap: 14px;
    padding: 24px 0;
  }

  .service-name {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  .service-body {
    grid-column: 2 / 3;
    padding-bottom: 8px;
  }

  .service-text {
    font-size: 12px;
  }

  .service-tags {
    display: none;
  }

  .service-arrow {
    width: 38px;
    height: 38px;
    align-self: start;
  }

  .process-media {
    aspect-ratio: 4 / 5;
  }

  .process-content h2 {
    margin-bottom: 34px;
  }

  .process-step {
    grid-template-columns: 38px 1fr;
    gap: 8px;
  }

  .projects-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .projects-controls {
    align-self: flex-end;
  }

  .project {
    width: min(78vw, 360px);
  }

  .projects-track {
    gap: 18px;
  }

  .projects-hint {
    display: none;
  }

  .projects-progress {
    flex: 1;
    width: auto;
  }

  .about-visual {
    padding-right: 16px;
    padding-bottom: 16px;
  }

  .about-frame {
    inset: 16px -16px -16px 16px;
  }

  .about-quote {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -26px 0 0 24px;
  }

  .about-media {
    aspect-ratio: 4 / 4.7;
  }

  .about-copy h2 {
    margin-bottom: 22px;
  }

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

  .form-row + .form-row {
    margin-top: 22px;
  }

  .form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .footer-col:last-child {
    grid-column: span 2;
  }

  .footer-wordmark {
    margin-top: 46px;
  }

  .footer-wordmark span {
    font-size: 25vw;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-bottom-links {
    width: 100%;
    justify-content: space-between;
  }

  .legal-main {
    padding-top: calc(var(--header-h) + 30px);
  }

  .lightbox {
    width: calc(100vw - 24px);
  }

  .lightbox-media {
    max-height: 38vh;
  }

  .lightbox-media img {
    max-height: 38vh;
  }

  .lightbox-info {
    padding: 26px 22px 30px;
  }

  .lightbox-foot {
    margin-top: 26px;
  }

  .lightbox-contact {
    font-size: 8px;
  }

  .legal-footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    padding-top: 24px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero-title {
    font-size: clamp(2.95rem, 12.8vw, 4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .hero-meta span {
    font-size: 8px;
  }

  .hero-meta span + span {
    margin-left: 14px;
    padding-left: 14px;
  }

  .hero-visual {
    height: 380px;
  }

  .hero-foot-year {
    display: none;
  }

  .display {
    font-size: clamp(2.2rem, 9.4vw, 3rem);
  }

  .display--lg {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .display--xl {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .intro-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .signature-role {
    text-align: left;
  }

  .service-row {
    grid-template-columns: 26px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .service-name {
    font-size: 1.8rem;
  }

  .service-arrow {
    width: 34px;
    height: 34px;
  }

  .service-arrow svg {
    width: 15px;
    height: 15px;
  }

  .projects-count {
    font-size: 9px;
  }

  .about-quote {
    padding: 18px 18px 16px;
  }

  .about-quote p {
    font-size: 17px;
  }

  .contact-item {
    grid-template-columns: 72px minmax(0, 1fr) 36px;
    gap: 12px;
  }

  .contact-value {
    font-size: 14px;
  }

  .form-foot .btn {
    width: 100%;
    justify-content: space-between;
  }

  .lightbox-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-foot {
    flex-direction: column;
  }

  .mobile-note {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   19. Reduced motion & hover capabilities
   -------------------------------------------------------------------------- */

@media (hover: none) {
  .service-preview {
    display: none;
  }

  .project-media::after,
  .project-overlay {
    opacity: 1;
  }

  .project-overlay {
    transform: none;
  }

  .project-media img {
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
    transform: none;
  }

  .hero-media,
  .hero-media img,
  .hero-frame,
  .hero-badge,
  .hero-caption {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  [data-reveal],
  .word__in {
    opacity: 1 !important;
    transform: none !important;
  }

  .media-mask img {
    transform: none !important;
  }
}
