/* INVENBIT shared polish layer.
   Loaded after the page stylesheet so these height-aware rules override the
   fixed-height Tailwind utilities. Id selectors are used deliberately: they win
   over single-class utilities without needing !important. */

/* ---------------------------------------------------------------- motion --
   Premium but immediate: entrances read as deliberate, not delayed. */
.js [data-reveal].rv{transition:opacity .38s var(--ease,cubic-bezier(.19,1,.22,1)) var(--d,0ms),transform .5s var(--ease,cubic-bezier(.19,1,.22,1)) var(--d,0ms)}
.js .rv-mask>span{transition:transform .62s var(--ease,cubic-bezier(.19,1,.22,1)) var(--d,0ms)}
.js [data-reveal].rv-clip{transition:clip-path .65s var(--ease-io,cubic-bezier(.76,0,.24,1)) var(--d,0ms)}
.js [data-reveal].rv-line{transition:transform .72s var(--ease,cubic-bezier(.19,1,.22,1)) var(--d,0ms)}
#page-curtain{animation-duration:.62s;animation-delay:.05s}
#page-curtain span{animation-duration:.45s}
.roll>span{transition-duration:.32s}
.arr i{transition-duration:.32s}
[data-magnetic]{transition-duration:.4s}
.u-link{transition-duration:.32s}
.acc-panel{transition-duration:.45s}
.panel.active{animation-duration:.5s}
.rev{transition-duration:.45s}
.mega-item{transition-duration:.3s,.45s,background-color .3s}

/* ------------------------------------------------------- nav clearance --
   Anchors and focus scrolls land below the fixed header instead of under it. */
html{scroll-padding-top:6rem}
[id]{scroll-margin-top:6rem}
#brief-form .fld{scroll-margin-top:7.5rem}

/* ------------------------------------------------- service page heroes --
   The hero used to be a fixed 860px box with a 160px top pad, which pushed the
   CTAs below the fold on laptop screens. The box now sizes to the viewport and
   the headline scales against viewport height, so the whole lockup lands on
   short screens while tall monitors keep the full editorial scale. */
@media (min-width:1024px){
  #hero:not([data-cms]),#wd-hero,#st-hero{
    height:auto;
    min-height:min(880px,100svh);
    padding-top:clamp(5.25rem,14svh,10rem);
    padding-bottom:clamp(2.5rem,6svh,4rem);
  }
  #hero:not([data-cms]) h1,#wd-hero h1,#st-hero h1{font-size:clamp(2.75rem,9svh,5rem)}
  #hero:not([data-cms]) h1+p,#wd-hero h1+p,#st-hero h1+p{margin-top:clamp(1rem,2.4svh,2rem)}
  #hero:not([data-cms]) h1+p+div,#wd-hero h1+p+div,#st-hero h1+p+div{margin-top:clamp(1.25rem,3svh,2.5rem)}
}

/* Very short desktop windows: trim rhythm before shrinking type. */
@media (min-width:1024px) and (max-height:779px){
  #hero:not([data-cms]) h1,#wd-hero h1,#st-hero h1{line-height:.99;letter-spacing:-.042em}
}

/* ------------------------------------------------------ contact page ----
   Short desktop windows: lift the intro and tighten the left column so the
   heading, copy and all three contact cards clear the fold. */
@media (min-width:1024px){
  #contact-main{padding-top:clamp(5.5rem,14svh,10rem)}
  #contact-intro>div{top:clamp(5.5rem,9svh,8rem)}
}
@media (min-width:1024px) and (max-height:820px){
  #contact-intro h1{margin-top:clamp(1rem,2.6svh,1.5rem)}
  #contact-intro h1+p{margin-top:clamp(.9rem,2.4svh,1.75rem)}
  #contact-intro [data-stagger]{margin-top:clamp(1.25rem,3svh,2.5rem)}
  #contact-intro>div>div:last-child{margin-top:clamp(1.5rem,4svh,3rem)}
}

/* -------------------------------------------------- phone homepage fold --
   Taller phones should reveal the client-category band without scrolling;
   short phones keep natural stacking. */
@media (max-width:767px){
  #hero-content{padding-top:clamp(5.5rem,9.5svh,7.5rem)}
  #hero-wordmark{padding-top:clamp(1rem,3svh,2rem)}
}

/* -------------------------------- contact band on small screens --------
   The long email address in the direct-contact band could not shrink, so the
   round arrow was pushed past the right edge and created page-wide overflow. */
@media (max-width:639px){
  #direct .big-link{gap:.75rem}
  #direct .big-txt{min-width:0;gap:.75rem}
  #direct .big-txt>span:last-child{min-width:0;font-size:clamp(1.5rem,7.8vw,2.5rem);overflow-wrap:anywhere}
  #direct .big-ic{height:2.875rem;width:2.875rem}
}
