/* ── Layout ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  max-width: 1143px;
  margin-inline: auto;
  background-color: #E6DFD5;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 770px;
  overflow: hidden;
}

.hero__labels {
  position: absolute;
  top: 28px;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 44px;
  z-index: 10;
}

.hero__label {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--color-muted);
  font-size: 10.5px;
  letter-spacing: 1.37px;
  line-height: 15.8px;
}

.hero__label--link {
  transition: color 0.2s ease;
}
.hero__label--link:hover { color: var(--color-accent); }

/* Central badge — pre-composed image */
.hero__badge {
  position: absolute;
  top: 210px;
  left: calc(50% - 280px);
  width: 560px;
  height: auto;
  z-index: 1;
}

/* ── Mac folders ─────────────────────────────────────────────────────────────── */
.hero__categories {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.folder {
  position: absolute;
  pointer-events: all;
  display: block;
}

.folder img {
  width: 89px;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}

.folder:hover img { transform: scale(1.08) translateY(-4px); }

.folder--mobile    { top: 619px; left: 264px; }
.folder--web       { top: 104px; left: 220px; }
.folder--ecommerce { top: 472px; left: 909px; }

/* ── Decorative app icons ────────────────────────────────────────────────────── */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__deco-item {
  position: absolute;
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 14px;
}

.hero__deco-item--1 { top: 250px; left: 93px;  }
.hero__deco-item--2 { top: 303px; left: 998px; }
.hero__deco-item--3 { top: 573px; left: 437px; }

/* ── Hero gallery thumbnails ─────────────────────────────────────────────────── */
.hero__gallery {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__gallery-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero__gallery-item figcaption {
  font-family: var(--font-sans);
  font-weight: 400;
  color: #030303;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}

/* Widths — ajusta estos valores para cambiar el tamaño de cada thumbnail */
.hero__gallery-item--1 { top: 486px; left: 83px;  width: 155px; }
.hero__gallery-item--2 { top: 80px;  left: 720px; width: 130px; }
.hero__gallery-item--3 { top: 510px; left: 690px; width: 85px;  }
.hero__gallery-item--4 { top: 140px; left: 870px; width: 115px; }

/* ── Float animation ─────────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-10px); }
}

.folder--mobile    { animation: float 4.0s ease-in-out infinite;  animation-delay:  0.0s;  }
.folder--web       { animation: float 3.5s ease-in-out infinite;  animation-delay: -1.2s;  }
.folder--ecommerce { animation: float 4.5s ease-in-out infinite;  animation-delay: -2.5s;  }

.hero__deco-item--1 { animation: float 3.8s ease-in-out infinite; animation-delay: -0.5s;  }
.hero__deco-item--2 { animation: float 4.2s ease-in-out infinite; animation-delay: -1.8s;  }
.hero__deco-item--3 { animation: float 3.3s ease-in-out infinite; animation-delay: -0.9s;  }

.hero__gallery-item--1 { animation: float 4.1s ease-in-out infinite; animation-delay: -1.5s; }
.hero__gallery-item--2 { animation: float 3.6s ease-in-out infinite; animation-delay: -0.3s; }
.hero__gallery-item--3 { animation: float 4.8s ease-in-out infinite; animation-delay: -2.1s; }
.hero__gallery-item--4 { animation: float 3.9s ease-in-out infinite; animation-delay: -1.0s; }

/* ── About ───────────────────────────────────────────────────────────────────── */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 80px;
}

.about__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-accent);
  font-size: 78px;
  letter-spacing: -1.37px;
  line-height: 72px;
  white-space: nowrap;
}

.about__greeting { font-style: italic; letter-spacing: -1.07px; }
.about__name     { letter-spacing: -1.07px; }

.about__bio-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 735px;
}

.about__bio {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-body);
  font-size: 18px;
  text-align: center;
  line-height: 1.6;
}

/* ── Section header (shared) ─────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-divider);
}

.section-header__title {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-muted);
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 15px;
  white-space: nowrap;
}

/* ── Work ────────────────────────────────────────────────────────────────────── */
.work {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 80px 112px;
}

.work__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 38px;
}

/* ── Project card ────────────────────────────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  width: 440px;
  gap: 12px;
}

.project-card__image {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center bottom;
}

.project-card:hover .project-card__image {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(28, 18, 8, 0.18);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__client {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
  letter-spacing: -0.15px;
  line-height: 22.5px;
}

.project-card__year {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--color-mid);
  font-size: 11px;
  letter-spacing: 0.11px;
  line-height: 16.5px;
}

.project-card__tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-card__tag {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 21px;
}

.project-card__tag-divider {
  display: inline-block;
  width: 1px;
  height: 11px;
  background-color: var(--color-muted);
}

.project-card__description {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 15.9px;
}

/* ── Tools marquee ───────────────────────────────────────────────────────────── */
.tools {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px 112px;
}

.tools__marquee {
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
}

.tools__marquee:hover .tools__track {
  animation-play-state: paused;
}

.tools__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.tools__track img {
  height: 88px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  padding: 0 80px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Contact ─────────────────────────────────────────────────────────────────── */
.contact {
  padding: 64px 112px;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.contact__headline {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-body);
  font-size: 43.4px;
  letter-spacing: -0.87px;
  line-height: 51.3px;
}

.contact__details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}

.contact__link {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-primary);
  font-size: 16px;
  letter-spacing: 0.6px;
  line-height: 22px;
  transition: color 0.2s ease;
}

.contact__link:hover { color: var(--color-accent); }

.contact__linkedin-wrap { display: block; }

.contact__linkedin {
  height: 64px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.contact__location {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 18px;
}
