/* ===== AVORIO PARALLAX ENGINE: primitives ===== */
[data-parallax-type="background"]{position:relative;overflow:hidden;isolation:isolate}
.px-bg{position:absolute;left:0;right:0;top:0;bottom:0;z-index:-1;will-change:transform}
.px-bg img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.px-mask{overflow:hidden;will-change:clip-path}
.px-mask img{width:100%;height:auto;display:block;will-change:transform}
[data-parallax-track]{display:flex;gap:32px;width:max-content;will-change:transform}
.px-static .px-bg{top:0!important;bottom:0!important;transform:none!important}
.px-static [data-parallax-track]{width:auto;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:16px}
.px-static [data-parallax-track]>*{scroll-snap-align:start}
@media (prefers-reduced-motion:reduce){.px-mask{clip-path:none!important}.px-bg{top:0!important;bottom:0!important}}

/* ===== Full-bleed cinematic breaks (home, services, about) ===== */
.px-break{min-height:88svh;display:flex;align-items:flex-end;color:var(--ivory);padding:96px 0}
.px-break .px-bg img{filter:saturate(.9)}
.px-break::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(10,10,10,.92) 8%,rgba(10,10,10,.45) 55%,rgba(10,10,10,.25))}
.px-break__in{position:relative;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:end;width:100%}
.px-break h2{font-size:var(--fs-6)!important;margin:16px 0 0}
.px-break p{color:var(--stone);margin:0}
.px-break__tag{display:inline-flex;align-items:center;gap:12px;margin-top:24px;font:500 var(--fs-1)/1 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--stone);text-decoration:none}
.px-break__tag:hover{color:var(--champagne)}
@media (max-width:860px){.px-break{min-height:72svh;padding:64px 0}.px-break__in{grid-template-columns:1fr;gap:16px}}

/* ===== Case study ===== */
.csx-hero{min-height:100svh;display:flex;align-items:flex-end;color:var(--ivory);padding:160px 0 64px}
.csx-hero__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(8,8,8,.95) 10%,rgba(8,8,8,.55) 60%,rgba(8,8,8,.35))}
.csx-hero__in{position:relative;width:100%}
.csx-hero .cs-hero__meta{border-color:rgba(244,240,232,.3)}
.csx-hero .lead{color:rgba(244,240,232,.8)}
.logo-tile{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:4px;box-shadow:0 16px 40px -16px rgba(0,0,0,.5)}
.logo-tile img{height:48px;width:auto;display:block}
.csx-hero__logo{display:flex;width:max-content;margin-top:40px}
.csx-hero__logo img{height:64px}
.csx-reveal{padding:64px var(--gutter) 96px;background:var(--grey)}
.csx-reveal .px-mask{max-width:1280px;margin:0 auto;box-shadow:0 32px 64px -24px rgba(16,16,16,.35)}
.csx-cap{max-width:56ch;margin:40px auto 0;text-align:center;font-size:var(--fs-4);line-height:1.5}
.csx-layers{position:relative;overflow:hidden;padding:96px 0 160px;isolation:isolate}
.csx-layers__bg{position:absolute;inset:-10% -5%;z-index:-1;opacity:.22;filter:blur(2px) saturate(.8)}
.csx-layers__bg img{width:100%;height:100%;object-fit:cover}
.csx-layers__in{position:relative;display:grid;grid-template-columns:1fr 220px;gap:48px;align-items:end}
.csx-layers__in .eyebrow{grid-column:1/-1}
.csx-layers__phone{margin-bottom:-48px}
.csx-h{padding:96px 0;background:var(--black);color:var(--ivory)}
.csx-h .csx-h__track{padding:48px var(--gutter) 0}
.csx-h__item{margin:0;flex:none;width:min(72vw,1040px);box-shadow:0 32px 64px -24px rgba(0,0,0,.6)}
.csx-h__item img{width:100%;height:auto;display:block}
.csx-full{background:var(--grey);padding:96px 0}
.csx-full__in{display:grid;grid-template-columns:1fr 1.6fr;gap:64px;align-items:center;min-height:calc(100svh - 192px)}
.csx-full__view{height:min(70svh,720px);overflow:hidden}
.csx-full__view img{width:100%;height:auto;display:block;will-change:transform}
.csx-next{display:flex;align-items:flex-end;min-height:64svh;padding:96px 0;text-decoration:none;color:var(--ivory)}
.csx-next:hover h2{color:var(--champagne)}
@media (max-width:860px){
  .csx-hero{padding:128px 0 48px}.csx-hero__logo img{height:44px}
  .csx-layers__in{grid-template-columns:1fr 1fr}.csx-layers__desk{grid-column:1/-1}.csx-layers__phone{grid-column:1/-1;width:55%;justify-self:center;margin:0}
  .csx-full__in{grid-template-columns:1fr;gap:32px;min-height:0}.csx-full__view{height:auto;max-height:none}
  .csx-full.px-static .csx-full__view{height:70svh;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .csx-h__item{width:84vw}
}

/* ===== Portfolio cards / panels with real captures ===== */
.card__plate .bw__view img,.panel__plate .bw__view img,.ex__plate .bw__view img{aspect-ratio:16/10;object-fit:cover;object-position:top}
.phone__screen img{object-fit:cover;object-position:top}
.card__brand{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.card__brand .logo-tile{padding:8px 10px}.card__brand .logo-tile img{height:28px}
.panel__logo{position:absolute;left:4%;top:5%;z-index:2}
.panel__logo img{height:34px}

/* ===== About team photo ===== */
.team{padding:0 0 96px}
.team .px-mask{box-shadow:0 32px 64px -24px rgba(16,16,16,.35)}
.team figcaption{margin-top:16px;color:var(--ink-soft);font-size:var(--fs-2)}

/* ===== Letter effect: faster, lighter, no flicker ===== */
.split .w,.split .w>span{white-space:nowrap}
.split .lt{transform:none!important;text-shadow:none!important;opacity:0;filter:blur(10px);will-change:opacity,filter;
  transition:opacity .6s ease-out var(--d),filter .7s ease-out var(--d)!important}
.split.in .lt{opacity:1;filter:blur(0)}
.split.done .lt{will-change:auto;filter:none}
#hero-h .lt{transition-duration:.35s,.4s!important;transition-delay:calc(var(--d) * .3)!important}
@media (prefers-reduced-motion:reduce){.split .lt{opacity:1!important;filter:none!important}}
.csx-hero .px-bg img,.csx-next .px-bg img{filter:blur(3px) brightness(.5) saturate(.9)}
.px-break .px-bg img{filter:blur(1.5px) brightness(.6) saturate(.9)}
/* snazzy ivory zig-zag full-fill background (manifesto) */
.zigzag{--z:rgba(244,240,232,.09);--z2:rgba(244,240,232,.035);background-color:var(--black);
  background-image:linear-gradient(135deg,var(--z) 25%,transparent 25%),linear-gradient(225deg,var(--z) 25%,transparent 25%),linear-gradient(315deg,var(--z) 25%,transparent 25%),linear-gradient(45deg,var(--z) 25%,transparent 25%),
  linear-gradient(135deg,var(--z2) 25%,transparent 25%),linear-gradient(225deg,var(--z2) 25%,transparent 25%),linear-gradient(315deg,var(--z2) 25%,transparent 25%),linear-gradient(45deg,var(--z2) 25%,transparent 25%);
  background-size:96px 48px,96px 48px,96px 48px,96px 48px,48px 24px,48px 24px,48px 24px,48px 24px;
  background-position:-48px 0,-48px 0,0 0,0 0,-24px 0,-24px 0,0 0,0 0;animation:zz-drift 18s linear infinite}
.zigzag::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 30% 40%,rgba(16,16,16,.85) 20%,rgba(16,16,16,.35) 70%)}
@keyframes zz-drift{to{background-position:48px 0,48px 0,96px 0,96px 0,-72px 0,-72px 0,-48px 0,-48px 0}}
.mani{background:transparent!important;position:relative;isolation:isolate;overflow:hidden}
@media (prefers-reduced-motion:reduce){.zigzag{animation:none}}
/* keep the zig-zag clear of the text: pattern lives in the open right-hand field, text panels sit on solid black */
.zigzag{--z:rgba(244,240,232,.14);--z2:rgba(244,240,232,.05);-webkit-mask-image:linear-gradient(90deg,transparent 0 50%,#000 78%);mask-image:linear-gradient(90deg,transparent 0 50%,#000 78%)}
.zigzag::after{display:none}
.mani__sub{position:relative;background:var(--black)}
.mani .eyebrow,.mani__t{position:relative}
@media (max-width:860px){.zigzag{-webkit-mask-image:linear-gradient(180deg,#000 0 18%,transparent 34%);mask-image:linear-gradient(180deg,#000 0 18%,transparent 34%)}.mani{padding-top:160px!important}}
@media (min-width:861px){.zigzag{-webkit-mask-image:linear-gradient(90deg,transparent 0 64%,#000 88%);mask-image:linear-gradient(90deg,transparent 0 64%,#000 88%)}}

/* sand video: full-fill behind "What we create", washed to ivory for legibility */
.sand .px-bg video{width:100%;height:100%;object-fit:cover;display:block}
.sand .px-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(244,240,232,.55),rgba(244,240,232,.35) 40%,rgba(244,240,232,.6))}
.sand .svc li,.sand .nudge{position:relative}
/* typed service descriptions: crisp per-letter appearance, no blur smear, normal wrapping */
.split--seq .lt{filter:none!important;transition:opacity .18s ease-out var(--d)!important}
.split--seq .w,.split--seq .w>span{white-space:nowrap}
.svc-detail li.split{display:block;position:relative;padding-right:24px}
.svc-detail li.split::after{position:absolute;right:0;top:12px}
/* manifesto cards dissolve into the zig-zag instead of ending in a hard edge */
.mani__sub{background:transparent!important;isolation:isolate}
.mani__sub::before{content:"";position:absolute;z-index:-1;inset:-48px -12% -64px -24px;pointer-events:none;
  background:radial-gradient(120% 140% at 30% 50%,rgba(16,16,16,1) 0 48%,rgba(16,16,16,.92) 62%,rgba(16,16,16,.55) 78%,rgba(16,16,16,0) 96%)}
/* card: solid black behind the text, dissolving to clear on every edge (no box) */
.mani__sub::before{inset:-96px -20% -96px -48px!important;background:linear-gradient(90deg,rgba(16,16,16,1) 0,rgba(16,16,16,1) 52%,rgba(16,16,16,.7) 68%,rgba(16,16,16,0) 92%)!important;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 30%,#000 70%,transparent 100%)}
/* ultra-fine sand: lighter wash so the ripple detail reads */
.sand .px-bg::after{background:linear-gradient(180deg,rgba(244,240,232,.5),rgba(244,240,232,.18) 45%,rgba(244,240,232,.55))!important}

/* ===== "In their own words": real client names drift behind in opposing rows ===== */
.words{position:relative;overflow:hidden;isolation:isolate}
.words__bg{position:absolute;inset:0;z-index:-1;display:flex;flex-direction:column;justify-content:center;gap:8px;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent)}
.words__row{overflow:hidden;white-space:nowrap}
.words__track{display:inline-flex;align-items:center;gap:40px;padding-right:40px;animation:words-l 70s linear infinite}
.words__row:nth-child(2) .words__track{animation-name:words-r;animation-duration:85s}
.words__row:nth-child(3) .words__track{animation-duration:95s}
.words__track span{font:600 clamp(56px,8vw,132px)/1 var(--serif);letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1px rgba(23,23,23,.14)}
.words__row:nth-child(2) .words__track span{color:rgba(23,23,23,.045);-webkit-text-stroke:0}
.words__track i{width:28px;height:21px;flex:none;background:rgba(23,23,23,.16);-webkit-mask:url(../brand/emblem-dark.webp) center/contain no-repeat;mask:url(../brand/emblem-dark.webp) center/contain no-repeat}
@keyframes words-l{to{transform:translateX(-50%)}}
@keyframes words-r{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.words .testi__empty,.words blockquote{background:var(--ivory);position:relative}
.words .testi>div:first-child{position:relative}
@media (prefers-reduced-motion:reduce){.words__track{animation:none}}
@media (max-width:860px){.words__track span{font-size:56px}}
/* About: team photo replaces the emblem tile */
.about-photo .px-mask{aspect-ratio:4/5;box-shadow:0 32px 64px -24px rgba(16,16,16,.35)}
.about-photo .px-mask img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.about-photo figcaption{margin-top:16px;color:var(--ink-soft);font-size:var(--fs-2)}
@media (max-width:860px){.about-photo .px-mask{aspect-ratio:16/10}}
.about-photo .px-mask,.about-photo .px-mask img{aspect-ratio:1670/941!important;height:auto!important}
.about-split{align-items:center}
@media (min-width:861px){.about-split{grid-template-columns:1.35fr 1fr!important}}
.about-photo .px-mask{border-radius:28px;overflow:hidden;-webkit-mask-image:-webkit-radial-gradient(white,black)}
.about-photo .px-mask img{transform-origin:50% 50%}

/* ===================== MOBILE + TABLET OPTIMISATION ===================== */
/* contain every horizontally-scrolling strip so the page itself never scrolls sideways */
html,body{overflow-x:clip}
.csx-h,.hw,.words,.ch,.px-break,.sand,.mani,.fin{overflow:hidden}
img,video{max-width:100%}

/* tablet: 768-1100 */
@media (min-width:768px) and (max-width:1100px){
  .wrap{--gutter:32px}
  .sec-head{grid-template-columns:1fr;gap:24px}
  .sec-head p{justify-self:start}
  .ind{grid-template-columns:repeat(2,1fr)}
  .ind__item:nth-child(3n){border-right:1px solid rgba(244,240,232,.16)}
  .ind__item:nth-child(2n){border-right:0}
  .ind__item p{display:block;opacity:1;transform:none}
  .approach,.contact,.about-split{grid-template-columns:1fr!important;gap:48px}
  .mani__sub{grid-template-columns:repeat(3,1fr)}
  .stack__card{grid-template-columns:80px 1fr;gap:16px 24px}
  .stack__card p{grid-column:2}
  .csx-full__in{grid-template-columns:1fr;gap:32px;min-height:0}
  .csx-full__view{height:62svh}
  .csx-h__item{width:80vw}
  .foot__grid{grid-template-columns:1.4fr 1fr 1fr}
  .panel__plate{aspect-ratio:16/10.5}
}

/* phones: up to 767 */
@media (max-width:767px){
  .wrap{--gutter:20px}
  /* industries: names fit their columns */
  .ind__item{min-height:128px;padding:20px 14px}
  .ind__item h3{font-size:19px!important;line-height:1.15!important;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
  /* project panels: number sits beside the name */
  .panel__meta{grid-template-columns:auto 1fr!important;align-items:baseline;gap:6px 14px}
  .panel__n{font-size:22px!important}
  .panel__meta .link{grid-column:1/-1;margin-top:6px}
  .panel__logo img{height:24px}
  /* comfortable reading */
  .lead{font-size:19px!important}
  .sec-head{margin-bottom:40px!important}
  .nudge{flex-direction:column;align-items:flex-start}
  .nudge .btn{width:100%;justify-content:center}
  .final__ctas,.ch__cta{width:100%}
  .final__ctas .btn,.ch__cta .btn{flex:1 1 100%;justify-content:center}
  .ch__row{gap:20px}
  .px-break{min-height:70svh}
  .csx-hero{min-height:88svh}
  .cs-hero__meta{grid-template-columns:1fr 1fr;gap:16px}
  .swatches{grid-template-columns:repeat(2,1fr)}
  .pill{right:12px;bottom:12px;padding:6px 6px 6px 16px}
  .pill span{width:36px;height:36px}
  .words__track span{font-size:44px}
  .foot__grid{grid-template-columns:1fr 1fr;gap:32px}
}

/* touch: bigger tap targets everywhere, hover-only flourishes off */
@media (hover:none),(max-width:1100px){
  .foot li a,.foot__base a,.mmenu li a,.contact__aside dd a{display:inline-flex;align-items:center;min-height:44px}
  .foot li{padding:0}
  .link,.px-break__tag{display:inline-flex;align-items:center;min-height:44px;padding:0}
  .logo{min-height:44px;display:flex;align-items:center}
  .filters button{min-height:44px}
  .chips span{padding:14px 18px}
  .btn{min-height:48px}
  .ex:hover .ex__plate .bw,.card:hover .card__plate .bw,.panel:hover .panel__plate .bw,.panel:hover .panel__plate .phone{transform:none!important}
}
/* lighter motion on phones: keep the story, drop the expensive layers */
@media (max-width:767px){
  .ch__grain{display:none}
  .scene.on .scene__frame{animation-duration:12s}
  .zigzag{animation:none}
  .btn__fx i{animation-duration:10s}
  .words__track{animation-duration:110s!important}
}

/* ===== Phones show each client's FULL mobile site, gliding top to bottom ===== */
.phone__screen{overflow:hidden}
.phone__screen img.phone__full{width:100%;height:100%!important;object-fit:cover;object-position:50% 0%;animation:phone-scroll 38s ease-in-out infinite alternate}
@keyframes phone-scroll{0%,8%{object-position:50% 0%}92%,100%{object-position:50% 100%}}
@media (prefers-reduced-motion:reduce){.phone__screen img.phone__full{animation:none}}

/* ===== Breaks built from composed device mockups: crisp, not blurred ===== */
.px-break--mock .px-bg img{filter:none!important;object-position:70% 50%}
.px-break--mock::after{background:linear-gradient(90deg,rgba(8,8,8,.88) 0,rgba(8,8,8,.55) 42%,rgba(8,8,8,0) 70%),linear-gradient(0deg,rgba(8,8,8,.85) 0,rgba(8,8,8,0) 45%)!important}
@media (max-width:860px){.px-break--mock .px-bg img{object-position:62% 50%}.px-break--mock::after{background:linear-gradient(0deg,rgba(8,8,8,.92) 15%,rgba(8,8,8,.35) 70%)!important}}
@media (min-width:861px){.px-break--mock .px-bg img{object-position:100% 50%}.px-break--mock::after{background:linear-gradient(90deg,rgba(8,8,8,.97) 0,rgba(8,8,8,.9) 38%,rgba(8,8,8,.35) 58%,rgba(8,8,8,0) 72%),linear-gradient(0deg,rgba(8,8,8,.8) 0,rgba(8,8,8,0) 40%)!important}}

/* ===== About: "What we believe" stamps + slashes ===== */
.bel{position:relative;min-height:100svh;display:flex;align-items:center;padding:96px 0;overflow:hidden}
.bel__in{position:relative;z-index:2;width:100%}
.bel__h{margin:24px 0 64px!important}
.bel__stamp,.bel__card{display:inline-block;will-change:transform,opacity,filter}
.bel__card{display:block}
.bel__slash{position:relative;display:inline-block;color:var(--stone)}
.bel__half{display:inline-block}
.bel__half--a{clip-path:polygon(0 0,100% 0,100% 38%,0 64%)}
.bel__half--b{position:absolute;left:0;top:0;clip-path:polygon(0 64%,100% 38%,100% 100%,0 100%)}
.bel__cut{position:absolute;left:-8%;right:-8%;top:50%;height:3px;background:linear-gradient(90deg,transparent,#fff 18%,var(--champagne) 50%,#fff 82%,transparent);box-shadow:0 0 18px 3px rgba(244,240,232,.75);transform-origin:0 50%;transform:rotate(-9deg) scaleX(0);opacity:0;pointer-events:none}
.bel__slash[data-dir="r"] .bel__cut{transform-origin:100% 50%;transform:rotate(9deg) scaleX(0)}
.bel__slash[data-dir="r"] .bel__half--a{clip-path:polygon(0 0,100% 0,100% 64%,0 38%)}
.bel__slash[data-dir="r"] .bel__half--b{clip-path:polygon(0 38%,100% 64%,100% 100%,0 100%)}
.bel__dust{position:absolute;inset:0;z-index:3;pointer-events:none}
.bel__dust i{position:absolute;border-radius:50%;background:radial-gradient(circle,#efe7d6 0,#b7b0a5 70%);box-shadow:0 0 6px rgba(244,240,232,.35)}
.bel__dust b{position:absolute;border-radius:50%;background:radial-gradient(ellipse at 50% 70%,rgba(214,204,186,.45),rgba(214,204,186,0) 70%);filter:blur(8px);transform-origin:50% 100%}
.bel--static [data-stamp],.bel--static .bel__half{opacity:1!important;transform:none!important;filter:none!important}
