/* Girls & Boys — nouvelle direction artistique éditoriale noire */

body.project-girls {
  --gb-paper: #f4f0e6;
  --gb-paper-light: #fbf8f1;
  --gb-ink: #14120f;
  --gb-muted: #5d584f;
  --gb-line: rgba(20, 18, 15, .18);
  --gb-gutter: clamp(22px, 5vw, 78px);
  --gb-shell: 1320px;
  background: var(--gb-paper);
  color: var(--gb-ink);
}

body.project-girls .gb-page {
  width: 100%;
  overflow: clip;
  background: var(--gb-paper);
}

body.project-girls .gb-shell {
  width: min(calc(100% - (2 * var(--gb-gutter))), var(--gb-shell));
  margin-inline: auto;
}

body.project-girls .gb-hero {
  isolation: isolate;
  position: relative;
  min-height: max(620px, calc(100svh - 92px));
  overflow: hidden;
  background: #050505;
  color: var(--gb-paper-light);
}

body.project-girls .gb-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(.82) contrast(1.08);
}

body.project-girls .gb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .58) 32%, rgba(0, 0, 0, .1) 68%, rgba(0, 0, 0, .24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .52));
}

body.project-girls .gb-back-link {
  position: absolute;
  top: calc(var(--header-height, 92px) + clamp(24px, 2vw, 34px));
  left: var(--gb-gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gb-paper-light);
  font-family: var(--font-clean);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

body.project-girls .gb-back-link::before {
  content: "←";
  font-size: 15px;
  transition: transform .25s ease;
}

body.project-girls .gb-back-link:hover::before,
body.project-girls .gb-back-link:focus-visible::before {
  transform: translateX(-4px);
}

body.project-girls .gb-hero__content {
  position: absolute;
  left: var(--gb-gutter);
  bottom: clamp(48px, 7vw, 102px);
  width: min(62vw, 820px);
  text-align: left;
}

body.project-girls .gb-hero h1 {
  margin: 0;
  color: var(--gb-paper-light);
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(66px, 8.6vw, 136px);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: .79;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

body.project-girls .gb-hero h1 span {
  display: block;
}

body.project-girls .gb-hero h1 span:last-child {
  margin-left: 0;
}

body.project-girls .gb-hero__content p {
  max-width: 720px;
  margin: clamp(24px, 3vw, 42px) 0 0;
  color: var(--gb-paper-light);
  font-family: var(--font-clean);
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 650;
  line-height: 1.45;
}

body.project-girls .gb-opening {
  background: var(--gb-paper);
}

body.project-girls .gb-opening-quote {
  width: min(calc(100% - (2 * var(--gb-gutter))), 1160px);
  margin: 0 auto;
  max-width: 42ch;
  padding: clamp(62px, 7vw, 104px) 0;
  color: var(--gb-ink);
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(26px, 3vw, 44px);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
}

body.project-girls .gb-production-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding-inline: var(--gb-gutter);
  color: var(--gb-paper-light);
  background: var(--gb-ink);
}

body.project-girls .gb-production-strip > div {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px) clamp(16px, 2vw, 30px);
  border-left: 1px solid rgba(251, 248, 241, .15);
}

body.project-girls .gb-production-strip dt {
  margin-bottom: 7px;
  color: rgba(251, 248, 241, .56);
  font-family: var(--font-clean);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.project-girls .gb-production-strip dd {
  margin: 0;
  color: var(--gb-paper-light);
  font-family: var(--font-clean);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.35;
}

body.project-girls .gb-story {
  padding: clamp(70px, 9vw, 138px) 0 clamp(84px, 10vw, 150px);
  border-top: 1px solid var(--gb-line);
  background: var(--gb-paper-light);
}

body.project-girls .gb-story h2,
body.project-girls .gb-gallery h2,
body.project-girls .gb-technical h2 {
  margin: 0;
  font-family: "Climate Crisis", var(--font-title);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  letter-spacing: -.045em;
}

body.project-girls .gb-story h2 {
  max-width: 15ch;
  padding-bottom: clamp(24px, 3vw, 42px);
  border-bottom: 1px solid var(--gb-line);
  color: var(--gb-ink);
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: .9;
}

body.project-girls .gb-story__lead {
  max-width: 61ch;
  margin: clamp(44px, 6vw, 82px) 0 clamp(74px, 9vw, 126px);
  color: var(--gb-ink);
  font-family: var(--font-clean);
  font-size: clamp(17px, 1.18vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

body.project-girls .gb-story__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(54px, 8vw, 126px);
  align-items: start;
}

body.project-girls .gb-chapter h3 {
  max-width: 13ch;
  margin: 0 0 clamp(28px, 3.5vw, 48px);
  color: var(--gb-ink);
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(31px, 3.2vw, 52px);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.project-girls .gb-chapter p {
  max-width: 61ch;
  margin: 0 0 1.35em;
  color: #2c2924;
  font-family: var(--font-clean);
  font-size: clamp(17px, 1.18vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}

body.project-girls .gb-resource-link {
  margin-top: clamp(24px, 3vw, 38px) !important;
}

body.project-girls .gb-resource-link a {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gb-ink);
  color: var(--gb-ink);
  font-weight: 750;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

body.project-girls .gb-resource-link a:is(:hover, :focus-visible) {
  opacity: .62;
  transform: translateX(4px);
}

body.project-girls .gb-story__image {
  position: relative;
  margin: 0;
  padding: clamp(9px, 1vw, 14px);
  background: #fff;
  box-shadow: 18px 22px 0 rgba(20, 18, 15, .13);
  transform: rotate(1.1deg);
}

body.project-girls .gb-story__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  filter: saturate(.8) contrast(1.06);
}

body.project-girls .gb-story__image figcaption {
  margin: 10px 2px 0;
  color: var(--gb-muted);
  font-family: var(--font-clean);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .05em;
}

body.project-girls .gb-story__quote {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  margin-top: clamp(92px, 11vw, 170px);
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(92px, 11vw, 170px);
  margin-left: calc(50% - 50vw);
  padding: clamp(66px, 8vw, 118px) var(--gb-gutter);
  color: var(--gb-paper-light);
  background: var(--gb-ink);
  font-family: "Climate Crisis", var(--font-title);
  font-size: clamp(34px, 5vw, 76px);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "YEAR" 1988;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body.project-girls .gb-technical {
  padding: clamp(42px, 4.5vw, 68px) 0;
  color: var(--gb-paper-light);
  background: var(--gb-ink);
}

body.project-girls .gb-technical h2 {
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--gb-paper-light);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: .96;
}

body.project-girls .gb-technical dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(251, 248, 241, .22);
  border-left: 1px solid rgba(251, 248, 241, .22);
}

body.project-girls .gb-technical dl > div {
  min-width: 0;
  padding: clamp(16px, 1.8vw, 24px);
  border-right: 1px solid rgba(251, 248, 241, .22);
  border-bottom: 1px solid rgba(251, 248, 241, .22);
}

body.project-girls .gb-technical dl > div:nth-child(8) {
  grid-column: 1 / -1;
}

body.project-girls .gb-technical dt {
  margin-bottom: 8px;
  color: rgba(251, 248, 241, .58);
  font-family: var(--font-clean);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.project-girls .gb-technical dd,
body.project-girls .gb-technical a {
  margin: 0;
  color: var(--gb-paper-light);
  font-family: var(--font-clean);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.project-girls .gb-gallery {
  padding: clamp(88px, 11vw, 168px) 0;
  background: var(--gb-paper);
}

body.project-girls .gb-gallery h2 {
  max-width: 12ch;
  margin-bottom: clamp(62px, 8vw, 118px);
  color: var(--gb-ink);
  font-size: clamp(50px, 7vw, 104px);
  line-height: .9;
}

body.project-girls .gb-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 38px);
  align-items: start;
}

body.project-girls .gb-gallery__grid figure {
  margin: 0;
  padding: clamp(8px, .8vw, 12px);
  background: #fff;
  box-shadow: 14px 18px 0 rgba(20, 18, 15, .11);
}

body.project-girls .gb-gallery__grid figure:nth-child(1) {
  grid-column: 1 / span 8;
}

body.project-girls .gb-gallery__grid figure:nth-child(2) {
  grid-column: 7 / span 6;
  margin-top: clamp(-74px, -5vw, -42px);
}

body.project-girls .gb-gallery__grid figure:nth-child(3) {
  grid-column: 2 / span 9;
  margin-top: clamp(20px, 4vw, 62px);
}

body.project-girls .gb-gallery__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.94 / 1;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(.8) contrast(1.07);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
}

@media (hover: hover) and (pointer: fine) {
  body.project-girls .gb-gallery__grid figure:hover img {
    transform: scale(1.012);
    filter: saturate(.92) contrast(1.09);
  }
}

@media (max-width: 900px) {
  body.project-girls .gb-hero {
    min-height: max(600px, calc(100svh - 78px));
  }

  body.project-girls .gb-hero__image {
    object-position: 66% center;
  }

  body.project-girls .gb-hero__content {
    width: min(80vw, 680px);
  }

  body.project-girls .gb-production-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }

  body.project-girls .gb-production-strip > div:nth-child(odd) {
    border-left: 0;
  }

  body.project-girls .gb-production-strip > div:nth-child(n + 3) {
    border-top: 1px solid rgba(251, 248, 241, .15);
  }

  body.project-girls .gb-production-strip > div:last-child {
    grid-column: 1 / -1;
  }

  body.project-girls .gb-story__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(58px, 9vw, 88px);
  }

  body.project-girls .gb-story__image {
    width: min(88%, 680px);
    margin-inline: auto;
  }

  body.project-girls .gb-story__grid--closing .gb-chapter + .gb-chapter {
    padding-top: clamp(52px, 8vw, 82px);
    border-top: 1px solid var(--gb-line);
  }

  body.project-girls .gb-technical dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.project-girls .gb-technical dl > div:nth-child(8) {
    grid-column: 1 / -1;
  }

  body.project-girls .gb-gallery__grid figure:nth-child(1) {
    grid-column: 1 / span 9;
  }

  body.project-girls .gb-gallery__grid figure:nth-child(2) {
    grid-column: 6 / span 7;
    margin-top: -24px;
  }

  body.project-girls .gb-gallery__grid figure:nth-child(3) {
    grid-column: 2 / span 10;
  }
}

@media (max-width: 560px) {
  body.project-girls {
    --gb-gutter: 22px;
  }

  body.project-girls .gb-hero {
    min-height: 610px;
  }

  body.project-girls .gb-hero__image {
    object-position: 70% center;
  }

  body.project-girls .gb-hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .18)),
      linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .72));
  }

  body.project-girls .gb-back-link {
    top: calc(var(--header-height-mobile, 72px) + 20px);
    font-size: 10px;
  }

  body.project-girls .gb-hero__content {
    bottom: 44px;
    width: calc(100% - (2 * var(--gb-gutter)));
  }

  body.project-girls .gb-hero h1 {
    font-size: clamp(52px, 14vw, 60px);
  }

  body.project-girls .gb-hero h1 span:last-child {
    margin-left: 0;
  }

  body.project-girls .gb-hero__content p {
    font-size: 16px;
  }

  body.project-girls .gb-opening-quote {
    padding-block: 54px;
    font-size: clamp(27px, 8.4vw, 38px);
    text-align: left;
  }

  body.project-girls .gb-production-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  body.project-girls .gb-production-strip > div,
  body.project-girls .gb-production-strip > div:nth-child(odd),
  body.project-girls .gb-production-strip > div:nth-child(n + 3) {
    grid-column: auto;
    padding: 18px 22px;
    border-top: 1px solid rgba(251, 248, 241, .15);
    border-left: 0;
  }

  body.project-girls .gb-production-strip > div:first-child {
    border-top: 0;
  }

  body.project-girls .gb-story h2 {
    font-size: clamp(36px, 10.5vw, 42px);
  }

  body.project-girls .gb-story__lead {
    margin-left: 0;
    font-size: 19px;
  }

  body.project-girls .gb-chapter h3 {
    font-size: clamp(32px, 10vw, 43px);
  }

  body.project-girls .gb-chapter p {
    font-size: 17px;
    line-height: 1.68;
  }

  body.project-girls .gb-story__image {
    width: 94%;
  }

  body.project-girls .gb-story__quote {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  body.project-girls .gb-technical h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: .96;
    letter-spacing: -.035em;
  }

  body.project-girls .gb-technical dl > div {
    padding: 14px 18px;
  }

  body.project-girls .gb-technical dl {
    grid-template-columns: minmax(0, 1fr);
  }

  body.project-girls .gb-technical dl > div:nth-child(8) {
    grid-column: auto;
  }

  body.project-girls .gb-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  body.project-girls .gb-gallery__grid figure:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.project-girls .gb-back-link::before,
  body.project-girls .gb-gallery__grid img {
    transition: none;
  }
}
