*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0d0d0d;
  --white: #f7f6f2;
  --mid: #6b6b6b;
  --rule: #c8c4bc;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --instrument: 'Instrument Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================
   NAVIGATION
========================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 1.6rem 3rem;

  background: rgba(247, 246, 242, 0.65);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-color: var(--rule);
}

.nav-logo {
  font-family: var(--instrument);
  font-weight: 750;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  transition: color 0.3s;
}

.nav-logo:hover {
  color: #442f66a6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--black);
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}

.nav-links a:hover {
  opacity: 1;
  color: #eb4d05;
}

.divider {
  width: 1px;
  height: 1rem;
  background: var(--rule);
}

.nav-links a.active {
  color: #eb4d05;
}


/* ==========================
   LANGUAGE
========================== */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;

  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;

  opacity: .4;
}

.lang-btn.active {
  opacity: 1;
}

.lang-sep {
  color: var(--rule);
}

/* ==========================
   HERO
========================== */

.hero {
  min-height: 100vh;

  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 4rem 4rem 1rem 3rem;

  animation: fadeUp 1s ease both;
}

.under-construction {
  font-family: var(--sans);
  font-size: 2rem;
  letter-spacing: .25em;
  color: #eb4d05;
  margin-bottom: 1.2rem;
}

.hero-name {
  font-family: var(--instrument);
  font-weight: 200;

  font-size: clamp(3.5rem, 6vw, 7rem);

  line-height: .92;

  margin-left: -0.08em;
  margin-bottom: 1rem;
}

.hero-role {
  font-family: var(--sans);

  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;

  color: var(--mid);

  margin-bottom: 2rem;
}

.hero-rule {
  width: 3rem;
  height: 1px;
  background: var(--black);
  margin-bottom: 2.4rem;
}

.hero-bio {
  font-size: .95rem;
  line-height: 1.75;

  max-width: 34ch;

  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* ==========================
   BUTTONS
========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;

  padding: .85rem 1.8rem;

  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;

  text-transform: uppercase;
  text-decoration: none;

  border: 1px solid var(--black);

  transition: .25s;
}

.btn-fill {
  background: var(--black);
  color: var(--white);
}

.btn-fill:hover {
  background: var(--white);
  color: var(--black);
}

.btn-ghost {
  background: var(--black);
  color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
}

/* ==========================
   IMAGE
========================== */

.hero-image {
  position: relative;
  overflow: hidden;

  background: #1a1a1a;

  height: 100vh;
}

.hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 55%;

  filter: grayscale(100%) contrast(1.2) brightness(.9);

  opacity: .8;
}

.hero-image::before {
  content: '';

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to right,
      var(--white) 0%,
      rgba(247,246,242,.6) 5%,
      transparent 11%
    );

  z-index: 1;
}

/* ==========================
   FOOTER
========================== */

footer {
  border-top: 1px solid var(--rule);

  padding: 1.5rem 3rem;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-social a {
  text-decoration: none;
  color: var(--black);

  font-size: .90rem;
  letter-spacing: .19em;

  opacity: .6;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-copy {
  font-size: .90rem;
  color: var(--mid);
}

/* ==========================
   LANGUAGE ANIMATION
========================== */

.lang-fade {
  transition: opacity .25s ease;
}

.lang-fade.fading {
  opacity: 0;
}

/* ==========================
   HAMBURGER
========================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
}

/* ==========================
   ANIMATIONS
========================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  animation: fadeUp 1s ease both;
}

.bio-grid {
  animation: fadeUp 1s ease 0.1s both;
}
.hero-ctas {
  animation: fadeUp 1s ease 0.1s both;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 768px) {

  nav {
    padding: 1.2rem 1.4rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-links {
    position: fixed;

    top: 0;
    right: -100%;

    width: 80%;
    max-width: 320px;
    height: 100vh;

    background: var(--white);

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 2rem;

    transition: right .35s ease;

    border-left: 1px solid var(--rule);
  }

  .nav-links.active {
    right: 0;
  }

  .divider {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-image {
    order: 1;
    height: 80vw;
    min-height: 220px;
    margin-top: 3.6rem;
  }

  .hero-image img {
  object-position: center 40%;
  }
  
  .hero-text {
    order: 2;
    padding: 2rem 1.6rem 3rem;
  }

  .hero-name {
    font-size: clamp(3.5rem, 14vw, 6rem);
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-social {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ==========================
   INTERIOR PAGES BIO
========================== */

.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 3rem 4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.section-label {
  font-size: 1.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--instrument);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
}

.bio-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-image img {
  width: 100%;
  display: block;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-content p {
  font-size: 1rem;
  line-height: 1.9;
  max-width: 70ch;
}

.content-narrow {
  max-width: 800px;
}

.subheading {
  font-family: var(--instrument);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.activity-list {
  list-style: none;
}

.activity-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 900px) {

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 8rem 1.5rem 3rem;
  }
}

/* CV buttons */

.cv-active {
  color: #eb4d05 !important;
  /* border-color: #eb4d05; */
}

.cv-active:hover {
  background: #eb4d05;
  color: var(--white) !important;
}



/* ==========================
   WORKS
========================== */



.works-hero {
  padding-top: 3rem;
}

.works-hero-image {
  position: relative;
}

.works-hero img {
  width: 100%;
  height: 65vh;

  object-fit: cover;
  object-position: center 5%;

  display: block;

  margin-top: 2rem;

  animation: fadeUp 1s ease both;
}

.works-hero-overlay {
  position: absolute;

  right: 5%;
  top: 70%;

  transform: translateY(-50%);

  text-align: right;

  animation: fadeUp 1s ease both;
}

.works-label {
  color: #eb4d05;

  font-size: 1.9rem;

  letter-spacing: .25em;

  text-transform: uppercase;

  margin-bottom: 0,9rem;
}

.works-title {
  font-family: var(--instrument);

  font-weight: 100;

  font-size: clamp(2rem, 5vw, 5rem);

  line-height: .90;

  color: white;
}


.works-list {
  max-width: 1000px;

  margin: 0 auto;

  padding: 5rem 3rem 6rem;
}

.work-item {
  padding: 0 0 4rem 0;
  margin-bottom: 4rem;

  border-bottom: 1px solid var(--rule);

  animation: fadeUp 1s ease both;
}

.work-year {
  display: block;

  font-size: .75rem;

  letter-spacing: .25em;

  text-transform: uppercase;

  color: var(--mid);

  margin-bottom: .5rem;
}

.work-title {
  font-family: var(--instrument);

  font-size: 2.5rem;

  font-weight: 300;

  margin-bottom: 1rem;
}

.work-meta {
  margin-bottom: 2rem;

  color: var(--mid);

  line-height: 1.8;
}

.score-placeholder {
  width: 100%;
  height: 280px;

  border: 1px solid var(--rule);

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 2rem;

  color: var(--mid);

  letter-spacing: .15em;

  text-transform: uppercase;

  font-size: .75rem;
}

.work-note {
  max-width: 70ch;

  line-height: 1.9;
}

@media (max-width: 768px) {

  .works-hero .page-header {
    padding: 0 1.5rem;
  }

  .works-list {
    padding: 4rem 1.5rem;
  }

  .work-title {
    font-size: 2rem;
  }

  .score-placeholder {
    height: 180px;
  }

}

/* ==========================
   MEDIA
========================== */
body.media-page {
  background: 
    linear-gradient(to bottom, 
      var(--white) 0%, 
      var(--white) 75px, 
      #2e2e31 75px, 
      #2e2e31 95%);
  background-attachment: fixed;
}
body.media-page footer {
  background: var(--white);
}

.media-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 5rem;
  color:  #eb4d05;
}

.video-grid {
  display: grid;
  gap: 2rem;
}

.video-card {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-grid div {
  overflow: hidden;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;

  border: 1px solid var(--rule);

  display: flex;

  justify-content: center;
  align-items: center;

  color: var(--mid);
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* display: block;  */
  cursor: pointer;

  transition: transform 0.50s ease, box-shadow 0.55s ease;
  will-change: transform;
}
.photo-grid img:hover {
  transform: scale(1.02) translateY(0px);
  filter: contrast(1.05);
}

/* ==========================
   MEDIA HERO
========================== */

.media-hero {
  padding-top: 5rem;
  color: var(--white);
}

.media-hero-image {
  position: relative;
}

.media-hero-image img {
  width: 100%;
  height: 60vh;

  object-fit: cover;
  object-position: center;

  display: block;

  animation: fadeUp 1s ease both;
}

.media-hero-overlay {
  position: absolute;

  left: 1%;
  top: 87%;

  /* transform: translateX(-50%); */

  text-align: center;

  animation: fadeUp 1s ease both;
}


/* .media-label {
  color: #ffffff;

  font-size: 2rem;

  letter-spacing: .2em;

  text-transform: uppercase;

  margin-bottom: 0rem;
} */


.media-title {
  font-family: var(--instrument);

  font-weight: 200;

  font-size: clamp(2rem, 3vw, 3rem);

  line-height: .90;

  color: rgba(241, 75, 10, 0.61);
  
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  transition: 
    opacity 0.35s ease,
    backdrop-filter 0.5s ease,
    visibility 0.35s;
    
  z-index: 9999;
}

#lightbox.show {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#lightbox img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;

  transform: scale(0.92);
  opacity: 0;
  will-change: transform;
  transition: 
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease;
}

#lightbox.show img {
  transform: scale(1);
  opacity: 1;
}

/* cursor estilo museo */
#lightbox img {
  cursor: zoom-out;
}

/* ==========================
   CONTACT
========================== */

.contact-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-content p {
  margin-top: 1.5rem;
  line-height: 1.6;
  color: var(--mid);
}

.contact-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #eb4d05;
}

/* IMAGE */
.contact-image img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
  animation: fadeUp 1s ease both;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-image img {
    height: 50vh;
  }
}
