/* ==========================================================================
   WLDstudio — responsive enhancements
   Base styles are mobile-first in style.css; this file scales the layout up.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Small tablets / large phones
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .intro__meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .intro__meta div:last-child {
    grid-column: auto;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .featured-card:first-child {
    grid-column: 1 / -1;
  }

  .featured-card:first-child .featured-card__media {
    aspect-ratio: 16 / 11;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid {
    gap: 0.75rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }

  .gallery-grid {
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Desktop navigation & layout
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root {
    --header-h: 86px;
  }

  /* Header ---------------------------------------------------------------- */
  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2.4vw, 2.75rem);
  }

  .site-header .lang-switch {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .brand img {
    height: 29px;
  }

  /* Hero ------------------------------------------------------------------ */
  .hero {
    display: block;
    min-height: 100svh;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 100svh;
    max-width: var(--max-width);
    padding: 0;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--header-h) + 2rem) clamp(2rem, 3.5vw, 4rem)
      clamp(2.5rem, 4vw, 3.5rem) var(--gutter);
    border-right: 1px solid var(--line);
  }

  .hero__eyebrow {
    margin-bottom: auto;
  }

  .hero__title {
    max-width: 22ch;
    font-size: clamp(2.5rem, 4.2vw, 4.4rem);
    line-height: 0.94;
  }

  .hero__lede {
    margin-top: 1.4rem;
    font-size: 0.95rem;
  }

  .hero__meta {
    margin-top: 2.5rem;
  }

  .hero__media {
    position: relative;
    grid-column: 2;
    inset: auto;
    height: 100svh;
  }

  .hero__media::after {
    background:
      linear-gradient(
        to bottom,
        rgba(16, 16, 16, 0.62) 0%,
        rgba(16, 16, 16, 0.18) 12%,
        rgba(16, 16, 16, 0) 22%
      ),
      linear-gradient(
        to top,
        rgba(16, 16, 16, 0.55) 0%,
        rgba(16, 16, 16, 0) 28%
      );
  }

  .hero__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(240, 237, 230, 0.72);
    font-size: 0.58rem;
    letter-spacing: 0.17em;
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
  }

  .hero__caption-index {
    color: var(--cream);
  }

  /* Section heads --------------------------------------------------------- */
  .section-head__row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .section-head__row .section-title {
    max-width: 18ch;
  }

  .section-head__row .link-arrow {
    margin-bottom: 0.5rem;
    flex: 0 0 auto;
  }

  /* Intro ----------------------------------------------------------------- */
  .intro__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 8rem);
  }

  .intro__statement {
    font-size: clamp(2.6rem, 4.6vw, 4.5rem);
  }

  .intro__copy {
    padding-top: 0.5rem;
  }

  .intro__meta {
    margin-top: 2.5rem;
  }

  /* Featured work --------------------------------------------------------- */
  .featured-grid {
    grid-template-columns: 1.15fr 0.8fr 0.9fr;
    align-items: start;
    gap: clamp(1.25rem, 2vw, 2rem);
  }

  .featured-card:first-child {
    grid-column: auto;
  }

  .featured-card:first-child .featured-card__media {
    aspect-ratio: 4 / 5;
  }

  .featured-card:nth-child(2) {
    margin-top: clamp(3.5rem, 7vw, 7rem);
  }

  .featured-card:nth-child(3) {
    margin-top: clamp(1rem, 2.5vw, 2.5rem);
  }

  .featured-card__title {
    font-size: 1.35rem;
  }

  /* Services list --------------------------------------------------------- */
  .service-row {
    grid-template-columns: 3rem minmax(0, 1.05fr) minmax(0, 1fr) 2.5rem;
    gap: 1.5rem;
    padding-block: 1.6rem;
  }

  .service-row__num {
    align-self: start;
    padding-top: 0.65rem;
  }

  .service-row__name {
    font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  }

  .service-row__desc {
    align-self: start;
    padding-top: 0.35rem;
    font-size: 0.8rem;
  }

  .service-row__arrow {
    justify-self: end;
    align-self: center;
    font-size: 1.15rem;
  }

  .service-preview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 17rem;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    transform: translate3d(-100vw, -100vh, 0);
  }

  .service-preview.is-visible {
    opacity: 1;
  }

  .service-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* About teaser ---------------------------------------------------------- */
  .about-teaser__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
  }

  .about-teaser__title {
    font-size: clamp(2.4rem, 4.2vw, 4rem);
  }

  /* Reviews --------------------------------------------------------------- */
  .reviews-grid {
    gap: 1.25rem;
  }

  .review-card {
    padding: 2.25rem;
  }

  /* Instagram ------------------------------------------------------------- */
  .instagram-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  .instagram-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* CTA band -------------------------------------------------------------- */
  .cta-band__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 8rem);
  }

  .cta-band__title {
    font-size: clamp(3.5rem, 7.5vw, 7.5rem);
  }

  /* Footer ---------------------------------------------------------------- */
  .footer-top {
    grid-template-columns: 1.4fr 0.7fr 0.9fr 0.6fr;
    gap: 2rem;
  }

  /* Page head ------------------------------------------------------------- */
  .page-head__index {
    display: block;
  }

  .page-head__title {
    font-size: clamp(4rem, 9vw, 8.5rem);
  }

  .page-head__bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-top: 2.5rem;
  }

  .page-head__meta {
    flex: 0 0 auto;
    padding-bottom: 0.25rem;
  }

  /* Portfolio ------------------------------------------------------------- */
  .portfolio-count {
    display: block;
  }

  .filters {
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1.4rem 1.1rem;
  }

  .gallery-item,
  .gallery-item[data-span="square"] {
    grid-column: span 4;
  }

  .gallery-item[data-span="wide"] {
    grid-column: span 6;
  }

  .gallery-item__title {
    font-size: 1.05rem;
  }

  .gallery-item__overlay {
    padding: 1.15rem;
  }

  /* Lightbox -------------------------------------------------------------- */
  .lightbox__top {
    padding: 1rem var(--gutter);
  }

  .lightbox__close {
    width: 52px;
    height: 52px;
  }

  .lightbox__nav {
    width: 52px;
    height: 52px;
  }

  .lightbox__image {
    max-height: calc(100svh - 12.5rem);
  }

  .lightbox__bottom {
    padding-bottom: 1.9rem;
  }

  .lightbox__title {
    font-size: 1.55rem;
  }

  /* About page ------------------------------------------------------------ */
  .about-intro {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
  }

  .about-figure {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .about-vision {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
  }

  .about-vision__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .approach {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 2.5rem;
  }

  /* Services page --------------------------------------------------------- */
  .service-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    padding-block: clamp(3.5rem, 7vw, 6rem);
  }

  .service-detail:nth-child(even) .service-detail__media {
    order: 2;
  }

  .service-detail:nth-child(even) .service-detail__body {
    order: 1;
  }

  .service-detail__media {
    aspect-ratio: 4 / 5;
  }

  .service-detail__title {
    font-size: clamp(2.8rem, 4.4vw, 4.3rem);
  }

  .pricing__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
  }

  /* Contact --------------------------------------------------------------- */
  .contact-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .contact-info {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .form__title {
    margin-bottom: 2rem;
  }

  /* Legal ----------------------------------------------------------------- */
  .legal__wrap {
    margin-inline: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Large desktop refinements
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hero__content {
    padding-left: var(--gutter);
    padding-right: clamp(3rem, 4vw, 5rem);
  }

  .hero__title {
    font-size: clamp(3.2rem, 4.2vw, 4.4rem);
  }

  .hero__lede {
    font-size: 1rem;
  }

  .featured-card:nth-child(2) {
    margin-top: clamp(5rem, 9vw, 9rem);
  }

  .service-row {
    padding-block: 1.8rem;
  }

  .service-row__name {
    font-size: clamp(2.3rem, 3vw, 3.2rem);
  }

  .page-head {
    padding-top: calc(var(--header-h) + clamp(4rem, 7vw, 8rem));
  }

  .gallery-grid {
    gap: 1.7rem 1.4rem;
  }

  .lightbox__image {
    max-height: calc(100svh - 13rem);
  }
}

@media (min-width: 1500px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero__title {
    font-size: 4.4rem;
  }

  .service-preview {
    width: 19rem;
  }
}

/* --------------------------------------------------------------------------
   Touch devices: keep captions readable and skip hover-only reveals
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .gallery-item__overlay,
  .featured-card__overlay,
  .instagram-tile::after,
  .instagram-tile__label {
    opacity: 1;
  }

  .gallery-item__overlay {
    background: linear-gradient(
      to top,
      rgba(16, 16, 16, 0.45),
      rgba(16, 16, 16, 0) 45%
    );
  }

  .instagram-tile::after {
    background: rgba(16, 16, 16, 0.12);
  }

  .service-preview {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   Mobile-only refinements
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .filters {
    padding-right: 2.25rem;
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    -webkit-mask-image: linear-gradient(
      to right,
      #000 calc(100% - 2.5rem),
      transparent
    );
  }
}
