/* homepage only: the hero intro and sections not shared with inner pages */
.hero{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:calc(100svh - 96px);padding:clamp(32px,7vh,96px) 0;border:0;text-align:center}
.hero>.wrap{flex:1;display:flex;flex-direction:column}
.hero h1{font-size:clamp(40px,min(6.2vw,10vh),92px);max-width:12em;margin:auto auto 0}
.hero h1{position:relative}
.hero h1 .w{display:inline-block}
.hero h1.lift{z-index:31}
.hero::before{content:"";position:fixed;inset:0;z-index:30;background:var(--dark);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .9s ease,visibility 0s linear .9s}
html.mw-big{overflow:hidden}
html.mw-big .hero::before{opacity:1;visibility:visible;transition:none}
html.mw-big .hero h1{position:fixed;left:50%;top:50%;z-index:31;width:96vw;max-width:none;margin:0;transform:translate(-50%,-50%);font-size:min(15.5vw,28vh)}
.site-nav{transition:transform .7s cubic-bezier(.2,.7,.2,1)}
html.mw-nav .site-nav{transform:translateY(-100%)}
html.mw-dark body{background:var(--dark)}
.hero.intro{overflow:visible}
.mw-on{-webkit-text-fill-color:transparent}
.mw-layer{position:absolute;inset:0;pointer-events:none;filter:url(#melt)}
.mw-layer>*{position:absolute;opacity:0}
.mw-g{white-space:pre;letter-spacing:0;-webkit-text-fill-color:currentColor}
.mw-ic{overflow:visible;fill:currentColor;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.mw-sh>span{display:block;width:100%;height:100%;background:currentColor;transform:scale(0)}
.mw-drop{border-radius:50%;background:currentColor}
.hero .lead,.hero .ctas{transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1),visibility 0s}
.hero .ctas{transition-delay:.12s}
.hero.intro .lead,.hero.intro .ctas{opacity:0;visibility:hidden;transform:translateY(12px)}
.hero-code{transition:opacity .8s}
.hero.intro .hero-code{opacity:.3}
.ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:40px;margin-bottom:auto}
@media (max-width:600px){
  .site-nav .pair{display:none}
  .ctas .pair{display:flex;width:100%}.ctas .pair .pill{flex:1}
  .ctas .ghost{width:100%}
  .logos{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 20px;align-items:center}
  .logos img{height:22px}.logos img.tall{height:30px}
  .cards{grid-template-columns:1fr}
  .card.all{min-height:0;flex-direction:row;align-items:center}.card.all .ico{margin:0}
  .quote,.sheet,.brief .box,.t{padding:28px}
  .tabs{gap:2px}.tab{flex:1;padding-inline:12px;font-size:14px}
  .brief form{flex-direction:column}
  .brief .pair{width:100%}.brief .pair .pill{flex:1}
  .f-grid{grid-template-columns:1fr 1fr}
}
/* phones: the hero sizes to its content instead of filling the screen, and the title is as large as still fits ("transformation" on one line) */
@media (max-width:600px){
  .hero{min-height:0;padding:40px 0 56px}
  .hero h1{margin:0 auto;font-size:clamp(40px,13.2vw,64px)}
  .hero .lead{margin-top:20px;font-size:18px}
  .ctas{margin:28px 0 0}
}
/* tablets: the hero also sizes to its content (the full-screen stage is kept for wide screens) */
@media (min-width:601px) and (max-width:1000px){
  .hero{min-height:0;padding:64px 0 72px}
  .hero h1{margin:0 auto;font-size:clamp(44px,9vw,76px)}
  .ctas{margin:32px 0 0}
}
/* phones and tablets: the case cards and the testimonials become swipe rows, with the next card peeking in at the edge */
@media (max-width:1000px){
  #work .cases,.tq{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;margin-inline:calc(-1 * var(--pad));padding-inline:var(--pad);scroll-padding-inline:var(--pad);scrollbar-width:none}
  #work .cases::-webkit-scrollbar,.tq::-webkit-scrollbar{display:none}
  #work .case,.tq .t{flex:0 0 min(85%,520px);scroll-snap-align:start}
}
/* phones: service cards are compact (icon beside the title, no sub-list) and case card text stops at three lines */
@media (max-width:600px){
  #services .card:not(.all){display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:14px;row-gap:8px;min-height:0;padding:22px 24px}
  #services .card:not(.all) .ico{margin:0}
  #services .card:not(.all) p{grid-column:1 / -1}
  #services .card:not(.all) small{display:none}
  #work .case .txt > p:not(.sector){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
}
