/* ─── FONTS ──────────────────────────────────────────────────────────────── */
/* Capricho Medium — display / headings                                      */
/* Helvetica Neue  — body, nav, UI text                                      */

@font-face {
  font-family: 'Capricho';
  src: url('assets/fonts/fonnts.com-capricho-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('assets/fonts/HelveticaNeueRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'HelveticaNeue';
  src: url('assets/fonts/HelveticaNeueMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/* ─── RESET & TOKENS ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #f13a0c;
  --cream: #f7f5ed;
  --dark: #1b1b1b;
  --mid: #242424;
  --bg: #ffffff;
  --bg-work: #e9e9e9;
  --font-display: 'Capricho', Georgia, serif;
  --font-sans: 'HelveticaNeue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 400;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url('assets/images/cursor2.svg') 0 0, auto;
  }
  a, button {
    cursor: url('assets/images/cursor2.svg') 0 0, pointer;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── HIGHLIGHT REVEAL ───────────────────────────────────────────────────── */
.highlight-reveal {
  position: relative;
  display: inline-block;
}

.highlight-reveal .highlight-bg {
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.62em;
  background: #F13A0C;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1400ms cubic-bezier(0.76, 0, 0.24, 1);
}

.highlight-reveal.is-highlighted .highlight-bg {
  transform: scaleX(1);
}

.work__heading .highlight-bg {
  bottom: 0.25em;
  height: 0.82em;
}

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid #656565;
  transition: transform 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav--scrolled {
  background: var(--cream);
}

.nav__logo {
  justify-self: start;
  display: flex;
  align-items: center;
}

.nav__center {
  justify-self: center;
  display: flex;
  gap: 48px;
}

.nav__dot {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.nav__link {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  color: #2D2D2D;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav__socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/LandingPortfolioMobile.webp');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

@media (min-width: 768px) {
  .hero__bg {
    background-image: url('assets/images/LandingPortfolioDesktop.jpg');
    background-position: center center;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 10vw, 42px);
  color: var(--cream);
  line-height: 1;
  margin-bottom: -4px;
  white-space: nowrap;
}

.hero__name-wrap {
  position: relative;
  display: inline-block;
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(90px, 24vw, 115px);
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 0.02em;
  display: inline;
}

.hero__name .highlight-reveal {
  color: #fff;
  text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero__sup {
  font-family: var(--font-display);
  font-size: clamp(18px, 5vw, 24px);
  color: var(--cream);
  position: absolute;
  top: 0.08em;
  right: -0.25em;
  line-height: 1;
  z-index: 2;
}

.hero__footnote {
  position: absolute;
  bottom: 40px;
  left: 18px;
  z-index: 1;
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── WORK ───────────────────────────────────────────────────────────────── */
.work {
  position: relative;
  background: #f1efe8;
  min-height: 980px;
  padding: 43px 0 80px;
  overflow-x: clip;
}

.work::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/fondo.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .work::before {
    background-image: url('assets/images/fondoDesk.jpg');
  }
}

.work__heading {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 4vw, 56px);
  color: #f9f9f9;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.25);
  letter-spacing: 0;
  margin-left: 7%;
  z-index: 1;
}

/* ─── PROJECT CARD ───────────────────────────────────────────────────────── */
.project {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 1;
}

.project__image {
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0px 1.15px 1px rgba(0,0,0,0.25);
}

.project__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.project__image:hover img {
  transform: scale(1.04);
}

.project__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project--img-right .project__info {
  text-align: right;
}

.project__year {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: #2F2F2F;
  text-transform: uppercase;
}

.project__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: #2F2F2F;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.project__category {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  color: #2F2F2F;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Desktop scatter positions (1440px Figma base) ── */
/* 1: Nike Run Music — top left */
.project:nth-of-type(1) { left: 7%; top: 245px; }
.project:nth-of-type(1) .project__image { width: 240px; }

/* 2: Zeika Memories — bottom left (info first in HTML → info LEFT, image RIGHT) */
.project:nth-of-type(2) { left: 7%; top: 620px; }
.project:nth-of-type(2) .project__image { width: 218px; }

/* 3: Neuro — center */
.project:nth-of-type(3) { left: 32%; top: 420px; }
.project:nth-of-type(3) .project__image { width: 197px; }

/* 4: The Archive — bottom right (info first → info LEFT, image RIGHT) */
.project:nth-of-type(4) { left: 47%; top: 650px; }
.project:nth-of-type(4) .project__image { width: 224px; }

/* 5: Extreme — top right */
.project:nth-of-type(5) { left: 52%; top: 200px; }
.project:nth-of-type(5) .project__image { width: 224px; }

/* ── Mobile layout ────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .work {
    min-height: unset;
    padding: 72px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 112px;
  }

  .work__heading {
    margin-left: 28px;
    font-size: clamp(32px, 10vw, 44px);
  }

  .project {
    position: static;
    width: calc(100% - 56px);
    margin: 0 28px;
    align-items: flex-end;
    gap: 14px;
  }

  /* All images same proportional width */
  .project__image {
    flex: 0 0 52% !important;
    width: auto !important;
  }

  .project__info {
    flex: 1;
    min-width: 0;
  }

  .project__year   { font-size: 14px; }
  .project__title  { font-size: 17px; }
  .project__category { font-size: 13px; }
}


/* ─── ABOUT ──────────────────────────────────────────────────────────────── */
.about {
  background-color: var(--red);
  padding: 56px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 10vw, 56px);
  color: #fff;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about__photo {
  width: 58%;
  align-self: center;
  overflow: hidden;
}

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

.about__bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #fff;
}

.about__bold {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  color: #fff;
}

.about__cv {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.contact {
  background-color: var(--dark);
  color: var(--cream);
  padding: 80px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 12vw, 64px);
  line-height: 1.05;
  color: var(--cream);
}

.contact__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.contact__email {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.01em;
}

.contact__socials {
  display: flex;
  gap: 24px;
}

.contact__social-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.contact__social-link:hover {
  color: var(--red);
}

.contact__footer {
  margin-top: auto;
  padding-top: 40px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.04em;
}
