:root {
  --background: #f6f5f2;
  --ink: #120c26;
  --project-text: #120c26;
  --accent: #352270;
  --muted: #a6a8ad;
  --rule: rgba(18, 12, 38, 0.14);
  --archive-rule: rgba(53, 34, 112, 0.44);
  --archive-gutter: clamp(8px, 1.1vw, 14px);
  --case-gap: clamp(70px, 11vw, 148px);
  --case-image-gutter: 14px;
  --case-side-margin: clamp(24px, 4vw, 48px);
  --project-copy-margin: 250px;
  --project-photo-margin: 48px;
  --page-pad: clamp(18px, 3vw, 48px);
  --nav-height: 54px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.anchor-jump-pending body {
  opacity: 0;
}

body {
  margin: 0;
  background: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='4' seed='31' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .0706 0 0 0 0 .0471 0 0 0 0 .149 0 0 0 .018 0'/%3E%3C/filter%3E%3Crect width='640' height='640' filter='url(%23paper)' opacity='.11'/%3E%3C/svg%3E");
  background-size: 640px 640px;
  color: var(--ink);
  font-family: "Assistant", system-ui, sans-serif;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site-nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(80vw, calc(100% - (var(--page-pad) * 2)));
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(34px, 6vw, 72px);
  align-items: center;
  min-height: var(--nav-height);
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(18, 12, 38, 0.075);
  border-radius: 999px;
  direction: ltr;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: clamp(96px, 8.6vw, 132px);
  height: auto;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 4vw, 48px);
  color: rgba(18, 12, 38, 0.68);
  font-size: 14px;
  font-weight: 400;
  direction: rtl;
}

.nav-links a {
  position: relative;
  color: rgba(18, 12, 38, 0.72);
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.82);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-page .nav-links a.is-active {
  color: rgba(18, 12, 38, 0.72);
}

.project-page .nav-links a.is-active::after {
  opacity: 0;
  transform: scaleX(0.82);
}

.project-page .nav-links a:hover {
  color: var(--accent);
}

.project-page .nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: auto;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 900;
  max-height: 100svh;
  overflow: hidden;
  background: #f3f3f4;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 760ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero-project-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  cursor: pointer;
}

.hero-caption {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: clamp(28px, 4vw, 56px);
  max-width: min(420px, 78vw);
  color: var(--ink);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(18, 12, 38, 0.16), 0 10px 28px rgba(18, 12, 38, 0.14);
}

.hero-caption h1 {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-caption p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 400;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: var(--page-pad);
  bottom: clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 16px;
  direction: ltr;
}

.hero-controls button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: rgba(166, 168, 173, 0.78);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(166, 168, 173, 0.34);
  cursor: pointer;
  font-size: 12px;
  line-height: 30px;
  text-shadow: 0 1px 2px rgba(18, 12, 38, 0.12), 0 8px 20px rgba(18, 12, 38, 0.1);
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-controls button:hover,
.hero-controls button.is-active {
  color: var(--muted);
  border-color: var(--muted);
}

.case-study {
  padding: 0 0 clamp(96px, 14vw, 190px);
  background: var(--background);
  color: var(--ink);
  overflow: hidden;
}

.project-page .case-study {
  padding-top: var(--case-gap);
  padding-bottom: 0;
}

.case-study figure {
  margin: 0;
}

.case-study img {
  display: block;
  width: 100%;
}

.case-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 130px;
}

.case-logo img {
  width: clamp(140px, 13vw, 230px);
  max-width: calc(100vw - clamp(42px, 8vw, 160px));
  height: auto;
}

.case-preview-kicker {
  width: min(860px, calc(100vw - (var(--case-side-margin) * 2)));
  margin: calc(var(--case-gap) * -0.45) auto clamp(22px, 3vw, 42px);
  color: var(--ink);
  direction: rtl;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.case-preview-action {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.case-preview {
  padding-bottom: 0;
}

.case-preview .case-preview-action {
  margin-bottom: 0;
}

.case-preview .case-collage {
  margin-bottom: 70px;
}

.case-preview + .site-footer {
  margin-top: 70px;
}

.case-preview-action .archive-link {
  margin-top: 0;
  min-height: 38px;
  padding: 0 20px;
  font-size: 15.5px;
}

.project-next-action,
.project-nav-pager {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 var(--case-side-margin);
  box-sizing: border-box;
  text-align: center;
}

.project-next-link,
.project-pager-link {
  margin-top: 0;
  min-height: 38px;
  padding: 0 20px;
  font-size: 15.5px;
}

.project-nav-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  direction: ltr;
}

.project-pager-link {
  min-width: clamp(128px, 12vw, 168px);
  direction: rtl;
  text-align: center;
}

.project-pager-prev {
  grid-column: 2;
  justify-self: end;
  margin-top: 0;
  align-self: center;
}

.project-pager-next {
  grid-column: 1;
  justify-self: start;
  margin-top: 0;
  align-self: center;
}

/* Règle commune à tous les blocs texte des pages projet */
.project-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  color: #120c26;
  direction: rtl;
  text-align: right;
}
.project-copy h2 { margin: 0 0 32px; font-family: "Rubik"; font-size: clamp(26px, 3vw, 48px); font-weight: 700; }
.project-copy p { max-width: 100%; margin: 0; font-family: "Assistant"; font-size: clamp(18px, 1.8vw, 28px); line-height: 1.6; }
.project-copy p + p { margin-top: 24px; }

.simple-project {
  padding-top: clamp(150px, 18vw, 260px);
}

.project-logo-hero {
  width: min(760px, calc(100vw - (var(--case-side-margin) * 2)));
  margin: 0 auto clamp(58px, 7vw, 104px);
  padding: 180px 0 0;
}

.project-logo-hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.project-logo-hero-hadion {
  width: min(280px, calc(100vw - (var(--case-side-margin) * 2)));
  padding-top: 207px;
}

.hadion-project {
  padding-top: 0 !important;
  --hadion-section-gap: 130px;
  --hadion-grid-gap: 18px;
}

.hadion-project .project-logo-hero-hadion {
  margin-bottom: var(--hadion-section-gap);
}

.hadion-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hadion-grid-gap);
  margin: 0 auto;
  padding-bottom: var(--hadion-section-gap);
  direction: ltr;
}

.hadion-photo-grid figure {
  margin: 0;
  overflow: hidden;
  background: #16110f;
}

.hadion-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hadion-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  padding-bottom: var(--hadion-section-gap);
  color: #120c26;
  direction: rtl;
  text-align: right;
}

.hadion-copy h1 {
  margin: 0 0 clamp(28px, 3.2vw, 52px);
  color: #120c26;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.hadion-copy p {
  max-width: 100%;
  margin: 0;
  color: #120c26;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 400;
  line-height: 1.5;
}

.hadion-copy p + p {
  margin-top: clamp(18px, 2vw, 32px);
}

.hadion-copy:has(+ .hadion-wide-visual) {
  padding-bottom: 130px;
}

.hadion-wide-visual {
  margin: 0 auto;
  padding-bottom: 130px;
  direction: ltr;
  text-align: initial;
}

.hadion-wide-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.hadion-poster-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hadion-grid-gap);
  margin: 0 auto;
  padding-bottom: var(--hadion-section-gap);
  direction: ltr;
}

.hadion-poster-pair figure {
  margin: 0;
  overflow: hidden;
}

.hadion-poster-pair img {
  display: block;
  width: 100%;
  height: auto;
}

.hadion-card-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--hadion-grid-gap);
  margin: 0 auto;
  padding-bottom: var(--hadion-section-gap);
  direction: ltr;
}

.hadion-card-pair figure {
  margin: 0;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hadion-card-pair figure:first-child {
  overflow: visible;
}

.hadion-card-pair figure:first-child img {
  width: 68%;
}

.hadion-card-pair figure:last-child {
  align-items: flex-end;
  overflow: visible;
}

.hadion-card-pair figure:last-child img {
  width: 82%;
}

.hadion-card-pair img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(18, 12, 38, 0.08));
}

.hadion-single-visual {
  margin: 0 auto;
  padding-bottom: var(--hadion-section-gap);
  direction: ltr;
  text-align: initial;
}

.hadion-single-visual img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hadion-final-visual {
  margin: 0 auto;
  padding-bottom: 130px;
  direction: ltr;
  text-align: initial;
}

.hadion-final-visual img,
.hadion-final-visual.project-media img {
  display: block;
  width: 60%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 24px rgba(18, 12, 38, 0.035));
}

.simple-project-hero {
  width: min(1120px, calc(100vw - (var(--case-side-margin) * 2)));
  margin: 0 auto 130px;
  color: #120c26;
  direction: rtl;
  text-align: right;
}

.simple-project-hero span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.simple-project-hero h1 {
  margin: 0;
  color: #120c26;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.simple-project-hero p {
  max-width: 760px;
  margin: clamp(24px, 3vw, 44px) 0 0 auto;
  color: #120c26;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.36;
}

.simple-project-hero-quiet {
  margin-bottom: clamp(54px, 7vw, 104px);
}


.project-media {
  width: 100%;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  box-sizing: border-box;
}

.project-media img,
.project-media svg {
  width: 100%;
  display: block;
}

.case-collage {
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: var(--case-image-gutter);
  margin: 0 auto 130px;
  direction: ltr;
}

.case-collage figure {
  overflow: hidden;
  background: #f4f2ef;
}

.case-collage img {
  height: 100%;
  object-fit: cover;
}

.case-collage-drink {
  grid-column: 1;
  grid-row: 1;
  height: clamp(330px, 27vw, 520px);
}

.case-collage-drink img {
  object-position: 70% 46%;
}

.case-collage-brochure {
  grid-column: 1;
  grid-row: 2;
  height: clamp(330px, 27vw, 520px);
}

.case-collage-tote {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: calc((clamp(330px, 27vw, 520px) * 2) + var(--case-image-gutter));
}

.case-collage-tote img {
  object-position: 50% 68%;
}

.case-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  margin-bottom: 130px;
  color: #120c26;
  text-align: right;
  direction: rtl;
}

#full-project {
  scroll-margin-top: 45vh;
}

.case-copy h2 {
  margin: 0 0 clamp(28px, 3.2vw, 52px);
  color: #120c26;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.case-copy p {
  max-width: 100%;
  margin: 0;
  color: #120c26;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 400;
  line-height: 1.5;
}

.case-copy p + p {
  margin-top: clamp(18px, 2vw, 32px);
}

.case-wide-visual {
  max-width: none;
  margin: 0 auto;
  padding-bottom: 130px;
  direction: ltr;
  text-align: initial;
}

.case-wide-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.case-photo-visual {
  margin: 0 auto;
  padding-bottom: 130px;
  direction: ltr;
  text-align: initial;
}

.case-before-final {
  padding-bottom: 48px;
}

.case-photo-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.case-closing-logos img {
  width: 100%;
  max-width: none;
}

.case-final-signature img {
  width: min(100%, clamp(360px, 42vw, 680px));
}

.case-final-signature {
  padding-bottom: 28px;
}

.has-reveal .reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-reveal .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.archive {
  padding: clamp(54px, 7vw, 104px) var(--page-pad) clamp(70px, 11vw, 148px);
}

.archive-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  margin-bottom: clamp(56px, 7vw, 102px);
}

.archive-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.archive-heading h2 {
  grid-column: 1;
  margin: 0;
  max-width: none;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  font-size: clamp(28px, 4.15vw, 64px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.work-index-page .archive-heading {
  display: block;
}

.work-index-page .archive-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.work-index-page .archive-heading p {
  margin: clamp(14px, 1.8vw, 24px) 0 0;
  color: rgba(18, 12, 38, 0.72);
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.35;
}

.project-index-list {
  border-bottom: 1px solid rgba(18, 12, 38, 0.48);
}

.project-index-row {
  display: grid;
  grid-template-columns: minmax(260px, 32vw) minmax(0, 1fr) clamp(34px, 4vw, 62px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 44px) 0;
  border-top: 1px solid rgba(18, 12, 38, 0.48);
  color: var(--ink);
  direction: ltr;
}

.project-index-row figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f4f2ef;
}

.project-index-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-index-row img.project-index-image-contain {
  object-fit: contain;
  object-position: center;
}

.project-index-row img.project-index-image-razit {
  object-fit: cover;
  object-position: center 46%;
}

.project-index-row img.project-index-image-hadion {
  object-position: center 72%;
}

.project-index-row img.project-index-image-kido {
  object-position: 96% center;
}

.project-index-row figure.figure-sounds {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0ede8;
}

.project-index-row img.project-index-image-sounds {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: unset;
}

.project-index-copy {
  direction: rtl;
  text-align: right;
}

.project-index-copy span {
  display: block;
  margin-bottom: clamp(16px, 2vw, 28px);
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
}

.project-index-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(34px, 4.7vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.project-index-copy p {
  max-width: 620px;
  margin: clamp(14px, 1.5vw, 22px) 0 0 auto;
  color: rgba(18, 12, 38, 0.68);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.42;
}

.project-index-arrow {
  justify-self: end;
  color: var(--ink);
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 300;
  line-height: 0.84;
  transform: translateY(-4px);
  transition: color 180ms ease, transform 180ms ease;
}

.project-index-row:hover .project-index-arrow,
.project-index-row:focus-visible .project-index-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.project-index-row:hover img,
.project-index-row:focus-visible img {
  transform: scale(1.018);
}

.project-index-row:hover h3,
.project-index-row:focus-visible h3 {
  color: var(--accent);
}

.archive-spreads {
  border-bottom: 1px solid var(--archive-rule);
}

.archive-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) 1px minmax(0, 0.93fr) minmax(0, 0.93fr);
  gap: var(--archive-gutter);
  padding: var(--archive-gutter) 0;
  direction: rtl;
}

.archive-spread::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--archive-rule);
}

.archive-spread::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 100%;
  background: var(--archive-rule);
}

.archive-text,
.archive-image {
  position: relative;
  min-width: 0;
}

.archive-text {
  grid-column: 1;
  padding: 0;
}

.archive-image {
  padding: 0;
}

.archive-text + .archive-image {
  grid-column: 3;
}

.archive-image + .archive-image {
  grid-column: 4;
}

.archive-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(72px, 9vw, 150px);
  color: var(--muted);
  font-size: 14px;
}

.archive-meta span {
  direction: ltr;
}

.archive-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.archive-text h3 {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
}

.archive-text > p {
  max-width: 360px;
  margin: clamp(18px, 2.4vw, 32px) 0 0;
  color: rgba(18, 12, 38, 0.76);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.45;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(16px, 2vw, 26px);
  min-height: 34px;
  padding: 0 18px;
  color: var(--accent);
  border: 1px solid rgba(53, 34, 112, 0.42);
  border-radius: 999px;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.archive-link::before,
.archive-link::after {
  content: none;
}

.archive-link:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Pager buttons — override .archive-link margin-top (placed after .archive-link to win cascade) */
.project-pager-prev,
.project-pager-next {
  margin-top: 0;
  align-self: center;
}

.archive-image {
  margin: 0;
  height: clamp(420px, 48vw, 760px);
  overflow: hidden;
}

.archive-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-footer {
  margin-top: clamp(48px, 7vw, 92px);
  padding: clamp(34px, 5vw, 58px) var(--page-pad) clamp(26px, 3.5vw, 42px);
  color: #ffffff;
  background: var(--ink);
}

.project-page .site-footer {
  margin-top: 70px;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2vw, 26px);
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: block;
  width: clamp(96px, 8vw, 130px);
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(10px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.35;
}

.footer-contact a:not(:last-child)::after {
  content: "·";
  margin-inline-start: clamp(10px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.42);
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-nav {
    top: 12px;
    width: min(80vw, calc(100% - 28px));
    grid-template-columns: auto 1fr;
    gap: 22px;
    min-height: 50px;
    padding: 0 14px;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
  }

  .nav-links {
    display: flex;
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    padding: 0;
  }

  .hero-caption {
    right: 18px;
    bottom: 72px;
    max-width: calc(100% - 36px);
  }

  .hero-controls {
    right: 18px;
    left: auto;
    bottom: 26px;
  }

  .case-study {
    padding-top: 0;
  }

  .case-collage,
  .case-photo-visual {
    margin-bottom: 130px;
  }

  .case-before-final,
  .case-final-signature {
    margin-bottom: 0;
  }

  .case-copy {
    margin-left: var(--project-copy-margin);
    margin-right: var(--project-copy-margin);
  }

  .case-copy h2 {
    font-size: clamp(30px, 7vw, 46px);
  }

  .case-copy p {
    font-size: clamp(20px, 5vw, 28px);
  }

  .hadion-project {
    --hadion-section-gap: 130px;
    --hadion-grid-gap: 18px;
  }

  .archive-heading {
    display: block;
  }

  .archive-heading p {
    margin-bottom: 24px;
  }

  .project-index-row {
    grid-template-columns: minmax(210px, 38vw) minmax(0, 1fr) 34px;
    gap: 22px;
  }

  .project-index-copy h3 {
    font-size: clamp(30px, 5.8vw, 48px);
  }

  .project-index-copy p {
    font-size: 16px;
  }

  .project-index-arrow {
    font-size: 44px;
  }

  .archive-spread {
    grid-template-columns: minmax(210px, 0.92fr) 1px minmax(0, 0.9fr) minmax(0, 0.9fr);
  }

  .archive-text,
  .archive-image {
    padding: 0;
  }

  .archive-meta {
    margin-bottom: 48px;
  }

  .archive-text h3 {
    font-size: clamp(34px, 6.2vw, 50px);
  }

  .archive-text > p {
    font-size: 16px;
    line-height: 1.42;
  }

  .archive-image {
    height: clamp(280px, 48vw, 440px);
  }

  .footer-contact {
    gap: 6px 14px;
  }
}

@media (max-width: 520px) {
  :root {
    --page-pad: 14px;
    --archive-gutter: 8px;
    --case-side-margin: 22px;
  }

  .site-nav {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
  }

  .brand {
    font-size: 14px;
  }

  .hero-caption h1 {
    font-size: 24px;
  }

  .hero-controls {
    gap: 10px;
  }

  .hero-controls button {
    width: 26px;
  }

  .hadion-photo-grid {
    grid-template-columns: 1fr;
  }

  .hadion-poster-pair {
    grid-template-columns: 1fr;
  }

  .hadion-card-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .project-index-row {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 16px;
  }

  .project-index-row figure {
    grid-column: 1 / -1;
  }

  .project-index-copy {
    grid-column: 1;
  }

  .project-index-copy span {
    margin-bottom: 12px;
  }

  .project-index-copy h3 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .project-index-copy p {
    font-size: 15px;
  }

  .project-index-arrow {
    grid-column: 2;
    align-self: start;
    font-size: 34px;
  }

  .archive-spread {
    grid-template-columns: minmax(150px, 0.92fr) 1px minmax(0, 0.88fr) minmax(0, 0.88fr);
  }

  .archive-text,
  .archive-image {
    padding: 0;
  }

  .archive-meta {
    gap: 16px;
    margin-bottom: 26px;
    font-size: 12px;
  }

  .archive-meta p {
    font-size: 13px;
  }

  .archive-text h3 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .archive-text > p {
    font-size: 13px;
    line-height: 1.35;
  }

  .archive-image {
    height: clamp(210px, 54vw, 320px);
  }
}

/* ===== RAZIT PROJECT ===== */

.razit-project {
  padding-top: 0 !important;
}

.project-logo-hero-razit {
  width: min(480px, calc(100vw - (var(--case-side-margin) * 2)));
  padding-top: 207px;
}

.kido-project {
  padding-top: 0 !important;
}

.project-logo-hero-kido {
  width: min(320px, calc(100vw - (var(--case-side-margin) * 2)));
  padding-top: 207px;
  margin-bottom: 130px;
}

.kido-photo-pair {
  display: grid;
  grid-template-columns: 1249fr 666fr;
  direction: ltr;
  gap: 18px;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-top: 0;
  padding-bottom: 130px;
  box-sizing: border-box;
}

.kido-photo-pair figure {
  margin: 0;
  padding: 0;
}

.kido-photo-pair figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.razit-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  padding-bottom: 130px;
  color: #120c26;
  direction: rtl;
  text-align: right;
}

.razit-copy h2 {
  margin: 0 0 32px;
  color: #120c26;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
  line-height: 1.14;
}

.razit-copy p {
  max-width: 100%;
  margin: 0;
  color: #120c26;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.6;
}

.razit-copy p + p {
  margin-top: 24px;
}

.razit-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 auto;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-bottom: 130px;
  box-sizing: border-box;
  direction: ltr;
}

.razit-photo-pair figure {
  margin: 0;
  overflow: hidden;
}

.razit-photo-pair img {
  display: block;
  width: 100%;
  height: auto;
}

.razit-video-section {
  margin: 0 auto;
  padding-bottom: 130px;
  text-align: center;
}

.razit-video-section video {
  display: inline-block;
  width: 29%;
  max-width: 520px;
  height: auto;
  border-radius: 24px;
}

.razit-single-visual {
  margin: 0 auto;
  padding-bottom: 130px;
  direction: ltr;
  text-align: center;
}

.razit-single-visual img {
  display: inline-block;
  width: 30%;
  max-width: 540px;
  height: auto;
}

.razit-photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin: 0 auto;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-bottom: 130px;
  box-sizing: border-box;
  direction: ltr;
}

.razit-photo-trio figure {
  margin: 0;
  overflow: hidden;
}

.razit-photo-trio img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}


/* ===== SOUNDS BETWEEN HOMES PROJECT ===== */

.sounds-project {
  padding-top: 0 !important;
}

.project-logo-hero-sounds {
  width: min(900px, calc(100vw - (var(--case-side-margin) * 2)));
  padding-top: 112px;
}

.sounds-video-section {
  margin: 0 auto;
  padding-bottom: 130px;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  box-sizing: border-box;
  text-align: center;
}

.sounds-video-section video {
  display: inline-block;
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 12px;
}

.sounds-wide-visual {
  margin: 0;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-bottom: 130px;
  box-sizing: border-box;
}

.sounds-wide-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sounds-cinematic-section {
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-bottom: 130px;
  box-sizing: border-box;
  text-align: center;
}

.sounds-cinematic-video {
  display: inline-block;
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 8px;
}

.sounds-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-left: var(--project-photo-margin);
  padding-right: var(--project-photo-margin);
  padding-bottom: 130px;
  box-sizing: border-box;
  direction: ltr;
}

.sounds-photo-pair figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sounds-photo-pair figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* First photo pair: equal height, crop top+bottom on both images */
.sounds-photo-pair--crop-top {
  align-items: stretch;
}

.sounds-photo-pair--crop-top figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;   /* forces identical height on both columns */
}

.sounds-photo-pair--crop-top figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 78%;  /* shows lower portion, crops more from top */
  margin-top: 0;
  border-radius: 4px;
}

.sounds-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  padding-bottom: 130px;
  color: #120c26;
  direction: rtl;
  text-align: right;
}

.sounds-copy h2 {
  margin: 0 0 32px;
  font-family: "Rubik";
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
}

.sounds-copy p {
  max-width: 100%;
  margin: 0;
  font-family: "Assistant";
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.6;
}

.sounds-copy p + p {
  margin-top: 24px;
}

/* ── Pager alignment final fix (toujours en dernier pour gagner la cascade) ──
   Remplace le grid par flex + force margin-top:0 avec !important
   pour contourner toute règle d'archive-link ou autre qui s'appliquerait */
.project-nav-pager {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.project-pager-prev {
  order: 2;
  margin-top: 0 !important;
  align-self: center;
}
.project-pager-next {
  order: 1;
  margin-top: 0 !important;
  align-self: center;
}

/* BATIM — espace réduit entre open-booklet et building-flyer */
.case-book-before-flyer { padding-bottom: 50px; }

/* HADION — exception 50px entre illustrations-1, texte, illustrations-2 */
.hadion-illus-before-copy { padding-bottom: 50px; }
.hadion-copy.hadion-copy-body { padding-bottom: 50px; }
.hadion-copy.hadion-copy-before-illus { padding-bottom: 50px; }
.hadion-illus-after-copy { padding-bottom: 50px; }

/* KIDO — section texte */
.kido-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  padding-bottom: 130px;
  color: #120c27;
  direction: rtl;
  text-align: right;
}

.kido-copy h1 {
  margin: 0 0 clamp(28px, 3.2vw, 52px);
  color: #120c27;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.kido-copy p {
  max-width: 100%;
  margin: 0;
  color: #120c27;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 400;
  line-height: 1.5;
}

.kido-copy p + p {
  margin-top: clamp(18px, 2vw, 32px);
}

/* KIDO — trio mockup (portrait gauche + 2 paysages empilés droite) */
.kido-mockup-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 0 var(--project-photo-margin) 130px;
  box-sizing: border-box;
}

.kido-mockup-left {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
}

.kido-mockup-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.kido-mockup-right {
  grid-column: 2;
  margin: 0;
  padding: 0;
}

.kido-mockup-right img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* KIDO — trio mockups mobile (3 téléphones alignés) */
.kido-mobile-trio {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 0 0 130px;
  box-sizing: border-box;
}

.kido-mobile-trio figure {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.kido-mobile-trio figure img {
  display: block;
  width: auto;
  height: 576px;
}

/* KIDO — pochette + livret flat côte à côte */
.kido-packaging-pair {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0 0 130px;
  box-sizing: border-box;
}

.kido-packaging-pouch,
.kido-packaging-booklet {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.kido-packaging-pouch img,
.kido-packaging-booklet img {
  display: block;
  width: auto;
  height: 580px;
}

/* KIDO — section vidéo */
.kido-video-section {
  padding: 0 var(--project-photo-margin) 130px;
  box-sizing: border-box;
}

.kido-video-section video {
  display: block;
  width: 100%;
  height: auto;
}

/* KIDO — livret seul pleine largeur */
.kido-booklet-wide {
  margin: 0;
  padding: 0 var(--project-photo-margin) 130px;
  box-sizing: border-box;
}

.kido-booklet-wide img {
  display: block;
  width: 100%;
  height: auto;
}

/* שירת הטבע — hero : centré, 130px sous le hero avant la section texte */
.nature-poetry-project .nature-poetry-hero {
  text-align: center;
  margin-bottom: 65px;
}
.nature-poetry-hero h1 {
  color: #7aaa88;
}

/* שירת הטבע — couverture réduite pour tenir above the fold */
.nature-poetry-book-cover {
  padding: 0 var(--project-photo-margin) 87px;
  box-sizing: border-box;
  text-align: center;
}
.nature-poetry-book-cover img {
  display: inline-block;
  vertical-align: bottom;
  max-height: calc(100vh - 280px);
  width: auto;
  max-width: 100%;
  transform: translateX(-2%);
}

/* שירת הטבע — espacement hero : 130px sous la toolbar */
.nature-poetry-project {
  padding-top: calc(var(--nav-height) + 18px + 130px);
}

/* שירת הטבע — titre plus compact et élégant */
.nature-poetry-hero h1 {
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 500;
  color: #7aaa88;
}

/* שירת הטבע — section texte */
.nature-poetry-copy {
  margin-left: var(--project-copy-margin);
  margin-right: var(--project-copy-margin);
  padding-bottom: 130px;
  color: #120c27;
  direction: rtl;
  text-align: right;
}

.nature-poetry-copy h2 {
  margin: 0 0 clamp(28px, 3.2vw, 52px);
  color: #120c27;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.nature-poetry-copy p {
  max-width: 100%;
  margin: 0;
  color: #120c27;
  font-family: "Assistant", system-ui, sans-serif;
  font-size: clamp(20px, 1.95vw, 30px);
  font-weight: 400;
  line-height: 1.5;
}

.nature-poetry-copy p + p {
  margin-top: clamp(18px, 2vw, 32px);
}

/* שירת הטבע — rapprochement entre deux photos consécutives */
.nature-poetry-close-gap {
  padding-bottom: 65px;
}

/* שירת הטבע — trio photos (grande gauche + 2 droite empilées) */
.nature-poetry-trio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 0 var(--project-photo-margin) 130px;
  box-sizing: border-box;
}

.nature-poetry-trio-left {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nature-poetry-trio-left img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nature-poetry-trio-right {
  grid-column: 2;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nature-poetry-trio-right img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* שירת הטבע — empreintes botaniques en mode Multiply */
.nature-poetry-leaves {
  background: transparent;
  mix-blend-mode: multiply;
}
.nature-poetry-leaves img {
  mix-blend-mode: multiply;
  background: transparent;
}
