/* ==== mobile.css — tablet / phone fixes (must be linked AFTER misc.css) ==== */

@media (max-width: 900px) {

  /* floating decorative hero chips were landing on top of the photo and the text */
  .hero-tags {
    display: none;
  }

  /* .container (token.css) resets hero-inner's bottom padding, so the CTA buttons sat flush
     against the scrolling ticker — restore breathing room */
  .hero-inner {
    padding-bottom: 56px;
  }

  /* misc.css pins the title at 80px, which is too big for a phone */
  .hero-title {
    font-size: clamp(2.6rem, 11vw, 5rem);
  }

  /* misc.css pins tags at 20px — scale down so chips wrap cleanly */
  .tag {
    font-size: 14px;
    padding: 6px 11px;
  }

  .case-list {
    gap: 90px;
  }

  .case-card,
  .case-card.reverse {
    gap: 28px;
  }
}

@media (max-width: 700px) {

  /* skills index: name on the left, stamp pinned to the right edge */
  .index-row {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .index-name {
    white-space: normal;
    line-height: 1.3;
  }

  .tier-stamp {
    flex-shrink: 0;
  }

  /* certificate stamp: move it off the certificate scan and into the free space
     beside the text, and keep the text from running underneath it */
  .stamp {
    top: auto;
    bottom: 26px;
    right: 20px;
  }

  .cert-name,
  .cert-meta,
  .cert-id {
    padding-right: 84px;
    overflow-wrap: anywhere;
  }

  .contact-links {
    gap: 22px;
  }

  .contact-links a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .btn {
    padding: 14px 20px;
  }

  .hero-cta {
    gap: 12px;
  }
}
