/* =========================
   FONTS
========================= */

@font-face {
  font-family: 'Switzer-Light';
  src: url('../fonts/Switzer-Light.woff2') format('woff2'),
       url('../fonts/Switzer-Light.woff') format('woff'),
       url('../fonts/Switzer-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer-Regular';
  src: url('../fonts/Switzer-Regular.woff2') format('woff2'),
       url('../fonts/Switzer-Regular.woff') format('woff'),
       url('../fonts/Switzer-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer-Medium';
  src: url('../fonts/Switzer-Medium.woff2') format('woff2'),
       url('../fonts/Switzer-Medium.woff') format('woff'),
       url('../fonts/Switzer-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Switzer-MediumItalic';
  src: url('../fonts/Switzer-MediumItalic.woff2') format('woff2'),
       url('../fonts/Switzer-MediumItalic.woff') format('woff'),
       url('../fonts/Switzer-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
  font-style: italic;
}

@font-face {
  font-family: 'Switzer-Bold';
  src: url('../fonts/Switzer-Bold.woff2') format('woff2'),
       url('../fonts/Switzer-Bold.woff') format('woff'),
       url('../fonts/Switzer-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gambarino-Regular';
  src: url('../fonts/Gambarino-Regular.woff2') format('woff2'),
       url('../fonts/Gambarino-Regular.woff') format('woff'),
       url('../fonts/Gambarino-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   RESET
========================= */

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

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

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

body {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

ol, ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

img, picture, video, canvas {
  display: block;
  max-width: 100%;
}

svg {
  max-width: 100%;
  display: inline-block;
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
  border-radius: 0;
}

input, select, textarea {
  color: inherit;
  letter-spacing: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word;
}

.hidden {
  display: none;
}

/* =========================
   VARIABLES
========================= */

:root {
  /* Colors */
  --color-white: #FCFFFF;
  --color-black: #050300;
  --color-muted: rgba(0, 0, 0, 0.7);
  --color-header-bg: rgba(252, 255, 255, 0.5);

  /* Typography */
  --font-light: "Switzer-Light", sans-serif;
  --font-regular: "Switzer-Regular", sans-serif;
  --font-medium: "Switzer-Medium", sans-serif;
  --font-medium-italic: "Switzer-MediumItalic", sans-serif;
  --font-bold: "Switzer-Bold", sans-serif;
  --font-serif: "Gambarino-Regular", serif;

  /* Font sizes */
  --text-12: 0.75rem;      /* 12px */
  --text-16: 1rem;         /* 16px */
  --text-20: 1.25rem;      /* 20px */
  --text-24: 1.5rem;       /* 24px */
  --text-32: 2rem;         /* 32px */
  --text-40: 2.5rem;       /* 40px */
  --text-48: 3rem;         /* 48px */

  /* Spacing */
  --space-6: 0.375rem;     /* 6px */
  --space-8: 0.5rem;       /* 8px */
  --space-18: 1.125rem;    /* 18px */
  --space-21: 1.3125rem;   /* 21px */
  --space-24: 1.5rem;      /* 24px */
  --space-32: 2rem;        /* 32px */
  --space-36: 2.25rem;     /* 36px */
  --space-42: 2.625rem;    /* 42px */
  --space-64: 4rem;        /* 64px */

  /* Effects */
  --blur-header: 0.75rem;
}

/* =========================
   BASE
========================= */

body {
  font-family: var(--font-regular);
  background-color: var(--color-white);
  color: var(--color-black);
}

main {
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
  padding: var(--space-64) var(--space-21) var(--space-21);
}

/* =========================
   TYPOGRAPHY
========================= */

h2,
h3 {
  font-family: var(--font-bold);
  font-size: var(--text-24);
}

.hero_copy {
  font-family: var(--font-regular);
  font-size: var(--text-32);
}

.hero_copy__em{
  font-family: var(--font-medium-italic)
}


/* =========================
   HEADER
========================= */

.site_header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;

  backdrop-filter: blur(var(--blur-header));
  -webkit-backdrop-filter: blur(var(--blur-header));
  background-color: var(--color-header-bg);

  padding: var(--space-18) var(--space-21);
}

.site_header__content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site_header__link{
  font-family: var(--font-medium);
  font-size: var(--text-16);
}

.site_header__menu{
  display: flex;
  flex-direction: row;
  gap: var(--space-32);
}

.site_header__menu_item {
  font-family: var(--font-serif);
  font-size: var(--text-16);
}


/* =========================
    PROJECTS
========================= */

.projects {
  display: flex;
  flex-direction: column;
  gap: var(--space-36);
  align-items: flex-end;
}

.projects__landing {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(6, 1fr);

  row-gap: var(--space-64);
  column-gap: 0;

  grid-auto-flow: dense;
}

.project--teruel {
  grid-column: 3 / 7; /* columnas 3-6 */
}

.project--trece {
  grid-column: 2 / 6; /* columnas 2-5 */
}

.project--cetem {
  grid-column: 1 / 5; /* columnas 1-4 */
}

.project--innovawood {
  grid-column: 3 / 7; /* columnas 3-6 */
}

.projects__landing_project {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.projects__landing_project_link{
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.projects__landing_project_link video {
  width: 100%;
  height: auto;
  display: block;

  transform: translateZ(0);
  backface-visibility: hidden;
}

.projects__landing_link_copy{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.project-date{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

/* =========================
  REVEAL ANIMATIONS
========================= */

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


.projects__landing_project,
.images_project__img {
  opacity: 0;
  transform: translate3d(0, 24px, 0);

  will-change: transform, opacity;

  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.projects__landing_project.is-visible,
.images_project__img.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}


/* =========================
    INFO PAGE
========================= */

.info{
  display: flex;
  flex-direction: column;
  gap: var(--space-64);
}

.info_bio{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.info_bio__text{
  width: 30%;
  font-family: var(--font-regular);
  font-size: var(--text-16);
}

.info_bio__social_link{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

.info_location{
  display: flex;
  justify-content: center;
  text-align: center;
  font-family: var(--font-regular);
  font-size: var(--text-16);
}

.info_lists{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.info_lists__section_item{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

.info_credits{
  display: flex;
  flex-direction: column;
  gap: var(--space-36);
  align-items: center;
}

.info_credits__item{
  text-align: center;
  font-family: var(--font-regular);
  font-size: var(--text-16);
}

.info_credits__item_link{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

/* =========================
    PROJECT PAGE
========================= */

.copy{
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

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

.copy_title__name{
  font-family: var(--font-bold);
  font-size: 6rem;
}

.copy_title__date{
  font-family: var(--font-serif);
  font-size: var(--space-64);
}

.copy_meta{
  display: flex;
  flex-direction: column;
  gap: var(--text-48);
}

.copy_meta__desc{
  font-family: var(--font-regular);
  font-size: var(--text-16);
}

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

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

.copy_meta__tags_item{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

.copy_meta__desc_link{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

.copy_meta__awards{
  font-family: var(--font-medium);
  font-size: var(--text-16);
}

.images_project{
  display: flex;
  flex-direction: column;
  gap: var(--text-12);

  contain: layout paint;
}

.images_project__comp{
  display: flex;
  flex-direction: column;
  gap: var(--text-12);
}

.next{
  display: flex;
  flex-direction: column;
  gap: var(--text-12);
}

.next_cta{
  font-family: var(--font-serif);
  font-size: var(--text-32);
}

.next_title{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.next_title__link{
  font-family: var(--font-bold);
  font-size: var(--text-16);
}

.next_title__date{
  font-family: var(--font-serif);
  font-size: var(--text-16);
}

.next_img{
  display: flex;
  flex-direction: row;
  gap: var(--text-12);
}

/* =========================
    WORK IN PROGRESS
========================= */

.wip_copy{
  font-family: var(--font-serif);
  font-size: var(--text-48);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; 
}

/* =========================
    TABLET MEDIAQUERY
========================= */

@media (min-width: 48rem) {

  /* ================= MAIN ================= */

  main {
    gap: 5rem; /* 80px */
    padding: 2rem; /* 32px */
  }

  /* ================= TYPO ================= */

  h2,
  h3 {
    font-size: 1.875rem; /* 30px */
  }

  .hero_copy {
    font-size: 2.5rem; /* 40px */
    width: 70%;
  }

  .site_header__link{
  font-size: var(--text-24);
}

  /* ================= PROJECTS ================= */

  .projects {
    gap: 3rem; /* 48px */
  }

  .arrow {
    width: 2.5rem; /* 40px */
    height: 2.5rem;
  }

.projects__landing {
  grid-template-columns: repeat(6, 1fr);
  row-gap: var(--space-64);
}

/* fila 1 */

.project--teruel {
  grid-column: 5 / 7;
  grid-row: 1;
}

/* fila 2 */

.project--trece {
  grid-column: 3 / 5;
  grid-row: 2;
}

/* fila 3 */

.project--cetem {
  grid-column: 1 / 3;
  grid-row: 3;
}

.project--innovawood {
  grid-column: 5 / 7;
  grid-row: 3;
}

  .project-date{
    font-size: var(--text-20);
}

  /* ================= INFO PAGE ================= */

  .info_bio__text{
    width: 45%;
  font-size: var(--text-20);
}

  .info_bio__social_link{
  font-size: var(--text-20);
}

  .info_location{
  font-size: var(--text-20);
}

  .info_lists__section_item{
  font-size: var(--text-20);
}

.info_credits{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.info_credits__item{
  font-size: var(--text-20);
}

.info_credits__item_link{
  font-size: var(--text-20);
}

/* =========================
    PROJECT PAGE
========================= */

.copy_title{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.copy_title__name{
  font-size: 8rem;
}

.copy_title__date{
  font-size: 6rem;
}

.copy_meta{
  display: flex;
  flex-direction: row;
  gap: 8rem;
}

.copy_meta__desc{
  font-size: var(--text-20);
  width: 30%;
}

.copy_meta__tags{
  display: flex;
  flex-direction: column;
  gap: var(--text-12);
}

.copy_meta__tags_item{
  font-size: var(--text-20);
}

.copy_meta__desc_link{
  font-size: var(--text-20);
}

.copy_meta__awards{
  font-size: var(--text-20);
}

.images_project{
  display: flex;
  flex-direction: column;
  gap: var(--text-24);
}

.images_project__comp{
  display: flex;
  flex-direction: row;
  gap: var(--text-24);
}

.images_project__comp .images_project__img {
  width: 50%;
  min-width: 0; /* evita que flexbox ignore el width */
}

.next{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.next_title{
  display: flex;
  flex-direction: row;
  gap: var(--space-36);
}

.next_title__link{
  font-size: var(--space-36);
}

.next_title__date{
  font-size: var(--text-32);
}

.next_img{
  display: flex;
  flex-direction: row;
  gap: var(--text-12);
  width: 35%;
}

}

/* =========================
    DESKTOP MEDIAQUERY
========================= */

@media (min-width: 75rem) {

  /* ================= HEADER ================= */

  .site_header {
    padding: var(--space-18) 3rem; /* 48px horizontal */
  }

  .site_header__menu_item {
    font-size: 1.5rem; /* 24px */
  }

  /* ================= MAIN ================= */

  main {
    gap: 8rem; /* 128px */
    padding: 3rem; /* 48px all sides */
  }

  /* ================= TYPO ================= */

  h2,
  h3 {
    font-size: 2.25rem; /* 36px */
  }

  .hero_copy {
    font-size: 3rem; /* 48px */
    width: 50%;
  }

  /* ================= PROJECTS ================= */

  .projects {
    gap: 4rem; /* 64px */
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .projects__landing_project,
  .images_project__img {
    opacity: 1;
    transform: none;
    transition: none;
  }

}