@font-face {
  font-family: "Pandemic";
  src: url("../fonts/Pandemic.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Balto";
  src: url("../fonts/Balto-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Balto";
  src: url("../fonts/Balto-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Balto";
  src: url("../fonts/Balto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #f4f1eb;
  --gray: #929292;
  --orange: #f05a28;
  --line: rgba(255,255,255,.16);
  --body-font: "Balto";
  --display-font: "Pandemic";
  --hero-image-opacity: 1;
  --project-image-opacity: 1;
  --floating-cv-opacity: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--body-font), Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  padding: 28px 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.logo,
.year {
  font-family: var(--display-font), sans-serif;
}

.logo {
  justify-self: start;
  font-size: 30px;
}

.year {
  justify-self: end;
  font-size: 26px;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 12px;
  opacity: 1;
  visibility: visible;
  transition:
    opacity .4s ease,
    transform .4s ease,
    visibility .4s ease;
}

.main-nav a {
  opacity: .7;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--orange);
}

.site-header.show-designer-name .work-designer-name {
  opacity: 1;
  visibility: visible;

  transform:
    translate(-50%, -50%)
    translateY(0);
}

.cv-download {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(5,5,5,.5);
  backdrop-filter: blur(12px);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: var(--floating-cv-opacity);
  transition:
    opacity .4s ease,
    visibility .4s ease,
    transform .4s ease,
    background .3s ease,
    color .3s ease;
}

.cv-download:hover {
  color: var(--black);
  background: var(--white);
  transform: translateY(-3px);
}

.cv-download.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
}

.intro-story {
  position: relative;
  height: 220vh;
  background: var(--black);
}

.intro-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.intro-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, filter, transform;
}

.scene-one {
  opacity: 1;
  visibility: visible;
}

.scene-two {
  z-index: 3;
}

.scene-background {
  position: absolute;
  inset: -4%;
  opacity: var(--hero-image-opacity);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  will-change: transform, filter, opacity;
}

.scene-one-background {
  background-image:
    linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.68)),
    url("../images/home/hero-01.jpg");
}

.scene-two-background {
  background-image:
    linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.55)),
    url("../images/home/hero-02.jpg");
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle,
      transparent 50%,
      rgba(0,0,0,.60)
    );
}

.work-darkening {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #050505;
  opacity: 0;
  pointer-events: none;
}

.scene-content {
  position: relative;
  z-index: 4;
  width: min(1150px,90%);
  padding: 30px;
  text-align: center;
  will-change: opacity, transform, filter;
}

.designer-name {
  margin-bottom: 45px;
  transform: translateY(-20px);

  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 7px;;
}

.scene-content h1,
.scene-content h2 {
  margin: 0;
  font-family: var(--display-font), sans-serif;
  font-size: clamp(58px,8vw,128px);
  line-height: .88;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.scene-description {
  max-width: 760px;
  margin: 45px auto 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 20;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 10px;
}

.scroll-arrow {
  font-size: 20px;
  animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.projects-section {
  position: relative;
  z-index: 20;
  margin-top: -100vh;
  padding: 68vh 8vw 180px;
  background:
    linear-gradient(
      to bottom,
      transparent 0,
      rgba(5,5,5,.15) 12vh,
      rgba(5,5,5,.82) 42vh,
      var(--black) 66vh
    );
}

.work-intro {
  margin-bottom: 44px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 5px;
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
}

.section-heading span {
  color: var(--gray);
  font-size: 11px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #161616;
}

.project-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: var(--project-image-opacity);
  transition:
    transform .7s ease,
    filter .7s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.94),
      transparent 70%
    );
}

.project-info {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
}

.project-info span {
  font-size: 10px;
}

.project-info h3 {
  margin: 8px 0 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.bottom-cv {
  margin-top: clamp(90px,11vw,160px);
  padding-top: 45px;
  border-top: 1px solid var(--line);
}

.bottom-cv a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--body-font), Arial, sans-serif;
  font-size: clamp(26px,4vw,56px);
  font-weight: 300;
  transition:
    color .3s ease,
    padding-left .3s ease;
}

.bottom-cv a:hover {
  padding-left: 15px;
  color: var(--orange);
}

.site-footer {
  position: relative;
  z-index: 30;
  padding: 35px 3vw;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: #888;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity .75s ease,
    transform .75s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 22px;
  }

  .main-nav {
    gap: 14px;
    font-size: 9px;
  }

  .logo {
    font-size: 25px;
  }

  .year {
    font-size: 22px;
  }

  .cv-download {
    right: 16px;
    bottom: 16px;
  }

  .intro-story {
    height: 210vh;
  }

  .scene-content {
    width: 94%;
    padding: 20px;
  }

  .designer-name {
    font-size: 10px;
    letter-spacing: 4px;
  }

  .scene-content h1,
  .scene-content h2 {
    font-size: clamp(42px,13vw,74px);
    line-height: .9;
    letter-spacing: 5px;
  }

  .scene-description {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .projects-section {
    margin-top: -100vh;
    padding: 70vh 22px 140px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}.second-scene-content{
    width:min(1200px,92%);
}

.second-scene-title{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    font-family:var(--display-font);
    font-size:clamp(70px,9vw,150px);

    line-height:1.5;
    letter-spacing:2px;

    text-align:center;
}

.second-scene-title span{
    display:block;
}

.second-scene-title span+span{
    margin-top:28px;
}/* =========================================
   PROJECT PAGE — SIMPLE CASE STUDY
   Cover + intro + continuous gallery
========================================= */

.project-page {
  min-height: 100vh;
  background: #141414;
  color: var(--white);
}

/* HEADER */

.project-nav {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: 86px;
  padding: 0 4vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--black);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.project-nav-name {
  justify-self: start;
  width: fit-content;

  font-family: var(--display-font), sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.project-nav nav {
  display: flex;
  gap: 58px;
}

.project-nav nav a {
  opacity: .62;
  transition: opacity .3s ease, color .3s ease;
}

.project-nav nav a:hover {
  opacity: 1;
  color: var(--orange);
}

#project-counter {
  justify-self: end;
  color: rgba(255,255,255,.5);
}

/* MAIN */

.project-main {
  width: 100%;
}

/* COVER */

.project-cover {
  width: min(1500px, 92vw);
  margin: clamp(34px, 4vw, 64px) auto 0;
}

.project-cover-button {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #1a1a1a;
  cursor: zoom-in;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s cubic-bezier(.22,1,.36,1), filter .4s ease;
}

.project-cover-button:hover img {
  transform: scale(1.008);
  filter: brightness(1.03);
}

/* INTRO */

.project-intro {
  width: min(1380px, 88vw);
  margin: clamp(72px, 8vw, 125px) auto clamp(90px, 10vw, 150px);

  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr);
  column-gap: clamp(70px, 10vw, 170px);
  align-items: start;
}

.project-intro-copy {
  max-width: 760px;
}

.project-brand {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: var(--body-font), Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.project-title {
  max-width: 800px;
  margin: 0 0 26px;

  font-family: var(--body-font), Arial, sans-serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -1.5px;
  text-transform: none;
  color: var(--white);
}

.project-category {
  margin: 0 0 30px;
  color: rgba(255,255,255,.5);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.project-summary {
  max-width: 680px;
  margin: 0;
  color: #aaa;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: .2px;
}

/* META */

.project-meta {
  margin: 2px 0 0;
  display: grid;
  gap: 22px;
}

.project-meta > div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.project-meta dt {
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.project-meta dd {
  margin: 0;
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
}

/* CONTINUOUS GALLERY */

.project-gallery {
  width: min(1180px, 78vw);
  margin: 0 auto;
  padding-bottom: clamp(110px, 13vw, 200px);

  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.2vw, 52px);
}

.project-gallery-item {
  width: 100%;
  margin: 0;
}

.project-gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-gallery-button img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #181818;

  transition:
    transform .55s cubic-bezier(.22,1,.36,1),
    filter .4s ease;
}

.project-gallery-button:hover img {
  transform: scale(1.006);
  filter: brightness(1.025);
}

/* PREVIOUS / NEXT */

.project-pagination {
  padding: 58px 4vw;

  display: grid;
  grid-template-columns: 1fr 240px 1fr;
  align-items: center;

  border-top: 1px solid rgba(255,255,255,.1);
  background: var(--black);

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.project-pagination > a:last-child {
  justify-self: end;
}

.project-pagination a {
  color: #8f8f8f;
  transition: color .3s ease, transform .3s ease;
}

.project-pagination a:hover {
  color: var(--orange);
}

.project-progress {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
}

.project-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width .6s ease;
}

/* LIGHTBOX */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: grid;
  place-items: center;
  padding: 60px;

  background: rgba(0,0,0,.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .3s ease, visibility .3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  transform: scale(.985);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.lightbox.open .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;

  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 40px;
  font-weight: 200;
  cursor: pointer;
  transition: color .25s ease, transform .3s ease;
}

.lightbox-close:hover {
  color: var(--orange);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(5,5,5,.55);
  color: var(--white);

  font-size: 19px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.lightbox-arrow:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lightbox-previous {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  color: var(--gray);
  font-size: 9px;
  letter-spacing: 3px;
}

/* PROJECT — TABLET */

@media (max-width: 900px) {
  .project-cover {
    width: calc(100% - 64px);
  }

  .project-cover-button {
    aspect-ratio: 16 / 6;
  }

  .project-intro {
    width: calc(100% - 64px);
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .project-intro-copy {
    max-width: 760px;
  }

  .project-meta {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px 34px;
  }

  .project-gallery {
    width: calc(100% - 64px);
  }
}

/* PROJECT — MOBILE */

@media (max-width: 650px) {
  .project-nav {
    min-height: 72px;
    padding: 0 22px;

    grid-template-columns:
      auto
      1fr
      auto;

    column-gap: 16px;
  }

  .project-nav-name {
    font-size: 25px;
  }

  .project-nav nav {
    display: flex;
    justify-self: center;
    align-items: center;

    gap: 16px;
  }

  .project-nav nav a {
    position: relative;

    font-size: 8px;
    letter-spacing: 1.8px;
    white-space: nowrap;
  }

  .project-nav nav a.active {
    opacity: 1;
  }

  .project-nav nav a.active::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -10px;

    width: 3px;
    height: 3px;

    border-radius: 50%;
    background: var(--orange);

    transform: translateX(-50%);
  }

  #project-counter {
    justify-self: end;

    font-size: 8px;
    letter-spacing: 1.5px;
    white-space: nowrap;
  }

  .project-cover {
    width: calc(100% - 28px);
    margin-top: 22px;
  }

  .project-cover-button {
    aspect-ratio: 16 / 8;
  }

  .project-intro {
    width: calc(100% - 44px);
    margin-top: 54px;
    margin-bottom: 82px;
    gap: 46px;
  }

  .project-title {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -1px;
  }

  .project-summary {
    font-size: 13px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-gallery {
    width: calc(100% - 28px);
    gap: 18px;
    padding-bottom: 90px;
  }

  .project-pagination {
    padding: 34px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .project-progress {
    display: none;
  }

  .lightbox {
    padding: 70px 12px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-previous {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}

/* ==========================
   ABOUT PAGE
========================== */

.about-page {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
}

.about-nav {
  min-height: 98px;
  padding: 0 4.5vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  border-bottom: 1px solid var(--line);

  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 11px;
}

.about-nav-name {
  justify-self: start;
}

.about-nav nav {
  display: flex;
  gap: 70px;
}

.about-nav nav a {
  position: relative;
  opacity: 0.6;

  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.about-nav nav a:hover,
.about-nav nav a.active {
  opacity: 1;
}

.about-nav nav a.active::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -22px;

  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: var(--orange);

  transform: translateX(-50%);

  transition:
  bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1),
  transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-nav-cv {
  justify-self: end;
  opacity: 0.75;
}

.about-main {
  padding:
    clamp(70px, 8vw, 130px)
    4.5vw
    clamp(70px, 8vw, 130px);

  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 7vw;
  align-items: center;

  border-bottom: 1px solid var(--line);
}

.about-copy {
  max-width: 680px;
}

.about-label {
  margin-bottom: 34px;

  color: var(--orange);

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.about-copy h1 {
  margin: 0;

  font-family:var(--display-font);
  font-size: clamp(70px, 7vw, 130px);
  font-weight: 90;
  line-height: 1.55;

   letter-spacing: 1px;

    margin:0 0 100px;

    max-width:900px;
}
.about-copy h1 span {
  display: block;
  white-space: nowrap;
}

.about-divider {
  width: 75px;
  height: 1px;

  margin: 42px 0;

  background: var(--white);
}

.about-description {
  max-width: 560px;
  margin-bottom: 38px;

  color: #aaa;

  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 1px;
}

.about-download {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 65px;

  padding: 17px 28px;

  border: 1px solid var(--line);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.about-download:hover {
  background: var(--white);
  color: var(--black);

  transform: translateY(-3px);
}

.about-image {
  margin: 0;
  overflow: hidden;

  background: #0a0a0a;
}

.about-image img {
  width: 100%;
  height: min(68vh, 720px);

  object-fit: cover;
  object-position: center;

  filter:
    grayscale(0.9)
    brightness(0.62)
    contrast(1.08);

  transition:
    filter 0.5s ease,
    transform 0.6s ease;
}

.about-image:hover img {
  filter:
    grayscale(0)
    brightness(0.9)
    contrast(0.9);

  transform: scale(1.015);
}

.about-details {
  padding:
    clamp(65px, 7vw, 110px)
    4.5vw;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7vw;
}

.about-detail-column h2 {
  margin-bottom: 22px;

  font-size: 11px;
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 4px;
}

.about-detail-column ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.about-detail-column li,
.about-detail-column p {
  margin: 0;

  color: #999;

  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.5px;
}

.about-detail-column p {
  max-width: 340px;
}

/* ==========================
   ABOUT RESPONSIVE
========================== */

@media (max-width: 900px) {
  .about-main {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 60vh;
  }

  .about-details {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .about-nav {
    min-height: 82px;
    padding: 0 22px;

    grid-template-columns: 1fr 1fr;
  }

  .about-nav nav {
    display: none;
  }

  .about-main {
    padding:
      45px
      22px
      80px;

    gap: 55px;
  }

  .about-copy h1 {
    font-size: clamp(50px, 16vw, 82px);
    letter-spacing: -2px;
  }

  .about-description {
    font-size: 14px;
  }

  .about-image img {
    height: 58vh;
  }

  .about-details {
    padding:
      70px
      22px;

    grid-template-columns: 1fr;
    gap: 55px;
  }
}.about-tools-section {
  padding:
    clamp(70px, 8vw, 130px)
    4.5vw;

  border-top: 1px solid var(--line);
}

.about-tools-section h2 {
  margin-bottom: 42px;

  color: var(--orange);

  font-size: 13px;
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 4px;
}

.about-tools-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 18px;
}

.about-tool-card {
  min-height: 120px;

  display: grid;
  place-items: center;

  padding: 24px;

  border: 1px solid rgba(240, 90, 40, 0.45);
  background: #090909;

  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

.about-tool-card img {
  width: 64px;
  height: 64px;

  object-fit: contain;

  filter: grayscale(1) brightness(1.4);
  opacity: 0.85;

  transition:
    filter 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.about-tool-card:hover {
  border-color: var(--orange);
  background: #111;
  transform: translateY(-5px);
}

.about-tool-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.06);
}

@media (max-width: 1100px) {
  .about-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 650px) {
  .about-tools-section {
    padding:
      70px
      22px;
  }

  .about-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-tool-card {
    min-height: 105px;
  }
}

/*------------------------------------------------*/
/* CONTACT PAGE */
/*------------------------------------------------*/

.contact-page {
  min-height: 100vh;

  background: var(--black);
  color: var(--white);
}


/* =========================================
   MAIN CONTACT SECTION
========================================= */

.contact-section {
  padding:
    clamp(90px, 9vw, 150px)
    4.5vw
    clamp(90px, 9vw, 140px);

  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 1.05fr);

  gap: clamp(70px, 8vw, 140px);

  align-items: start;

  border-bottom: 1px solid var(--line);
}


/* =========================================
   LEFT SIDE
========================================= */

.contact-left {
  min-width: 0;
}


.contact-label {
  margin-bottom: 30px;

  color: var(--orange);

  font-size: 11px;
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 4px;
}


/* TITLE */

.contact-left h1 {
  max-width: 720px;

  margin: 0 0 45px;

  font-family: var(--display-font), sans-serif;

  font-size: clamp(66px, 6.2vw, 112px);
  font-weight: 400;

  line-height: 1.08;
  letter-spacing: 1px;

  text-transform: uppercase;
}


/* naranja solo donde tengas <span> */

.contact-left h1 span {
  color: var(--orange);
}


/* divider */

.contact-line {
  width: 70px;
  height: 1px;

  margin: 42px 0;

  background: var(--orange);

  opacity: 0.7;
}


/* DESCRIPTION */

.contact-text {
  max-width: 510px;

  margin-bottom: 48px;

  color: #9f9f9f;

  font-size: 15px;
  font-weight: 300;

  line-height: 1.8;
  letter-spacing: 0.3px;
}


/* OPTIONAL LEFT BUTTON */

.contact-button {
  width: fit-content;
  min-width: 240px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 40px;

  padding: 20px 28px;

  border: 1px solid rgba(255,255,255,.15);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;

  transition:
    border-color .35s ease,
    color .35s ease,
    transform .35s ease,
    background .35s ease;
}

.contact-button:hover {
  border-color: var(--orange);

  background: rgba(240,90,40,.05);

  color: var(--orange);

  transform: translateY(-3px);
}


/* =========================================
   FORM
========================================= */

.contact-right {
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: 45px;
  row-gap: 55px;
}


/* FIELD */

.contact-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
}


.contact-field.full {
  grid-column: 1 / -1;
}


/* LABEL */

.contact-field label {
  margin-bottom: 18px;

  color: var(--white);

  font-size: 10px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 3px;
}


/* INPUTS */

.contact-field input,
.contact-field textarea {
  width: 100%;

  padding:
    0
    0
    18px;

  border: 0;
  border-bottom:
    1px solid rgba(255,255,255,.18);

  border-radius: 0;

  outline: none;

  background: transparent;

  color: var(--white);

  font-family:
    var(--body-font),
    Arial,
    sans-serif;

  font-size: 15px;
  font-weight: 300;

  transition:
    border-color .3s ease,
    color .3s ease;
}


.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255,255,255,.38);
}


.contact-field textarea {
  min-height: 160px;

  resize: vertical;
}


.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--orange);
}


/* =========================================
   SEND BUTTON
========================================= */

.contact-send {
  grid-column: 1 / -1;

  width: 100%;
  height: 72px;

  margin-top: 4px;

  border:
    1px solid rgba(255,255,255,.15);

  background: transparent;

  color: var(--white);

  font-family:
    var(--body-font),
    Arial,
    sans-serif;

  font-size: 10px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 4px;

  cursor: pointer;

  transition:
    background .35s ease,
    border-color .35s ease,
    color .35s ease,
    transform .35s ease;
}


.contact-send:hover {
  border-color: var(--orange);

  background:
    rgba(240,90,40,.06);

  color: var(--orange);

  transform: translateY(-2px);
}


/* =========================================
   CONTACT INFORMATION
========================================= */

.contact-info {
  padding:
    clamp(65px, 6vw, 95px)
    4.5vw;

  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: clamp(30px, 4vw, 70px);

  border-bottom: 1px solid var(--line);
}


/* INFO HEADINGS */

.contact-info h3 {
  margin: 0 0 20px;

  color: var(--orange);

  font-size: 10px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 4px;
}


/* INFO TEXT */

.contact-info p {
  margin: 0;

  color: #aaa;

  font-size: 15px;
  font-weight: 300;

  line-height: 1.7;
}


/* LINKS */

.contact-info a {
  position: relative;

  color: #aaa;

  transition:
    color .25s ease,
    opacity .25s ease;
}


.contact-info a:hover {
  color: var(--white);
}


/* Orange underline on links */

.contact-info a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: var(--orange);

  transform: scaleX(0);
  transform-origin: left;

  transition:
    transform .3s ease;
}


.contact-info a:hover::after {
  transform: scaleX(1);
}


/* =========================================
   TABLET — 1100px
========================================= */

@media (max-width: 1100px) {

  .contact-section {
    grid-template-columns:
      0.9fr
      1.1fr;

    gap: 65px;

    padding-left: 40px;
    padding-right: 40px;
  }


  .contact-left h1 {
    font-size:
      clamp(58px, 7vw, 90px);

    line-height: 1.05;
  }


  .contact-info {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    row-gap: 55px;

    padding-left: 40px;
    padding-right: 40px;
  }

}


/* =========================================
   TABLET / SMALL LAPTOP — 850px
========================================= */

@media (max-width: 850px) {

  .contact-section {
    grid-template-columns: 1fr;

    gap: 90px;

    padding:
      80px
      32px
      100px;
  }


  .contact-left {
    max-width: 720px;
  }


  .contact-left h1 {
    max-width: 650px;

    font-size:
      clamp(65px, 11vw, 105px);
  }


  .contact-text {
    max-width: 570px;
  }


  .contact-right {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .contact-info {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 55px 40px;

    padding:
      70px
      32px;
  }

}


/* =========================================
   MOBILE — 650px
========================================= */

@media (max-width: 650px) {

  .contact-section {
    padding:
      60px
      22px
      80px;

    gap: 70px;
  }


  .contact-label {
    margin-bottom: 24px;

    font-size: 10px;
  }


  .contact-left h1 {
    max-width: 100%;

    margin-bottom: 35px;

    font-size:
      clamp(55px, 17vw, 82px);

    line-height: 1.02;
  }


  .contact-line {
    margin: 34px 0;
  }


  .contact-text {
    margin-bottom: 38px;

    font-size: 14px;

    line-height: 1.75;
  }


  .contact-button {
    width: 100%;

    min-width: 0;
  }


  /* FORM IN ONE COLUMN */

  .contact-right {
    grid-template-columns: 1fr;

    row-gap: 42px;
  }


  .contact-field.full {
    grid-column: auto;
  }


  .contact-field textarea {
    min-height: 140px;
  }


  .contact-send {
    grid-column: auto;

    height: 65px;
  }


  /* INFO */

  .contact-info {
    grid-template-columns: 1fr;

    gap: 42px;

    padding:
      65px
      22px;
  }


  .contact-info h3 {
    margin-bottom: 13px;
  }


  .contact-info p {
    font-size: 14px;
  }

}


/* =========================================
   HOME → WORK
   FINAL OVERRIDE
========================================= */


/* Home ahora necesita mucho menos scroll */

.intro-story {
  position: relative;

  height: 145vh !important;

  background: var(--black);
}


/* Pantalla sticky */

.intro-stage {
  position: sticky;

  top: 0;

  height: 100vh;

  overflow: hidden;

  background: var(--black);
}


/* Solo tenemos una escena */

.scene-one {
  opacity: 1;
  visibility: visible;
}


/* =========================================
   WORK ENTRA SOBRE EL FINAL DEL HOME
========================================= */

.projects-section {
  position: relative;

  z-index: 20;


  /*
    Esto hace que Work suba
    mientras el Home todavía
    está terminando.
  */

  margin-top: -38vh !important;


  padding:
    23vh
    8vw
    180px
    !important;


  /*
    Transición progresiva:
    transparente → negro
  */

  background:
    linear-gradient(
      to bottom,

      rgba(5, 5, 5, 0)
      0,

      rgba(5, 5, 5, 0.28)
      9vh,

      rgba(5, 5, 5, 0.72)
      20vh,

      rgba(5, 5, 5, 0.95)
      32vh,

      var(--black)
      42vh
    )
    !important;
}


/* =========================================
   SELECTED WORK
========================================= */

.work-intro {
  position: relative;

  z-index: 4;

  margin-bottom: 44px;
}


/* =========================================
   PROJECT CARDS
========================================= */

.project-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #161616;
}

/* IMAGE */

.project-card img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: var(--project-image-opacity);

  transition:
    transform 0.7s cubic-bezier(.22, 1, .36, 1),
    filter 0.5s ease;
}


/* DARK OVERLAY */

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background: rgba(0, 0, 0, 0);

  transition:
    background 0.45s ease;
}


/* PROJECT NAME */

.project-info {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;

  opacity: 0;
  transform: translateY(12px);

  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(.22, 1, .36, 1);
}


.project-info span {
  display: block;

  margin-bottom: 8px;

  font-size: 9px;
  font-weight: 300;

  letter-spacing: 2px;

  opacity: 0.65;
}


.project-info h3 {
  margin: 0;

  font-family: var(--body-font), Arial, sans-serif;

  font-size: 16px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 2px;
}


/* HOVER */

.project-card:hover .project-overlay {
  background: rgba(0, 0, 0, 0.58);
}

.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img {
  transform: scale(1.025);
  filter: brightness(0.82);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .intro-story {
    height: 135vh !important;
  }


  .projects-section {

    margin-top:
      -32vh !important;


    padding:
      21vh
      22px
      140px
      !important;

  }

}/* ==========================
   ABOUT — SKILLS TWO COLUMNS
========================== */

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  column-gap: 25px;
  row-gap: 4px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.skills-list li {
  margin: 0;

  color: #999;

  font-size: 14px;
  line-height: 1.65;
  letter-spacing: 0.5px;
}

/* MOBILE */

@media (max-width: 650px) {
  .skills-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
}
/* =========================================
   ABOUT — TOOLS GRID / 7 ITEMS
========================================= */

.about-tools-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 18px;
}


/* CADA TOOL */

.about-tool-card {
  width: 100%;
  min-width: 0;

  aspect-ratio: 1 / 0.72;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 94, 31, 0.35);

  overflow: hidden;
}


/* LOGOS */

.about-tool-card img {
  display: block;

  width: auto;
  height: auto;

  max-width: 58%;
  max-height: 52%;

  object-fit: contain;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

  .about-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .about-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

}
/* =========================================
   ABOUT — TOOLS FINAL
========================================= */

.about-tools-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));

  gap: 18px;
}


/* ITEM = CARD + NAME */

.about-tool-item {
  min-width: 0;
}


/* CARD */

.about-tool-card {
  width: 100%;
  aspect-ratio: 1 / 0.72;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 94, 31, 0.45);

  overflow: hidden;
}


/* LOGOS — MÁS GRANDES */

.about-tool-card img {
  display: block;

  width: auto;
  height: auto;

  max-width: 82%;
  max-height: 74%;

  object-fit: contain;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* pequeño hover */

.about-tool-card:hover img {
  transform: scale(1.08);
}


/* NOMBRE DE LA HERRAMIENTA */

.about-tool-item > p {
  margin: 13px 0 0;

  font-family: var(--body-font), Arial, sans-serif;

  font-size: 11px;
  font-weight: 400;

  line-height: 1.4;
  letter-spacing: 1px;

  color: rgba(244, 241, 235, 0.62);
}


/* TEXTO FINAL */

.about-more-tools {
  margin: 34px 0 0;

  font-family: var(--body-font), Arial, sans-serif;

  font-size: 11px;
  font-weight: 400;

  line-height: 1.5;

  letter-spacing: 1.5px;

  color: rgba(244, 241, 235, 0.42);
}


/* El + funciona como pequeño acento */

.about-more-tools::first-letter {
  color: var(--orange);
}


/* TABLET */

@media (max-width: 1100px) {

  .about-tools-grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 32px;
  }

}


/* MOBILE */

@media (max-width: 650px) {

  .about-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
  }

  .about-tool-card img {
    max-width: 68%;
    max-height: 60%;
  }

}
.education-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-list li {
  position: relative;

  padding-left: 14px;

  font-size: 14px;
  line-height: 1.7;
}

.education-list li::before {
  content: "·";

  position: absolute;
  left: 0;
  top: 0;
}

.about-detail-column strong {
  color: var(--white);
  font-weight: 50;
}

/* =========================================
   HEADER — CAMBIO AL ENTRAR A WORK
========================================= */

.main-nav {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

.work-designer-name {
  position: absolute;
  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%)
    translateY(5px);

  font-family: var(--body-font), Arial, sans-serif;

  font-size: 10px;
  font-weight: 500;

  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 5px;

  white-space: nowrap;

  color: var(--white);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

.site-header.show-designer-name .work-designer-name {
  opacity: 0.6;
  visibility: visible;

  transform:
    translate(-50%, -50%)
    translateY(0);
}


/* Cuando desaparece el hero */

.site-header.show-designer-name .main-nav {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}

.site-header.show-designer-name .work-designer-name {
  opacity: 1;
  visibility: visible;

  transform:
    translate(-50%, -50%)
    translateY(0);
}
/* =========================================
   HEADER LOGO SWAP — 4Z → MR
========================================= */

.logo-swap {
  position: relative;
  width: 70px;
  height: 36px;

  display: block;
}

.logo-swap span {
  position: absolute;
  left: 0;
  top: 50%;

  transform: translateY(-50%);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}


/* 4z visible al inicio */

.logo-4z {
  opacity: 1;
  visibility: visible;

  font-family: var(--display-font), sans-serif;
  font-size: 30px;
}


/* MR oculto al inicio */

.logo-mr {
  opacity: 0;
  visibility: hidden;

  font-family: var(--display-font), Arial, sans-serif;
  font-size: 25px;
  font-weight: 600;

  letter-spacing: 4px;
  text-transform: uppercase;

  transform:
    translateY(-50%)
    translateX(-8px);
}


/* cuando desaparece el hero */

.site-header.show-designer-name .logo-4z {
  opacity: 0;
  visibility: hidden;

  transform:
    translateY(-50%)
    translateX(8px);
}

.site-header.show-designer-name .logo-mr {
  opacity: 1;
  visibility: visible;

  transform:
    translateY(-50%)
    translateX(0);
}


/* ya no mostramos Marco Rodríguez en el centro */

.site-header.show-designer-name .work-designer-name {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* =========================================
   RESUME DOWNLOAD MICROINTERACTION — FINAL
========================================= */

#resume-download {
  position: relative;
  overflow: hidden;
}

/* TEXTO PRINCIPAL */

.resume-download-text {
  position: relative;
  z-index: 3;

  display: inline-block;

  transition:
    opacity 0.35s ease,
    transform 0.45s ease,
    filter 0.35s ease,
    color 0.35s ease;
}

/* FLECHA */

.resume-download-arrow {
  position: relative;
  z-index: 3;

  display: inline-block;

  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

/* =========================================
   GLOW DE ABAJO HACIA ARRIBA
========================================= */

.resume-download-bar {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 85px;

  z-index: 1;

  opacity: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(240, 90, 40, 0.46) 0%,
      rgba(240, 90, 40, 0.22) 30%,
      rgba(240, 90, 40, 0.08) 58%,
      rgba(240, 90, 40, 0) 100%
    );

  filter: blur(14px);

  transform:
    translateY(35px)
    scaleY(0.5);

  transform-origin: bottom;
}

/* =========================================
   LOADING STATE
========================================= */

#resume-download.is-loading
.resume-download-bar {
  animation:
    resumeGlowRise
    0.95s
    cubic-bezier(.22, .8, .2, 1)
    forwards;
}

#resume-download.is-loading
.resume-download-text {
  animation:
    resumeJumpAndDrop
    1.05s
    cubic-bezier(.22, .8, .2, 1)
    forwards;
}

#resume-download.is-loading
.resume-download-arrow {
  animation:
    resumeArrowExit
    0.75s
    ease
    forwards;
}

/* =========================================
   DOWNLOADED STATE
========================================= */

#resume-download.is-loading
.resume-download-bar {
  animation:
    resumeGlowRise
    1.15s
    cubic-bezier(.22, .61, .36, 1)
    forwards;
}

#resume-download.is-loading
.resume-download-text {
  animation:
    resumeJumpAndDrop
    1.15s
    cubic-bezier(.22, .61, .36, 1)
    forwards;
}

#resume-download.is-downloaded
.resume-download-text {
  animation:
    downloadedAppear
    0.8s
    cubic-bezier(.22, .61, .36, 1)
    forwards;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes resumeGlowRise {

  0% {
    opacity: 0;
    transform:
      translateY(24px)
      scaleY(0.7);
  }

  35% {
    opacity: 0.65;
    transform:
      translateY(5px)
      scaleY(0.95);
  }

  75% {
    opacity: 0.45;
    transform:
      translateY(-10px)
      scaleY(1.05);
  }

  100% {
    opacity: 0;
    transform:
      translateY(-24px)
      scaleY(1.12);
  }
}


@keyframes resumeJumpAndDrop {

  0% {
    opacity: 1;
    transform:
      translateY(0)
      scale(1);

    filter: blur(0);
  }

  28% {
    opacity: 1;
    transform:
      translateY(-7px)
      scale(1.005);

    filter: blur(0);
  }

  48% {
    opacity: 1;
    transform:
      translateY(-4px)
      scale(1);

    filter: blur(0.2px);
  }

  72% {
    opacity: 0.75;
    transform:
      translateY(10px)
      scaleY(0.97);

    filter: blur(1px);
  }

  100% {
    opacity: 0;
    transform:
      translateY(28px)
      scaleY(0.85);

    filter: blur(4px);
  }
}


@keyframes resumeArrowExit {

  0% {
    opacity: 1;
    transform: translateY(0);
  }

  40% {
    opacity: 0.85;
    transform: translateY(-3px);
  }

  100% {
    opacity: 0;
    transform: translateY(18px);
  }
}


@keyframes downloadedAppear {

  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }

  65% {
    opacity: 1;
    transform: translateY(-1px);
    filter: blur(0.5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

#resume-download.is-resetting
.resume-download-text {
  animation:
    downloadedExit
    0.55s
    cubic-bezier(.22, .61, .36, 1)
    forwards;
}

@keyframes downloadedExit {

  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(3px);
  }

}

/* =========================================
   ABOUT + CONTACT HEADER
   FIXED + COMPACT ON SCROLL
========================================= */

.about-nav,
.contact-nav {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 300;

  width: 100%;
  min-height: 98px;

  padding: 0 4.5vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--line);

  transition:
    min-height 0.35s ease,
    padding 0.35s ease,
    background 0.35s ease;
}


/* MR vuelve a vivir DENTRO del header */

.header-mr {
  position: static;

  justify-self: start;

  display: inline-block;

  width: fit-content;
  min-width: 0;

  margin: 0;
  padding: 0;

  font-family: var(--display-font), sans-serif;

  font-size: 30px;
  font-weight: 400;
  line-height: 1;

  letter-spacing: 0;
  text-transform: none;

  color: var(--white);

  transition:
    font-size 0.35s ease,
    color 0.3s ease,
    transform 0.3s ease;
}


.header-mr:hover {
  color: var(--orange);
}


/* =========================================
   COMPACT MODE
========================================= */

/* Punto activo cuando el header se contrae */

.about-nav.is-compact nav a.active::after,
.contact-nav.is-compact nav a.active::after {
  bottom: -10px;
}

.about-nav.is-compact,
.contact-nav.is-compact {
  min-height: 68px;

  background: rgba(5, 5, 5, 0.96);
}


.about-nav.is-compact .header-mr,
.contact-nav.is-compact .header-mr {
  font-size: 24px;
}


/* navegación también se compacta un poco */

.about-nav nav,
.contact-nav nav {
  transition:
    gap 0.35s ease,
    font-size 0.35s ease;
}


.about-nav.is-compact nav,
.contact-nav.is-compact nav {
  gap: 48px;
}


/* Resume */

.about-nav-cv,
.contact-nav-cv {
  justify-self: end;
}


/* =========================================
   ESPACIO PARA EL HEADER FIXED
========================================= */

.about-page,
.contact-page {
  padding-top: 98px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .about-nav,
  .contact-nav {
    min-height: 82px;

    padding-left: 32px;
    padding-right: 32px;
  }

  .about-nav.is-compact,
  .contact-nav.is-compact {
    min-height: 64px;
  }

  .header-mr {
    font-size: 27px;
  }

  .about-page,
  .contact-page {
    padding-top: 82px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .about-nav,
  .contact-nav {
    min-height: 72px;

    padding-left: 22px;
    padding-right: 22px;

    grid-template-columns: 1fr 1fr;
  }

  .about-nav nav,
  .contact-nav nav {
    display: none;
  }

  .about-nav.is-compact,
  .contact-nav.is-compact {
    min-height: 58px;
  }

  .header-mr {
    font-size: 24px;
  }

  .about-nav.is-compact .header-mr,
  .contact-nav.is-compact .header-mr {
    font-size: 21px;
  }

  .about-page,
  .contact-page {
    padding-top: 72px;
  }

}

/* =========================================
   VIEW MORE WORK
========================================= */

.work-archive-link {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  /* Espacio entre el grid y el link */
  padding-top: 80px;

  /* Espacio entre el link y la siguiente sección */
  padding-bottom: 50px;
}

.work-archive-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  width: fit-content;

  color: rgba(255, 255, 255, 0.6);

  font-size: 12px;
  font-weight: 300;

  letter-spacing: 2px;
  text-transform: uppercase;

  text-decoration: none;

  transition:
    color 0.35s ease,
    transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

.work-archive-link a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.archive-arrow {
  display: inline-block;

  transition:
    transform 0.35s cubic-bezier(.22, 1, .36, 1);
}

.work-archive-link a:hover .archive-arrow {
  transform: translate(3px, -3px);
}

/* =========================================
   ARCHIVE TRIGGER
========================================= */

.archive-trigger {
  padding: 0;
  border: 0;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  background: transparent;
  color: rgba(255,255,255,.6);

  font-family: var(--body-font), Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 2px;

  cursor: pointer;

  transition:
    color .35s ease,
    transform .35s cubic-bezier(.22,1,.36,1);
}

.archive-trigger:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.archive-trigger:hover .archive-arrow {
  transform: translate(3px,-3px);
}


/* =========================================
   ARCHIVE MODAL
========================================= */

.archive-modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .5s cubic-bezier(.22,1,.36,1),
    visibility .5s;
}


/* DARK / BLURRED BACKGROUND */

.archive-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.78);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;

  transition:
    opacity .5s ease;
}


/* PANEL */

.archive-panel {
  position: absolute;
  inset: 3vw;

  overflow-y: auto;

  padding:
    clamp(30px,4vw,65px);

  background: #0a0a0a;

  border:
    1px solid rgba(255,255,255,.1);

  opacity: 0;

  transform:
    translateY(25px)
    scale(.985);

  transition:
    opacity .55s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
}


/* OPEN STATE */

.archive-modal.is-open {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}

.archive-modal.is-open
.archive-backdrop {
  opacity: 1;
}

.archive-modal.is-open
.archive-panel {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}


/* =========================================
   ARCHIVE HEADER
========================================= */

.archive-header {
  margin-bottom:
    clamp(45px,6vw,90px);

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.archive-label {
  margin-bottom: 15px;

  color: var(--orange);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.archive-header h2 {
  margin: 0;

  font-family:
    var(--display-font),
    sans-serif;

  font-size:
    clamp(55px,7vw,110px);

  font-weight: 400;
  line-height: .9;
}


/* CLOSE */

.archive-close {
  width: 45px;
  height: 45px;

  padding: 0;

  border:
    1px solid rgba(255,255,255,.18);

  display: grid;
  place-items: center;

  background: transparent;
  color: var(--white);

  font-size: 28px;
  font-weight: 200;

  cursor: pointer;

  transition:
    border-color .3s ease,
    color .3s ease,
    transform .35s ease;
}

.archive-close:hover {
  border-color: var(--orange);
  color: var(--orange);

  transform: rotate(90deg);
}


/* =========================================
   ARCHIVE GRID
========================================= */

.archive-grid {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  grid-auto-flow: dense;

  gap: 18px;
}


/* ITEM */

.archive-item {
  position: relative;

  margin: 0;

  min-height: 300px;

  overflow: hidden;

  background: #151515;
}

.archive-item-wide {
  grid-column: span 2;
}

.archive-item-tall {
  grid-row: span 2;

  min-height: 620px;
}


/* IMAGE */

.archive-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .7s cubic-bezier(.22,1,.36,1),
    filter .5s ease;
}


/* CAPTION */

.archive-item figcaption {
  position: absolute;

  left: 22px;
  bottom: 20px;

  z-index: 3;

  display: flex;
  flex-direction: column;

  gap: 5px;

  opacity: 0;

  transform:
    translateY(10px);

  transition:
    opacity .4s ease,
    transform .5s cubic-bezier(.22,1,.36,1);
}


.archive-item::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.8),
      rgba(0,0,0,.05) 70%
    );

  opacity: 0;

  transition:
    opacity .4s ease;
}


/* TEXT */

.archive-item strong {
  font-size: 13px;
  font-weight: 400;

  text-transform: uppercase;
  letter-spacing: 2px;
}

.archive-item span {
  color:
    rgba(255,255,255,.65);

  font-size: 11px;
  font-weight: 300;

  letter-spacing: 1px;
}


/* HOVER */

.archive-item:hover img {
  transform: scale(1.025);

  filter:
    brightness(.72);
}

.archive-item:hover::after {
  opacity: 1;
}

.archive-item:hover figcaption {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .archive-grid {
    grid-template-columns:
      repeat(2,1fr);
  }

}


@media (max-width: 650px) {

  .archive-panel {
    inset: 12px;

    padding:
      28px
      18px
      60px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-item-wide,
  .archive-item-tall {
    grid-column: auto;
    grid-row: auto;

    min-height: 320px;
  }

}

/* =========================================
   MINIMAL ARCHIVE GALLERY
========================================= */

.archive-modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.archive-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* BACKDROP */

.archive-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.86);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* PANEL */

.archive-panel {
  position: absolute;
  inset: 0;

  overflow-y: auto;

  padding:
    90px
    4vw
    80px;
}


/* CLOSE */

.archive-close {
  position: fixed;

  top: 28px;
  right: 32px;

  z-index: 10;

  padding: 0;

  border: 0;
  background: transparent;

  color: rgba(255,255,255,.7);

  font-size: 34px;
  font-weight: 200;

  cursor: pointer;

  transition:
    color .3s ease,
    transform .3s ease;
}

.archive-close:hover {
  color: var(--orange);

  transform: rotate(90deg);
}


/* GALLERY */

.archive-gallery {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  grid-auto-flow: dense;

  gap: 12px;
}


/* IMAGE */

.archive-image {
  position: relative;

  margin: 0;

  min-height: 280px;

  overflow: hidden;

  background: #111;
}

.archive-wide {
  grid-column: span 2;
}

.archive-tall {
  grid-row: span 2;

  min-height: 572px;
}


/* IMG */

.archive-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .65s cubic-bezier(.22,1,.36,1),
    filter .4s ease;
}


/* CAPTION */

.archive-image figcaption {
  position: absolute;

  left: 18px;
  bottom: 16px;

  z-index: 3;

  margin: 0;

  color: rgba(255,255,255,.8);

  font-size: 10px;
  font-weight: 300;

  text-transform: uppercase;
  letter-spacing: 1.5px;

  opacity: 0;

  transform: translateY(6px);

  transition:
    opacity .35s ease,
    transform .4s cubic-bezier(.22,1,.36,1);
}


/* DARKEN ON HOVER */

.archive-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.22);

  opacity: 0;

  transition:
    opacity .35s ease;
}


.archive-image:hover img {
  transform: scale(1.015);

  filter: brightness(.78);
}

.archive-image:hover::after {
  opacity: 1;
}

.archive-image:hover figcaption {
  opacity: 1;

  transform: translateY(0);
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .archive-gallery {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 650px) {

  .archive-panel {
    padding:
      75px
      14px
      40px;
  }

  .archive-gallery {
    grid-template-columns: 1fr;
  }

  .archive-wide,
  .archive-tall {
    grid-column: auto;
    grid-row: auto;

    min-height: 300px;
  }

}
/* =========================================================
   MOBILE FINAL CONSOLIDATION
   Keeps the original desktop layouts intact.
========================================================= */

@media (max-width: 650px) {

  /* -------------------------------------------------------
     ABOUT + CONTACT HEADER
     MR + WORK / ABOUT / CONTACT
     Hide Resume only on mobile.
  ------------------------------------------------------- */

  .about-nav,
  .contact-nav {
    min-height: 72px !important;
    height: 72px;

    padding: 0 22px !important;

    grid-template-columns:
      auto
      1fr !important;

    column-gap: 24px;
  }

  .about-nav nav,
  .contact-nav nav {
    display: flex !important;

    justify-self: end;
    align-items: center;

    gap: 18px !important;
  }

  .about-nav nav a,
  .contact-nav nav a {
    position: relative;

    font-size: 8px;
    letter-spacing: 1.8px;

    white-space: nowrap;
  }

  .about-nav-cv,
  .contact-nav-cv {
    display: none !important;
  }

  .about-nav nav a.active::after,
  .contact-nav nav a.active::after {
    bottom: -10px !important;

    width: 3px;
    height: 3px;
  }

  .about-nav.is-compact,
  .contact-nav.is-compact {
    min-height: 62px !important;
    height: 62px;
  }

  .about-nav.is-compact .header-mr,
  .contact-nav.is-compact .header-mr {
    font-size: 22px !important;
  }

  .about-page,
  .contact-page {
    padding-top: 72px !important;
  }


  /* -------------------------------------------------------
     HOME PROJECT GRID
  ------------------------------------------------------- */

  .projects-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .projects-grid {
    width: 100%;

    grid-template-columns: 1fr !important;

    gap: 16px !important;
  }

  .project-card {
    width: 100% !important;

    min-height: 0 !important;

    aspect-ratio: 4 / 3 !important;

    margin: 0 !important;
  }

  .project-card img {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }

  .project-info {
    left: 18px !important;
    bottom: 17px !important;

    opacity: 1 !important;

    transform: none !important;
  }

  .project-overlay {
    background:
      linear-gradient(
        to top,
        rgba(0,0,0,.72),
        transparent 55%
      ) !important;
  }

  .project-info h3 {
    font-size: 13px !important;
    font-weight: 400;

    letter-spacing: 1.5px;
  }

  .project-info p {
    margin: 5px 0 0;

    color: rgba(244,241,235,.68);

    font-size: 10px;
    font-weight: 300;
    line-height: 1.4;

    letter-spacing: .5px;
  }

}

/* =========================================
   PROJECT — FRAMERATE VIDEO
   SAME WIDTH AS GALLERY IMAGES
========================================= */

.project-gallery-video {
  width: 100%;
  margin: 0;
  padding: 0;
}

.project-video-framerate {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #000;
}

.project-video-framerate iframe {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  border: 0;
}

/* =========================================
   HOME HERO — FRAMERATE BACKGROUND VIDEO
========================================= */

.scene-one-background {
  overflow: hidden;
  background: #050505 !important;
}

.hero-background-video {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 100vw;
  height: 56.25vw;

  min-width: 177.78vh;
  min-height: 100vh;

  border: 0;

  transform: translate(-50%, -50%);

  pointer-events: none;
}
/* =========================================
   HOME HERO VIDEO — FINAL LAYER FIX
   video -> dark overlay -> content
========================================= */
.scene-one { isolation: isolate; }
.scene-one .scene-one-background { position:absolute; inset:-4%; z-index:0; overflow:hidden; background:#050505 !important; }
.scene-one .hero-background-video { position:absolute; top:50%; left:50%; z-index:0; width:100vw; height:56.25vw; min-width:177.78vh; min-height:100vh; border:0; transform:translate(-50%,-50%); pointer-events:none; }
.scene-one .scene-overlay {
  position: absolute;
  inset: 0;

  z-index: 2;

  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.22) 55%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    rgba(92, 28, 8, 0.58) !important;

  pointer-events: none;
}
.scene-one .scene-content { position:relative; z-index:4; }
.scene-one .scroll-cue { z-index:5; }


/* =========================================
   MOBILE — HOME NAME SPACING
   Separates the two lines of the hero name
========================================= */

@media (max-width: 650px) {
  .scene-one .scene-content h1,
  .scene-one .scene-content h2 {
    line-height: 1.5 !important;
  }
}
