/*
Theme Name: Kouz Next
Theme URI: https://kouz.fr
Description: Nouvelle version légère et responsive du thème Kouz.
Version: 2.0.1
Author: Kouz
License: MIT
Text Domain: kouz-next
*/

@font-face {
  font-family: "Akzidenz Grotesk BE Medium";
  src: url("assets/fonts/akzidenz-grotesk-medium.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --black: #000;
  --white: #fff;
  --muted: #a8a8a8;
  --header-space: clamp(1.25rem, 3.2vw, 1.5rem);
  --font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

img { display: block; max-width: 100%; }

button, input { font: inherit; }

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

.screen-reader-text:focus {
  z-index: 10000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  clip: auto;
  color: var(--black);
  background: var(--white);
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--header-space);
  background: var(--black);
  pointer-events: none;
}

.site-logo,
.menu-toggle { pointer-events: auto; }

.site-logo {
  display: block;
  width: 6.4375rem;
}

.site-logo svg { width: 100%; height: auto; fill: currentColor; }

.menu-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: .45rem .15rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  grid-area: 1 / 1;
  align-self: center;
  width: 100%;
  height: 4px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}

.menu-toggle span:first-child { transform: translateY(-10px); }
.menu-toggle span:last-child { transform: translateY(10px); }
.menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  z-index: 900;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem 2rem;
  visibility: hidden;
  opacity: 0;
  background: var(--black);
  transition: opacity .2s ease, visibility .2s;
}

.site-menu[aria-hidden="false"] { visibility: visible; opacity: 1; }

.site-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.site-menu a {
  display: inline-block;
  padding: .08em .2em;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration-thickness: 2px;
  text-underline-offset: .12em;
}

.site-menu a:hover,
.site-menu a:focus-visible { text-decoration-style: double; }

.project-close {
  position: relative;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  pointer-events: auto;
}

.project-close::before,
.project-close::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: currentColor;
}

.project-close::before { transform: rotate(45deg); }
.project-close::after { transform: rotate(-45deg); }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .22;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.2px);
  background-size: 4px 4px;
  pointer-events: none;
}

.hero-slides,
.hero-slide { position: absolute; z-index: -2; inset: 0; }

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1s ease, transform 7s linear;
}

.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero-copy {
  width: min(70rem, 86vw);
  margin: 0;
  padding: 6rem 0;
  font-size: clamp(1.25rem, 2.05vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 16px rgb(0 0 0 / .5);
}

.hero-copy a { text-underline-offset: .14em; }

.scroll-cue {
  position: absolute;
  bottom: clamp(1rem, 4vh, 2.5rem);
  left: 50%;
  width: 2.25rem;
  height: 3.6rem;
  transform: translateX(-50%);
}

.scroll-cue::before,
.scroll-cue::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.scroll-cue::before { top: 0; left: 50%; width: 4px; height: 100%; transform: translateX(-50%); }
.scroll-cue::after { right: .22rem; bottom: .1rem; width: 1.55rem; height: 1.55rem; transform: rotate(45deg); border-right: 4px solid; border-bottom: 4px solid; background: transparent; }

.projects { background: var(--black); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.project-card > a { position: absolute; inset: 0; display: block; }

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, opacity .3s ease;
}

.project-card__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem 1rem 1rem;
  opacity: 0;
  background: linear-gradient(transparent, rgb(0 0 0 / .8));
  transition: opacity .25s ease;
}

.project-card__title { margin: 0; font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.1; }
.project-card__category { margin: .3rem 0 0; color: #ddd; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.project-card a:hover img { transform: scale(1.025); opacity: .82; }
.project-card a:hover .project-card__meta,
.project-card a:focus-visible .project-card__meta { opacity: 1; }
.project-card--empty { display: grid; place-items: center; padding: 1rem; text-align: center; }

.projects-status {
  min-height: 6rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projects-status[hidden] { display: none; }

.loader-dot {
  width: 2rem;
  height: 2rem;
  border: 3px solid #333;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* Project detail */
.single-projects .site-header { background: var(--black); }

.project-page { min-height: 100svh; background: var(--black); }

.project-intro {
  min-height: 0;
  display: block;
  padding-top: clamp(5rem, 7vw, 6rem);
}

.project-intro__media {
  width: 100%;
  background: var(--black);
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}

.project-media iframe,
.project-media > img {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-media > img { object-fit: cover; }

.project-media--empty {
  display: grid;
  place-items: center;
}

.project-media--empty span {
  color: #777;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-detail {
  width: 100%;
  max-width: 90rem;
  min-height: 0;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) var(--header-space) clamp(4rem, 8vw, 7.5rem);
  border-top: 1px solid #202020;
}

.project-detail header + div { margin-top: clamp(2rem, 4vw, 3.5rem); }

.project-detail__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.project-detail__facts {
  display: grid;
  gap: .45rem;
  margin: 1.5rem 0 0;
  color: #ccc;
  font-size: .9rem;
}

.project-detail__facts dt,
.project-detail__facts dd { display: inline; margin: 0; }
.project-detail__facts dt { color: #777; }
.project-detail__facts dt::after { content: " — "; }

.project-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  color: #d5d5d5;
  font-size: .85rem;
}

.project-detail__tags li:not(:last-child)::after { margin-left: .75rem; content: ","; }
.project-detail__tags a { text-decoration: none; text-underline-offset: .15em; }
.project-detail__tags a:hover, .project-detail__tags a:focus-visible { text-decoration: underline; }

.project-detail__content { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; }
.project-detail__content > :first-child { margin-top: 0; }
.project-detail__content > :last-child { margin-bottom: 0; }

.project-gallery { display: grid; gap: 2px; }
.project-gallery figure { margin: 0; }
.project-gallery img { width: 100%; height: auto; }

/* Editorial screens */
.kouz-screen-light {
  color: var(--black);
  background: var(--white);
}

.kouz-screen-light .site-header { color: var(--black); background: var(--white); }
.menu-open.kouz-screen-light .site-header { color: var(--white); background: var(--black); }
.kouz-screen-light .site-menu { color: var(--white); }

.editorial-page {
  min-height: 100svh;
  padding-top: clamp(7rem, 10vw, 8.5rem);
}

.editorial-page--light { color: var(--black); background: var(--white); }

.editorial-grid {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4.2vw, 3.75rem) clamp(4rem, 8vw, 7.5rem);
}

.editorial-copy h1,
.works-header h1,
.room h2 {
  margin: 0 0 .7em;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  text-transform: none;
}

.editorial-body {
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-weight: 700;
  line-height: 1.48;
}

.editorial-body p { margin: 0 0 1.25em; }

.editorial-link {
  margin: 2rem 0 0;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-weight: 700;
}

.editorial-link a,
.room-nav button,
.contact-page a { text-underline-offset: .18em; }

.editorial-media img {
  width: 100%;
  height: auto;
}

.editorial-media--portrait img {
  height: min(70rem, calc(100svh - 10rem));
  object-fit: cover;
  object-position: center top;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--black);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Works */
.works-page { min-height: 100svh; padding-top: 216px; }

.works-search {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 216px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header-space) * 2 + 3.25rem);
  background: var(--black);
}

.works-search__form {
  position: relative;
  width: 50%;
}

.works-search input {
  width: 100%;
  min-height: 71px;
  padding: 10px 30px;
  border: 5px solid var(--white);
  border-radius: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  font-size: clamp(2rem, 2.7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  appearance: none;
}

.works-search input::placeholder { color: var(--white); opacity: 1; }
.works-search input::-webkit-search-cancel-button { display: none; }

.works-search__results {
  position: absolute;
  z-index: 2;
  inset: 100% 0 auto;
  margin: 0;
  padding: 0;
  color: var(--black);
  background: var(--white);
  list-style: none;
}

.works-search__results:empty { display: none; }

.works-search__results button {
  width: 100%;
  display: block;
  padding: 5px 36px 16px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(2rem, 2.7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.works-search__results button:hover,
.works-search__results button:focus-visible,
.works-search__results button[aria-selected="true"] {
  color: var(--white);
  background: var(--black);
  outline: 0;
}

.works-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--header-space) clamp(2rem, 4vw, 4rem);
}

.works-header h1 { margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); text-transform: uppercase; }
.works-header p { margin: 0; color: var(--muted); font-size: clamp(.9rem, 1.3vw, 1.1rem); }

/* Recording studios */
.studio-page { padding-top: 120px; }

.studio-page,
.studio-page button { font-family: "Akzidenz Grotesk BE Medium", Arial, sans-serif; }

.studio-page .editorial-grid {
  width: min(100%, 1440px);
  display: block;
  margin: 0 auto;
  padding: 0 60px;
}

.studio-page .editorial-copy { max-width: none; }
.studio-page .editorial-copy h1 { margin-bottom: 1em; font-size: 30px; font-weight: 600; line-height: 1.2; }

.studio-page .editorial-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4%;
  margin-bottom: 1em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.studio-page .editorial-body p { margin: 0; }

.room-nav {
  width: min(calc(100% - 120px), 1320px);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 2vh auto 0;
  padding: 0 0 20px;
  font-size: 30px;
  font-weight: 600;
}

.room-nav button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.room-nav button::after {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: currentColor;
}

.room-nav button:hover,
.room-nav button:focus-visible { outline: 0; }
.room-nav button[aria-selected="true"]::after { background: var(--white); }

.rooms { width: min(calc(100% - 120px), 1320px); margin: 0 auto 120px; padding-top: 20px; }
.room[hidden] { display: none; }

.room__gallery { position: relative; width: 100%; height: 600px; overflow: hidden; background: #eee; }

.room__gallery img {
  position: absolute;
  inset: 0;
  left: -1%;
  width: 102%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}

.room__gallery img.is-active { opacity: 1; }

@media (min-width: 1599px) {
  .studio-page .editorial-copy h1,
  .room-nav { font-size: 37.5px; }
  .studio-page .editorial-body { font-size: 22px; }
}

@media (max-width: 1366px) {
  .studio-page .editorial-copy h1,
  .room-nav { font-size: 25px; }
}

/* Contact */
.contact-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 120px;
  color: var(--white);
  background: var(--black);
}

.contact-panel {
  padding: clamp(2rem, 5vw, 4rem) 3%;
}

.contact-location {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
}

.contact-location[hidden] { display: none; }

.contact-kicker { margin: 0 0 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-panel h1 { margin: 0; font-size: clamp(1.8rem, 2vw, 2.25rem); line-height: 1.15; }
.contact-panel h1 + p { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.contact-map-link { font-size: .9rem; }
.contact-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.contact-team p { display: flex; flex-direction: column; margin: 0; line-height: 1.45; }
.contact-team span { margin-bottom: .4rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

.contact-map {
  position: relative;
  min-height: calc(100svh - 120px);
  overflow: hidden;
  background: #e9e7e1;
}

.contact-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(.92);
  background: #e9e7e1;
}

.contact-map-markers { position: absolute; z-index: 2; inset: 0; pointer-events: none; }

.contact-map-marker {
  position: absolute;
  width: 47px;
  height: 47px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 47px;
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgb(0 0 0 / .22);
}

.contact-map-marker[aria-selected="true"] { transform: translate(-50%, -50%) scale(1.12); }
.contact-map-marker:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.contact-map-marker--kouz { top: 56.4%; left: 29.3%; }
.contact-map-marker--superpitch { top: 44.1%; left: 70.5%; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(15rem, 24rem) auto;
  align-items: end;
  gap: 2rem clamp(2rem, 5vw, 6rem);
  padding: clamp(2rem, 4vw, 4rem) var(--header-space);
  border-top: 1px solid #222;
  color: var(--white);
  background: var(--black);
  font-size: clamp(.75rem, 1vw, .9rem);
  line-height: 1.45;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.site-footer__brand strong {
  font-size: clamp(1.15rem, 1.8vw, 1.6rem);
  text-transform: uppercase;
}

.site-footer__brand span { color: var(--muted); }
.site-footer__address { margin: 0; font-style: normal; }
.site-footer__address a, .site-footer__links a { text-decoration: none; }
.site-footer__address a:hover, .site-footer__address a:focus-visible,
.site-footer__links a:hover, .site-footer__links a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-footer__newsletter {
  min-width: min(22rem, 100%);
}

.site-footer__newsletter > label:first-child {
  display: block;
  margin-bottom: .45rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.site-footer__newsletter-fields {
  display: flex;
  border-bottom: 1px solid var(--white);
}

.site-footer__newsletter-fields input {
  width: 100%;
  min-width: 0;
  padding: .4rem 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.site-footer__newsletter-fields input::placeholder { color: var(--muted); }

.site-footer__newsletter-fields button {
  padding: .4rem 0 .4rem 1rem;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.site-footer__newsletter-fields:focus-within { border-bottom-width: 2px; }
.site-footer__newsletter-fields button:disabled { opacity: .45; cursor: wait; }
.site-footer__newsletter-status { min-height: 1.45em; margin: .35rem 0 0; color: var(--muted); }
.newsletter-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .studio-page { padding-top: 100px; }
  .studio-page .editorial-grid { padding-inline: 20px; }
  .studio-page .editorial-copy h1,
  .room-nav { font-size: 25px; }
  .studio-page .editorial-body { font-size: 18px; }
  .room-nav,
  .rooms { width: calc(100% - 40px); }
  .rooms { margin-bottom: 10vh; }
}

@media (max-width: 991px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { row-gap: 6px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-media { margin-top: 1rem; }
  .editorial-media--portrait img { height: auto; max-height: none; }
  .contact-page { grid-template-columns: 1fr; padding-top: 90px; }
  .contact-panel { min-height: 70svh; }
  .contact-map { min-height: 60svh; }
  .site-footer { grid-template-columns: 1fr 1fr; align-items: start; }
  .site-footer__newsletter { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-logo { width: 5.5rem; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-copy { width: min(38rem, 88vw); }
  .project-card__meta { opacity: 1; padding: 2.5rem .75rem .75rem; }
  .project-intro { padding-top: 4.5rem; }
  .project-media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .project-detail { min-height: 0; }
  .image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-header { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .studio-page { padding-top: 100px; }
  .studio-page .editorial-grid { padding: 0 20px; }
  .studio-page .editorial-copy h1 { font-size: 20px; }
  .studio-page .editorial-body { display: block; font-size: 16px; }
  .studio-page .editorial-body p + p { margin-top: 1.25em; }
  .room-nav { width: calc(100% - 40px); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .55rem; margin-top: 2rem; padding: 0 0 18px; white-space: normal; font-size: 20px; }
  .rooms { width: calc(100% - 40px); margin-bottom: 70px; padding-top: 12px; }
  .room__gallery { height: 600px; }
  .contact-team { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
  .site-footer__links { align-items: flex-start; }
  .works-page { padding-top: 150px; }
  .works-search { height: 150px; padding: 90px 20px 0; }
  .works-search__form { width: 100%; }
  .works-search input { min-height: 57px; padding: 8px 16px; border-width: 3px; font-size: 1.7rem; }
  .works-search__results button { padding: 8px 18px 12px; font-size: 1.7rem; }
}

@media (max-width: 420px) {
  .site-menu a { font-size: 1.45rem; }
}

@media (hover: none) {
  .project-card__meta { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
