/* ─── Hero ─── */
.hero {
  padding-top: calc(var(--space-5xl) + var(--space-xl));
  padding-bottom: var(--space-xl);
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
  position: relative;
}

/* Ensure hero content is visible even if GSAP fails */
.hero__name,
.hero__tagline {
  opacity: 1;
}

/* Rauschenberg: color wash bleed behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  right: -5%;
  width: 45%;
  height: 60%;
  background-color: var(--orange);
  opacity: 0.04;
  mix-blend-mode: multiply;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  pointer-events: none;
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Rauschenberg: misregistered ghost behind the name — like a bad silkscreen pass */
.hero__name::before {
  content: attr(data-text);
  position: absolute;
  top: 3px;
  left: 5px;
  color: var(--orange);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

/* The period after the name — orange accent */
.hero__name span.accent {
  color: var(--orange);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  opacity: 0.75;
}

/* ─── Projects Section ─── */
.projects-section {
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: visible;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  position: relative;
  align-items: center;
}

/* First card — slight rotation like pinned to a wall */
.projects-grid .project-card:nth-child(1) {
  transform: rotate(-0.5deg);
  z-index: 2;
}

.projects-grid .project-card:nth-child(1) .project-card__image-wrap {
  aspect-ratio: 4 / 5;
}

/* Second card — counter-rotated, overlaps slightly */
.projects-grid .project-card:nth-child(2) {
  transform: rotate(0.7deg);
  margin-left: calc(var(--space-md) * -1);
  z-index: 1;
}

.projects-grid .project-card:nth-child(2) .project-card__image-wrap {
  aspect-ratio: 3 / 4;
}

/* Hover resets rotation — card snaps to attention */
.projects-grid .project-card:hover {
  transform: rotate(0deg) scale(1.01);
  z-index: 10;
}

/* ─── Sketches Section ─── */
.sketches-section {
  padding-bottom: var(--space-2xl);
}

.sketches-section__header {
  padding-inline: var(--gutter);
  max-width: var(--container-max);
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--space-4xl) + var(--space-lg));
    padding-bottom: var(--space-2xl);
  }

  .hero__name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid .project-card:nth-child(1) .project-card__image-wrap {
    aspect-ratio: 16 / 10;
  }

  .projects-grid .project-card:nth-child(2) {
    margin-left: 0;
    margin-top: 0;
  }
}
