:root {
  --ink: #1d1b17;
  --muted: #6f6a61;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: rgba(29, 27, 23, 0.14);
  --wood: #9b7651;
  --moss: #667463;
  --clay: #b36f54;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: #fff;
}

.site-header.solid {
  position: relative;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(118px, 14vw, 174px);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.92rem;
}

nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

nav a:hover,
nav a[aria-current="page"] {
  border-color: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) clamp(34px, 8vh, 86px);
  color: #fff;
}

.hero-media,
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  object-fit: contain;
  background: #111;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 13, 10, 0.7), rgba(12, 13, 10, 0.3) 48%, rgba(12, 13, 10, 0.06));
}

.hero-content {
  position: relative;
  width: min(860px, 100%);
  padding-bottom: 5vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: none;
  margin: 20px 0 30px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 13px 22px;
  font-weight: 760;
}

.button.primary {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.button.dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button.light {
  color: var(--ink);
  background: transparent;
}

.instagram-link {
  gap: 10px;
}

.instagram-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.intro h2,
.contact h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 4.5vw, 4.7rem);
  line-height: 1;
}

.intro > p,
.intro-process {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.intro-process {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.intro-process div {
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--line);
}

.intro-process div:first-child {
  padding-top: 0;
  border-top: 0;
}

.intro-process h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.1;
}

.intro-process p {
  margin: 0;
  max-width: 640px;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee-right 28s linear infinite;
}

.marquee span {
  flex: 0 0 auto;
  padding: 17px 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 720;
}

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

.featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--paper);
}

.project-preview {
  position: relative;
  min-height: 54vw;
  max-height: 760px;
  overflow: hidden;
  background: #ddd;
}

.project-preview img,
.project-card img,
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-preview:hover img,
.project-card:hover img {
  transform: scale(1.035);
}

.featured .project-preview:hover img {
  transform: none;
}

.project-preview span {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 760;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.featured-action {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px) 20px clamp(48px, 7vw, 86px);
  background: var(--paper);
}

.contact {
  background: #fff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: end;
  align-items: center;
}

.email-status {
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page {
  padding-bottom: 80px;
}

.page-heading {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(56px, 6vw, 78px);
}

.page-heading h1 {
  max-width: 1100px;
  font-size: clamp(2.8rem, 7vw, 7.8rem);
}

.page-heading .eyebrow + h1 {
  max-width: 980px;
  font-size: clamp(2.1rem, 4.8vw, 5.2rem);
  line-height: 1;
}

.page-heading .realisations-title {
  width: 100%;
  max-width: none;
  font-size: clamp(1.9rem, 4.05vw, 4.3rem);
  line-height: 1.02;
}

.page-heading .realisations-title span {
  display: block;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  cursor: pointer;
  overflow: hidden;
}

.project-card.large img {
  aspect-ratio: 16 / 10;
  display: block;
}

.project-card div {
  min-height: 180px;
  padding: clamp(20px, 4vw, 38px);
}

.project-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1;
}

.project-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.project-link-label {
  display: inline-flex;
  margin-top: 18px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 760;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(60px, 9vw, 112px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 76px);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 5.4rem);
  line-height: 0.96;
}

.project-hero p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.project-text-block {
  margin-top: clamp(28px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-text-block strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-text-block p {
  margin: 0;
  max-width: 580px;
}

.before-after-trigger {
  margin-top: 28px;
}

.project-composition {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(112px, 11vw);
  gap: clamp(8px, 1.1vw, 14px);
}

.project-composition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ddd;
}

.project-composition video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ddd;
}

.project-composition img.portrait-shot {
  grid-column: span 2;
  grid-row: span 3;
  object-fit: cover;
  background: #ddd;
}

.project-composition img.portrait-medium {
  grid-column: span 2;
  grid-row: span 3;
  object-fit: cover;
  object-position: center center;
  background: #ddd;
}

.project-composition .main-shot {
  grid-column: span 4;
  grid-row: span 3;
}

.project-composition img:not(.main-shot) {
  grid-column: span 2;
}

.project-composition video:not(.main-shot) {
  grid-column: span 2;
}

.project-composition img:nth-child(2),
.project-composition img:nth-child(5),
.project-composition video:nth-child(5) {
  grid-row: span 2;
}

.project-composition.cuisine-composition .main-shot {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.project-composition.cuisine-composition > :nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.project-composition.cuisine-composition > :nth-child(3) {
  grid-column: 1 / 4;
  grid-row: 3 / 5;
}

.project-composition.cuisine-composition > :nth-child(4) {
  grid-column: 4 / 7;
  grid-row: 3 / 5;
}

.project-composition.cuisine-composition > :nth-child(5) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
}

.project-composition.amenagement-composition .main-shot {
  object-fit: cover;
  object-position: center center;
}

.project-composition.kids-composition > .wide-full-shot {
  grid-column: span 4;
  grid-row: span 2;
  object-fit: contain;
  background: var(--paper);
}

.project-composition.mobilier-composition > .wide-main-shot {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
  object-fit: contain;
  background: var(--paper);
}

.project-composition.mobilier-composition > .wide-detail-shot {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  object-fit: contain;
  background: var(--paper);
}

.project-composition.mobilier-composition {
  grid-auto-rows: minmax(112px, 11vw);
  gap: clamp(8px, 1.1vw, 14px);
  grid-auto-flow: row;
  align-content: start;
}

.project-composition.mobilier-composition > :nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.project-composition.mobilier-composition > .framed-detail-shot {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
  object-fit: cover;
  object-position: center center;
  background: #ddd;
}

.project-composition.mobilier-composition > :nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 3 / 5;
}

.project-composition.mieux-composition .main-shot {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.project-composition.mieux-composition > .portrait-shot {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.project-composition.mieux-composition > .small-detail-shot {
  grid-column: 5 / 7;
  grid-row: 3 / 5;
  object-fit: cover;
  object-position: center center;
}

.project-composition.mieux-composition > .large-detail-shot {
  grid-column: 2 / 5;
  grid-row: 3 / 6;
  object-fit: contain;
  object-position: center center;
  background: var(--paper);
  padding: clamp(10px, 1.2vw, 18px);
}

.project-composition.domenech-composition > .wide-detail-shot {
  grid-column: span 4;
  grid-row: span 2;
  object-fit: cover;
  object-position: center center;
}

.project-composition.dressing-domenech-composition > .handle-detail-shot {
  object-fit: cover;
  object-position: center center;
  background: #ddd;
}

.project-composition.david-composition > .small-detail-shot {
  grid-column: span 2;
  grid-row: span 1;
  object-fit: contain;
  background: var(--paper);
}

.project-composition.bureau-musical-2-composition .main-shot {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.project-composition.bureau-musical-2-composition > :nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}

.project-composition.bureau-musical-2-composition > :nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
}

.project-composition.bureau-musical-2-composition > :nth-child(4) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
}

.project-composition.bureau-musical-2-composition > :nth-child(5) {
  grid-column: 5 / 7;
  grid-row: 3 / 5;
}

.project-composition.bureau-musical-2-composition > :nth-child(6) {
  grid-column: 1 / 4;
  grid-row: 5 / 7;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.project-gallery img {
  aspect-ratio: 16 / 11;
  background: #ddd;
}

.project-gallery img.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
}

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: #fff;
}

.mobile-before-after-action {
  display: none;
}

.next-project strong {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.before-after-modal {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: 0 24px 80px rgba(29, 27, 23, 0.35);
}

.before-after-modal::backdrop {
  background: rgba(12, 13, 10, 0.62);
}

.before-after-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.before-after-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.before-after-grid figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.before-after-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}

.before-after-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(29, 27, 23, 0.78);
  font-weight: 760;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

  nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero p:not(.eyebrow) {
    white-space: normal;
  }

  .intro,
  .contact,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .page {
    padding-bottom: 0;
  }

  .page-heading .realisations-title span {
    white-space: normal;
  }

  .site-header.solid {
    padding: 14px 16px;
  }

  .site-header.solid .brand {
    width: 92px;
  }

  .project-hero {
    display: flex;
    min-height: calc(100svh - 58px);
    gap: 0;
    padding: 0;
    flex-direction: column;
  }

  .project-copy {
    flex: 0 0 auto;
    padding: 18px 16px 16px;
  }

  .project-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .project-hero p {
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.38;
  }

  .project-text-block {
    margin-top: 14px;
    padding-top: 14px;
  }

  .before-after-trigger {
    margin-top: 14px;
  }

  .project-composition,
  .project-composition.cuisine-composition {
    display: flex;
    flex: 1 1 auto;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    min-height: 0;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
  }

  .project-composition > *,
  .project-composition.cuisine-composition > * {
    flex: 0 0 100vw;
    width: 100vw;
    height: auto;
    min-height: 100%;
    scroll-snap-align: start;
  }

  .project-composition .main-shot,
  .project-composition.cuisine-composition .main-shot {
    flex-basis: 100vw;
    width: 100vw;
    height: auto;
    min-height: 100%;
  }

  .project-composition img,
  .project-composition video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .before-after-header,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .before-after-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .before-after-grid img {
    height: 100%;
  }

  .featured,
  .project-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-card {
    position: relative;
    min-height: min(92svh, 760px);
    overflow: hidden;
    background: var(--ink);
  }

  .project-card.large img {
    width: 100%;
    height: min(92svh, 760px);
    aspect-ratio: auto;
    object-fit: cover;
  }

  .project-card div {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 0;
    padding: 72px 18px 20px;
    color: #fff;
    background: linear-gradient(0deg, rgba(12, 13, 10, 0.9), rgba(12, 13, 10, 0.52) 68%, rgba(12, 13, 10, 0));
  }

  .project-card h2 {
    color: #fff;
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .project-card p {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .project-link-label {
    color: #fff;
    border-color: #fff;
  }

  .project-preview {
    min-height: 78vw;
  }

  .project-gallery img.wide {
    aspect-ratio: 4 / 3;
  }

  footer,
  .next-project {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-project {
    padding: 24px 16px 30px;
  }
}

@media (max-width: 1100px) {
  .site-header.solid {
    min-height: 56px;
    padding: 12px 16px;
  }

  .site-header.solid .brand {
    width: 88px;
  }

  .site-header.solid nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .page {
    padding-bottom: 0;
  }

  .project-hero {
    position: relative;
    display: block;
    min-height: calc(100svh - 56px);
    height: auto;
    overflow: visible;
    padding: 0;
    background: var(--ink);
  }

  .project-copy {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: calc(100svh - 56px);
    bottom: auto;
    transform: translateY(-100%);
    padding: 78px 18px 18px;
    color: #fff;
    background: linear-gradient(0deg, rgba(12, 13, 10, 0.88), rgba(12, 13, 10, 0.52) 62%, rgba(12, 13, 10, 0));
  }

  .project-copy .eyebrow,
  .project-copy p,
  .project-text-block p {
    color: rgba(255, 255, 255, 0.86);
  }

  .project-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 10vw, 3.8rem);
    line-height: 0.94;
  }

  .project-hero p {
    max-width: 38rem;
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .project-text-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top-color: rgba(255, 255, 255, 0.26);
  }

  .project-text-block strong {
    color: #fff;
  }

  .before-after-trigger {
    margin-top: 14px;
    color: #fff;
    background: transparent;
  }

  .project-composition,
  .project-composition.cuisine-composition {
    position: relative;
    z-index: 1;
    display: block;
    gap: 0;
    width: 100vw;
    height: auto;
    overflow: visible;
    overscroll-behavior-x: contain;
    scroll-snap-type: y mandatory;
  }

  .project-composition > *,
  .project-composition.cuisine-composition > *,
  .project-composition .main-shot,
  .project-composition.cuisine-composition .main-shot {
    display: block;
    width: 100vw;
    height: calc(100svh - 56px);
    min-height: calc(100svh - 56px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .project-composition .main-shot,
  .project-composition.cuisine-composition .main-shot {
    order: 20;
  }

  .project-composition img,
  .project-composition video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .next-project {
    min-height: 34svh;
    padding: 28px 18px;
  }

  .mobile-before-after-action {
    display: block;
    padding: 22px 18px;
    background: var(--paper);
  }

  .mobile-before-after-action .button {
    width: 100%;
  }
}
