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

html {
  font-size: 100%;
}

body {
  margin: 0;
  background: #F7F5F1;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

p,
h1 {
  margin: 0;
}

.page {
  width: 100%;
  max-width: 1440px;
  min-height: 2200px;
  margin: 0 auto;
  padding: 42px 70px 70px;
}

/* -------------------------------- */
/* HEADER */
/* -------------------------------- */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo {
  font-family: Baskerville, serif;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  font-family: Baskerville, serif;
  font-size: 22px;
  line-height: 24px;
}

.menu a,
.menu span {
  text-decoration: none;
}

/* -------------------------------- */
/* HERO */
/* -------------------------------- */

.hero {
  margin-top: 110px;
}

.hero h1 {
  font-family: Baskerville, serif;
  font-size: clamp(45px, 9vw, 138px);
  font-weight: 400;
  line-height: .95;
}

.edition {
  margin-top: 18px;

  font-family: Inter, sans-serif;
  font-weight: 100;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.3;
  letter-spacing: .05em;
  color: #666666;
}

/* -------------------------------- */
/* PROJECTS */
/* -------------------------------- */

.projects {
  margin-top: 180px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects a {
  display: flex;
  align-items: baseline;
  gap: 18px;

  text-decoration: none;

  font-family: Baskerville, serif;
  font-size: clamp(33px, 5vw, 74px);
  font-weight: 400;
  line-height: 1.15;
}

/* -------------------------------- */
/* STATEMENT */
/* -------------------------------- */

.statement {
  margin-top: 220px;
  margin-left: 120px;
  max-width: 765px;
}

.statement p {
  font-family: Inter, sans-serif;
  font-size: clamp(30px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .05em;
}

/* -------------------------------- */
/* AVAILABILITY */
/* -------------------------------- */

.availability {
  margin-top: 300px;
  margin-left: 0px;
  max-width: 900px;
}

.availability-intro h2 {
  margin: 0;

  font-family: Baskerville, serif;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 400;
  line-height: 1;
}

.availability-intro p {
  margin: 22px 0 0;

  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .03em;
  color: #666666;
}

.availability-list {
  margin-top: 90px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.availability-item {
  display: grid;
  grid-template-columns: minmax(0, 520px) 40px;
  align-items: baseline;

  width: fit-content;

  font-family: Baskerville, serif;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.15;

  color: inherit;
  text-decoration: none;
}

.availability-arrow {
  justify-self: end;

  font-family: Inter, sans-serif;
  font-size: .55em;
  font-weight: 300;

  opacity: .25;

  transition:
    opacity .25s ease,
    transform .35s ease;
}

.availability-item:hover .availability-arrow {
  opacity: .55;
  transform: translateX(6px);
}

.availability-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.availability-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height .6s ease,
    opacity .4s ease,
    margin .6s ease;
}

.availability-service.is-open .availability-detail {
  max-height: 300px;
  margin: 28px 0 62px;
  opacity: 1;
}

.availability-description {
  max-width: 500px;
  margin: 18px 0 0;

  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .01em;
}

.availability-meta {
  margin: 14px 0 0;

  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .02em;
  color: #666666;
}

.availability-request {
  display: inline-block;
  margin-top: 20px;

  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;

  color: inherit;
  text-decoration: underline;
}

.availability-service.is-open .availability-arrow {
  transform: rotate(90deg);
  opacity: .55;
}

/* -------------------------------- */
/* CONTACT */
/* -------------------------------- */

.contact {
  margin-top: 220px;
  margin-left: 120px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  font-family: Inter, sans-serif;
  font-size: clamp(25px, 2vw, 25px);
  line-height: 1.6;
}

.contact a {
  color: inherit;
}

.contact .email {
  text-decoration: none;
}

.contact .social {
  text-decoration: underline;
}

.socials {
  display: flex;
  flex-direction: column;
}

/* -------------------------------- */
/* FOOTER */
/* -------------------------------- */

.footer {
  margin-top: 170px;

  font-family: Inter, sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 20px;
  color: #666666;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------- */
/* PREVIEW */
/* -------------------------------- */

.preview {

  position: fixed;

  right: 80px;
  top: 50%;

  width: 430px;
  aspect-ratio: 4 / 5;

  transform: translateY(-50%);

  opacity: 0;

  transition: opacity .22s ease;

  pointer-events: none;

  z-index: 10;

}

.preview img,
.preview video {

  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

}

.preview img,
.preview video {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    opacity: .97;
}
/* -------------------------------- */
/* MOBILE */
/* -------------------------------- */

@media (max-width: 768px) {

  .page {
    min-height: auto;
    padding: 55px 27px 60px;
  }

  /* ---------- HEADER ---------- */

  .logo {

  font-size: 22px;
  transform: translateY(4px);

}

  .menu {
    font-size: 22px;
    line-height: 24px;
    padding-right: 8px;
  }

  /* ---------- HERO ---------- */

  .hero {
    margin-top: 130px;
  }

 .hero h1 {
    font-size: 54px;
    line-height: .95;
    letter-spacing: -.01em;
}

  .edition {
    margin-top: 16px;
    font-size: 20px;
    line-height: 1.3;
  }

  /* ---------- PROJECTS ---------- */

  .projects {
    margin-top: 100px;
    gap: 12px;
  }

  .projects a {
    gap: 0;

    font-size: 42px;
    line-height: 1.18;
  }

  /* Número */

  .projects span:first-child {
    min-width: 48px;
  }

  /* Oculta el guion únicamente en móvil */

  .projects span:nth-child(2) {
    display: none;
  }

  /* Título */

  .projects span:last-child {
    margin-left: 8px;
  }

  /* ---------- STATEMENT ---------- */

  .statement {
    margin-top: 170px;
    margin-left: 0;

    max-width: 340px;
  }

  .statement p {
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: .02em;
  }

  /* ---------- AVAILABILITY ---------- */

.availability {
  margin-top: 190px;
  margin-left: 0;
  max-width: none;
}

.availability-intro h2 {
  font-size: 42px;
  line-height: 1;
}

.availability-intro p {
  margin-top: 18px;

  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.availability-list {
  margin-top: 65px;
  gap: 14px;
}

.availability-item {
  grid-template-columns: 1fr 38px;

  font-size: 34px;
  line-height: 1.15;
}

.availability-arrow {
  font-size: 18px;
}

  /* ---------- CONTACT ---------- */

  .contact {
    margin-top: 120px;
    margin-left: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;

    font-size: 22px;
    line-height: 1.5;
  }

  /* ---------- FOOTER ---------- */

  .footer {
    margin-top: 70px;
  }

  /* ---------- PREVIEW ---------- */

  .preview {
    display: none;
  }

}