
/* ========================================
   INSEPTION - HOME
   Cinematic experience
======================================== */

.home-page {
  background: var(--color-black);
}

/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-black);
}

/* ========================================
   VIDEO BACKGROUND
======================================== */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========================================
   VIDEO OVERLAY
======================================== */

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.66) 0%,
      rgba(0, 0, 0, 0.20) 35%,
      rgba(0, 0, 0, 0.30) 65%,
      rgba(0, 0, 0, 0.85) 100%
    );
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 15%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

/* ========================================
   FILM GRAIN
======================================== */

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 32px 5%;
}

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

.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 110px;
  height: 38px;
  flex-shrink: 0;
}

.site-header .site-header__logo {
  display: block;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain;
  flex-shrink: 0;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.site-header__brand:hover .site-header__logo {
  transform: rotate(45deg);
  filter: drop-shadow(
    0 0 8px rgba(201, 31, 43, 0.7)
  );
}

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

.site-header__edition {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  letter-spacing: 3px;
}

.site-header__line {
  width: 42px;
  height: 1px;
  background: var(--color-red);
}

/* ========================================
   MENU BUTTON
======================================== */

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.menu-toggle__text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
}

.menu-toggle__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
}

.menu-toggle__icon span {
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
}

.menu-toggle__icon span:last-child {
  width: 65%;
  margin-left: auto;
}

.menu-toggle:hover .menu-toggle__icon span:last-child {
  width: 100%;
}

/* ========================================
   HERO CONTENT
======================================== */

.hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

/* ========================================
   HERO EYEBROW
======================================== */

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  letter-spacing: 4px;
}

.hero__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red-light);
  box-shadow: 0 0 12px var(--color-red-light);
}

/* ========================================
   CENTRAL INSEPTION LOGO
======================================== */

.hero__identity {
  width: min(650px, 80vw);
}

.hero__logo {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(
    0 10px 30px rgba(0, 0, 0, 0.55)
  );
}

.hero__subtitle {
  margin-top: 22px;
  color: var(--color-cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
}

/* ========================================
   HERO DESCRIPTION
======================================== */

.hero__description {
  margin-top: 50px;
  max-width: 950px;
  width: 100%;
}

.hero__description p {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 3px;
}

.hero__description > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 9px;
  letter-spacing: 2px;
  line-height: 1.7;
}

/* ========================================
   HERO FOOTER
======================================== */

.hero__footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  padding: 24px 5%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  letter-spacing: 2px;
}

/* ========================================
   FOOTER LEFT
======================================== */

.hero__footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  justify-self: start;
}

/* ========================================
   DOCUMENT DOWNLOAD BUTTONS
======================================== */

.hero__downloads {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.hero__download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 46px;
  height: 40px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.hero__download:hover {
  border-color: rgba(201, 31, 43, 0.8);
  background: rgba(201, 31, 43, 0.22);
  transform: translateY(-3px);
}

.hero__download-icon {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.hero__download:hover .hero__download-icon {
  transform: scale(1.12);
}

.hero__download-arrow {
  color: var(--color-red-light);
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.hero__download:hover .hero__download-arrow {
  transform: translateY(3px);
}

/* ========================================
   LOCATION
======================================== */

.hero__location {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 2px;
}

.hero__footer-line {
  width: 28px;
  height: 2px;
  background: var(--color-red);
}

/* ========================================
   EXPLORE MY WORK
======================================== */

.hero__explore {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.hero__explore:hover {
  color: var(--color-red-light);
}

.hero__explore-arrow {
  color: var(--color-red-light);
  font-size: 18px;
}

/* ========================================
   SOCIAL NETWORKS
======================================== */

.hero__socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 20px;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 3px;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.hero__social-link:hover {
  border-color: rgba(201, 31, 43, 0.8);
  background: rgba(201, 31, 43, 0.18);
  transform: translateY(-4px);
}

.hero__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition:
    transform var(--transition-fast),
    filter var(--transition-fast);
}

.hero__social-link:hover .hero__social-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 0 5px rgba(201, 31, 43, 0.65));
}

/* ========================================
   CINEMATIC NAVIGATION
======================================== */

.navigation {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 115px 10% 35px;

  background:
    radial-gradient(
      ellipse at 85% 15%,
      rgba(135, 15, 25, 0.20),
      transparent 50%
    ),
    rgba(8, 8, 8, 0.98);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);

  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
}

.navigation.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* NAVIGATION HEADER */

.navigation__top,
.navigation__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-gray);
  font-size: 9px;
  letter-spacing: 3px;
}

/* NAVIGATION LINKS */

.navigation__links {
  display: flex;
  flex-direction: column;
  width: min(850px, 100%);
  margin: 20px auto;
}

.navigation__link {
  display: grid;
  grid-template-columns: 55px 1fr 35px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  transition: var(--transition-fast);
}

.navigation__number {
  color: var(--color-red-light);
  font-size: 10px;
  letter-spacing: 2px;
}

.navigation__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  transition: var(--transition-fast);
}

.navigation__arrow {
  color: var(--color-red-light);
  font-size: 22px;
  text-align: right;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
}

.navigation__link:hover {
  padding-left: 12px;
  border-color: var(--color-red);
}

.navigation__link:hover .navigation__name {
  color: var(--color-red-light);
}

.navigation__link:hover .navigation__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   INTRO ANIMATIONS
======================================== */

.hero__content > *,
.hero__footer > * {
  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.page-loaded .hero__content > *,
.page-loaded .hero__footer > * {
  opacity: 1;
  transform: translateY(0);
}

.page-loaded .hero__eyebrow {
  transition-delay: 0.15s;
}

.page-loaded .hero__identity {
  transition-delay: 0.35s;
}

.page-loaded .hero__description {
  transition-delay: 0.55s;
}

.page-loaded .hero__footer > * {
  transition-delay: 0.75s;
}

/* ========================================
   RESPONSIVE - TABLETS
======================================== */

@media (max-width: 768px) {

  .site-header {
    padding: 24px 6%;
  }

  .site-header__edition {
    display: none;
  }

  .hero__identity {
    width: min(480px, 88vw);
  }

  .hero__logo {
    max-height: 170px;
  }

  .hero__subtitle {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .hero__description {
    margin-top: 35px;
  }

  .hero__description > span {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__footer {
    padding: 22px 6%;
    gap: 12px;
  }

  .hero__footer-left {
    gap: 12px;
  }

  .hero__download {
    width: 42px;
    height: 38px;
  }

  .hero__download-icon {
    width: 23px;
    height: 23px;
  }

  .hero__socials {
    gap: 10px;
  }

  .hero__social-link {
    width: 34px;
    height: 34px;
  }

  .hero__social-icon {
    width: 22px;
    height: 22px;
  }

  .navigation {
    padding: 100px 7% 30px;
  }

  .navigation__name {
    font-size: clamp(28px, 8vw, 42px);
  }

}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 480px) {

  .site-header {
    padding: 22px 6%;
  }

  .site-header__brand {
    width: 80px;
    height: 34px;
    max-width: 80px;
    flex-shrink: 0;
  }

  .site-header .site-header__logo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  .site-header__edition {
    display: none;
  }

  .menu-toggle__text {
    font-size: 9px;
  }

  .hero__content {
    padding: 30px 15px;
  }

  .hero__eyebrow {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .hero__identity {
    width: 88vw;
  }

  .hero__logo {
    max-height: 150px;
  }

  .hero__description {
    margin-top: 35px;
  }

  .hero__description p {
    font-size: 27px;
  }

  .hero__description > span {
    max-width: 340px;
    font-size: 8px;
    letter-spacing: 1.2px;
    line-height: 1.8;
  }

  /* Footer móvil */

  .hero__footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 20px 6% 24px;
  }

  .hero__footer-left {
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .hero__downloads {
    justify-content: center;
    gap: 16px;
  }

  .hero__download {
    width: 44px;
    height: 40px;
  }

  .hero__download-icon {
    width: 23px;
    height: 23px;
  }

  .hero__location {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero__explore {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero__socials {
    justify-content: center;
    gap: 18px;
  }

  .hero__social-link {
    width: 38px;
    height: 38px;
  }

  .hero__social-icon {
    width: 24px;
    height: 24px;
  }

  .navigation {
    padding: 90px 7% 25px;
  }

  .navigation__top,
  .navigation__footer {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .navigation__link {
    grid-template-columns: 35px 1fr 25px;
  }

  .navigation__name {
    font-size: 32px;
  }

}

/* ========================================
   ACCESSIBILITY
======================================== */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

}

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

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .site-header__actions {
    gap: 12px;
  }
}
