/* Ajustes de escala para mostrar más contenido sin perder jerarquía. */

.projects .section-heading {
  display: flex;
  max-width: 1080px;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.projects .section-heading .eyebrow {
  justify-content: center;
}

.projects .section-heading h2 {
  max-width: 900px;
}

.projects .section-heading > p:last-child {
  max-width: 760px;
  margin: 24px auto 0;
}

@media (min-width: 1001px) {
  .hero {
    min-height: 640px;
    padding: clamp(48px, 5.5vw, 82px) clamp(18px, 5vw, 72px);
    grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(50px, 5.2vw, 82px);
  }

  .hero-text {
    font-size: clamp(16px, 1.2vw, 18px);
    margin: 22px 0 26px;
  }

  .hero-board {
    min-height: 430px;
    padding: 36px;
  }

  .selection-box {
    inset: 34px;
  }

  .board-title {
    font-size: clamp(38px, 4vw, 64px);
  }

  .section {
    padding: clamp(68px, 7vw, 104px) clamp(18px, 5vw, 72px);
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2,
  .lab h2,
  .method-title h2 {
    font-size: clamp(42px, 4.6vw, 70px);
  }

  .section-heading > p:last-child,
  .lab-copy > p:last-child {
    font-size: 17px;
  }

  .project-layout {
    grid-template-rows: minmax(280px, 1fr) minmax(280px, 1fr) auto;
  }

  .project-card {
    min-height: 290px;
  }

  .project-main {
    min-height: 580px;
  }

  .project-copy h3 {
    font-size: clamp(26px, 2.4vw, 40px);
  }

  .project-wide {
    min-height: 340px;
  }

  .project-wide-body {
    gap: 36px;
  }

  .lab,
  .method {
    gap: 60px;
  }

  .lab-stack {
    min-height: 460px;
  }

  .lab-card {
    min-height: 190px;
    padding: 24px;
  }

  .lab-card strong {
    font-size: 30px;
  }

  .method-grid article {
    min-height: 260px;
  }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .hero {
    padding-block: 64px;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(50px, 8vw, 74px);
  }

  .hero-board {
    min-height: 420px;
  }

  .board-title {
    font-size: clamp(44px, 8vw, 68px);
  }

  .section {
    padding-block: 72px;
  }

  .section-heading h2,
  .lab h2,
  .method-title h2 {
    font-size: clamp(44px, 7vw, 66px);
  }
}

@media (max-width: 700px) {
  .projects .section-heading > p:last-child {
    margin-top: 18px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-text {
    font-size: 16px;
    margin: 22px 0 26px;
  }

  .hero-board {
    min-height: 340px;
  }

  .board-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .section {
    padding-block: 68px;
  }

  .section-heading h2,
  .lab h2,
  .method-title h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .project-card {
    min-height: 330px;
  }

  .project-main {
    min-height: 460px;
  }

  .project-wide {
    min-height: 560px;
  }

  .lab-stack {
    min-height: 610px;
  }

  .method-grid article {
    min-height: 190px;
  }
}

/* Levitar solo durante el hover, sin movimiento permanente ni en pantallas táctiles. */
@keyframes rebel-float-soft {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes rebel-float-small {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes rebel-float-side {
  0%, 100% { translate: 0 0; }
  50% { translate: 4px -7px; }
}

@media (hover: hover) and (pointer: fine) {
  .project-card .score-card,
  .project-card .score-chip,
  .project-card .mini-pill,
  .project-card .dash-shell,
  .project-card .dash-kpi,
  .project-card .canvas-card,
  .project-card .editor-visual span,
  .project-card .editor-visual b,
  .project-card .rank-card,
  .project-card .challenge-pill {
    will-change: translate;
  }

  .project-main:hover .score-card {
    animation: rebel-float-soft 2.1s ease-in-out infinite;
  }

  .project-main:hover .score-chip {
    animation: rebel-float-small 1.8s ease-in-out .1s infinite;
  }

  .project-main:hover .mini-pill {
    animation: rebel-float-side 2.35s ease-in-out .2s infinite;
  }

  .project-side.mint:hover .dash-shell {
    animation: rebel-float-soft 2.2s ease-in-out infinite;
  }

  .project-side.mint:hover .dash-kpi {
    animation: rebel-float-small 1.75s ease-in-out .15s infinite;
  }

  .project-side.coral:hover .canvas-card {
    animation: rebel-float-soft 2s ease-in-out infinite;
  }

  .project-side.coral:hover .editor-visual span {
    animation: rebel-float-small 1.7s ease-in-out .12s infinite;
  }

  .project-side.coral:hover .editor-visual b {
    animation: rebel-float-side 2.15s ease-in-out .22s infinite;
  }

  .project-wide:hover .rank-first {
    animation: rebel-float-soft 2.15s ease-in-out infinite;
  }

  .project-wide:hover .rank-second {
    animation: rebel-float-side 2.45s ease-in-out .18s infinite;
  }

  .project-wide:hover .challenge-pill {
    animation: rebel-float-small 1.85s ease-in-out .08s infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card:hover .score-card,
  .project-card:hover .score-chip,
  .project-card:hover .mini-pill,
  .project-card:hover .dash-shell,
  .project-card:hover .dash-kpi,
  .project-card:hover .canvas-card,
  .project-card:hover .editor-visual span,
  .project-card:hover .editor-visual b,
  .project-card:hover .rank-card,
  .project-card:hover .challenge-pill {
    animation: none !important;
  }
}