/* The navigation unfolds along the same cut as the Articulation sign. */
body.menu-is-open {
  overflow: hidden;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
}
html {
  scroll-padding-top: 130px;
}
.site-header.nav-ready > nav {
  display: none;
}
.site-header .menu-toggle {
  display: none;
}
.site-header.nav-ready .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 13px 18px;
  border: 1px solid #54525e;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.site-header .menu-toggle span {
  font-size: 25px;
  color: var(--lavender);
}
.studio-menu:not([open]) {
  display: none;
}
.studio-menu {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  overflow: auto;
  color: var(--paper);
  background: var(--ink);
}
.studio-menu::backdrop {
  background: #101014;
}
.menu-top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 28px 56px;
  border-bottom: 1px solid var(--line);
}
.menu-brand {
  font-size: 24px;
  letter-spacing: -0.06em;
  font-weight: 600;
}
.menu-brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-top: 6px;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-close {
  background: none;
  border: 1px solid #54525e;
  padding: 8px 16px;
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 25px;
}
.menu-close span {
  font-size: 30px;
  color: var(--lavender);
}
.menu-layout {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: calc(100dvh - 112px);
}
.menu-main {
  padding: 42px 56px 30px;
  animation: menu-main-enter 600ms var(--ease) both;
}
.menu-main > .eyebrow {
  color: var(--muted);
  margin-bottom: 28px;
}
.menu-links {
  display: flex;
  flex-direction: column;
}
.menu-links a {
  display: grid;
  grid-template-columns: 30px 1fr 45px;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.menu-index {
  font-size: 11px;
  color: var(--muted);
}
.menu-name {
  font-size: clamp(36px, 4.4vw, 76px);
  line-height: 1.15;
  letter-spacing: -0.06em;
  transition:
    transform 400ms var(--ease),
    color 300ms;
}
.menu-arrow {
  font-size: 34px;
  opacity: 0;
  transform: translate(-10px, 8px);
  transition:
    transform 400ms var(--ease),
    opacity 300ms;
}
.menu-links a:hover .menu-name,
.menu-links a:focus-visible .menu-name {
  color: var(--lavender);
  transform: translateX(12px);
}
.menu-links a:hover .menu-arrow,
.menu-links a:focus-visible .menu-arrow {
  opacity: 1;
  transform: none;
}
.menu-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 35px;
  font-size: 12px;
  margin-top: 35px;
}
.menu-preview {
  background: var(--lavender);
  color: var(--ink);
  padding: 36px 40px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  animation: menu-panel-enter 750ms var(--ease) both;
}
.menu-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.menu-preview-top svg {
  width: 46px;
  height: 36px;
  fill: currentColor;
}
.menu-preview-title {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.menu-preview-image {
  overflow: hidden;
  background: #18161f;
  height: clamp(125px, 23vh, 240px);
}
.menu-preview-image img {
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.menu-preview-image img.expertise {
  padding: 8px;
  display: block;
  width: 100%;
  object-fit: contain;
}
.menu-preview-image img.studio {
  object-position: 50% 25%;
}
.menu-preview-caption {
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
}
.menu-location {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-top: 14px;
  border-top: 1px solid #9385b5;
}
.studio-menu.is-closing {
  animation: menu-exit 240ms ease-in both;
}
@keyframes menu-main-enter {
  from {
    opacity: 0.2;
    transform: translateX(-35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes menu-panel-enter {
  from {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transform: translateX(30px);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: none;
  }
}
@keyframes menu-exit {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
@media (max-width: 760px) {
  .menu-top {
    padding: 20px;
  }
  .menu-layout {
    display: block;
    min-height: 0;
  }
  .menu-main {
    padding: 30px 22px;
  }
  .menu-main > .eyebrow {
    font-size: 9px;
    margin-bottom: 20px;
  }
  .menu-links a {
    grid-template-columns: 20px 1fr 24px;
    gap: 12px;
    padding-block: 17px;
  }
  .menu-name {
    font-size: clamp(34px, 8vw, 54px);
  }
  .menu-arrow {
    opacity: 1;
    transform: none;
    font-size: 25px;
    color: var(--lavender);
  }
  .menu-contact {
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
  }
  .menu-preview {
    padding: 23px;
    gap: 14px;
  }
  .menu-preview-title,
  .menu-preview-image,
  .menu-preview-caption {
    display: none;
  }
  .menu-location {
    border: 0;
    padding: 0;
  }
  .menu-brand {
    font-size: 21px;
  }
  .menu-brand span {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-menu,
  .studio-menu * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 480px) {
  .site-header {
    gap: 12px;
  }
  .site-header .wordmark {
    font-size: 18px;
    gap: 8px;
  }
  .site-header .join-mark {
    width: 27px;
  }
  .site-header .wordmark small {
    font-size: 5.5px;
  }
  .site-header.nav-ready .menu-toggle {
    gap: 8px;
    padding: 9px 10px;
    font-size: 11px;
  }
  .site-header .menu-toggle span {
    font-size: 20px;
  }
}

/* Aperçus du studio et du contact : animations décoratives, sans formulaire actif. */
.menu-preview-image {
  position: relative;
}
.menu-preview-image [hidden] {
  display: none !important;
}
.menu-project-deck {
  position: relative;
  height: 100%;
}
.menu-project-deck img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.menu-preview-image.is-form {
  background: transparent;
}
.menu-form-drawing {
  height: 100%;
}
.menu-form-drawing svg {
  display: block;
  width: 100%;
  height: 100%;
}
.form-stroke {
  stroke: #282034;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-message {
  stroke: #67517e;
}
.form-ink {
  fill: #282034;
  font:
    10px Arial,
    sans-serif;
}
.form-title {
  font-size: 16px;
  font-weight: 600;
}
