*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: content-box;
}

:root {
  --white-primary: rgb(236, 236, 236);
  --lime-accent: rgb(227, 242, 114);
  --grey-secondary: rgb(150, 150, 150);
}

@font-face {
  font-family: "T1";
  src: url(../fonts/T1Korium.ttf);
}

@font-face {
  font-family: "Neue Montreal";
  font-weight: 100;
  src: url(../fonts/PPNeueMontreal-Thin.otf);
}

@font-face {
  font-family: "Neue Montreal";
  font-weight: 200;
  src: url(../fonts/PPNeueMontreal-Book.otf);
}

@font-face {
  font-family: "Neue Montreal";
  font-style: italic;
  font-weight: 200;
  src: url(../fonts/PPNeueMontreal-Italic.otf);
}

@font-face {
  font-family: "Neue Montreal";
  font-weight: 400;
  src: url(../fonts/PPNeueMontreal-Medium.otf);
}

@font-face {
  font-family: "Neue Montreal";
  font-weight: 600;
  src: url(../fonts/PPNeueMontreal-Bold.otf);
}

@font-face {
  font-family: "Neue Montreal";
  font-style: italic;
  font-weight: 600;
  src: url(../fonts/PPNeueMontreal-SemiBolditalic.otf);
}

/* Font */


video,
img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "T1";
  color: var(--white-primary);
}

.logo-header {
  position: fixed;
  top: 30px;
  left: 30px;
  width: 200px;
  z-index: 10;
}

.logo-fixed {
  width: 20vw;
  min-width: 150px;
  max-width: 250px;
}

.menu-button {
  position: fixed;
  padding: 20px;
  padding-right: 15px;
  right: 20px;
  top: calc(50px + .4vw);
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.menu-button .square {
  width: 35px;
  height: 3px;
  align-self: right;
  border-radius: 15px;
  background-color: var(--lime-accent);
  transform: scale(1);
  transition: transform 250ms ease-in-out;
  transform-origin: right;
}

.menu-button:hover .square {
  transform: scaleX(1.6);
}

.menu-button:hover .square:nth-of-type(2) {
  transform: scaleX(1.2);
  transition-delay: 100ms;
}

.projects_container {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;

  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox, Safari 18.2+, Chromium 121+ */
}


.projects_container::-webkit-scrollbar {
  display: none;
  /* Older Safari and Chromium */
}


.project_card {
  width: 100%;
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.project_card video {
  position: relative;
  max-height: 100dvh;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 900px) {
  .project_card video {
    height: 100dvh;
    aspect-ratio: none;
  }
}

.project-info {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 10;
  text-transform: uppercase;
}

.project-title {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 1px;
}

.project-director {
  font-family: "Neue Montreal";
  font-weight: 100;
  font-size: 1.6rem;
  color: var(--lime-accent);

}


/* video player  */

/* Overlay hidden state */
#video_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;

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

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.35s ease, visibility 0.35s ease;

  z-index: 9999;
}

/* Visible state */
#video_overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Video container */
.video_container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
}

/* Vimeo iframe */
#video_frame {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Close button */
#close_video {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  background-color: transparent;

  border: none;

  font-size: 18px;

  cursor: pointer;
  z-index: 9999;
}

#close_video::after,
#close_video::before {
  content: '';
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 10px;
  background-color: var(--white-primary);
  transition: background-color 150ms ease-in-out;
}

@media (max-width: 900px)
 {
  #close_video {
    position: absolute;
    top: 10px;
  }
 }

#close_video:hover::after,
#close_video:hover::before {
  background-color: var(--lime-accent);
}

#close_video::after {
  width: 35px;
  height: 4px;
}

#close_video::before {
  width: 4px;
  height: 35px;
}



/* MENU css */


#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  z-index: 20;
  transition: opacity 200ms ease-in-out;
}

#menuOverlay.open {
  display: flex;
  align-items: stretch;
  pointer-events: all;
  visibility: visible;
  opacity: 1;
}

/* CLOSE BUTTON */

#closeMenu {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1;
}

/* WRAPPER */

.menu-wrapper {
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Neue Montreal";
  font-weight: 100;
  flex-shrink: 0;
}


/* TOP LEVEL */

.top-level {
  display: flex;
  justify-content: space-around;
  padding: 80px 80px 40px;
}

.top-item {
  font-family: "T1";
  font-size: 50px;
  background: none;
  border: none;
  color: var(--white-primary);
  text-decoration: none;
  cursor: pointer;
}

.top-item.active {
  color: var(--lime-accent);
}

/* SECTIONS */

.section {
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: start;
  min-height: 0;
  margin-top: 6%;
}

@media (max-width: 900px) {
    .section {
      margin-top: 0;
    }
}

.section.active {
  display: flex;
}

/* MIDDLE LEVEL */

.middle-level {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 20px 0;
}

.middle-item {
  background: none;
  border: none;
  color: var(--grey-secondary);
  font-size: 35px;
  cursor: pointer;
  transition: color 150ms ease-in-out;
  font-family: "Neue Montreal";
  font-weight: 100;
}

.middle-item:hover {
  color: var(--white-primary);
}

.middle-item.active {
  color: var(--lime-accent);
}

.menu_bottom_container {
  padding: 20px;
  display: flex;
  margin-bottom: 20px;
  justify-content: space-around;
}

/* ABOUT US */

.service-container {
  flex: 1;
  display: grid;
  align-items: center;
}

.about_us_text_wrapper {
  width: 85%;
  max-width: 900px;
  margin: auto;
  justify-items: center;
}


.about_us-text {
  line-height: 1.3;
  text-align: center;
  font-weight: 300;
  font-size: clamp(20px, 2vw, 35px);

}

.humans_text {
  margin-top: 20px;
}

.menu-about {
  width: 80%;
  max-width: 1200px;
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin: auto;
}

.person-contact {
  text-transform: uppercase;
  display: grid;
  gap: 7px;
  justify-items: center;
}

.contact-name {
  font-weight: 900;
  font-size: 1.2em;
}

.contact-role {
  font-size: .8em;
  font-weight: 400;
  color: var(--lime-accent);
}

.contact-phone {
  color: inherit;
  text-decoration: none;
  font-size: .8em;
  font-weight: 100;
  transition: color 150ms ease-in-out, transform 150ms ease-in-out;
  text-transform: lowercase;
  letter-spacing: .7px;
}

.contact-phone:hover {
  transform: translateX(3px);
  color: var(--lime-accent);
}

/* marquee rows */

.names-source {
  display: none;
}

.bottom-level {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 30px;
}

.names-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}

.names-group.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 25px;
  width: max-content;
  will-change: transform;
  font-size: 50px;
  font-weight: 100;
  text-transform: uppercase;
}

.marquee-dot {
  display: inline-block;
  width:6px;
  height:6px;
  border-radius: 50%;
  background-color: var(--lime-accent);
  flex-shrink: 0;
  align-self: center;
}

/* fixed durations for the animation */
#photographers .marquee-track { --duration: 80s; }
#directors .marquee-track     { --duration: 80s; }
#friends .marquee-track       { --duration: 80s; }

.marquee-track a {
  color: var(--white-primary);
  text-decoration: none;
  transition: color 150ms ease-in-out;
}

/* default speed controlled via CSS variable */

.marquee.left .marquee-track {
  animation-name: scrollLeft;
  animation-duration: var(--duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.marquee.right .marquee-track {
  animation-name: scrollRight;
  animation-duration: var(--duration);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  margin-top: 30px;
  margin-bottom: 30px;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%)
  }

  to {
    transform: translateX(0)
  }
}

/* stop when hovering name */
.marquee-track.paused {
  animation-play-state: paused;
}

.marquee-track a:hover {
  color: var(--lime-accent);
}

/* MENU SIDE */

.menu-side {
  width: 25%;
  height: 100%;
  display: flex;
  border-left: 1px var(--lime-accent) solid;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Neue Montreal";
  font-size: 16px;
  gap: 25px;
  overflow-y: auto;
  background-color: black;
  box-sizing: border-box;
}

.social_link {
  text-decoration: none;
  color: inherit;
}

.menu-social-links {
  margin-top: 30px;
  display: flex;
  gap: 30px;
  justify-content: center;
}


.menu-side-logo {
  display: flex;
  justify-content: center;
}

.menu-side-logo svg {
  width: 100%;
  max-width: 200px;
}

.menu-side-location {
  width: 70%;
  display: grid;
  justify-content: center;
  gap: 5px;
  text-align: center;
}


.location-text {
  margin-block: 45px;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
}

.location-city {
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
}

.contact_title_mobile {
  display: none;
}

@media (max-width: 900px) {

  .contact_title_mobile {
    display: block;
    font-family: "T1";
    font-size: 30px; /* match buttons on mobile */
    color: var(--white-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  /* hide repeated CONTACT words */
  .location-city {
    display: none;
  }
}

.location-street,
.location-zipcode,
.location-mail {
  text-transform: capitalize;
  font-size: .9rem;
  font-weight: 100;
}

.location-mail {
  color: inherit;
  font-size: 1.2em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 150ms ease-in-out, transform 150ms ease-in-out;
}

.location-mail:hover {
    transform: translateX(3px);
  color: var(--lime-accent);

}

.social_link svg {
  --social_dimensions: 1.5rem;
  width: var(--social_dimensions);
  height: var(--social_dimensions);
  transition: color 250ms ease-in-out, transform 150ms ease-in-out;
}

.social_link svg:hover {
  transform: translateY(-3px);
  color: var(--lime-accent);
}


@media (max-width: 900px) {
  #menuOverlay {
    overflow-y: auto;
    align-items: stretch;
  }

  #menuOverlay.open {
    flex-direction: column;
    height: 100%;
  }

  .menu-wrapper {
    width: 100%;
    height: auto;
    flex-shrink: 0;
  }

  .menu-side {
    width: 100%;
    height: auto;
    overflow-y: visible;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 40px 0;
    border-left: none;
    border-top: 1px var(--lime-accent) solid;
    flex: 1;
  }

  .section {
    min-height: 0;
    height: auto;
  }

  .bottom-level {
    height: auto;
    min-height: 200px;
  }

  /* texts sizes */

  .top-item {
    font-size: 30px;
  }

  .middle-item {
    font-size: 15px;
  }

  .marquee-track {
    font-size: 30px;
    gap: 15px;
  }

  .about_us_text_wrapper {
    width: 80%;
    margin-top: 30px;
  }

  .about_us-text {
    font-size: 17px;
  }

  .menu-about {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 10px;
    justify-content: space-around;
    gap: 10px;
  }

  .person-contact {
    margin-bottom: 30px;
    text-align: center;
  }

  .contact-name {
    width: 70%;
    font-size: 12px;
  }
  .contact-role {
    width: 90%;
    font-size: 11px;
  }
  .contact-phone {
    font-size: 8px;
    text-wrap: nowrap;
  }

  .menu-social-links {
    margin-bottom: 25px;
  }

  .menu-side-location {
    margin-top: 0;
  }
}

/* cambio de idioma en about us */

.lang_selector_wrapper {
    width: 70%;
    margin: 10px auto;
    display: flex;
    margin: 0;
    justify-content: right;
    position: absolute;
    bottom: calc(100% + 20px);
}

.lang_selector {
    text-transform: uppercase;
    padding: 5px;
}

.about_us_text_wrapper {
  position: relative;
    display: grid;
}

.about_us_text_wrapper > * {
 grid-column: 1 / -1;
 grid-row: 1;
}

.spanish_about_wrapper,
.english_about_wrapper {
    /* width: 80%; */
    margin: auto;
}

.english_about_wrapper {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 700ms ease-in;
}

.spanish_about_wrapper {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    transition: clip-path 700ms ease-in;
}

.lang_btn_esp,
.lang_btn_eng {
  display: none;
}

.lang_btn_esp:checked ~ .about_us_text_wrapper .spanish_about_wrapper,
.lang_btn_eng:checked ~ .about_us_text_wrapper .english_about_wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition-delay: 200ms;
}

.lang_btn_eng:checked ~ .about_us_text_wrapper .lang_selector_wrapper .lang_btn_label_eng,
.lang_btn_esp:checked ~ .about_us_text_wrapper .lang_selector_wrapper .lang_btn_label_esp {
    color: var(--lime-accent);
}
