/* Responsive overrides for Case Studies (Portfolio list) */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .portfolio-hero {
    height: 420px;
  }
  .portfolio-hero__content {
    left: 32px;
    max-width: 720px;
    gap: 40px;
  }
  .portfolio-hero__title {
    font-size: 56px;
  }
  .portfolio-hero__subtitle {
    font-size: 20px;
  }

}

/* Tablet Portrait & Small Laptops: <= 768px */
@media (max-width: 768px) {
  .portfolio-hero {
    height: 360px;
  }
  .portfolio-hero__content {
    left: 24px;
    max-width: 600px;
    gap: 24px;
  }
  .portfolio-hero__title {
    font-size: 44px;
    font-weight: 600;
  }
  .portfolio-hero__subtitle {
    font-size: 18px;
    color: #727272;
  }

}

/* Mobile: <= 480px (aligns with Figma 375px layout) */
@media (max-width: 480px) {
  .portfolio-hero {
    height: 323px;
    background-color: white;
    /* Mobile hero guide lines similar to Home hero */
    --hero-line-color: rgba(0, 0, 0, 0.10);
    position: relative;
  }
  /* Mobile hero guide lines per Figma (375x323):
     - Vertical lines at x=16px and x=calc(100% - 16px), from y=58px to bottom
     - Horizontal line at y=180px across full width */
  .portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3; /* above background textures, below content */
    background-repeat: no-repeat;
    background-image:
      /* left vertical */ linear-gradient(to bottom, transparent 58px, var(--hero-line-color) 58px, var(--hero-line-color) 100%),
      /* right vertical */ linear-gradient(to bottom, transparent 58px, var(--hero-line-color) 58px, var(--hero-line-color) 100%),
      /* horizontal */ linear-gradient(to right, var(--hero-line-color), var(--hero-line-color));
    background-size:
      1px 100%,
      1px 100%,
      100% 1px;
    background-position:
      16px 0,
      calc(100% - 16px) 0,
      0 180px;
  }
  .portfolio-hero__content {
    left: 16px;
    max-width: 343px;
    gap: 15px;
    top: 1rem;
    left: 3rem;
  }
  .portfolio-hero__title {
    font-size: 28px;
    letter-spacing: -0.03em;
    font-weight: 600;
    color: black;
  }
  .portfolio-hero__subtitle {
    font-size: 12px;
    line-height: 1.7em;
    letter-spacing: -0.01em;
    text-align: left;
  }

}


