/* ==========================================================================
   responsive.css
   ≥1180px landscape : full-bleed saree photograph, centred copy, three-photo
                       3D cluster on the left (style.css)
   below that / portrait : centred logo + copy, the three-photo cluster, then the saree photograph as a band along
                           the bottom of the page. No horizontal overflow.
   ========================================================================== */

/* Large desktops: a touch more presence */
@media (min-width: 1680px) {
  :root { --content-w: 600px; }
  .logo { width: 360px; }
  .lede { font-size: 18px; max-width: 510px; }
}

/* Short laptop screens (e.g. 1280×720): tighten the vertical rhythm */
@media (min-width: 1180px) and (max-height: 800px) {
  .hero { padding: 24px 0 20vh; }
  .logo { width: 240px; }
  .eyebrow { margin-top: 14px; }
  .headline { margin-top: 8px; }
  .headline__line--1 { font-size: 56px; }
  .headline__line--2 { font-size: clamp(40px, 3.8vw, 58px); }
  .divider { margin-top: 14px; }
  .lede { margin-top: 12px; font-size: 16px; line-height: 1.55; }
  .pill { margin-top: 18px; min-height: 44px; }
  .status { margin-top: 10px; }
}

/* --------------------------------------------------------------------------
   Tablets + phones: stacked
   -------------------------------------------------------------------------- */
@media (max-width: 1179.98px), (max-aspect-ratio: 1/1) {
  :root { --band: clamp(300px, 82vw, 640px); }

  /* the photograph becomes a band pinned to the bottom of the page, fading up into the cream */
  html { overflow-x: hidden; }
  body { position: relative; overflow-x: clip; }
  body::before,
  body::after {
    position: absolute;
    top: auto;
    height: var(--band);
  }
  body::before {
    background: url("../assets/images/bg-teal-saree-900.webp") 80% 100% / cover no-repeat;
    transform-origin: 70% 100%;
    -webkit-mask-image: linear-gradient(transparent, #000 48%);
            mask-image: linear-gradient(transparent, #000 48%);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 0 0;
  }

  .content { width: min(600px, 100% - 40px); }
  .content::before { display: none; } /* the copy already sits on plain cream here */
  .headline__line--1 { font-size: clamp(50px, 9vw, 86px); }
  .headline__line--2 { font-size: clamp(38px, 6.8vw, 64px); }

  /* the cluster drops below the copy, centred, with a gentler 3D turn and shallower depth */
  .gallery {
    position: relative;
    inset: auto;
    width: min(100% - 56px, 540px);
    margin: 64px auto calc(var(--band) * .8); /* room below for the photo band */
  }
  .side--left {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    translate: none;
    transition: none;
    perspective: 1600px;
  }
  .stage { transform: rotateY(-6deg) rotateX(2deg); transition: none; }
  .float--b { --z: 40px; }
  .float--c { --z: 70px; }
  .spark { transform: translateZ(80px); }

  /* the footer sits on the dark silk at the very bottom of the band */
  .footer {
    position: static;
    margin-top: auto;
    padding: 0 20px calc(18px + env(safe-area-inset-bottom));
  }
}

/* Large tablets in portrait can use the full-resolution photograph */
@media (min-width: 768px) and (max-aspect-ratio: 1/1) {
  body::before { background-image: url("../assets/images/bg-teal-saree.webp"); }
}

/* Phones */
@media (max-width: 767.98px) {
  :root { --radius: 14px; }
  .hero { padding-top: 34px; }
  .logo { width: 270px; }
  .eyebrow { margin-top: 20px; font-size: 13px; letter-spacing: .14em; margin-right: -.14em; }
  .headline { margin-top: 10px; }
  .headline__line--1 { font-size: clamp(46px, 13vw, 62px); }
  .headline__line--2 { font-size: clamp(34px, 9.6vw, 46px); }
  .divider { margin-top: 16px; width: 88px; }
  .lede { margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .pill { margin-top: 24px; min-height: 46px; font-size: 16px; padding: 0 30px; }
  .status { margin-top: 12px; font-size: 14px; }

  .gallery { width: calc(100% - 48px); margin-top: 52px; }
  .card { box-shadow: 0 18px 36px -20px rgba(10, 45, 48, .55), 0 0 0 3px rgba(255, 255, 255, .92); }
  .frame { inset: -7px; border-radius: calc(var(--radius) + 7px); }
  .spark--1 { width: 16px; height: 16px; }
}
