:root {
  --color-bg: #002AFF;
  --color-text: #FFFFFF;
  --color-contrast: #FFFFFF;
  --color-contrast-strong: #FFFFFF;
  --focus-outline: 3px solid #FFFFFF;
  --font-body: 'Red Hat Display', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

* {
  margin: 0;
  padding: 0;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--color-text);

  /* sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--color-contrast);
  color: var(--color-bg);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--color-contrast);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

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

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

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


/* GENERAL */

b {
  font-weight: 100;
  font-style: normal;
  font-size: 12px;
}

h1 {
  font-weight: 300;
  font-style: normal;
  font-size: 4vw;
}

h2 {
  font-weight: 300;
  font-style: normal;
  font-size: 5.5vw;
}

p {
  font-family: var(--font-mono);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: 12px;
  font-style: normal;
  color: var(--color-text);
  text-decoration: none;
  text-decoration-color: var(--color-contrast);
}

.container {
  width: 92%;
  margin: 0 auto;
}

.text-trigger {
  font: inherit;
  color: inherit;
  background-color: var(--color-contrast);
  color: var(--color-bg);
  border: none;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
}

.text-trigger:hover {
  filter: brightness(0.95);
}

.text-trigger:focus-visible {
  outline-offset: 3px;
}


/* BUTTONS */

.btn {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  transition: all 400ms ease;
  padding: 0rem;
  width: 8rem;
  height: 2rem;
  border-radius: 2rem;
  border: var(--color-contrast) 0.08rem solid;
  background: var(--color-bg);
  color: var(--color-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:hover {
  cursor: pointer;
  background: var(--color-contrast);
  color: var(--color-bg);
}


/* HEADER */

header {
  height: 10%;
  background-color: var(--color-bg);
}

.nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.nav__list {
  list-style: none;
  display: flex;
}

.nav__list a {
  font-style: normal;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.nav__list a[aria-current="page"] {
  background-color: #FFFFFF;
  color: #002AFF;
}

.nav__list a:hover {
  background-color: #FFFFFF;
  color: #002AFF;
}

.nav__item + .nav__item {
  margin-left: 2.5em;
}


/* FOOTER */

footer {
  height: 15%;
  background-color: var(--color-bg);
  margin-top: auto;
}

.nav--footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.nav__list--no-highlight {
  list-style: none;
  display: flex;
}

.nav__list--no-highlight a {
  font-style: normal;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.nav__item--button {
  margin-left: 1em;
}

.copyright {
  margin-top: .5rem;
  text-align: center;
  font-size: 10px;
}


/* LANDING PAGE */

.page {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

.page--landing main,
.page--landing main .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page--landing .page {
  flex: 1;
  margin-bottom: 2rem;
}

.landing__text {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* QUADRIFOGLIO */

img[src="assets/CLOVER.svg"] {
  max-width: 300px;
  
  transition: transform .9s ease-in-out;
}

img:hover[src="assets/CLOVER.svg"],
img.spinning[src="assets/CLOVER.svg"] {
  transform: rotate(360deg);
}


/* ABOUT PAGE */

.row {
  display: flex;
}

.col {
  width: 100%;
  padding-left: 4rem;
}

img[src="assets/Blue_FINAL.gif"] {
  max-width: 149px;
  width: 20vw;
}


/* DECORATIVE TEXT */

.text--jacquard {
  font-family: 'Jacquard 12', cursive;
  font-size: 2.5rem;
  font-weight: 100;
}

.text--amarante {
  font-family: 'Amarante', serif;
  font-size: 1.8rem;
  font-weight: 300;
}

.text--fell {
  font-family: 'IM Fell English', serif;
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
}

.text--right {
  display: block;
  text-align: right;
}


/* HOVER IMAGES INSIDE TEXT */

#gif {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  bottom: 30%;
  left: 50%;
}

#trigger1:hover + #gif,
#trigger1:focus-visible + #gif {
  opacity: 1;
  visibility: visible;
  transition: all 0.25s;
}

img[src="assets/AM_GIF.gif"] {
  width: 150px;
}

#music {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  bottom: 25%;
  right: 10%;
}

#trigger2:hover + #music,
#trigger2:focus-visible + #music {
  opacity: 1;
  visibility: visible;
  transition: all 0.25s;
}

img[src="assets/music.webp"] {
  width: 200px;
}

#nature1 {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  top: 10%;
  left: 20%;
}

#trigger3:hover + #nature1,
#trigger3:focus-visible + #nature1 {
  opacity: 1;
  visibility: visible;
  transition: all 0.25s;
}

img[src="assets/nature1.webp"] {
  width: 400px;
}

img[src="assets/nature2.webp"] {
  width: 300px;
}


/* WORKS SCROLLER */

.container--works {
  margin-right: 3.75%;
  margin-left: 3.75%;
}

.nav--middle-page {
  margin-top: 3rem;
}

.page__works {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.media-scroller {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  overflow-x: scroll;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
}

.media-scroller::-webkit-scrollbar {
  display: none;
}

.media-element {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  position: relative;
  height: 500px;
  min-width: 320px;
  max-width: 320px;
}

.media-element > p {
  margin-top: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.media-element:hover > p {
  background-color: #fff;
  color: #002aff;
  display: inline-block;
}

.media-element a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
}

.media-element__picture img,
.media-element > img {
  max-width: 300px;
  width: 100%;
}


/* POSTERS PAGE */

.poster-grid {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.poster-item {
  cursor: grab;
  touch-action: none;
}

.poster-item img {
  width: 200px;
}

.poster-item img.enlarged {
  width: 400px;
}


/* MISCELLANEUS PAGE */

.misc-grid {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.misc-item {
  cursor: grab;
  touch-action: none;
}

.misc-item img {
  width: 320px;
}

.misc-item img.enlarged {
  width: 400px;
}


.project__slider-controls {
  display: none;
}

.project__slider-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 350;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.project__slider-dots {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 350;
  font-size: 12px;
}

.project__more {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 350;
  color: var(--color-text);
  margin-top: 1rem;
  cursor: pointer;
  user-select: none;
}


/* PROJECT PAGE */

.project-page {
  width: 92%;
  margin: 0 auto;
  margin-top: 2rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

.project__title {
  width: 40%;
}

.project-page h1,
.project-page h2 {
  font-weight: 300;
  font-style: normal;
  
}

.project__content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.project__text {
  width: 30%;
  min-width: 0;
}

.project__text a {
  font-style: normal;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.info-label {
  font-style: normal;
  font-size: 16px;
  color: var(--color-text);
}

.project__infos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 2rem;
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project__paragraph {
  padding-top: 4rem;
}

.project__images {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 2rem;
  min-width: 0;
  flex: 1;
}

.project__images img {
  width: 100%;
  height: auto;
}

.vimeo-facade {
  position: relative;
  width: 100%;
  padding-top: 75%;
  cursor: pointer;
}

.vimeo-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vimeo-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.vimeo-facade__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.vimeo-facade__play svg {
  width: 100%;
  height: 100%;
}

.vimeo-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* RECORD COVERS PAGE */

.covers-grid {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.covers-item {
  cursor: pointer;
}

.covers-item img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #002aff;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  padding: 1rem;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
}

.lightbox__dots {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 350;
  font-size: 12px;
  color: var(--color-text);
}

.lightbox__btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 350;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}


/* BRANDING GALLERY */

.branding-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.branding-trigger {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  opacity: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.branding-card {
  max-height: 320px;
}
.branding-card .media-element__picture {
  overflow: hidden;
  height: 200px;
}

.branding-card .media-element__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* BRANDING LIGHTBOX */

.branding-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  overflow-y: auto;
}

.branding-lightbox.is-open {
  display: block;
}

.branding-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 350;
  cursor: pointer;
  z-index: 1001;
}

.branding-lightbox__close:hover {
  background-color: #002aff;
  color: #fff;
}

.branding-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

.branding-lightbox__nav:hover {
  background-color: #002aff;
  color: #fff;
}

.branding-lightbox__prev { left: 1rem; }
.branding-lightbox__next { right: 1rem; }

.branding-lightbox__img-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 4rem;
}

.branding-lightbox__img {
  width: 100%;
  display: block;
}


/* CONTACT PAGE */

.contact__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 2rem;
}


img[src="assets/big_crop_crop.gif"] {
  max-width: 300px;
  width: 35vw;
}

.contact__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 2rem;
}

.contact__info {
  width: 30%;
}

.contact__info a {
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}

.contact__info a:hover {
  background-color: var(--color-contrast);
  color: var(--color-bg);
}


.contact__tagline {
  margin-top: 1rem;
  margin-bottom: 6rem;
}
