:root {
  --night: #0b0b0b;
  --white: #eeeeec;
  --ice: #dededb;
  --muted: #999995;
  --line: #292929;
}
body {
  background: var(--night);
  font-weight: 400;
}
.header {
  position: relative;
  height: 145px;
  padding: 0 4%;
  border: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
}
.brand {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  text-align: center;
}
.header nav {
  gap: 25px;
  font-weight: 400;
  font-size: 13px;
}
.header nav a {
  color: #91918e;
}
.header nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
}
.demo-nav {
  justify-self: end;
  font-size: 12px;
  color: #aaa;
}
.demo-nav[aria-current="page"] {
  color: var(--white);
}
.header nav span,
.hero-top,
.hero-foot {
  display: none;
}
.hero {
  height: calc(100svh - 145px);
  min-height: 480px;
  max-height: none;
  margin: 0 2%;
}
.hero-poster {
  filter: grayscale(1);
  opacity: 0.3;
}
.hero-shade {
  background: linear-gradient(transparent, #0007);
}
.hero-main {
  left: 5%;
  right: 5%;
  bottom: 55px;
}
.hero h1,
.page-home .hero:has(video:not([hidden])) h1 {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -2px;
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 25px;
}
.hero-bottom p {
  font-size: 13px;
  color: #bbb;
  line-height: 1.8;
}
.hero-bottom {
  align-items: end;
}
.explore {
  font-size: 12px;
}
.explore span {
  width: 35px;
  height: 35px;
}
.page-projects .projects {
  padding: 12px 2% 40px;
  min-height: 65vh;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}
.project-1,
.project-2 {
  margin: 0;
  width: auto;
  grid-column: auto;
}
.project {
  position: relative;
}
.project-visual,
.project-1 .project-visual,
.project-2 .project-visual {
  aspect-ratio: 16/9;
  background: #191919;
  border: 0;
  transition: filter 0.2s;
}
.project-1 .project-visual {
  background: #202020;
}
.project-2 .project-visual {
  background: #252525;
}
.project-visual:before {
  display: none;
}
.project-number {
  color: #777;
  font-size: 11px;
  top: 18px;
  left: 18px;
}
.project-tag {
  background: none;
  border-radius: 0;
  font-size: 9px;
  letter-spacing: 1px;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  padding: 0;
  white-space: nowrap;
  color: #888;
}
.project:has(button) .project-tag {
  display: none;
}
.project-info {
  border: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
  background: #0006;
  opacity: 0;
  transition: opacity 0.2s;
}
.project:has(button):hover .project-info,
.project:has(button:focus-visible) .project-info {
  opacity: 1;
}
.project-info h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project-info > span {
  font-size: 10px;
  color: #ddd;
}
.project:not(:has(button)) .project-info {
  position: static;
  background: transparent;
  opacity: 1;
  padding: 16px 10px 20px;
}
.project:not(:has(button)) .project-info h3 {
  font-size: 11px;
  color: #aaa;
  text-transform: none;
  letter-spacing: 0;
}
.project:not(:has(button)) .project-info > span {
  display: none;
}
.contact-page {
  max-width: 1500px;
  min-height: 72vh;
  padding: clamp(35px, 5vw, 80px) 5% 80px;
  margin: 0 auto;
}
.contact-about-layout {
  display: grid;
  grid-template-areas: "bio portrait" "links portrait";
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  row-gap: 0;
}
.contact-about-layout > .biography {
  grid-area: bio;
}
.contact-about-layout > .portrait-frame {
  grid-area: portrait;
}
.contact-about-layout > #contact-links {
  grid-area: links;
}
.biography {
  max-width: 840px;
  margin: 15px 0 0;
}
.biography h2 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.about-role {
  margin: 10px 0 0;
  color: #aaa;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.2;
}
.about-copy {
  max-width: 780px;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.about-copy p {
  margin: 0 0 24px;
  color: #ddd;
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.4;
}
.contact-placeholder {
  font-size: 13px;
  color: #888;
}
.contact-link {
  font-size: 14px;
  border: 0;
  text-transform: uppercase;
}
#contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}
.portrait-frame {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  margin: 0;
  background: #151515;
  border-radius: 6px;
  overflow: hidden;
}
.portrait-frame:after {
  display: none;
}
.portrait-frame img {
  object-position: center;
  filter: none;
}
#portrait-placeholder {
  background: #151515;
}
#portrait-placeholder > span {
  font:
    400 clamp(18px, 2vw, 28px) "DM Sans",
    Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #555;
}
#portrait-placeholder small {
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 20px;
  color: #777;
}
.organizations {
  margin-top: clamp(70px, 9vw, 130px);
  padding-top: 35px;
  border-top: 1px solid #2a2a2a;
}
.organizations[hidden] {
  display: none;
}
.organizations h2 {
  margin: 0 0 35px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.organization-list {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}
.organization-item {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 0 130px;
  min-width: 130px;
  height: 105px;
  outline: none;
}
.organization-item img {
  width: 100%;
  max-width: 145px;
  height: 70px;
  object-fit: contain;
  filter: grayscale(1) contrast(5) brightness(0.9);
  mix-blend-mode: screen;
  opacity: 0.9;
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}
.organization-item.is-color img {
  filter: none;
  mix-blend-mode: normal;
}
.organization-item.is-inverted img {
  filter: grayscale(1) contrast(5) brightness(0.9) invert(1);
}
.organization-item.is-color.is-inverted img {
  filter: invert(1);
}
.organization-item span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  opacity: 0;
  transition: opacity 220ms ease;
}
.organization-item:hover img,
.organization-item:focus-visible img {
  filter: grayscale(1) contrast(5) brightness(0.7) blur(7px);
  opacity: 0.28;
  transform: scale(0.94);
}
.organization-item.is-color:hover img,
.organization-item.is-color:focus-visible img {
  filter: blur(7px);
}
.organization-item.is-inverted:hover img,
.organization-item.is-inverted:focus-visible img {
  filter: grayscale(1) contrast(5) brightness(0.7) invert(1) blur(7px);
}
.organization-item.is-color.is-inverted:hover img,
.organization-item.is-color.is-inverted:focus-visible img {
  filter: invert(1) blur(7px);
}
.organization-item:hover span,
.organization-item:focus-visible span {
  opacity: 1;
}
footer {
  border: 0;
  margin: 0 4%;
  padding: 40px 0;
}
footer .brand {
  font-size: 18px;
}
footer > span,
footer > a:last-child {
  font-size: 8px;
  color: #777;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pill {
  background: #eee;
  color: #111;
}
.dialog-bar h2 {
  font-size: 15px;
}
.project:has(button) .project-visual:hover {
  filter: brightness(0.85);
}
@media (max-width: 700px) {
  .header {
    height: auto;
    min-height: 135px;
    grid-template-columns: 1fr auto;
    padding: 25px 6% 20px;
    gap: 23px 10px;
  }
  .header .brand {
    grid-row: 1;
    grid-column: 1/-1;
    font-size: 28px;
  }
  .header nav {
    grid-row: 2;
    grid-column: 1;
    gap: 20px;
    font-size: 10px;
  }
  .header nav a:nth-child(2) {
    display: block;
  }
  .demo-nav {
    grid-row: 2;
    font-size: 10px;
  }
  .hero {
    height: calc(100svh - 135px);
    min-height: 440px;
    margin: 0 3%;
  }
  .hero-main {
    bottom: 35px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-bottom {
    align-items: start;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .page-projects .projects {
    padding: 5px 3% 30px;
  }
  .project-tag {
    font-size: 7px;
  }
  .project-number {
    font-size: 8px;
    top: 10px;
    left: 10px;
  }
  .project-info h3 {
    font-size: 11px;
  }
  .project-info > span {
    font-size: 8px;
  }
  .contact-page {
    padding: 30px 6% 50px;
  }
  .contact-about-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "bio" "portrait" "links";
    grid-template-rows: auto;
    gap: 24px;
  }
  .contact-about-layout > #contact-links {
    margin-top: 0;
  }
  .biography {
    margin: 0;
  }
  .biography h2 {
    font-size: clamp(40px, 12vw, 58px);
  }
  .about-copy {
    margin-top: 50px;
  }
  .about-copy p {
    font-size: 16px;
    line-height: 1.45;
  }
  .portrait-frame {
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 430px;
  }
  #portrait-placeholder > span {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .organizations {
    margin-top: 65px;
    padding-top: 28px;
  }
  .organizations h2 {
    margin-bottom: 22px;
  }
  .organization-list {
    gap: 16px;
  }
  .organization-item {
    flex-basis: 115px;
    min-width: 115px;
    height: 90px;
  }
  .organization-item img {
    max-width: 115px;
    height: 58px;
  }
}
@media (max-width: 430px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-tag {
    font-size: 9px;
  }
  .project-number {
    font-size: 11px;
  }
}
@media (hover: none) {
  .project:has(button) .project-info {
    opacity: 1;
    justify-content: end;
    padding-bottom: 16px;
    background: linear-gradient(transparent 45%, #0009);
  }
}

/* Navigation sans marque ni bande démo. */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #aaa;
}
.instagram-link:hover {
  color: #fff;
}
.instagram-link svg {
  display: block;
}
@media (max-width: 700px) {
  .header {
    min-height: 95px;
    padding: 18px 6%;
    gap: 12px;
  }
  .header nav {
    gap: 18px;
  }
  .instagram-link {
    flex-shrink: 0;
  }
}
.project-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.project-number {
  display: none;
}
.project .project-info,
.project:not(:has(button)) .project-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 24px;
  z-index: 3;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.project:hover .project-info,
.project:focus-within .project-info {
  opacity: 1;
}
.project .project-info h3,
.project:not(:has(button)) .project-info h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(16px, 1.7vw, 25px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.2px;
}
.project .project-info > span,
.project:not(:has(button)) .project-info > span {
  display: block;
  color: #ddd;
  font-size: 11px;
}
.project:has(button) .project-visual:hover {
  filter: none;
}
@media (hover: none) {
  .project .project-info,
  .project:not(:has(button)) .project-info {
    opacity: 1;
    justify-content: flex-end;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.85));
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project .project-info {
    transition: none;
  }
}
