/* =========================================================
   Touch of Perfection — phone refinements (v1, 1 Oct 2026)
   Loaded last on every page.
   ========================================================= */

/* all sizes: melt the top edge of the hero photo/video into the page (the zoomed photo no longer peeks out above its frame, which drew a grey band under the menu) */
.hero-visual{overflow:hidden}
.hero-visual:after{height:80px;background:linear-gradient(var(--paper),rgba(244,245,245,0))}

@media(max-width:700px){
  /* calmer rhythm: less dead space between sections */
  .section-pad{padding-top:3rem;padding-bottom:3rem}
  .portfolio-intro{padding-top:7rem;padding-bottom:1.75rem}

  /* galleries: no arrow buttons on every tile (the whole image is tappable), readable captions */
  .gallery-image>span{display:none}
  .gallery-caption{margin-top:.55rem}
  .gallery-caption h3{font-size:.8125rem;line-height:1.35}
  .gallery-caption>span{font-size:.6875rem;margin-top:.15rem}

  /* model cards: name with a quiet line underneath instead of a squeezed pill */
  .board-meta{display:block;padding:.55rem .15rem 0}
  .board-pill{display:block;border:0;padding:0;margin-top:.15rem;background:none;font-size:.6875rem;color:var(--muted);white-space:normal}
  .board-stats dt{font-size:.6875rem;line-height:1.35}

  /* filter bars: fit where possible, otherwise scroll with a soft fade that says "more this way" */
  .retouch-filters .filter{padding:.6rem .7rem .6rem 1rem;font-size:.75rem}
  .retouch-filters .filter.active:after,.retouch-filters .filter[aria-pressed=true]:after{left:.42rem}
  .board-filters{-webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent);padding-right:2.5rem}

  /* services page footer: stack instead of squeezing three items in one row */
  .studio-footer{flex-direction:column;align-items:flex-start;gap:.5rem}
  .studio-footer>span:nth-child(2){text-align:left}
}

/* phone menu: full-screen frosted sheet instead of a small floating card (1 Oct) */
@media(max-width:700px){
  .mobile-nav{
    position:fixed;inset:0;z-index:35;top:0;left:0;right:0;bottom:0;
    display:flex;flex-direction:column;gap:0;
    padding:6.75rem 1.75rem calc(2rem + env(safe-area-inset-bottom));
    border:0;border-radius:0;box-shadow:none;
    background:linear-gradient(180deg,rgba(246,247,247,.9),rgba(240,242,243,.94));
    -webkit-backdrop-filter:blur(26px) saturate(1.3);backdrop-filter:blur(26px) saturate(1.3);
    animation:menu-in .35s ease both
  }
  .mobile-nav[hidden]{display:none}
  .mobile-nav a{
    font-family:var(--display);font-size:1.6rem;line-height:1.15;letter-spacing:-.01em;
    padding:.8rem 0;border-bottom:1px solid rgba(34,39,43,.09);
    animation:menu-link .5s cubic-bezier(.2,.7,.2,1) both
  }
  .mobile-nav a:nth-child(2){animation-delay:.04s}
  .mobile-nav a:nth-child(3){animation-delay:.08s}
  .mobile-nav a:nth-child(4){animation-delay:.12s}
  /* Enquiries becomes the one clear action at the bottom */
  .mobile-nav a:last-child{
    margin-top:auto;border:0;text-align:center;
    font-family:var(--body);font-size:.9375rem;letter-spacing:.01em;
    padding:1.05rem 1rem;border-radius:999px;background:var(--ink);color:var(--paper);
    animation-delay:.16s
  }
  .mobile-nav a:last-child:after{content:'  \2197\FE0E '}
  body:has(.mobile-nav:not([hidden])){overflow:hidden}
}
@keyframes menu-in{from{opacity:0}to{opacity:1}}
@keyframes menu-link{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.mobile-nav,.mobile-nav a{animation:none}}

/* phone hero (1 Oct): Elara red gown as a rounded photo card, headline underneath */
.hero-visual picture{display:block;width:100%;height:100%}
@media(max-width:700px){
  .hero{height:auto;min-height:0;max-height:none;padding-top:90px}
  .hero-video,.hero-wash{display:none}
  .hero-visual{position:relative;inset:auto;top:auto;margin:0 6px;aspect-ratio:4/7;max-height:calc(100svh - 150px);border-radius:14px;overflow:hidden;background:#ececec}
  .hero-visual:after{display:none}
  .hero-visual img{object-position:50% 58%}
  .hero-copy{position:relative;bottom:auto;padding:2.25rem var(--gutter) 0}
  .hero-foot{position:relative;bottom:auto;left:auto;right:auto;padding:2.5rem var(--gutter) 1.4rem}
}

/* phone hero reveal (1 Oct): the photo stays pinned under the menu while the text,
   then the "Selected work" section, slide up over it. The hero is display:contents on
   phones so the pinned photo's container is .hero-stack (hero + work), which means
   the photo is fully covered without padding the text panel with empty space. */
@media(max-width:700px){
  .hero-stack{position:relative;padding-top:90px}
  .hero{display:contents}
  /* explicit height: Safari shrinks the width when aspect-ratio meets max-height */
  .hero-visual{position:sticky;top:90px;z-index:0;aspect-ratio:auto;max-height:none;height:min(calc((100vw - 12px) * 1.75),calc(100svh - 150px))}
  .hero-copy{
    z-index:2;background:var(--paper);
    border-radius:22px 22px 0 0;box-shadow:0 -14px 34px rgba(34,39,43,.07);
    padding:2.4rem var(--gutter) .5rem
  }
  .hero-foot{display:none}
  .hero-stack>.work{position:relative;z-index:2;background:var(--paper);margin-top:-1px}
}

/* phone hero text panel as glass (1 Oct): clear "liquid" glass at the top lip,
   frosting by the middle, solid pearl at the bottom. Two blur layers faded with masks. */
@media(max-width:700px){
  .hero-copy{background:transparent;
    box-shadow:0 -14px 34px rgba(34,39,43,.07),inset 0 1px 0 rgba(255,255,255,.95),inset 0 0 0 1px rgba(255,255,255,.4)}
  .hero-copy:before,.hero-copy:after{content:'';position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none}
  .hero-copy:before{   /* liquid glass: barely blurred, bright, a little extra colour */
    -webkit-backdrop-filter:blur(2px) saturate(1.8) brightness(1.08);backdrop-filter:blur(2px) saturate(1.8) brightness(1.08);
    background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08) 40%);
    -webkit-mask-image:linear-gradient(#000 0,#000 14%,transparent 34%);mask-image:linear-gradient(#000 0,#000 14%,transparent 34%)}
  .hero-copy:after{    /* frosted, then solid pearl */
    -webkit-backdrop-filter:blur(24px) saturate(1.25);backdrop-filter:blur(24px) saturate(1.25);
    background:linear-gradient(180deg,rgba(244,245,245,.28) 10%,rgba(244,245,245,.72) 38%,var(--paper) 62%);
    -webkit-mask-image:linear-gradient(transparent 6%,#000 30%);mask-image:linear-gradient(transparent 6%,#000 30%)}
}
