:root {
  --blue: #1717ff;
  --ink: #111111;
  --paper: #f6f6f1;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.18);
  --shell: min(calc(100% - 2.5rem), 1500px);
  --header-height: 4.5rem;
  --sans: "DM Sans", Arial, sans-serif;
  --display: "Manrope", Arial, sans-serif;
  --anton: "Anton", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 200;
  padding: 0.8rem 1rem;
  background: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding-inline: max(1.25rem, calc((100vw - 1500px) / 2));
  background: rgba(246, 246, 241, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.site-header--over-media:not(.is-scrolled) {
  color: var(--white);
  background: transparent;
  border-color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  font-size: 0.9rem;
  font-weight: 500;
}

.brand-mark {
  width: 0.9rem;
  aspect-ratio: 1;
  background: currentColor;
}

.site-nav {
  grid-column: 2;
  display: flex;
  gap: 2rem;
}

.site-nav a,
.footer-links a,
.arrow-link {
  position: relative;
}

.site-nav a::after,
.footer-links a::after,
.arrow-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.footer-links a:hover::after,
.arrow-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blue-text {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #171717;
}

.hero-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-marquee__track {
  display: flex;
  width: auto;
  height: 100%;
  animation: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-marquee__group {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
}

.hero-frame {
  flex: 0 0 clamp(25rem, 48vw, 52rem);
  height: 100%;
  margin: 0;
}

.hero-frame img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: clamp(2.5rem, 5vw, 4.5rem);
  left: 0;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions a {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 13rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease, background 0.25s ease;
}

.hero-actions a:hover {
  color: var(--blue);
  background: var(--white);
}

.hero-scroll {
  position: absolute;
  right: 1.25rem;
  bottom: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.home-intro {
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding-block: clamp(6rem, 12vw, 11rem);
}

.home-intro > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.home-intro h2 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--anton);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
}

.arrow-link {
  white-space: nowrap;
}

.work-intro {
  padding-top: clamp(9rem, 15vw, 14rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.work-intro__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.work-intro h1 {
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.about-copy h1 {
  margin: 0.8rem 0 0;
  font-family: var(--anton);
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.94;
}

.project-detail-header h1 {
  margin: 0.8rem 0 0;
  font-family: var(--anton);
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  font-weight: 400;
  line-height: 0.94;
}

.work-intro__grid > p {
  max-width: 32rem;
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.work-browser {
  padding-top: calc(var(--header-height) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(7rem, 12vw, 12rem);
}

.filters {
  display: flex;
  gap: 0.65rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 1rem;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  padding: 0.68rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.filter-button:hover {
  border-color: var(--ink);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.filter-button span {
  margin-left: 0.25rem;
  font-size: 0.65rem;
  opacity: 0.72;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 4rem) clamp(1.5rem, 2.5vw, 3rem);
}

.project-card button {
  width: 100%;
  padding: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.project-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddddda;
}

.project-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--white);
  background: rgba(23, 23, 255, 0.76);
  font-family: var(--anton);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}



.project-card button:hover .project-card__media img,
.project-card button:focus-visible .project-card__media img {
  transform: scale(1.035);
}

.project-card button:hover .project-card__overlay,
.project-card button:focus-visible .project-card__overlay {
  opacity: 1;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
}

.project-card__meta strong,
.project-card__meta small {
  display: block;
}

.project-card__meta strong {
  font-family: var(--anton);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 400;
}

.project-card__meta small {
  margin-top: 0.2rem;
  font-size: 0.69rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-view {
  padding-top: calc(var(--header-height) + 1rem);
}

.project-view__top {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.back-button {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.back-button:hover {
  color: var(--blue);
}

.project-detail-header {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  padding-block: clamp(4rem, 8vw, 8rem);
}

.project-detail-header > p {
  max-width: 34rem;
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
}

.project-slider {
  position: relative;
  color: var(--white);
  background: #101010;
  outline: none;
}

.project-slider__viewport {
  overflow: hidden;
}

.project-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  touch-action: pan-y;
}

.project-slide {
  flex: 0 0 100%;
  height: min(80svh, 920px);
  margin: 0;
}

.project-slide img {
  height: 100%;
  object-fit: contain;
}
.project-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}

.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 5;
}

/* Petit cercle visible */
.slider-arrow::after {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.slider-arrow--previous {
  left: 0;
  font-size: 0;
}

.slider-arrow--previous::after {
  content: "←";
  left: 1.5rem;
}

.slider-arrow--next {
  right: 0;
  font-size: 0;
}

.slider-arrow--next::after {
  content: "→";
  right: 1.5rem;
}

.slider-arrow:hover:not(:disabled)::after {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
}

.slider-arrow:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.slider-counter {
  position: absolute;
  right: 1.5rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
}

.slider-counter i {
  width: 3.5rem;
  height: 1px;
  background: currentColor;
}

.slider-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 1.5rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding-block: clamp(5rem, 9vw, 9rem);
}

.project-information dl {
  margin: 0;
}

.project-information dl div {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.project-information dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-information dd {
  margin: 0;
}

.project-concept {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.related-projects {
  padding-block: clamp(5rem, 9vw, 9rem);
  color: var(--white);
  background: var(--blue);
}

.related-projects h2 {
  margin: 0.5rem 0 3rem;
  font-family: var(--anton);
  font-size: clamp(1.29rem, 6vw, 2.28rem);
  font-weight: 400;
  line-height: 0.95;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.related-grid button {
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.related-grid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.related-grid span,
.related-grid strong {
  display: block;
}

.related-grid span {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-grid strong {
  margin-top: 0.15rem;
  font-family: var(--anton);
  font-size: 1.4rem;
  font-weight: 400;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr;
  gap: clamp(4rem, 9vw, 10rem);
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(8rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.about-copy h1 {
  font-size: clamp(3.1rem, 6.6vw, 7rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 48rem;
  font-size: 1.08rem;
}

.about-portrait {
  align-self: center;
  margin: 0;
}

.about-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.about-portrait figcaption {
  margin-top: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-details {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr 0.7fr;
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(5rem, 9vw, 9rem);
  border-top: 1px solid var(--line);
}

.about-details ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.about-location p:last-child {
  margin-top: 1rem;
}

.contact-block {
  scroll-margin-top: var(--header-height);
  color: var(--white);
  background: var(--blue);
}

.contact-block__inner {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.contact-block__heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
  margin: 1rem 0 clamp(3rem, 6vw, 6rem);
}

.contact-block h2 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--anton);
  font-size: clamp(1.29rem, 6vw, 2.28rem);
  font-weight: 400;
  line-height: 0.95;
}

.contact-block__heading p {
  max-width: 30rem;
  margin: 0;
}

.contact-links {
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.contact-links a {
  display: grid;
  grid-template-columns: 0.4fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease, background 0.25s ease, padding 0.25s ease;
}

.contact-links a:hover {
  padding-inline: 1rem;
  color: var(--blue);
  background: var(--white);
}

.contact-links span:first-child {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-links strong {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
  padding-block: 1.6rem;
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-horizontal-loop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1000px) {
  .home-intro,
  .work-intro__grid,
  .project-detail-header,
  .project-information,
  .about-hero,
  .contact-block__heading {
    grid-template-columns: 1fr;
  }

  .home-intro > div {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero {
    min-height: auto;
  }

  .about-portrait {
    width: min(70%, 34rem);
  }

  .about-details {
    grid-template-columns: 1fr 1.5fr;
  }

  .about-location {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
   :root {
    --shell: min(calc(100% - 2rem), 1500px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: var(--header-height);
    height: auto;
    padding-inline: 1.25rem;
  }

  .brand {
    position: relative;
    z-index: 3;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: block;
    padding: 0;
    background: transparent;
  }

 .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 1rem;

    width: 100vw;
    height: 100svh;
    padding: var(--header-height) 1.5rem 2rem;

    color: var(--white);
    background: var(--blue);

    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.05;
    text-align: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-100%);
    transition:
      transform 0.4s cubic-bezier(0.7, 0, 0.3, 1),
      opacity 0.3s ease,
      visibility 0.4s;
  }

 .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header:has(.site-nav.is-open) {
    color: var(--white);
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
  }

  .site-nav a {
    display: block;
    width: auto;
  }
  .hero-frame {
    flex-basis: 78vw;
  }

  .hero-frame img[src$="hero-02.jpg"] {
    object-position: right center;
  }

  .hero-actions a {
    min-width: 0;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .about-location {
    grid-column: auto;
  }

  .contact-links a {
    grid-template-columns: 1fr auto;
  }

  .contact-links strong {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-links span:last-child {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 620px) {

  .hero-actions {
    display: grid;
  }

  .hero-actions a {
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-slide {
    height: 66svh;
    display: flex;
  align-items: center;
  justify-content: center;
  }
  .project-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}

  .slider-arrow {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .slider-arrow--previous {
    right: 4.8rem;
    left: auto;
  }

  .slider-arrow--next {
    right: 1rem;
  }

  .slider-counter {
    right: auto;
    bottom: 1.8rem;
    left: 1rem;
  }

  .slider-hint {
    display: none;
  }

  .project-information dl div {
    grid-template-columns: 0.48fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-grid button:nth-child(3) {
    display: none;
  }

  .about-portrait {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@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;
  }

  .hero-marquee__track {
    transform: translateX(0);
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 768px) {
  .slider-arrow {
    top: 0;
    bottom: 0;
    width: 25%;
    height: auto;
    transform: none;
  }

  .slider-arrow--previous {
    left: 0;
    right: auto;
  }

  .slider-arrow--next {
    right: 0;
    left: auto;
  }

  .slider-arrow--previous::after {
    top: 50%;
    left: 1rem;
    right: auto;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
  }

  .slider-arrow--next::after {
    top: 50%;
    right: 1rem;
    left: auto;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
  }
}


/* =========================================================
   V4 — LOT 3 / PROJECT PAGES
   Base cumulative: LOT 1 + LOT 2 validated
   ========================================================= */

.project-detail-header h1 {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.98;
}

/* Option B: keep the existing slider, remove the black gallery background */
.project-slider {
  color: var(--ink);
  background: var(--paper);
}

.project-slide video {
  background: var(--paper);
}

/* Abigail: gallery counter in blue */
.slider-counter {
  color: var(--blue);
}

/* Adapt navigation arrows to the light gallery */
.slider-arrow {
  color: var(--ink);
}

.slider-arrow::after {
  background: rgba(246, 246, 241, 0.82);
  border-color: rgba(17, 17, 17, 0.35);
}

.slider-arrow:hover:not(:disabled)::after {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 620px) {
  .project-detail-header h1 {
    font-size: clamp(2.25rem, 11vw, 4.2rem);
  }

  .project-slide video {
    background: var(--paper);
  }
}

/* =========================================================
   V4 — TEST GALERIE LINÉAIRE / VARIANTE 2
   Mobile: linear full-width.
   Desktop: compact editorial masonry, Pinterest-inspired.
   ========================================================= */

.project-linear-gallery {
  width: 100%;
  padding: 0 0 clamp(3rem, 7vw, 7rem);
}

.project-linear-media {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  margin: 0 0 0.75rem;
  break-inside: avoid;
}

.project-linear-media__number {
  position: sticky;
  top: calc(var(--header-height) + 0.75rem);
  padding-top: 0.15rem;
  color: var(--blue);
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: right;
}

.project-linear-media__asset {
  min-width: 0;
}

.project-linear-media__asset img,
.project-linear-media__asset video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
}

.project-linear-media__asset video {
  background: var(--paper);
}

@media (min-width: 800px) {
  .project-linear-gallery {
    columns: 2;
    column-gap: clamp(1rem, 1.8vw, 1.75rem);
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(2rem, 5vw, 5.5rem);
  }

  .project-linear-media {
    display: inline-grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.7rem;
    width: 100%;
    margin: 0 0 clamp(1rem, 1.8vw, 1.6rem);
    vertical-align: top;
  }

  .project-linear-media__number {
    position: static;
    padding-top: 0.2rem;
    font-size: 0.68rem;
  }
}

@media (min-width: 1400px) {
  .project-linear-gallery {
    max-width: 1280px;
  }
}


/* =========================================================
   V4 — LOT 4 / PROJECT INFORMATION
   Base cumulative: validated LINEAR V2
   Editorial content remains in projects.js and is not altered here.
   ========================================================= */

.project-detail-header {
  padding-bottom: clamp(2.5rem, 5vw, 4.75rem);
}

.project-detail-header h1 {
  max-width: 14ch;
  font-size: clamp(1.29rem, 6vw, 2.28rem);
  line-height: 0.94;
}

.project-detail-header__intro {
  gap: clamp(1rem, 2vw, 2rem);
}

.project-detail-header__intro > p {
  max-width: 52ch;
  font-style: italic;
}

.project-information {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.project-information__intro > p {
  font-style: italic;
}

@media (min-width: 800px) {
  .project-detail-header h1 {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(1.32rem, 2.4vw, 2.76rem);
  }
}

@media (max-width: 799px) {
  .project-detail-header {
    padding-bottom: 2.5rem;
  }

  .project-detail-header h1 {
    max-width: none;
    font-size: clamp(1.29rem, 6vw, 2.28rem);
    line-height: 0.98;
  }
}

/* =========================================================
   V4 — LOT 5 V3 / ABOUT + SERVICES + CONTACT
   Desktop services on one line / mobile vertical
   ========================================================= */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(2.75rem, 5vw, 5rem);
  max-width: 1120px;
  margin-inline: auto;
}

.about-copy {
  width: min(100%, 680px);
  justify-self: end;
}

.about-copy h1 {
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(1.5rem, 2.6vw, 2.5rem);
}

.about-copy > p {
  max-width: 44ch;
}

.about-portrait {
  width: min(100%, 340px);
  justify-self: start;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* SERVICES — une ligne desktop, proprement contenue */
.about-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1180px;
  margin-inline: auto;
}

.about-details ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.about-details li {
  text-align: center;
  white-space: nowrap;
}

.contact-block__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.contact-title {
  margin: 0;
  line-height: 0.82;
}

.contact-links a {
  grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
}

.contact-links strong {
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: inherit;
}

/* MOBILE — composition recentrée et plus harmonieuse */
@media (max-width: 760px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: none;
  }

  .about-copy {
    width: min(100%, 34rem);
    justify-self: center;
  }

  .about-copy h1 {
    width: 100%;
    margin-inline: auto;
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    text-align: center;
  }

  .about-copy > p {
    max-width: 30ch;
    margin-inline: auto;
    text-align: left;
  }

  .about-portrait {
    width: min(78vw, 300px);
    justify-self: center;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: none;
  }

  .about-details ul {
    display: block;
    width: 100%;
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .about-details li {
    text-align: left;
    white-space: normal;
  }

  .about-details li + li {
    margin-top: 0.15em;
  }


  .contact-links a {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}


/* =========================================================
   V4 — LOT 6 / TYPOGRAPHY TEST
   Display/navigation stay contemporary.
   Editorial information + body copy use an archival monospace.
   ========================================================= */

:root {
  --mono: "Courier New", Courier, "Nimbus Mono PS", monospace;
}

/* Body / editorial copy */
.about-copy > p,
.about-inline-services > p:not(.eyebrow),
.project-detail-header__intro > p,
.project-detail-subtitle,
.project-information,
.project-information p,
.project-information li,
.project-information dd,
.project-information dt {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

/* Small documentary information */
.eyebrow,
.section-label,
.project-meta,
.project-detail-meta,
.project-linear-media__number,
.filters,
.contact-links span,
.site-footer {
  font-family: var(--mono);
  letter-spacing: 0;
}

/* Contact values also become archival/body typography,
   while the huge Contact heading remains in the display face. */
.contact-links strong {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Structural/display typography that remains in the V4 display face */
.brand,
.site-nav,
.menu-toggle,
.about-details ul {
  font-family: var(--display);
}

@media (max-width: 760px) {
  .about-copy > p,
  .about-inline-services > p:not(.eyebrow),
  .project-detail-header__intro > p,
  .project-detail-subtitle,
  .project-information,
  .project-information p,
  .project-information li,
  .project-information dd,
  .project-information dt {
    font-size: 0.86rem;
    line-height: 1.52;
  }

  .contact-links strong {
    font-size: 0.86rem;
  }
}


/* =========================================================
   LOT 6 — refinements / credits hierarchy + brand hover
   ========================================================= */

/* Credit/category labels: stronger hierarchy inside monospace data */
.project-information dt,
.project-detail-meta dt,
.project-credits dt,
.project-credits strong:first-child {
  font-weight: 700;
}

/* Brand / home link: blue interaction cue */
.brand {
  transition: color 180ms ease;
}

.brand .brand-mark {
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  color: var(--blue);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background-color: var(--blue);
  border-color: var(--blue);
  transform: rotate(8deg);
}


/* =========================================================
   LOT 6 V3 — MOBILE PROJECT GALLERY BREATHING ROOM
   Desktop untouched.
   ========================================================= */
@media (max-width: 799px) {
  .project-linear-gallery {
    padding-left: clamp(0.85rem, 4vw, 1.25rem);
    padding-right: clamp(0.85rem, 4vw, 1.25rem);
  }
}

/* =========================================================
   V5 — LOT 1 / PROJECT SUBTITLE + SHARED TITLE SIZE
   ========================================================= */

.project-detail-header {
  grid-template-columns: 1fr;
}

.project-detail-subtitle {
  max-width: 34rem;
  margin: 0.7rem 0 0;
  font-family: var(--mono);
}

@media (min-width: 800px) {
  .contact-block h2,
  .related-projects h2 {
    font-size: clamp(1.32rem, 2.4vw, 2.76rem);
  }
}

/* =========================================================
   V5 — LOT 6 / SCHEMA CONTINUOUS IMAGE PAIR
   after-hours-01.jpg = left, after-hours-02.jpg = right.
   ========================================================= */

@media (min-width: 800px) {
  .schema-continuous-pair {
    column-span: all;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 1.8vw, 1.75rem);
    width: 100%;
  }

  .schema-continuous-pair .project-linear-media {
    margin-bottom: clamp(1rem, 1.8vw, 1.6rem);
  }
}

@media (max-width: 799px) {
  .schema-continuous-pair {
    display: block;
  }
}

/* =========================================================
   V5 — LOT 7A / ABOUT + SERVICES CONTENT HIERARCHY
   Spacing intentionally unchanged for LOT 7B.
   ========================================================= */

.about-details__title {
  margin: 0;
  font-family: var(--anton);
  font-size: clamp(1.32rem, 2.4vw, 2.76rem);
  font-weight: 400;
  line-height: 0.98;
}

.about-details ul {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

@media (max-width: 760px) {
  .about-details__title {
    font-size: clamp(1.29rem, 6vw, 2.28rem);
  }

  .about-details ul {
    font-size: 0.86rem;
    line-height: 1.52;
  }
}


/* =========================================================
   V5 — LOT 7B / DESKTOP SPACING + SERVICES BALANCE
   Mobile intentionally unchanged.
   ========================================================= */

@media (min-width: 761px) {
  .about-details {
    padding-block: clamp(3.5rem, 6.3vw, 6.3rem);
  }

  .about-details__title {
    font-size: clamp(1.056rem, 1.92vw, 2.208rem);
  }

  .about-details ul {
    font-size: 1.012rem;
  }

  .contact-block__inner {
    padding-block: clamp(3.75rem, 6.75vw, 6.75rem);
  }
}

/* =========================================================
   V5 — LOT 7C / SERVICES INTEGRATED INTO ABOUT
   ========================================================= */

.about-inline-services {
  margin-top: 1.35rem;
}

.about-inline-services .eyebrow {
  margin-bottom: 0.65rem;
}

.about-inline-services p:last-child {
  margin: 0;
}

/* =========================================================
   V5 — LOT 7C / EXACT ABOUT TYPOGRAPHY SIZES FOR SERVICES
   ========================================================= */

.about-inline-services > .eyebrow {
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .about-inline-services > .eyebrow {
    font-size: 0.86rem;
  }
}

.about-inline-services > p:not(.eyebrow) {
  font-size: 1.08rem;
}

/* =========================================================
   V5 — LOT 7C / MOBILE SERVICES LABEL ALIGNMENT
   ========================================================= */

@media (max-width: 760px) {
  .about-inline-services > .eyebrow {
    text-align: center;
  }
}

/* =========================================================
   V5 — LOT 7 FINAL / DESKTOP CONTACT VERTICAL SPACING
   50% reduction above and below Contact.
   ========================================================= */

@media (min-width: 761px) {
  .contact-block__inner {
    padding-block: clamp(1.875rem, 3.375vw, 3.375rem);
  }
}

/* =========================================================
   V5 — FINAL / OTHER PROJECTS TOP SPACING
   70% reduction above "Other projects" only.
   ========================================================= */

.related-projects {
  padding-top: clamp(1.5rem, 2.7vw, 2.7rem);
}

/* =========================================================
   V5 — FINAL / OTHER PROJECTS BOTTOM SPACING
   70% reduction before footer.
   ========================================================= */

.related-projects {
  padding-bottom: clamp(1.5rem, 2.7vw, 2.7rem);
}

/* =========================================================
   V5 — LOT 8 / NAVIGATION FINISHES
   ========================================================= */

/* Keep the existing underline behavior and add the requested blue hover. */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    color: var(--blue);
  }
}

/* Accessible label remains available to screen readers, but is not visible. */
.menu-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 1.5rem;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -0.42rem;
  }

  .menu-icon::after {
    top: 0.42rem;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

