/* manu escalant — editorial v0.2 */

@font-face {
  font-family: "Left Hand";
  src: url("fonts/left-hand.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --blue: #1515ff;
  --paper: #ffffff;
  --soft: #f0f0ed;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
}


/* HEADER */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 30px 0;
  font-size: 10px;
  text-transform: uppercase;
}

.logo {
  font-weight: 700;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a:hover {
  text-decoration: underline;
}


/* INTRO */

.intro {
  padding: 55px 30px 40px;
}

.intro-meta {
  width: 47%;
  margin-left: auto;

  display: flex;
  justify-content: space-between;

  font-size: 9px;
  line-height: 1.2;
  text-transform: uppercase;
}


/* FIRST IMAGES */

.intro-grid {
  display: grid;
  grid-template-columns: 30% 23% 1fr;
  gap: 12px;

  align-items: end;

  margin-top: 55px;
}

.visual {
  background: var(--soft);
  color: var(--blue);

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

  font-size: 9px;
  letter-spacing: 0.08em;
}

.visual-one {
  height: 330px;
}

.visual-two {
  height: 330px;
}

.intro-copy {
  max-width: 260px;
  margin-left: auto;

  font-size: 9px;
  line-height: 1.35;
  text-align: right;

}


/* NAME */

.intro h1 {
  margin: 65px 0 0;

  font-size: clamp(55px, 8.5vw, 135px);
  line-height: 0.85;
  letter-spacing: -0.065em;

  font-weight: 500;
  text-transform: lowercase;
}

.intro-bottom {
  margin-top: 18px;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  font-size: 9px;
  text-transform: uppercase;
}

.intro-bottom p {
  margin: 0;
  line-height: 1.3;
}


/* WORK */

.work {
  padding: 10px 30px 160px;
}

.section-label {
  margin-bottom: 80px;

  font-size: 11px;
  font-weight: 700;
}


/* PROJECTS */

.project {
  margin-bottom: 160px;
}

.project-image {
  min-height: 420px;
}

.project-info {
  margin-top: 10px;

  display: flex;
  justify-content: space-between;

  font-size: 9px;
  text-transform: uppercase;
}

.project-large {
  width: 72%;
}

.project-small {
  width: 38%;
  margin-left: 56%;
}

.project-medium {
  width: 54%;
  margin-left: 12%;
}


/* FOOTER */

footer {
  min-height: 230px;

  padding: 30px;

  background: var(--blue);
  color: white;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  font-size: 9px;
  text-transform: uppercase;
}


/* MOBILE */

@media (max-width: 700px) {

  .header {
    padding: 18px 16px 0;
  }

  .menu {
    gap: 10px;
  }

  .intro {
    padding: 45px 16px 30px;
  }

  .intro-meta {
    width: 100%;
    font-size: 7px;
  }

  .intro-grid {
    grid-template-columns: 58% 42%;
    gap: 6px;
    margin-top: 35px;
  }

  .visual-one {
    height: 250px;
  }

  .visual-two {
    height: 180px;
  }

  .intro-copy {
    display: none;
  }

  .intro h1 {
    margin-top: 45px;
    font-size: 16vw;
  }

  .work {
    padding: 80px 16px;
  }

  .project-large,
  .project-small,
  .project-medium {
    width: 100%;
    margin-left: 0;
  }

  .project {
    margin-bottom: 90px;
  }

  .project-image {
    min-height: 300px;
  }

}

/* REAL IMAGES */

.visual {
  overflow: hidden;
}

.visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.visual-three {
  width: 150px;
  height: 190px;
  margin-top: 25px;
  background: white;
}

.visual-three img {
  object-fit: contain;
}

/* SKULL */

.skull {
  width: 90px;
  margin-top: 20px;
}

.skull img {
  width: 100%;
  height: auto;
  display: block;
}

/* DRAGGABLE DOODLE */
.skull {
  cursor: grab;
  user-select: none;
  touch-action: none;
  position: relative;
  z-index: 20;
}

.skull:active {
  cursor: grabbing;
}

/* DOODLES */

.doodle {
  position: absolute;
  width: 100px;
  height: auto;

  cursor: grab;
  user-select: none;
  touch-action: none;

  z-index: 20;
}

.doodle:active {
  cursor: grabbing;
}

/* ABOUT PAGE */

.about-page {
  padding: 70px 30px 140px;
}

.about-meta {
  display: flex;
  justify-content: space-between;

  font-size: 9px;
  text-transform: uppercase;
}


/* INTRO */

.about-intro {
  margin-top: 70px;
}

.about-photo {
  background: var(--soft);
  color: var(--blue);

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

  font-size: 9px;
  letter-spacing: 0.08em;
}

.about-photo-one {
  width: 42%;
  height: 560px;
  margin-left: 34%;
}

.about-title {
  margin-top: 55px;
}

.about-title h1 {
  margin: 0;

  font-size: clamp(55px, 8vw, 125px);
  line-height: 0.85;
  letter-spacing: -0.065em;

  font-weight: 500;
  text-transform: lowercase;
}

.about-title p {
  margin-top: 18px;

  font-size: 9px;
  text-transform: uppercase;
}


/* TEXT + IMAGES */

.about-text {
  margin-top: 30px;
}

.about-text > p {
  width: 38%;

  font-size: 18px;
  line-height: 1.35;
}

.about-photo-two {
  width: 30%;
  height: 280px;

  margin-top: 100px;
  margin-left: 5%;
}

.about-text .about-text-right {
  width: 34%;

  margin-top: 20px;
  margin-left: 60%;
}

.about-photo-three {
  width: 40%;
  height: 480px;

  margin-top: 40px;
  margin-left: 42%;
}


/* CONTACT */

.about-contact {
  margin-top: 150px;

  display: flex;
  justify-content: space-between;

  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
}

.about-contact p {
  margin: 0;
  width: 40%;
}


/* ABOUT MOBILE */

@media (max-width: 700px) {

  .about-page {
    padding: 50px 16px 80px;
  }

  .about-photo-one {
    width: 75%;
    height: 420px;
    margin-left: 20%;
  }

  .about-title h1 {
    font-size: 16vw;
  }

  .about-text {
    margin-top: 90px;
  }

  .about-text > p,
  .about-text .about-text-right {
    width: 80%;
    margin-left: 0;
  }

  .about-photo-two {
    width: 60%;
    height: 220px;
    margin-left: 0;
  }

  .about-text .about-text-right {
    margin-top: 80px;
    margin-left: 20%;
  }

  .about-photo-three {
    width: 70%;
    height: 380px;
    margin-left: 25%;
  }

}
 /* ABOUT HERO — NAME OVER PHOTO */

.about-intro {
  position: relative;
  min-height: 760px;
}

.about-photo-one {
  width: 42%;
  height: 600px;
  margin-left: 29%;
}

.about-name {
  position: absolute;

  font-size: clamp(65px, 9vw, 145px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  font-weight: 500;
  text-transform: lowercase;

  z-index: 2;
}

.about-escalant {
  top: 150px;
  left: 5%;
}

.about-manu {
  top: 380px;
  right: 6%;
}

.about-role {
  position: absolute;
  top: 540px;
  left: 5%;

  font-size: 9px;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ABOUT REAL IMAGES */

.about-photo {
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

X/* ABOUT FLOW ADJUSTMENT */

.about-text {
  margin-top: -60px;
}

/* ABOUT — EDITORIAL FLOW */

.about-text {
  margin-top: -60px;
  position: relative;
}

.about-text > p {
  width: 34%;
  font-size: 16px;
  line-height: 1.4;
}

/* FOTO ROJA */

.about-photo-two {
  width: 32%;
  height: 320px;

  margin-top: -20px;
  margin-left: 48%;
}

/* SEGUNDO PÁRRAFO */

.about-text .about-text-right {
  width: 34%;

  margin-top: 45px;
  margin-left: 55%;

  font-size: 16px;
  line-height: 1.4;
}

/* FOTO VERDE */

.about-photo-three {
  width: 43%;
  height: 520px;

  margin-top: -100px;
  margin-left: 5%;
}

/* SELECTED CLIENTS */

.clients {
  padding: 80px 0 120px;
}

.clients-label {
  margin-bottom: 60px;

  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px 90px;
  align-items: center;
}

.clients-logos img {
  width: 100%;
  max-width: 120px;
  max-height: 65px;

  object-fit: contain;
  justify-self: center;

  filter: grayscale(1);
  opacity: 0.9;
}

/* CLIENT LOGOS — BLUE */

.clients-logos img {
  filter:
    brightness(0)
    saturate(100%)
    invert(8%)
    sepia(100%)
    saturate(7486%)
    hue-rotate(245deg)
    brightness(103%)
    contrast(142%);
}

/* SELECTED CLIENTS — EDITORIAL LAYOUT */

.clients {
  padding-top: 100px;
  padding-bottom: 140px;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 75px 35px;
  align-items: center;
}

.clients-logos img {
  width: auto;
  max-width: 115px;
  max-height: 65px;
  justify-self: center;
}

/* DIFFERENT SCALES + POSITIONS */

.clients-logos img:nth-child(1) {
  grid-column: 1 / 3;
  max-width: 105px;
}

.clients-logos img:nth-child(2) {
  grid-column: 4 / 7;
  max-width: 145px;
}

.clients-logos img:nth-child(3) {
  grid-column: 2 / 4;
  max-width: 125px;
}

.clients-logos img:nth-child(4) {
  grid-column: 5 / 7;
  max-width: 85px;
}

.clients-logos img:nth-child(5) {
  grid-column: 1 / 3;
  max-width: 135px;
}

.clients-logos img:nth-child(6) {
  grid-column: 3 / 5;
  max-width: 110px;
}

.clients-logos img:nth-child(7) {
  grid-column: 5 / 7;
  max-width: 90px;
}

.clients-logos img:nth-child(8) {
  grid-column: 2 / 4;
  max-width: 125px;
}

.clients-logos img:nth-child(9) {
  grid-column: 4 / 6;
  max-width: 140px;
}

.clients-logos img:nth-child(10) {
  grid-column: 1 / 3;
  max-width: 120px;
}

.clients-logos img:nth-child(11) {
  grid-column: 3 / 5;
  max-width: 105px;
}

.clients-logos img:nth-child(12) {
  grid-column: 5 / 7;
  max-width: 120px;
}

.clients-logos img:nth-child(13) {
  grid-column: 2 / 4;
  max-width: 90px;
}

.clients-logos img:nth-child(14) {
  grid-column: 4 / 7;
  max-width: 145px;
}

/* CLIENTS — CONSTELLATION */

.clients-logos img:nth-child(1) {
  transform: translateY(-25px);
}

.clients-logos img:nth-child(2) {
  transform: translateY(30px);
}

.clients-logos img:nth-child(3) {
  transform: translateY(-10px);
}

.clients-logos img:nth-child(4) {
  transform: translateY(45px);
}

.clients-logos img:nth-child(5) {
  transform: translateY(-35px);
}

.clients-logos img:nth-child(6) {
  transform: translateY(20px);
}

.clients-logos img:nth-child(7) {
  transform: translateY(-20px);
}

.clients-logos img:nth-child(8) {
  transform: translateY(40px);
}

.clients-logos img:nth-child(9) {
  transform: translateY(-30px);
}

.clients-logos img:nth-child(10) {
  transform: translateY(15px);
}

.clients-logos img:nth-child(11) {
  transform: translateY(-45px);
}

.clients-logos img:nth-child(12) {
  transform: translateY(35px);
}

.clients-logos img:nth-child(13) {
  transform: translateY(-15px);
}

.clients-logos img:nth-child(14) {
  transform: translateY(25px);
}

/* ORÁCULO — POSICIÓN DE CAPAS */

.oracle-sky {
  z-index: 1;
top: 74%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.oracle-floor {
  z-index: 2;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.oracle-center {
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =========================
   THINGS
   ========================= */

.things-page {
  padding: 70px 30px 140px;
}

.things-meta {
  display: flex;
  justify-content: space-between;

  font-size: 9px;
  text-transform: uppercase;
}

.things-title {
  margin: 70px 0 90px;

  font-size: clamp(55px, 8vw, 125px);
  line-height: 0.85;
  letter-spacing: -0.065em;

  font-weight: 500;
  text-transform: lowercase;
}


/* PROJECTS */

.things-grid {
  width: 100%;
}

.thing-project {
  display: block;
  width: 42%;
  margin-left: 8%;
}

.thing-image {
  width: 100%;
  aspect-ratio: 1199 / 1600;

  overflow: hidden;
}

.thing-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
}

.thing-info {
  display: flex;
  justify-content: space-between;

  margin-top: 10px;

  font-size: 9px;
  text-transform: uppercase;
}


/* MOBILE */

@media (max-width: 700px) {

  .things-page {
    padding: 50px 16px 80px;
  }

  .things-title {
    margin: 55px 0 60px;
    font-size: 16vw;
  }

  .thing-project {
    width: 100%;
    margin-left: 0;
  }

}

@media (max-width: 700px) {
  .doodle {
    pointer-events: none;
  }

  .header {
    position: relative;
    z-index: 1000;
  }
}

@media (max-width: 700px) {

  .header {
    position: relative;
    z-index: 9999;
  }

  .menu {
    position: relative;
    z-index: 9999;
  }

  .doodles,
  .doodle {
    pointer-events: none;
  }

}

/* THINGS — ORÁCULO COVER */

.thing-project {
  width: 30%;
  margin-left: 10%;
}

.oracle-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.oracle-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* MOBILE — PROJECT IMAGES NATURAL RATIO */

@media (max-width: 700px) {

  .project-image {
    min-height: 0;
    height: auto;
  }

  .project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

}

/* MOBILE — ABOUT TEXT */

@media (max-width: 700px) {

  .about-text > p,
  .about-text .about-text-right {
    width: 88%;
    margin-left: 0;
    font-size: 16px;
    line-height: 1.4;
  }

  .about-text .about-text-right {
    margin-top: 60px;
    margin-left: 12%;
  }

}

/* ==================================
   ABOUT — MOBILE FINAL OVERRIDE
   ================================== */

@media screen and (max-width: 700px) {

  .about-page .about-text > p {
    width: 88% !important;
    max-width: none !important;
    margin-left: 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  .about-page .about-text > p.about-text-right {
    width: 88% !important;
    margin-left: 12% !important;
    margin-top: 60px !important;
  }

}

/* ABOUT — MOBILE PHOTO FLOW */

@media screen and (max-width: 700px) {

  .about-page .about-photo-three {
    width: 70% !important;
    height: auto !important;
    margin-top: 50px !important;
    margin-left: 0 !important;
  }

  .about-page .about-photo-three img {
    width: 100%;
    height: auto;
    display: block;
  }

}

@media screen and (max-width: 700px) {

  .about-page + .doodles .doodle {
    pointer-events: none;
    z-index: 20;
  }

}

/* ORÁCULO — MOBILE */
@media screen and (max-width: 700px) {

  .oracle-reading {
    flex-direction: column;
    gap: 0 !important;
  }

  .oracle-text {
    width: 92vw !important;
    transform: none !important;
    margin-top: 8px !important;
  }

  .oracle-text button {
    margin-top: 14px !important;
  }

}